本文介绍了Eclipse RAP 2.0应用程序将无法从WebSphere 8.5.5.0开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Eclipse RAP应用程序。 web.xml如下: <?xml version =1.0encoding =UTF-8?> ;
< web-app xmlns =http://java.sun.com/xml/ns/javaee
xmlns:xsi =http://www.w3.org/2001/XMLSchema -instance
xsi:schemaLocation =http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
version =3.0
id =WebApp>
< session-config>
< cookie-config>
< http-only> true< / http-only>
< / cookie-config>
<跟踪模式> COOKIE< / tracking-mode>
< / session-config>
< servlet id =bridge>
< servlet-name> equinoxbridgeservlet< / servlet-name>
< servlet-class> org.eclipse.equinox.servletbridge.BridgeServlet< / servlet-class>
< init-param>
< param-name> enableFrameworkControls< / param-name>
< param-value> true< / param-value>
< / init-param>
< init-param>
< param-name>命令行< / param-name>
< param-value> -registryMultiLanguage -ws rap -Dhelp.url.prefix =/ foobar-Dhelp.topic.path =topic-Dhelp.start.page =index.jsp-Declipse .product = com.XXXXXXXXXXX-console 7272< / param-value>
< / init-param>
< init-param>
< param-name> other.info< / param-name>
< param-value> org.eclipse.help< / param-value>
< / init-param>
< load-on-startup> 1< / load-on-startup>
< / servlet>
< servlet-mapping>
< servlet-name> equinoxbridgeservlet< / servlet-name>
< url-pattern> / *< / url-pattern>
< / servlet-mapping>
< / web-app>
当我启动应用程序时,我在日志中收到以下错误:
我尝试过(禁用文件服务):
任何关于使其工作的想法?
解决方案
实际上解决方案实际上是禁用fileServing。这对我来说并不适用于XMI文件。我将以下内容添加到WEB-INF / ibm-web-ext.xml文件中,然后工作:
?xml version =1.0encoding =UTF-8?>
< web-ext xmlns:xsi =http://www.w3.org/2001/XMLSchema-instancexmlns =http://websphere.ibm.com/xml/ns/javaee
xsi:schemaLocation =http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsdversion = 1.0\" >
< enable-file-serving value =false/>
< jsp-attribute name =reloadEnabledvalue =true/>
< jsp-attribute name =reloadIntervalvalue =10/>
< / web-ext>
真正的更改是启用文件服务标签。这似乎正常。
I have an Eclipse RAP application. The web.xml is the following:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
id="WebApp">
<session-config>
<cookie-config>
<http-only>true</http-only>
</cookie-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
<servlet id="bridge">
<servlet-name>equinoxbridgeservlet</servlet-name>
<servlet-class>org.eclipse.equinox.servletbridge.BridgeServlet</servlet-class>
<init-param>
<param-name>enableFrameworkControls</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>commandline</param-name>
<param-value>-registryMultiLanguage -ws rap -Dhelp.url.prefix="/foobar" -Dhelp.topic.path="topic" -Dhelp.start.page="index.jsp" -Declipse.product=com.XXXXXXXXXXX -console 7272</param-value>
</init-param>
<init-param>
<param-name>other.info</param-name>
<param-value>org.eclipse.help</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>equinoxbridgeservlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
When I start the application, I get the following error in log:
I tried this (disable file serving): http://www-01.ibm.com/support/docview.wss?uid=swg1PK18713
Any idea about making it work?
解决方案
Actually the solution really to disable the fileServing. This however did not work for me with the XMI file. I added the following content to the WEB-INF/ibm-web-ext.xml file and then it worked:
<?xml version="1.0" encoding="UTF-8"?>
<web-ext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://websphere.ibm.com/xml/ns/javaee"
xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd" version="1.0">
<enable-file-serving value="false"/>
<jsp-attribute name="reloadEnabled" value="true"/>
<jsp-attribute name="reloadInterval" value="10"/>
</web-ext>
The real change is the enable-file-serving tag. This seems to work.
这篇关于Eclipse RAP 2.0应用程序将无法从WebSphere 8.5.5.0开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!