[jboss-jira] [JBoss JIRA] Updated: (JBAS-6401) sun.misc.InvalidJarIndexException: Invalid index when jboss compile class for JSP

haim haim (JIRA) jira-events at lists.jboss.org
Tue Jan 20 11:54:04 EST 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

haim haim updated JBAS-6401:
----------------------------

    Attachment: valve.jar


Private jar - problematic (see log 
2009-01-20 18:20:13,864 ERROR [org.apache.tomcat.util.modeler.Registry] Error registering jboss.web:type=Valve,name=AuthenticatorValve,path=/insight,host=localhost
sun.misc.InvalidJarIndexException: Invalid index
        at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:769)
        at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:682)
        at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:663)
        at sun.misc.URLClassPath.findResource(URLClassPath.java:142)
        at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
        at java.lang.ClassLoader.getResource(ClassLoader.java:977)
        at org.jboss.mx.loading.RepositoryClassLoader.getResourceLocally(RepositoryClassLoader.java:240)
        at org.jboss.mx.loading.UnifiedLoaderRepository3.getResourceFromRepository(UnifiedLoaderRepository3.java:473)
        at org.jboss.mx.loading.UnifiedLoaderRepository3.getResource(UnifiedLoaderRepository3.java:351)
        at org.jboss.mx.loading.RepositoryClassLoader.getResource(RepositoryClassLoader.java:578)
        at org.apache.tomcat.util.modeler.Registry.loadDescriptors(Registry.java:828)
        at org.apache.tomcat.util.modeler.Registry.findDescriptor(Registry.java:906)
        at org.apache.tomcat.util.modeler.Registry.findManagedBean(Registry.java:626)
        at org.apache.tomcat.util.modeler.Registry.findManagedBean(Registry.java:961)
        at org.apache.tomcat.util.modeler.Registry.registerComponent(Registry.java:792)
        at org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.java:301)
        at org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:233)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4255)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
)

> sun.misc.InvalidJarIndexException: Invalid index when jboss compile class for JSP
> ---------------------------------------------------------------------------------
>
>                 Key: JBAS-6401
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6401
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Tomcat) service
>    Affects Versions: JBossAS-4.2.2.GA
>         Environment: OS: Fedora release 9 (Sulphur)  2.6.27.9-73.fc9.i686 #1 SMP Tue Dec 16 15:25:05 EST 2008 i686 i686 i386 GNU/Linux
> Java: java version "1.5.0_08"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
> Java HotSpot(TM) Server VM (build 1.5.0_08-b03, mixed mode)
> Maven 2.0.7
>            Reporter: haim haim
>            Assignee: Remy Maucherat
>             Fix For: JBossAS-4.2.3.GA
>
>         Attachments: server.log, valve.jar, xbean.jar
>
>
> When jboss is trying to compile JSPs I get the following exception 
> sun.misc.InvalidJarIndexException: Invalid index
>         at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:769)
>         at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:682)
>         at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:663)
>         at sun.misc.URLClassPath.findResource(URLClassPath.java:142)
>         at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
>         ... see attachment 
> When tracking down the jars i found out that the jar xbean.jar  (Apache XmlBeans version 2.2.0-r413705) is the one that throws the exception
> The jar was located under 
> jboss.dir/server/default/deploy/my.ear/lib/
> when I copied the jar to 
> jboss.dir/server/default/deploy/lib
> every think started working fine
> I have a similar issue with a valve jar I am placing under 
> jboss.dir/server/default/deploy/jboss-web.deployer/

-- 
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