This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 59253 - Tomcat fails when using Java 1.5 on Mac OS X
Summary: Tomcat fails when using Java 1.5 on Mac OS X
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: Sherold Dev
URL: http://issues.apache.org/bugzilla/sho...
Keywords: RELNOTE, TOMCAT
Depends on:
Blocks:
 
Reported: 2005-05-25 16:59 UTC by nmaves
Modified: 2006-03-24 13:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nmaves 2005-05-25 16:59:13 UTC
All webapps fail once they are deployed.



org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
error: error reading /System/Library/Java/Extensions/libJ3D.jnilib;
java.util.zip.ZipException: error in opening zip file
1 error



	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
	org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:246)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1054)
	org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:259)
	org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:235)
	org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:298)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:182)



This error is caused by the same issue 42961.


On OS X using Java 1.5 there are some native binaries in

/System/Library/Java/Extensions

dhcp-ubrm05-48-240:/System/Library/Java/Extensions nmaves$ l
total 21848
drwxr-xr-x   19 root  wheel      646 May 25 09:54 ./
drwxr-xr-x    5 root  wheel      170 May 24 17:36 ../
-rw-r--r--    1 root  wheel   129915 Mar 20 17:45 CoreAudio.jar
-rw-r--r--    1 root  wheel    28066 Mar 20 20:41 MRJToolkit.jar
-rw-r--r--    1 root  wheel   114875 Mar 20 21:41 QTJSupport.jar
-rw-r--r--    1 root  wheel  1180024 Mar 20 21:41 QTJava.zip
-rw-r--r--    1 root  wheel    15429 Mar 20 21:32 dns_sd.jar
-rw-r--r--    1 root  wheel  1245745 Mar 20 20:09 j3daudio.jar
-rw-r--r--    1 root  wheel  1340635 Mar 20 20:08 j3dcore.jar
-rw-r--r--    1 root  wheel   788867 Mar 20 20:09 j3dutils.jar
-rw-r--r--    1 root  wheel   328411 Mar 20 16:16 jai_codec.jar
-rw-r--r--    1 root  wheel  1907996 Mar 20 16:17 jai_core.jar
-rwxr-xr-x    1 root  wheel   125396 May 24 21:23 libJ3D.jnilib*
-rwxr-xr-x    1 root  wheel   288620 May 24 21:23 libJ3DAudio.jnilib*
-rwxr-xr-x    1 root  wheel     8856 May 24 21:23 libJ3DUtils.jnilib*
-rwxr-xr-x    1 root  wheel  3451280 May 24 21:23 libmlib_jai.jnilib*
-rw-r--r--    1 root  wheel    41239 Mar 20 16:22 mlibwrapper_jai.jar
drwxr-xr-x    2 root  wheel       68 May 25 09:54 native_binaries/
-rw-r--r--    1 root  wheel   153831 Mar 20 20:08 vecmath.jar

If I move these files to a sub directory the error is resolved but I think NB
should just ignore them.

Nathan
Comment 1 Sherold Dev 2005-05-30 17:29:07 UTC
Still investigating.

Moving down to p2 since workaround exists: download the latest Tomcat and use it
instead of the bundled one.
Comment 2 Sherold Dev 2005-06-08 13:02:23 UTC
I've filed this bug in Tomcat bugzilla
http://issues.apache.org/bugzilla/show_bug.cgi?id=35266.
Comment 3 Sherold Dev 2005-06-16 11:13:03 UTC
The tomcat issue has been marked as a duplicate of the following issue

http://issues.apache.org/bugzilla/show_bug.cgi?id=34856.
Comment 4 Sherold Dev 2005-11-15 12:15:44 UTC
This issue is specific for the bundled Tomcat running on JDK 5.0 on Mac OS X and
it is caused by a bug in javac, which is filed as: 

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6295519

Please note that non bundled Tomcat does not suffer from this issue, since the
standard Apache Tomcat distribution uses JDT compiler instead of javac. Of
course, this is valid as long as the JDT compiler is used.

Possible work-arounds:

1) use the latest Apple JDK 5.0 dev build, in which the javac bug is already fixed
2) configure bundled Tomcat to use JDT compiler instead of javac, for more info
refer to http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html
Comment 5 Sherold Dev 2005-11-16 13:19:34 UTC
Closing this issue as FIXED, since the Java 1.5.0_05 for Mac OS X, which
contains the javac bug fix, is finally out.

Everyone struggling with this issue should switch to the latest JDK release.
Comment 6 Jaroslav Pospisil 2005-12-08 14:07:45 UTC
VERIFIED