cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: applet, module, Class.forName() - ClassNotFoundException
Date Wed, 18 Sep 2002 12:48:01 GMT
Gabor Bartha wrote:

> Hi,
> summarized:
> I have an applet in a jar with outer classes (java modules). There are 
> several classes in the jar and beside the jar.
> When the applet is running (from the jar) it finds the classes inside 
> the jar, but is unable to find the classes beside the jar.
> I have the jar file: /myApp/main.jar
> I have the classes: /myApp/outclasses/needed/req.class
>                             /myApp/outclasses/eq.class
>               When Class.forName(outclasses/needed/req) is called, 
> ClassNotFoundExecption occures. I have pipeline for the jar, and for 
> class:

Try then:

> <map:match pattern="*.jar">
>  <map:read src="{1}.jar" mime-type="application/java-archive"/>
> </map:match>
> <map:match pattern="*.class">
>  <map:read src="{1}.class" mime-type="application/java-class"/>
> </map:match>

<map:match pattern="**.class">
 <map:read src="{1}.class" mime-type="application/java-class"/>

> If I use the <map:match pattern="**.class"> pipeline, the classes 
> inside the jar cannot be loaded, and ClassNotFoundException occures.

I don't know what **class has to do with the jar, may be you have a 
problem somewhere else (i.e., in your <APPLET> tag).


> Gabor

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message