[opencms-dev] 28 Error while launching template class

Geoff Winkless opencms at geoff.dj
Mon Jan 26 11:35:03 CET 2004


Hello all!

(apologies if this appears twice, I sent from the wrong email account
initially - doh!)

I've scanned the list archives and found no mention of this problem.

I had installed OpenCMS on Tomcat and (after some initial troubles
getting it to work with Microsoft's SQL Server - a few SQL problems and
changes for the JDBC drivers - for which the list archive was very
helpful, thanks!) I had it pretty much running OK.

However the project on which I'm working uses another (proprietary)
component which will not be supported by the vendor unless it runs under
JRun, so rather than run two servers I started all over again with that
instead.

I downloaded the Fat Binary installation of 5.0.1 since it seemed to be
the least hassle. I made the necessary changes to the files to get the
MS JDBC driver working, manually expanded the WAR (as recommended),
added the web-inf/lib path to the server's classpath (for some reason it
wouldn't work properly without this: I got the problem with the
system/login page not working correctly) and ran through the ocsetup.

Now it seems to be "almost there" but when I access any published page
(eg by clicking on license.html in the explorer view of the workspace) I
get several error messages (full trace reproduced below). I've tried
publishing the whole project, publishing the file separately but nothing
helps. I even tried moving the web-inf/jsp/ directory (as recommended
for a different problem) but nothing helped. I've spent three solid days
on this and I'm admitting defeat :(

Can anyone give me a hint in the general direction of a solution from
the error messages? If I know exactly to what it's objecting I might be
able to figure something out: I'm learning as I go here, being a bit of
a java newbie, but I've over 6 years proper web-backend/db integration
development and admin experience (mostly ASP, perl and CGI up to now).

Any help appreciated

System info:

	OpenCMS 5.0.1
	Windows 2000
	Jrun 4
	J2SDK 1.4.2
	SQL Server 2k

Thanks

Geoff

Error message:

[jsp] ??? com.opencms.core.CmsException: 0 Unknown exception. Detailed
error: [CmsJspTemplate] Error while reading JSP
/system/modules/com.alkacon.documentation/jsptemplates/alkacon-documenta
tion.jsp
com.opencms.core.CmsException: 28 Error while launching template class.
Detailed error: Error in CmsJspLoader.loadTemplate() while loading
/system/modules/com.alkacon.documentation/jsptemplates/alkacon-documenta
tion.jsp
javax.servlet.ServletException: Resource loader error in file
'/system/modules/com.alkacon.documentation/jsptemplates/alkacon-document
ation.jsp'

Root cause:
java.lang.NullPointerException
	at
jrun.servlet.ForwardRequest.getParameter(ForwardRequest.java:169)
	at jrun.jsp.JSPServlet.handlePrecompile(JSPServlet.java:126)
	at jrun.jsp.JSPServlet.service(JSPServlet.java:94)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
	at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java
:414)
	at
jrun.servlet.JRunRequestDispatcher.include(JRunRequestDispatcher.java:34
8)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:158)
	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:972)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:256)
	at
com.opencms.flex.CmsJspLoader.loadTemplate(CmsJspLoader.java:673)
	at
com.opencms.flex.CmsJspTemplate.getContent(CmsJspTemplate.java:85)
	at
com.opencms.template.cache.CmsElementDump.getContent(CmsElementDump.java
:120)
	at
com.opencms.template.cache.A_CmsElement.resolveVariant(A_CmsElement.java
:464)
	at
com.opencms.template.CmsXmlTemplate.startProcessing(CmsXmlTemplate.java:
1314)
	at
com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:164)
	at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:1
71)
	at
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)
	at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementC
ache.java:149)
	at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:2
85)
	at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)
	at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
	at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241
)
	at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527
)
	at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
	at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.j
ava:348)
	at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java
:451)
	at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.jav
a:294)
	at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

--------------- End of root cause.
. 
root cause was javax.servlet.ServletException: Resource loader error in
file
'/system/modules/com.alkacon.documentation/jsptemplates/alkacon-document
ation.jsp'

Root cause:
java.lang.NullPointerException
	at
jrun.servlet.ForwardRequest.getParameter(ForwardRequest.java:169)
	at jrun.jsp.JSPServlet.handlePrecompile(JSPServlet.java:126)
	at jrun.jsp.JSPServlet.service(JSPServlet.java:94)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
	at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java
