tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "faisal" <faisalabde...@hotmail.com>
Subject Re: Context.getResource( ) problem
Date Fri, 02 Aug 2002 05:05:14 GMT
Thanks for the reply Shapira
I apologize for  sending the same email four times
As you noted out  it is a Jboss problem not Tomcat's. I got the same error
with Jetty .
Respect

----- Original Message -----
From: "Shapira, Yoav" <Yoav.Shapira@mpi.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Thursday, August 01, 2002 6:11 AM
Subject: RE: Context.getResource( ) problem


Hi Faisal,
It may have been just me, but I got four copies of your message.  Please
post only once.

As to your question: the technical cause for the exception is obvious ;)
You can't form a URL to a java.io.ByteArrayInputStream.  My guess is
something (the TemplateServlet?  Is that your servlet or a JBoss one?
If it's yours, you'll need to post its code so we can help more) is
trying to de-serialize your xml file, while something else is trying to
read that same XML file through a URL.

I've never seen a URLMappingsXmlDAO error in tomcat before ;)  Is it a
JBoss internal thing?  If so, the JBoss forums might be a better place
to post this question.

It may also help if you could change the layout pattern for the log file
so that you see the class and method where the exceptions occur.  Add %m
%n to your layout pattern if using log4j...

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: faisal [mailto:faisalabdelli@hotmail.com]
>Sent: Thursday, August 01, 2002 7:39 AM
>To: tomcat-user@jakarta.apache.org
>Subject: Context.getResource( ) problem
>
>Hi all
>Recently I run into a problem reguarding Tomcat4.04 and the
>Context.getResource( ) .I have two  XML files in WEB-INF
>screendefinition_en_US.xml & screendefinition_ja_JA.xml .When I try to
>deploy my application on Jboss&Tomcat the TemplateServlet which is
supposed
>to init and load the screens can't find the XML files and this exactly
what
>I get in Jboss console:
>
>04:26:01,241 INFO  [Engine] invoker: init
>04:26:01,271 ERROR [STDERR]  4 URLMappingsXmlDAO error:
>java.net.MalformedURLException:
>no protocol: java.io.ByteArrayInputStream@4a0ac5
>04:26:01,271 ERROR [STDERR] java.net.MalformedURLException: no
protocol:
>java.io.ByteArr
>
>Any clue or suggestion please
>thank u
>Faisal
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:tomcat-user-
>help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message