You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Haseltine, Celeste" <CH...@magticket.com> on 2002/10/16 20:46:30 UTC

Running Struts 1.1b example Application Under JRUN Server 3.1

I've searched the forums on both JRUN and Struts-users to see if this issue
has come up, which it has. But I have not yet found a solution posted, so I
am hoping someone else on this forum has either found the solution, or has
an idea of what else I should try.

When I deploy the Struts 1.1b example application in JRUN 3.1 (under it's
own server I created called Struts1.1), and then attempt to run it (after
restarting the server), I get the following "No class definition found"
error message:

500 Internal Server Error
/struts-example/:

Exception thrown processing JSP page.
java.lang.NoClassDefFoundError
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
at JRUN__index2ejspa._jspService(jrun__index2ejspa.java:58)
at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:228)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1417)
at
allaire.jrun.session.JRunSessionService.service(JRunSessionService.java:1088
)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:1271)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:89)
at allaire.jrun.file.FileServlet.service(FileServlet.java:178)
at allaire.jrun.servlet.JRunServletPool.service(JRunServletPool.java:90)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1417)
at
allaire.jrun.session.JRunSessionService.service(JRunSessionService.java:1088
)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:1271)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:89)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1557)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1547)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:364)
at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:115)
at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(WorkerThread.java:75)

All the related *.jar files for Struts are in the web applications
Web-Inf/lib subdirectory, where they should be, and NOT the server/lib
subdirectory. The *.tld files are also in the WEB-Inf subdirectory. Moving
the *.jar files from the WEB-Inf/lib directory of the web application to the
server/lib subdirectory (and restarting the server) did not fix the problem.

When I followed another user's suggestion on the JRUN user's forum, to
change the Action Servlet's preload order from the default installation
value of 2 to none (ie I do NOT preload the Action Servlet), I got rid of
the "class not found exception" I received above.  But I now get the
following error message below. Note that I still have the *.jar files in my
WEB-Inf/lib subdirectory and NOT in the server/lib subdirectory: 

500 Internal Server Error
/struts-example/:

Exception thrown processing JSP page.
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:819)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
at JRUN__index2ejspa._jspService(jrun__index2ejspa.java:58)
at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:228)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1417)
at
allaire.jrun.session.JRunSessionService.service(JRunSessionService.java:1088
)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:1271)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:89)
at allaire.jrun.file.FileServlet.service(FileServlet.java:178)
at allaire.jrun.servlet.JRunServletPool.service(JRunServletPool.java:90)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1417)
at
allaire.jrun.session.JRunSessionService.service(JRunSessionService.java:1088
)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:1271)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:89)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1557)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1547)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:364)
at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:115)
at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(WorkerThread.java:75)

So I am getting closer, but I still cannot run any of the Struts example
applications. Right now, I am focusing on the Struts-example.war file. I
figure if I can get that working in JRUN 3.1, the rest should also work.

Has anyone found a way to get Struts 1.1b running under JRUN 3.1? Right now
we cannot port over to JRUN 4.0, although we do have Struts 1.1b running in
JRUN 4.0 (the freebie version). We need to stick to JRUN 3.1 due to budget
constraints. Any suggestions on how to get Struts 1.1b running in JRUN 3.1
would be greatly appreciated.

Thanks in advance for any assistance.

Celeste Haseltine,PE
MTL, Inc.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>