JRun

Hello,
I need to configure X-Application 4.1.1 to run under JRun 3.0. Please advise as soon as you can.
Many Thanks
Shane McMillan

Hi,

In theory, X-Application 4.1 should run with JRun. However, it has not been tested with this servlet container, so if you have a choice, I suggest using Tomcat (or JBoss).

To use JRun, it has to be installed as described in their documentation.
In addition, you have to upgrading the xerces version use by JRun:
o Go to the directory jrun/lib/ext (or a similar directory, there might be differences betwenn JRun versions).
o Rename the file parser.jar to parser.old.
o Rename the file jaxp.jar to jaxp.old.
o Copy the file xapplication/prerequisites/lib/ext/xercesImpl.jar into the current directory and rename it to parser.jar, where xapplication is your Tamino X-Application installation directory.
o Copy the file xapplication/prerequisites/lib/ext/xml-apis.jar into the current directory and rename it to jaxp.jar.

To use JRun for an X-Application base web application, please create a war file as described in our documentation and deploy it into JRun as described in their documentation.

Michael

Software AG Germany, Darmstadt

Michael,
Thanks for your reply. I have copied and renamed the files as listed below and have deployed my application. It seems that the xapp jar files noted below are also included in the web-inf/lib directory. I tried to execute the search page with both the original names and the new names,ie, xml-apis.jar and xercesImpl.jar. I am receiving the following error:
500 Internal Server Error
/xapp/search.jsp:

javax.servlet.ServletException: Parse Error in JSP page: Error parsing TLD ‘/WEB-INF/jsp/xapplication.tld’: null.
allaire.jrun.jsp.ParseException: Error parsing TLD ‘/WEB-INF/jsp/xapplication.tld’: null.
at allaire.jrun.jsp.JRunTagLibraryInfo.(…/jsp/JRunTagLibraryInfo.java:63)
at allaire.jrun.jsp.JSPParser.directive(…/jsp/JSPParser.java:774)
at allaire.jrun.jsp.JSPParser.parse(…/jsp/JSPParser.java:598)
at allaire.jrun.jsp.JSPParser.writeXML(…/jsp/JSPParser.java:151)
at allaire.jrun.jsp.JSPParser.generateXML(…/jsp/JSPParser.java:123)
at allaire.jrun.jsp.JSPParser.generateXML(…/jsp/JSPParser.java:80)
at allaire.jrun.jsp.JSPServlet.parsePage(…/jsp/JSPServlet.java:409)
at allaire.jrun.jsp.JSPServlet.createServlet(…/jsp/JSPServlet.java:381)
at allaire.jrun.jsp.JSPServlet.loadPage(…/jsp/JSPServlet.java:202)
at allaire.jrun.jsp.JSPServlet.service(…/jsp/JSPServlet.java:169)
at allaire.jrun.servlet.JRunSE.service(…/servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(…/servlet/JRunSE.java:925)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(…/servlet/JRunRequestDispatcher.java:88)
at allaire.jrun.servlet.JRunSE.service(…/servlet/JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(…/servlet/JvmContext.java:330)
at allaire.jrun.jrpp.ProxyEndpoint.run(…/jrpp/ProxyEndpoint.java:382)
at allaire.jrun.ThreadPool.run(…/ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(…/WorkerThread.java:75)

In conjunction to the question posted previously, I understand that Xapp “should” run with JRun but has not been tested. I’ve tried running Xapp with JRun and receive an java.lang.IllegalStateException java.lang.ClassCastException: java.lang.IllegalStateException

Could this be a JRUN specific issue or has anyone else run into this error?

Below is the full stack:
java.lang.IllegalStateException
java.lang.ClassCastException: java.lang.IllegalStateException
at jrun__Error2ejspa._jspService(jrun__Error2ejspa.java:41)
at allaire.jrun.jsp.HttpJSPServlet.service(…/jsp/HttpJSPServlet.java:40)
at allaire.jrun.servlet.JRunSE.service(…/servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(…/servlet/JRunSE.java:925)
at allaire.jrun.servlet.JRunNamedDispatcher.forward(…/servlet/JRunNamedDispatcher.java:34)
at allaire.jrun.jsp.JSPServlet.service(…/jsp/JSPServlet.java:175)
at allaire.jrun.servlet.JRunSE.service(…/servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(…/servlet/JRunSE.java:925)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(…/servlet/JRunRequestDispatcher.java:88)
at allaire.jrun.jsp.JRunPageContext.forward(…/jsp/JRunPageContext.java:333)
at allaire.jrun.jsp.JRunPageContext.handlePageException(…/jsp/JRunPageContext.java:350)
at jrun__search2ejspb._jspService(jrun__search2ejspb.java:342)
at allaire.jrun.jsp.HttpJSPServlet.service(…/jsp/HttpJSPServlet.java:40)
at allaire.jrun.servlet.JRunSE.service(…/servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(…/servlet/JRunSE.java:925)
at allaire.jrun.servlet.JRunNamedDispatcher.forward(…/servlet/JRunNamedDispatcher.java:34)
at allaire.jrun.jsp.JSPServlet.service(…/jsp/JSPServlet.java:175)
at allaire.jrun.servlet.JRunSE.service(…/servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(…/servlet/JRunSE.java:925)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(…/servlet/JRunRequestDispatcher.java:88)
at allaire.jrun.servlet.JRunSE.service(…/servlet/JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(…/servlet/JvmContext.java:330)
at allaire.jrun.http.WebEndpoint.run(…/http/WebEndpoint.java:107)
at allaire.jrun.ThreadPool.run(…/ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(…/WorkerThread.java:75)

I’m not an expert for jrun error messages, I can only guess …

o can you start other web-applications after changing the xerces version in JRun?

o maybe xerces cannot find the web-jsptaglibrary_1_1.dtd referenced at the beginning
of the tld file. Please compare the doctype declaration in the tld file with a
tld file that works.

o What’s the error message for an xapp based application if you restore the original
jar files? A search page should come up, the application should crash later …


Michael

Software AG Germany, Darmstadt

Hi,

Concerning my “should” …

X-Application 4.1.1 was developed with Tomcat 4.1.18. Before the release we tested with JBoss and it worked without changes. Thus, switching to JBoss didn’t bring up X-Application bugs. That makes me hope that switching to another servlet container doesn’t either.

Concerning your problem …

“jrun__Error2ejspa.java” is probably a Java file generated for a JSP page of yours.
Does your jsp file contain embedded java code? If so: does this Java code causes a ClassCastException? If not: Could you please post both the java file and the underlying jsp file?

Is your web application X-Application base? Do you have any glues about Shane’s problem?

Michael

Software AG Germany, Darmstadt