You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/10/22 01:21:34 UTC
DO NOT REPLY [Bug 13834] New: -
JSP pages under Tomcat 4.1.12 fail to find class files in jar
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13834>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13834
JSP pages under Tomcat 4.1.12 fail to find class files in jar
Summary: JSP pages under Tomcat 4.1.12 fail to find class files
in jar
Product: Tomcat 4
Version: 4.1.12
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Blocker
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jmaiz@lucent.com
I am having problems with a JSP page that reads a bean from the application
environment. The bean is part of a jar file deployed under WEB-INF/lib
directory. The same web page/application will not generate this error if I was
using Tomcat 4.0.6. I have a different problem if I was using 4.0.6!
The error reported as is:
"/opt/jakarta/tomcat4.1.12/work/Standalone/localhost/comet/jsp/stat_jsp.java:7:
'.' expected
import SettingsBean;"
The class file is part of the beans.jar library stored under comet/WEB-
INF/lib/beans.jar. Here is a listing of the library contents:
</opt/jakarta/tomcat/webapps/comet/WEB-INF/lib> lf
app.jar beans.jar servletUtils.jar
</opt/jakarta/tomcat/webapps/comet/WEB-INF/lib> jar tvf beans.jar
2859 Fri Oct 18 17:43:00 CDT 2002 SettingsBean.class
</opt/jakarta/tomcat/webapps/comet/WEB-INF/lib> jar tvf app.jar
1433 Fri Oct 18 17:18:48 CDT 2002 ActiveCall.class
3422 Fri Oct 18 17:18:48 CDT 2002 ConfigFile.class
977 Fri Oct 18 17:18:48 CDT 2002 Facility.class
636 Thu Sep 26 14:45:32 CDT 2002 LinkStates.class
1938 Fri Oct 18 17:18:48 CDT 2002 MyFileNameFilter.class
1195 Fri Oct 18 17:18:48 CDT 2002 Sdl.class
6459 Fri Oct 18 17:18:48 CDT 2002 Syslog.class
1500 Fri Oct 18 17:18:48 CDT 2002 UnixCmd.class
560 Fri Oct 18 17:18:48 CDT 2002 UnixSignals.class
1495 Fri Oct 18 17:18:48 CDT 2002 Link.class
1207 Fri Oct 18 17:18:48 CDT 2002 DataEvent.class
2507 Fri Oct 11 12:28:32 CDT 2002 ExceptionDialog.class
651 Fri Oct 11 12:28:32 CDT 2002 ExceptionDialog$CloseDialog.class
989 Fri Oct 11 12:28:32 CDT 2002 ExceptionDialog$CloseWindow.class
615 Wed Oct 16 08:59:26 CDT 2002 DialogBox$CloseDialog.class
959 Wed Oct 16 08:59:26 CDT 2002 DialogBox$CloseWindow.class
2459 Wed Oct 16 08:59:26 CDT 2002 DialogBox.class
552 Fri Oct 18 17:18:48 CDT 2002 DataFile.class
</opt/jakarta/tomcat/webapps/comet/WEB-INF/lib> jar tvf servletUtils.jar
1358 Fri Oct 18 17:18:56 CDT 2002 FacilityFile.class
3884 Mon Oct 21 10:40:02 CDT 2002 SettingsFile.class
The jar files are loaded as can be seen from the contents of the application
logger, "comet_log.2002-10-21.txt". The following are the lines showing that
the jar files were loaded at init time.
=====================================================================
StandardContext[/comet]: Starting
StandardContext[/comet]: Processing start(), current available=false
StandardContext[/comet]: Configuring default Resources
StandardContext[/comet]: Configuring non-privileged default Loader
StandardContext[/comet]: Configuring default Manager
StandardContext[/comet]: Processing standard container startup
WebappLoader[/comet]: Deploying class repositories to work
directory /opt/jakarta/tomcat-4
.0.6/work/Standalone/localhost/comet
WebappLoader[/comet]: Deploy JAR /WEB-INF/lib/app.jar to /opt/jakarta/tomcat-
4.0.6/webapps
/comet/WEB-INF/lib/app.jar
WebappLoader[/comet]: Deploy JAR /WEB-INF/lib/beans.jar to /opt/jakarta/tomcat-
4.0.6/webap
ps/comet/WEB-INF/lib/beans.jar
WebappLoader[/comet]: Deploy JAR /WEB-INF/lib/servletUtils.jar
to /opt/jakarta/tomcat-4.0.6/webapps/comet/WEB-INF/lib/servletUtils.jar
StandardManager[/comet]: Seeding random number generator class
java.security.SecureRandom
StandardManager[/comet]: Seeding of random number generator has been completed
ContextConfig[/comet]: ContextConfig: Processing START
StandardContext[/comet]: Setting deployment descriptor public ID to '-//Sun
Microsystems, Inc.//DTD Web Application 2.3//EN'
StandardContext[/comet]: Setting deployment descriptor public ID to '-//Sun
Microsystems, Inc.//DTD Web Application 2.3//EN'
ContextConfig[/comet]: Scanning web.xml tag libraries
ContextConfig[/comet]: Scanning TLD files in /WEB-INF
ContextConfig[/comet]: Scanning library JAR files
ContextConfig[/comet]: Added certificates -> request attribute Valve
ContextConfig[/comet]: Pipline Configuration:
ContextConfig[/comet]: org.apache.catalina.valves.CertificatesValve/1.0
ContextConfig[/comet]: org.apache.catalina.core.StandardContextValve/1.0
ContextConfig[/comet]: ======================
StandardContext[/comet]: Configuring application event listeners
StandardContext[/comet]: Sending application start events
StandardContext[/comet]: Starting filters
StandardContext[/comet]: Posting standard context attributes
StandardWrapper[/comet:default]: Loading container servlet default
StandardWrapper[/comet:invoker]: Loading container servlet invoker
StandardContext[/comet]: Starting completed
=============================================================================
A servlet called Settings is loaded as part of the startup sequence. This
servlet uses this bean as well. Contrary to the JSP page the servlet is able to
use the bean with no problems. Notice I am loading a total of 3 different jars,
app.jar, beans.jar and servletUtils.jar. SettingsBean.class is only included in
beans.jar as noted above.
I am running Tomcat 4.1.12 on a Sun Solaris 8 using JDK 1.4.0_01.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>