You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gabor Bartha <ga...@mailbox.hu> on 2002/09/17 17:06:51 UTC
applet, module, Class.forName() - ClassNotFoundException
Hi All,
I have a java applet in a jar file and there are several class files
beside the jar, which files (modules) can be loaded by the applet with
the Class.forName() and newInstance() methods. My applet works well as
far as it has to load a module, at that time ClassNotFoundException
occures.
I put the following pipeline into my sitemap.xmap, but it is not working.
<map:match pattern="*.class">
<map:read src="{1}.class" mime-type="application/java-class"/>
</map:match>
Can anybody help me?
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: applet, module, Class.forName() - ClassNotFoundException
Posted by Gabor Bartha <ga...@mailbox.hu>.
Yes I have pipeline for the jar - the jar works well, only classes doesn,t
Ilya A. Kriveshko wrote:
> Do you have the pipeline for the jar?
> --
> Ilya
>
> Gabor Bartha wrote:
>
>> It doesn't work.
>> A few classes are in the jar, the others are beside the jar in the
>> proper directories (as they are in the packages).
>> During the running of the applet every class is loaded by the
>> Class.forName(), ... method.
>> - If I use <map:match pattern="**.class"> the classes which are in the
>> jar cannot be loaded.
>> - If I use <map:match pattern="*.class"> the classes which are beside
>> the jar cannot be loaded.
>>
>> Gabor
>>
>> Vadim Gritsenko wrote:
>>
>>> Gabor Bartha wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have a java applet in a jar file and there are several class files
>>>> beside the jar, which files (modules) can be loaded by the applet with
>>>> the Class.forName() and newInstance() methods. My applet works well as
>>>> far as it has to load a module, at that time ClassNotFoundException
>>>> occures.
>>>>
>>>> I put the following pipeline into my sitemap.xmap, but it is not
>>>> working.
>>>> <map:match pattern="*.class">
>>>
>>>
>>>
>>>
>>>
>>> If your classes are within some package (not in default package), you
>>> will have to match on "**.class":
>>>
>>> <map:match pattern="**.class">
>>>
>>>
>>> Vadim
>>>
>>>
>>>
>>>> <map:read src="{1}.class" mime-type="application/java-class"/>
>>>> </map:match>
>>>>
>>>> Can anybody help me?
>>>>
>>>> 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: <co...@xml.apache.org>
>>> For additional commands, e-mail: <co...@xml.apache.org>
>>>
>>>
>>> .
>>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: <co...@xml.apache.org>
>> For additional commands, e-mail: <co...@xml.apache.org>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
> .
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: applet, module, Class.forName() - ClassNotFoundException
Posted by "Ilya A. Kriveshko" <il...@kaon.com>.
Do you have the pipeline for the jar?
--
Ilya
Gabor Bartha wrote:
> It doesn't work.
> A few classes are in the jar, the others are beside the jar in the
> proper directories (as they are in the packages).
> During the running of the applet every class is loaded by the
> Class.forName(), ... method.
> - If I use <map:match pattern="**.class"> the classes which are in the
> jar cannot be loaded.
> - If I use <map:match pattern="*.class"> the classes which are beside
> the jar cannot be loaded.
>
> Gabor
>
> Vadim Gritsenko wrote:
>
>> Gabor Bartha wrote:
>>
>>> Hi All,
>>>
>>> I have a java applet in a jar file and there are several class files
>>> beside the jar, which files (modules) can be loaded by the applet with
>>> the Class.forName() and newInstance() methods. My applet works well as
>>> far as it has to load a module, at that time ClassNotFoundException
>>> occures.
>>>
>>> I put the following pipeline into my sitemap.xmap, but it is not
>>> working.
>>> <map:match pattern="*.class">
>>
>>
>>
>>
>> If your classes are within some package (not in default package), you
>> will have to match on "**.class":
>>
>> <map:match pattern="**.class">
>>
>>
>> Vadim
>>
>>
>>
>>> <map:read src="{1}.class" mime-type="application/java-class"/>
>>> </map:match>
>>>
>>> Can anybody help me?
>>>
>>> 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: <co...@xml.apache.org>
>> For additional commands, e-mail: <co...@xml.apache.org>
>>
>>
>> .
>>
>
>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: applet, module, Class.forName() - ClassNotFoundException
Posted by Gabor Bartha <ga...@mailbox.hu>.
It doesn't work.
A few classes are in the jar, the others are beside the jar in the
proper directories (as they are in the packages).
During the running of the applet every class is loaded by the
Class.forName(), ... method.
- If I use <map:match pattern="**.class"> the classes which are in the
jar cannot be loaded.
- If I use <map:match pattern="*.class"> the classes which are beside
the jar cannot be loaded.
Gabor
Vadim Gritsenko wrote:
> Gabor Bartha wrote:
>
>> Hi All,
>>
>> I have a java applet in a jar file and there are several class files
>> beside the jar, which files (modules) can be loaded by the applet with
>> the Class.forName() and newInstance() methods. My applet works well as
>> far as it has to load a module, at that time ClassNotFoundException
>> occures.
>>
>> I put the following pipeline into my sitemap.xmap, but it is not
>> working.
>> <map:match pattern="*.class">
>
>
>
> If your classes are within some package (not in default package), you
> will have to match on "**.class":
>
> <map:match pattern="**.class">
>
>
> Vadim
>
>
>
>> <map:read src="{1}.class" mime-type="application/java-class"/>
>> </map:match>
>>
>> Can anybody help me?
>>
>> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
> .
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: applet, module, Class.forName() - ClassNotFoundException
Posted by Vadim Gritsenko <va...@verizon.net>.
Gabor Bartha wrote:
> Hi All,
>
> I have a java applet in a jar file and there are several class files
> beside the jar, which files (modules) can be loaded by the applet with
> the Class.forName() and newInstance() methods. My applet works well as
> far as it has to load a module, at that time ClassNotFoundException
> occures.
>
> I put the following pipeline into my sitemap.xmap, but it is not working.
> <map:match pattern="*.class">
If your classes are within some package (not in default package), you
will have to match on "**.class":
<map:match pattern="**.class">
Vadim
> <map:read src="{1}.class" mime-type="application/java-class"/>
> </map:match>
>
> Can anybody help me?
>
> 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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>