简体   繁体   English

Eclipse Luna中的动态Web项目部署错误

[英]Dynamic web project deployment error in eclipse Luna

I created a dynamic web project in eclipse Luna. 我在Eclipse Luna中创建了一个动态Web项目。 IMHO all settings are correct for server runtime . 恕我直言,所有设置对于服务器运行时都是正确的。 I am using SAP HANA Java EE 6 Web Profile sdk SAP HANA TOOLS and JDK 7 with eclipse luna . 我正在使用带有Eclipse luna的SAP HANA Java EE 6 Web配置文件sdk SAP HANA TOOLS和JDK 7。

When i click a project node -> run as ->run on server ->JAVA WEB EE Profile(server name) 当我单击项目节点时->运行方式->在服务器上运行-> JAVA WEB EE配置文件(服务器名称)

then it starts server but it doesn't deploy the web page . 然后它启动服务器,但没有部署网页。

In console it gives message as 在控制台中,它将消息显示为

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> 

And in progress window it shows publishing to the server name ... 在进度窗口中,它显示发布到服务器名称...

then it start browser. 然后启动浏览器。

In browser it doesn't show any thing .ie empty page is displayed log file . 在浏览器中它什么也没显示。即显示日志文件为空页。

But some times it works ie Web page is displayed in browser with contents log file . 但是有时它可以正常工作,即在浏览器中显示带有内容日志文件的网页。

How to resolve this error ? 如何解决此错误?

Event log file: 事件日志文件:

http://pastebin.com/JfTfEPSy http://pastebin.com/JfTfEPSy

Some times log files contains an error message about visual c++ , it gives error message visual c++ is not installed but in my system x86 and x64 2010 visual c++ are installed. 有时日志文件包含有关visual c ++的错误消息,它给出了错误消息Visual c ++未安装,但在我的系统中安装了x86和x64 2010 visual c ++。

You have missing dependencies. 您缺少依赖项。 Your setup will display web pages, but won't talk to SAP at all. 您的设置将显示网页,但完全不会与SAP对话。 For example, in the error log that you first provide a link to, it says: 例如,在您首先提供链接的错误日志中,它说:

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)

And: 和:

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)

In the log you link last, it says, just before shutdown initiated: 它在您最后一次链接的日志中说,就在关闭启动之前:

[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]'. 

And also: 并且:

[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]'. 

You'll want to fix those by importing the appropriate library/libraries. 您将需要通过导入适当的库来修复这些问题。 See: http://help.sap.com/saphelp_nwpi711/helpdata/en/48/707c54872c1b5ae10000000a42189c/frameset.htm 请参阅: http//help.sap.com/saphelp_nwpi711/helpdata/en/48/707c54872c1b5ae10000000a42189c/frameset.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM