【问题标题】:Dynamic web project deployment error in eclipse Lunaeclipse Luna中的动态Web项目部署错误
【发布时间】:2015-03-12 08:47:24
【问题描述】:

我在 Eclipse Luna 中创建了一个动态 Web 项目。恕我直言,所有设置对于服务器运行时都是正确的。 我正在使用 SAP HANA Java EE 6 Web Profile sdk SAP HANA TOOLS 和带有 eclipse luna 的 JDK 7。

当我单击项目节点时 -> 运行方式 -> 在服务器上运行 ->JAVA WEB EE 配置文件(服务器名称)

然后它启动服务器但它不部署网页。

在控制台中它给出的消息为

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> 

并且正在进行的窗口显示发布到服务器名称...

然后它启动浏览器。

在浏览器中它不显示任何东西。即显示空白页log file

但有时它可以工作,即网页显示在浏览器中,内容为log file

如何解决这个错误?

事件日志文件:

http://pastebin.com/JfTfEPSy

有时日志文件包含有关 visual c++ 的错误消息,它给出错误消息 visual c++ is not installed 但在我的系统中安装了 x86 和 x64 2010 visual c++。

【问题讨论】:

    标签: java eclipse localhost sap server


    【解决方案1】:

    您缺少依赖项。您的设置将显示网页,但根本不会与 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)
    

    还有:

    Root exception: 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-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]'. 
    

    您需要通过导入相应的库来解决这些问题。见:http://help.sap.com/saphelp_nwpi711/helpdata/en/48/707c54872c1b5ae10000000a42189c/frameset.htm

    【讨论】:

    • 见我回答的第一行。您会看到网页,但无法与 SAP 通信(JCo 是 SAP 连接器)。
    • 我没有 SAP 市场 UID,我也无法获得。我们还有其他解决方案吗?
    猜你喜欢
    • 2014-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-25
    • 2014-07-08
    • 2012-04-16
    • 2013-04-06
    • 2012-03-31
    相关资源
    最近更新 更多