-
1. AS6 org.apache.catalina.jsp_classpath is null
alesj Mar 3, 2011 4:59 AM (in response to ilde)<%=application.getAttribute("org.apache.catalina.jsp_classpath").toString()%>
Looks like there is no such attribute set, hence ::toString() fails with NPE.
Who should set this?
-
2. AS6 org.apache.catalina.jsp_classpath is null
ilde Mar 3, 2011 5:02 AM (in response to alesj)TomCat, I think.
It worked on 4.2.2.GA I am trying to migrate my app from 4.2.2. to 6 Final ....
Thanks
-
3. AS6 org.apache.catalina.jsp_classpath is null
alesj Mar 3, 2011 5:12 AM (in response to ilde)It worked on 4.2.2.GA I am trying to migrate my app from 4.2.2. to 6 Final ....
I think this is just too much implementation detail to count on that, for this attribute to be set.
Perhaps check how it's done now, but I suggest some better mechanism.
-
4. AS6 org.apache.catalina.jsp_classpath is null
ilde Mar 3, 2011 5:24 AM (in response to alesj)This is the way to get the context classpath in a jsp page. All app server has its own attribute, and as jboss use tomcat ...
Do you know a better way to get the application context classpath in a jsp page?
-
5. AS6 org.apache.catalina.jsp_classpath is null
alesj Mar 3, 2011 5:31 AM (in response to ilde)All app server has its own attribute, and as jboss use tomcat ...
It's not really direct Tomcat, but a fork - JBossWeb, with quite a few changes.
Like I said, I wouldn't count on that impl detail.
Do you know a better way to get the application context classpath in a jsp page?
Not really, but that doesn't mean it doesn't exist. :-)
-
6. AS6 org.apache.catalina.jsp_classpath is null
ilde Mar 3, 2011 6:12 AM (in response to alesj)Thank you for your feedback, but this app has been working and growing for many years and different app-servers in our company and its really hard to change its design now....
So you think jbossweb is not provinding that information, Is there a place where study the attributes provided by jbossweb? Do you know if I could replace jbossweb with a standar tomcat?
Does anybody have this same problem???
THANK YOU!!!!!
-
7. AS6 org.apache.catalina.jsp_classpath is null
alesj Mar 3, 2011 6:35 AM (in response to ilde)So you think jbossweb is not provinding that information, Is there a place where study the attributes provided by jbossweb?
The code? ;-)
Do you know if I could replace jbossweb with a standar tomcat?
I doubt it.
(not criticising your "replace" knowledge, but the actual bits replacement :-))
-
8. AS6 org.apache.catalina.jsp_classpath is null
ilde Mar 3, 2011 6:39 AM (in response to alesj)I will take a look to the code then...