:414)
	at
jrun.servlet.JRunRequestDispatcher.include(JRunRequestDispatcher.java:34
8)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:158)
	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:972)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:256)
	at
com.opencms.flex.CmsJspLoader.loadTemplate(CmsJspLoader.java:673)
	at
com.opencms.flex.CmsJspTemplate.getContent(CmsJspTemplate.java:85)
	at
com.opencms.template.cache.CmsElementDump.getContent(CmsElementDump.java
:120)
	at
com.opencms.template.cache.A_CmsElement.resolveVariant(A_CmsElement.java
:464)
	at
com.opencms.template.CmsXmlTemplate.startProcessing(CmsXmlTemplate.java:
1314)
	at
com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:164)
	at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:1
71)
	at
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)
	at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementC
ache.java:149)
	at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:2
85)
	at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)
	at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
	at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241
)
	at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527
)
	at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
	at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.j
ava:348)
	at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java
:451)
	at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.jav
a:294)
	at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

--------------- End of root cause.
. 
root cause was com.opencms.core.CmsException: 28 Error while launching
template class. Detailed error: Error in CmsJspLoader.loadTemplate()
while loading
/system/modules/com.alkacon.documentation/jsptemplates/alkacon-documenta
tion.jsp
javax.servlet.ServletException: Resource loader error in file
'/system/modules/com.alkacon.documentation/jsptemplates/alkacon-document
ation.jsp'

Root cause:
java.lang.NullPointerException
	at
jrun.servlet.ForwardRequest.getParameter(ForwardRequest.java:169)
	at jrun.jsp.JSPServlet.handlePrecompile(JSPServlet.java:126)
	at jrun.jsp.JSPServlet.service(JSPServlet.java:94)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
	at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java
:414)
	at
jrun.servlet.JRunRequestDispatcher.include(JRunRequestDispatcher.java:34
8)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:158)
	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:972)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:256)
	at
com.opencms.flex.CmsJspLoader.loadTemplate(CmsJspLoader.java:673)
	at
com.opencms.flex.CmsJspTemplate.getContent(CmsJspTemplate.java:85)
	at
com.opencms.template.cache.CmsElementDump.getContent(CmsElementDump.java
:120)
	at
com.opencms.template.cache.A_CmsElement.resolveVariant(A_CmsElement.java
:464)
	at
com.opencms.template.CmsXmlTemplate.startProcessing(CmsXmlTemplate.java:
1314)
	at
com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:164)
	at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:1
71)
	at
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)
	at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementC
ache.java:149)
	at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:2
85)
	at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)
	at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
	at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241
)
	at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527
)
	at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
	at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.j
ava:348)
	at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java
:451)
	at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.jav
a:294)
	at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

--------------- End of root cause.
. 
root cause was javax.servlet.ServletException: Resource loader error in
file
'/system/modules/com.alkacon.documentation/jsptemplates/alkacon-document
ation.jsp'

Root cause:
java.lang.NullPointerException
	at
jrun.servlet.ForwardRequest.getParameter(ForwardRequest.java:169)
	at jrun.jsp.JSPServlet.handlePrecompile(JSPServlet.java:126)
	at jrun.jsp.JSPServlet.service(JSPServlet.java:94)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
	at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java
:414)
	at
jrun.servlet.JRunRequestDispatcher.include(JRunRequestDispatcher.java:34
8)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:158)
	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:972)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:256)
	at
com.opencms.flex.CmsJspLoader.loadTemplate(CmsJspLoader.java:673)
	at
com.opencms.flex.CmsJspTemplate.getContent(CmsJspTemplate.java:85)
	at
com.opencms.template.cache.CmsElementDump.getContent(CmsElementDump.java
:120)
	at
com.opencms.template.cache.A_CmsElement.resolveVariant(A_CmsElement.java
:464)
	at
com.opencms.template.CmsXmlTemplate.startProcessing(CmsXmlTemplate.java:
1314)
	at
com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:164)
	at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:1
71)
	at
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)
	at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementC
ache.java:149)
	at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:2
85)
	at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)
	at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
	at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241
)
	at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527
)
	at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
	at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.j
ava:348)
	at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java
:451)
	at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.jav
a:294)
	at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

--------------- End of root cause.


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________



More information about the opencms-dev mailing list