cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
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"/>
</map:match>


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

Vadim



> Gabor



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message