Java eclipse Luna中的动态web项目部署错误
我在EclipseLuna中创建了一个动态web项目。IMHO服务器运行时的所有设置均正确。 我在eclipse luna中使用SAP HANA Java EE 6 Web Profile sdk和JDK 7 当我单击项目节点->运行方式->服务器上运行->JAVA WEB EE概要文件(服务器名称)时 然后它启动服务器,但不部署网页 在控制台中,它给出如下消息:Java eclipse Luna中的动态web项目部署错误,java,eclipse,localhost,sap,server,Java,Eclipse,Localhost,Sap,Server,我在EclipseLuna中创建了一个动态web项目。IMHO服务器运行时的所有设置均正确。 我在eclipse luna中使用SAP HANA Java EE 6 Web Profile sdk和JDK 7 当我单击项目节点->运行方式->服务器上运行->JAVA WEB EE概要文件(服务器名称)时 然后它启动服务器,但不部署网页 在控制台中,它给出如下消息: java version "1.7.0_71" Java(TM) SE Runtime Environment (build 1.7
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
C:\Users\xyz\workspace\Servers\Java EE 6 Web Profile Server-config>"C:\Program Files\Java\jdk1.7.0_71\bin\java" -server -javaagent:"C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\lib\openejb-javaagent_4.5.2.jar" -XX:ErrorFile="C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\log\error.log" -XX:HeapDumpPath="C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\log\heap_dump.hprof" "-XX:+HeapDumpOnOutOfMemoryError" "-XX:+DisableExplicitGC" "-Xms512m" "-Xmx1024m" "-XX:PermSize=256M" "-XX:MaxPermSize=256M" "-Dcom.sun.management.jmxremote.port=1717" "-Dcom.sun.management.jmxremote.authenticate=false" "-Dcom.sun.management.jmxremote.ssl=false" "-Dosgi.requiredJavaVersion=1.6" "-DuseNaming=osgi" "-Dosgi.install.area=." "-Djava.io.tmpdir=./work/tmp" "-Djava.endorsed.dirs=lib/endorsed" "-Dorg.eclipse.equinox.simpleconfigurator.exclusiveInstallation=false" "-Dcom.sap.core.process=ljs_node" "-Declipse.ignoreApp=true" "-Dosgi.noShutdown=true" "-Dosgi.framework.activeThreadType=normal" "-Dosgi.embedded.cleanupOnSave=true" "-Dosgi.usesLimit=30" "-Djava.awt.headless=true" "-Djava.rmi.server.hostname=127.0.0.1" "-Dhttp.proxyHost=172.30.0.14" "-Dhttp.proxyPort=3128" "-Dhttps.proxyHost=172.30.0.14" "-Dhttps.proxyPort=3128" "-Dhttp.nonProxyHosts=*.local|<local>" -classpath "C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\lib\openejb-javaagent_4.5.2.jar;C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\lib\org.eclipse.virgo.nano.authentication_3.6.2.RELEASE.jar;C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\lib\org.eclipse.virgo.nano.shutdown_3.6.2.RELEASE.jar;C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\lib\org.eclipse.virgo.util.env_3.6.2.RELEASE.jar;C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\plugins\org.eclipse.equinox.launcher_1.3.0.v20120308-1358.jar" org.eclipse.equinox.launcher.Main -console -dev "file:C:/Users/xyz/workspace/Servers/Java EE 6 Web Profile Server-config/configuration/dev.properties"
osgi>
java版本“1.7.0_71”
Java(TM)SE运行时环境(build 1.7.0_71-b14)
Java HotSpot(TM)64位服务器虚拟机(构建24.71-b01,混合模式)
C:\Users\xyz\workspace\Servers\Java EE 6 Web Profile Server config>“C:\Program Files\Java\jdk1.7.0\U 71\bin\Java”-Server-javaagent:“C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\JAVAEE~1\lib\openejb-javaagent\U 4.5.2.jar”-XX:ErrorFile=“C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\log\error.log”-XX:HeapDumpPath=“C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\log\heap\u dump.hprof”“-XX:+heapdumponautofmemoryerror”“-XX:+DisableExplicitGC”“-Xms512m”“-Xmx1024m”“-XX:PermSize=256M”“-XX:MaxPermSize=256M”“-Dcom.sun.management.jmxremote.port=1717”“-Dcom.sun.management.jmxremote=false”“-Dcom.sun.management.jmxremote=false”“-Dcom.sun.management.jmxremote=false”-Dosgi.requiredJavaVersion=1.6”“-DuseNaming=osgi”“-Dosgi.install.area=。”“-Djava.io.tmpdir=。/work/tmp”“-Djava.annowed.dirs=lib/annowed”“-Dorg.eclipse.equinox.simpleconfigurator.exclusiveInstallation=false”“-Dcom.sap.core.process=ljs_node”“-Declipse.ignoreApp=true”“-Dosgi.noShutdown=true”“-Dosgi.framework.activeThreadType=normal”-Dosgi.embedded.cleanupOnSave=true”“-Dosgi.usesLimit=30”“-Djava.awt.headless=true”“-Djava.rmi.server.hostname=127.0.0.1”“-Dhttp.proxyHost=172.30.0.14”“-Dhttp.proxyPort=3128”“-Dhttps.proxyHost=172.30.0.14”“-Dhttps.proxyPort=3128”“-Dhttp.nonProxyHosts=*.local |“-classpath”C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\lib\openejb-javaagent_4.5.2.jar;C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\lib\org.eclipse.virgo.nano.authentication_3.6.2.RELEASE.jar;C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\lib\org.eclipse.virgo.nano.shutdown_3.6.2.RELEASE.jar;C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\lib\org.eclipse.virgo.util.env_3.6.2.RELEASE.jar;C:\Users\xyz\WORKSP~1\Servers\JAVAEE~1\plugins\org.eclipse.equinox.launcher\u 1.3.0.v2020308-1358.jar“org.eclipse.equinox.launcher.Main-console-dev”文件:C:/Users/xyz/workspace/Servers/JAVAEE 6 Web概要文件服务器配置/配置/dev.properties
osgi>
“正在进行”窗口将显示发布到服务器名称
然后启动浏览器
在浏览器中,它不显示任何内容,即显示空页
但有时它会起作用,即网页在浏览器中显示内容
如何解决此错误
事件日志文件:
一些日志文件包含一个关于VisualC++的错误消息,它提供错误消息VisualC++没有安装,但是在我的系统x86和x64 2010 VisualC++中安装。
您缺少依赖项。您的安装将显示网页,但不会与SAP对话。例如,在您首先提供链接的错误日志中,它说:Caused by: java.lang.RuntimeException: Cannot load the JCo native library. (exception java.lang.ExceptionInInitializerError: JCo initialization failed with java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path)
以及:
在您上次链接的日志中,它说,就在关闭启动之前:
[2015-01-13 23:55:24.806] pool-3-thread-1 <DS0000W> Failed to satisfy declarative service component 'com.sap.core.jpaas.security.utils' from origin bundle 'com.sap.core.jpaas.security.utils_1.4.18.rt2 [62]'.
[2015-01-13 23:55:24.806]池-3-thread-1未能满足源捆绑包“com.sap.core.jpaas.security.utils”中的声明性服务组件“com.sap.core.jpaas.security.utils_1.4.18.rt2[62]”。
而且:
[2015-01-14 12:36:52.206] pool-3-thread-1 <DS0000W> Failed to satisfy declarative service component 'com.sap.core.connectivity.local.destinations.DestinationFactory' from origin bundle 'com.sap.core.connectivity.local.destinations_0.9.141.rt2 [39]'.
[2015-01-14 12:36:52.206]池-3-thread-1未能满足来自源捆绑包“com.sap.core.connectivity.local.DestinationFactory”的声明性服务组件“com.sap.core.connectivity.local.destinations_0.9.141.rt2[39]”。
您需要通过导入适当的库来修复这些问题。请参阅:请参阅我答案的第一行。您可以看到网页,但无法与SAP对话(JCo是SAP连接器)。我没有SAP marketplace UID,也无法获取。我们还有其他解决方案吗?
[2015-01-14 12:36:52.206] pool-3-thread-1 <DS0000W> Failed to satisfy declarative service component 'com.sap.core.connectivity.local.destinations.DestinationFactory' from origin bundle 'com.sap.core.connectivity.local.destinations_0.9.141.rt2 [39]'.