struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aymeric Alibert <aymericalib...@neuf.fr>
Subject RE: [OT] Precompiling JSP Pages with Struts Tags in Weblogic 7.02
Date Fri, 17 Jun 2005 11:56:39 GMT
I got that problem before with Weblogic 8.1 and was able to solve it by
adding the strtus.jar and struts-el.jar in the classpath of the wlappc
task definition:

<taskdef name="wlappc" classpathref="jspc.classpath"
classname="weblogic.ant.taskdefs.j2ee.Appc"/>

where 'jspc.classpath' contains references to weblogic.jar but also
struts-el.jar and struts.jar. 

Give it a try.


Aymeric. 


-----Original Message-----
From: Alexander Krumeich [mailto:alexander.krumeich@gmail.com] 
Sent: Thursday, June 16, 2005 4:30 AM
To: Struts Users Mailing List
Subject: [OT] Precompiling JSP Pages with Struts Tags in Weblogic 7.02

Dear List,

slightly off-topic post, but I thought that maybe someone here can
give me a hint to the solution of the following problem:

I'm trying to precompile my app's JSP pages with Weblogics's jspc.
Works fine for JSPs without Struts support. As soon as I try to
compile a page that uses the Struts-EL tags (version 1.1, btw), the
compiler fails with the exception attached below.

The ClassNotFoundException leads me to think of a classloader error.
I've tried several combinations of passing the Jar-files in
WEB-INF/lib via the "-classpath" option on the command line. Even the
blunt approach of puttign everything in $CLASSPATH didn't help. I get
the the feeling that JSPC completely ignores any classes that I pass
to it.

Of course the JSPs compile just fine when deployed, it just takes
awfully long. :-/

We use Struts 1.1 and Weblogic 7.02 with JDK 1.3.1_06.

Any help appreciated of course!

Thanks

   Alexander



[jspc] parsing /buttons/dispo_hinweise_btn.jsp:
[jspc] resolved taglib uri '/WEB-INF/fmt.tld' to taglib-location
/WEB-INF/tld/fmt.tld:
[jspc] resolved taglib uri '/WEB-INF/struts-html-el.tld' to
taglib-location /WEB-INF/tld/struts-html-el.tld:
java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
        at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:1
93)
        at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageReso
urcesFactory.java:169)
        at
org.apache.struts.util.MessageResources.getMessageResources(MessageResou
rces.java:557)
        at
org.apache.struts.util.RequestUtils.<clinit>(RequestUtils.java:140)
        at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageReso
urcesFactory.java:169)
        at
org.apache.struts.util.MessageResources.getMessageResources(MessageResou
rces.java:557)
        at
org.apache.struts.taglib.html.BaseTag.<clinit>(BaseTag.java:93)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:115)
        at
org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.class$(ELBaseTagBeanIn
fo.java:81)
        at
org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.getPropertyDescriptors
(ELBaseTagBeanInfo.java:81)
        at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:341)
        at java.beans.Introspector.getBeanInfo(Introspector.java:291)
        at java.beans.Introspector.getBeanInfo(Introspector.java:123)
        at
weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1223)
        at
weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1161)
        at
weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:221)
        at
weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:315)
        at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:144)
        at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4982)
        at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4820)
        at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4666)
        at
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2086)
        at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1872)
        at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1745)
        at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:959)
        at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
        at weblogic.servlet.jsp.JspParser.parse(JspParser.java:213)
        at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
        at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
        at weblogic.jspc.runBodyInternal(jspc.java:335)
        at weblogic.jspc.runBody(jspc.java:192)
        at weblogic.utils.compiler.Tool.run(Tool.java:126)
        at weblogic.jspc.main(jspc.java:470)
[ERROR] MessageResourcesFactory -
-MessageResourcesFactory.createFactory
<java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFactory>
java.lang.ExceptionInInitializerError: java.lang.NullPointerException
        at
org.apache.struts.util.MessageResources.getMessageResources(MessageResou
rces.java:558)
        at
org.apache.struts.util.RequestUtils.<clinit>(RequestUtils.java:140)
        at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageReso
urcesFactory.java:169)
        at
org.apache.struts.util.MessageResources.getMessageResources(MessageResou
rces.java:557)
        at
org.apache.struts.taglib.html.BaseTag.<clinit>(BaseTag.java:93)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:115)
        at
org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.class$(ELBaseTagBeanIn
fo.java:81)
        at
org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.getPropertyDescriptors
(ELBaseTagBeanInfo.java:81)
        at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:341)
        at java.beans.Introspector.getBeanInfo(Introspector.java:291)
        at java.beans.Introspector.getBeanInfo(Introspector.java:123)
        at
weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1223)
        at
weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1161)
        at
weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:221)
        at
weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:315)
        at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:144)
        at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4982)
        at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4820)
        at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4666)
        at
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2086)
        at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1872)
        at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1745)
        at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:959)
        at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
        at weblogic.servlet.jsp.JspParser.parse(JspParser.java:213)
        at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
        at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
        at weblogic.jspc.runBodyInternal(jspc.java:335)
        at weblogic.jspc.runBody(jspc.java:192)
        at weblogic.utils.compiler.Tool.run(Tool.java:126)
        at weblogic.jspc.main(jspc.java:470)
[ERROR] MessageResourcesFactory -
-MessageResourcesFactory.createFactory
<java.lang.ExceptionInInitializerError>
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
        at
org.apache.struts.util.MessageResources.getMessageResources(MessageResou
rces.java:558)
        at
org.apache.struts.taglib.html.BaseTag.<clinit>(BaseTag.java:93)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:115)
        at
org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.class$(ELBaseTagBeanIn
fo.java:81)
        at
org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.getPropertyDescriptors
(ELBaseTagBeanInfo.java:81)
        at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:341)
        at java.beans.Introspector.getBeanInfo(Introspector.java:291)
        at java.beans.Introspector.getBeanInfo(Introspector.java:123)
        at
weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1223)
        at
weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1161)
        at
weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:221)
        at
weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:315)
        at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:144)
        at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4982)
        at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4820)
        at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4666)
        at
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2086)
        at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1872)
        at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1745)
        at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:959)
        at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
        at weblogic.servlet.jsp.JspParser.parse(JspParser.java:213)
        at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
        at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
        at weblogic.jspc.runBodyInternal(jspc.java:335)
        at weblogic.jspc.runBody(jspc.java:192)
        at weblogic.utils.compiler.Tool.run(Tool.java:126)
        at weblogic.jspc.main(jspc.java:470)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message