相关疑难解决方法(0)

Tomcat在Idea中.战争爆炸:服务器没有连接.部署不可用

我正在尝试这个tutoial.我创建了新项目并运行它.TomCat开始了,但后来什么也没发生.我可以在浏览器中手动打开http://localhost:8080并查看TomCat主页.这意味着可以启动服务器.但是我无法打开index.jsp.这是启动后的屏幕: 截图 正如您所看到的,项目正在运行,但没有关于传递的环境变量的信息.没有日志.

我使用TomCat 7.0.27

想法12.1.6

在Opensuse 12.2上

我的tomcat HOME文件夹是 /usr/share/tomcat

有一个问题:Idea无法将/ usr/share/tomcat/conf中的conf文件复制到/home/loco/.IntelliJIdea12/system/tomcat//conf.我执行chmod 777 */usr/share/tomcat and the problem gone.

我也改变了TomCat的启动方式.这是默认值

/usr/share/tomcat/bin/catalina.sh run
Run Code Online (Sandbox Code Playgroud)

我换了

/usr/share/tomcat/bin/catalina.sh start
Run Code Online (Sandbox Code Playgroud)

所有其他步骤均按照教程完成.

java tomcat intellij-idea

48
推荐指数
3
解决办法
7万
查看次数

尝试使用intellij进行部署时,服务器未连接

我正在尝试在intellij中构建,部署和调试我的webapp.

我使用这个答案设置了我的tomcat ,我能够让服务器运行.问题是我的webapp没有被部署,尽管它在deployment选项卡中定义.

我收到以下错误: 服务器未连接.部署不可用

如果我复制战争并启动服务器,一切正常.端口8080和8000.

我究竟做错了什么?

为了防止它以某种方式相关,该项目是使用Maven和Spring构建的

我添加了服务器的运行/调试配置:

服务器标签 服务器标签

部署选项卡 部署选项卡

调试控制台输出:

D:\development\infra\appServers\apache-tomcat-7.0.47\bin\catalina.bat run
[2014-08-05 01:23:11,413] Artifact devstage:war exploded: Server is not connected. Deploy is not available.
Using CATALINA_BASE:   "C:\Users\chaim\.IntelliJIdea13\system\tomcat\Unnamed_devstage_4"
Using CATALINA_HOME:   "D:\development\infra\appServers\apache-tomcat-7.0.47"
Using CATALINA_TMPDIR: "D:\development\infra\appServers\apache-tomcat-7.0.47\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.7.0_45"
Using CLASSPATH:       "D:\development\infra\appServers\apache-tomcat-7.0.47\bin\bootstrap.jar;D:\development\infra\appServers\apache-tomcat-7.0.47\bin\tomcat-juli.jar"
Aug 05, 2014 1:23:12 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4.8.
Aug 05, 2014 1:23:12 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile …
Run Code Online (Sandbox Code Playgroud)

tomcat war intellij-idea auto-update

21
推荐指数
1
解决办法
3万
查看次数

服务器未连接.部署不可用.IntelliJ 13和Tomcat 7

尝试使用IntelliJ 13和Apache tomcat 7.0.42运行我的应用程序.JDK1.6

总是得到错误Artifact app:war爆炸:服务器没有连接.部署不可用.

但是当我通过带有catalina.sh的终端进行部署时,它的工作原理非常好.

我在此链接中提到了设置:http://confluence.jetbrains.com/display/IntelliJIDEA/Application+Servers

知道我错过了什么吗?

这是Tomcat Catalina日志:

Dec 29, 2014 11:43:29 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Dec 29, 2014 11:43:29 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Dec 29, 2014 11:43:29 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Dec 29, 2014 11:43:29 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed …
Run Code Online (Sandbox Code Playgroud)

java tomcat intellij-idea maven

6
推荐指数
1
解决办法
2万
查看次数

cvc-complex-type.2.4.c:匹配的通配符是strict,但是找不到元素'tx:annotation-driven'的声明

如果我不粘贴 xmlns:tx="http://www.springframework.org/schema/tx" 那么没有问题.但是,如果我插入文本,我得到一个cvc-complex-type.2.4.c:匹配的通配符是严格的,但是没有找到元素'tx:annotation-driven'错误的声明.

<beans xmlns:tx="http://www.springframework.org/schema/tx" xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util"
    xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">

    <context:annotation-config />
    <tx:annotation-driven /> 
<context:component-scan base-package="ne.projl.server" />

    <bean name="security.securityInfo" class="org.geomajas.security.SecurityInfo">
        <property name="loopAllServices" value="false" />
        <property name="securityServices">
            <list>
                <bean class="org.geomajas.security.allowall.AllowAllSecurityService" />
            </list>
        </property>
    </bean>

    <bean name="puregwt-app" class="org.geomajas.configuration.client.ClientApplicationInfo">
        <property name="maps">
            <list>
                <ref bean="mapOsm" />
<!--                <ref bean="mapWms" /> -->
<!--                <ref bean="mapLegend" /> -->
<!--                <ref bean="mapLayerVisibility" /> -->
<!--                <ref bean="mapCountries" /> -->
<!--                <ref bean="mapEmpty" /> -->
<!--                <ref bean="mapPrinting" /> -->
            </list>
        </property> …
Run Code Online (Sandbox Code Playgroud)

spring spring-mvc

4
推荐指数
1
解决办法
5万
查看次数

标签 统计

intellij-idea ×3

tomcat ×3

java ×2

auto-update ×1

maven ×1

spring ×1

spring-mvc ×1

war ×1