[jboss-jira] [JBoss JIRA] Commented: (JBAS-7304) TLD scanning throws exception if WAR inside an EAR
Stan Silvert (JIRA)
jira-events at lists.jboss.org
Wed Sep 30 13:51:49 EDT 2009
[ https://jira.jboss.org/jira/browse/JBAS-7304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12487945#action_12487945 ]
Stan Silvert commented on JBAS-7304:
------------------------------------
I suspect that this behavior must be new. I'll ask around and see.
> TLD scanning throws exception if WAR inside an EAR
> --------------------------------------------------
>
> Key: JBAS-7304
> URL: https://jira.jboss.org/jira/browse/JBAS-7304
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web (Tomcat) service
> Affects Versions: JBossAS-5.2.0.Beta1
> Reporter: Stan Silvert
> Assignee: Remy Maucherat
> Priority: Blocker
> Attachments: ear-1.0.ear, simple-ear.zip
>
>
> For AS 5.2, if you have a WAR inside an EAR, the TLD scanning will throw an exception. You will get a ZipException on Linux or a FileNotFoundException on Windows:
> 13:11:12,953 ERROR [TldConfig] Exception processing JAR at resource path C:\projects\jboss5\Branch_5_x\build\output\jboss-5.
> 2.0.Beta1\server\default\tmp\abbt-9bqvlk-g08c290u-1-g08c3h2e-9t\servlet-1.0.war\WEB-INF\lib\commons-collections-2.0.jar in c
> ontext /servlet
> java.io.FileNotFoundException: C:\projects\jboss5\Branch_5_x\build\output\jboss-5.2.0.Beta1\server\default\tmp\abbt-9bqvlk-g
> 08c290u-1-g08c3h2e-9t\servlet-1.0.war\WEB-INF\lib\commons-collections-2.0.jar (Access is denied)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> at java.util.jar.JarFile.<init>(JarFile.java:133)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:451)
> at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:305)
> at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:734)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4308)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
> at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:464)
> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
> at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
> It looks like the problem is that TldConfig.tldScanJar is trying to open a directory that it thinks is a JAR file. The directory is created in server\default\tmp when the EAR is exploded during deploy.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list