首页 \ 问答 \ Intelij IDEA - 无法部署到tomcat(Intellij IDEA - cannot deploy to tomcat)

Intelij IDEA - 无法部署到tomcat(Intellij IDEA - cannot deploy to tomcat)

当我部署应用程序时,我不能访问我部署的应用程序 - 我正在接收消息 -

iu-sport-ui.war (exploded): Server is not connected. Deploy is not available

这对我来说很奇怪,因为有时我可以部署我的应用程序,有时我不能这样做。

我试着完全按照这个主题做,但它没有帮助我。

这是日志 - https://gist.github.com/ivanursul/c4ffaf6f69fbe8e2933c

这是截图 在此处输入图像描述


From time to time I cannot access my deployed applications when I deploy them - I'm receiving message -

iu-sport-ui.war (exploded): Server is not connected. Deploy is not available

It's weird for me, because sometimes I can deploy my apps and sometimes I cannot do that.

I tried to do exactly as in this topic But it didn't helped me.

Here is the logs - https://gist.github.com/ivanursul/c4ffaf6f69fbe8e2933c

Here is screenshot enter image description here


原文:https://stackoverflow.com/questions/32248732
更新时间:2023-06-15 06:06

最满意答案

尝试这样的事情 - 测试和工作样本:

#import "ViewController.h"

@interface ViewController () {
    BOOL startUp;

    UIImageView *myImage;
}

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    startUp = YES;
}

- (IBAction)doWork:(id)sender {
    if (startUp) {
        UIImage *img = [UIImage imageNamed: @"keyframe"];
        myImage = [[UIImageView alloc] initWithImage: img];

        [myImage sizeToFit];

        [myImage setCenter: CGPointMake(200, 300)];

        [self.view addSubview: myImage];

        startUp = NO;
    } else {
        [myImage setCenter: CGPointMake(400, 500)];
    }
}

@end

Try something like this – tested and working sample:

#import "ViewController.h"

@interface ViewController () {
    BOOL startUp;

    UIImageView *myImage;
}

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    startUp = YES;
}

- (IBAction)doWork:(id)sender {
    if (startUp) {
        UIImage *img = [UIImage imageNamed: @"keyframe"];
        myImage = [[UIImageView alloc] initWithImage: img];

        [myImage sizeToFit];

        [myImage setCenter: CGPointMake(200, 300)];

        [self.view addSubview: myImage];

        startUp = NO;
    } else {
        [myImage setCenter: CGPointMake(400, 500)];
    }
}

@end

相关问答

更多
  • 导航栏容纳按钮没有问题 - 我的导航栏中没有任何问题的按钮,我可以将它们添加到Bootstrap页面上的静态导航栏示例 : html应该这样布置:
  • 触发验证的Javascript / jquery类(在这种情况下为.input-validation-error)应该应用于整个输入组元素,而不仅仅是选择元素。 I have found my solution was to make custom error labels and append the error message there. i have followed this instructions to solve my issue https://stackoverflow.com/a/40 ...
  • 这是因为MVC尝试序列化对象, 您可以尝试将null传递给routeValues参数 Html.ActionLink("SignUp","SignUp","Account",null, new { @class="btn btn-primary"}) 这是MSDN的ActionLink扩展: public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string acti ...
  • 我通过在for循环中调用一个用户定义的函数来修复奇怪的计数行为,如下所示: for (var i = 0; i < questionArr.length; i++) { attachChangeEvent(i); } function attachChangeEvent(index) { $('input[name="Button' + index + '"]').live('change', functi ...
  • 而不是将frameRate设置为0只是停止你的坠落物体。 将frameRate设置为0可能会影响所有绘图。 Instead of setting the frameRate to 0 just stop your falling objects. Setting the frameRate to 0 is probably effecting all drawing.
  • 更改: params.require(:order).permit(:user_id, user_attributes: [:id,... 至: params.require(:order).permit(:user_id, user: [:id,... Change: params.require(:order).permit(:user_id, user_attributes: [:id,... to: params.require(:order).permit(:user_id, user: [ ...
  • 加 .btn-link:hover, .btn-link:focus{ background: transparent!important;' } 看看小提琴的结尾 add .btn-link:hover, .btn-link:focus{ background: transparent!important;' } look at the end of the fiddle
  • 除了缺少else语句之外,您还必须将函数绑定到onload或onclick事件以使代码onclick 。 编辑: 例: Document