You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Torsten Curdt <tc...@dff.st> on 2001/02/23 16:22:49 UTC

JRun 3.0 with 1.8.2 - jar hell

I just tried to upgrade our site from 1.8 to 1.8.2.
We are running on JRun 3.0. Everything worked fine
before, but now as soon as I place the w3c.jar or the xml.jar
into the classpath JRun won't come up.

I guess it's something about a collision in the org.w3c.*
packages somewhere...

The latest installation instruction obviously don't work.
Can anyone give me a hint who has gone through this before?
--
Torsten

RE: JRun 3.0 with 1.8.2 - jar hell

Posted by Torsten Curdt <tc...@dff.st>.
> On Fri, Feb 23, 2001 at 04:22:49PM +0100, Torsten Curdt wrote:
> > I just tried to upgrade our site from 1.8 to 1.8.2.
> > We are running on JRun 3.0. Everything worked fine
> > before, but now as soon as I place the w3c.jar or the xml.jar
> > into the classpath JRun won't come up.
> > 
> > I guess it's something about a collision in the org.w3c.*
> > packages somewhere...
> > 
> > The latest installation instruction obviously don't work.
> > Can anyone give me a hint who has gone through this before?
> 
> From memory, I had to remove jaxp.jar and parser.jar from lib/ext, and replace
> them with Cocoon's xerces.jar.
> 
> Btw, the following post by Paul Russell might be useful:
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=97968457125231&w=2

I know... we were running C1.8 now for a while on JRun 3.0 ;)
This happend when we upgraded to 1.8.2. Thanks anyway :)
--
Torsten

Re: JRun 3.0 with 1.8.2 - jar hell

Posted by je...@socialchange.net.au.
On Fri, Feb 23, 2001 at 04:22:49PM +0100, Torsten Curdt wrote:
> I just tried to upgrade our site from 1.8 to 1.8.2.
> We are running on JRun 3.0. Everything worked fine
> before, but now as soon as I place the w3c.jar or the xml.jar
> into the classpath JRun won't come up.
> 
> I guess it's something about a collision in the org.w3c.*
> packages somewhere...
> 
> The latest installation instruction obviously don't work.
> Can anyone give me a hint who has gone through this before?

Re: JRun 3.0 with 1.8.2 - jar hell

Posted by Jeff Turner <je...@socialchange.net.au>.
On Sat, Feb 24, 2001 at 02:59:34PM +0100, Torsten Curdt wrote:
> > On Fri, Feb 23, 2001 at 06:20:28PM +0100, Torsten Curdt wrote:
> > > > I just tried to upgrade our site from 1.8 to 1.8.2.
> > > > We are running on JRun 3.0. Everything worked fine
> > > > before, but now as soon as I place the w3c.jar or the xml.jar
> > > > into the classpath JRun won't come up.
> > > > 
> > > > I guess it's something about a collision in the org.w3c.*
> > > > packages somewhere...
> > > > 
> > > > The latest installation instruction obviously don't work.
> > > > Can anyone give me a hint who has gone through this before?
> > > 
> > > Ok, found it... the w3c.jar was corrupt (the META-INF was missing)
> > > Could someone please doublecheck and commit a correct jar to the CVS!?
> > > (Robin? Shall I send the jar to you?)
> > 
> > You're right, lib/w3c.jar is missing a manifest. Does that necessarily make it
> > corrupt? 'jar tvf' works fine. What error was JRun giving?
> 
> error (JRun) JRun Aborting! [javax.servlet.ServletException: Could not instantiate allaire.jrun.jsp.JSPServlet]
> javax.servlet.ServletException: Could not instantiate allaire.jrun.jsp.JSPServlet
> javax.servlet.ServletException: Could not instantiate allaire.jrun.jsp.JSPServlet
> 	at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:242)
> 	at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:620)
> 	at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187)
> 	at allaire.jrun.ServletService.init(ServletService.java:66)
> 	at allaire.jrun.ServletService.init(ServletService.java:31)
> 	at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:236)
> 	at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:620)
> 	at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
> 	at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187)
> 	at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
> 	at allaire.jrun.ServletService.init(ServletService.java:66)
> 	at allaire.jrun.ServletService.init(ServletService.java:31)
> 	at JRun.main(JRun.java:130)

That confirms what I've experienced before.. the JRun developers seem to have
the following annoying habit:

try {
	...
} catch (UsefulException e) {
	throw CrappyJRunException("An error occurred");
}

In this case, something like:

try {
	..
	Map m = new JarFile("w3c.jar").getManifest().getEntries();
	..
} catch (NPE) {
	throw new ServletException("JRun Aborting!");
}

Though I'm quite probably wrong.

Anyway, can we get w3c.jar fixed?

--Jeff

> This was really strange... I never thought a missing manifest could be the
> problem. Anyway, this was the only difference to the other jars.
> 
> Now it works!
> --
> Torsten
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

-- 

RE: JRun 3.0 with 1.8.2 - jar hell

Posted by Torsten Curdt <tc...@dff.st>.
> On Fri, Feb 23, 2001 at 06:20:28PM +0100, Torsten Curdt wrote:
> > > I just tried to upgrade our site from 1.8 to 1.8.2.
> > > We are running on JRun 3.0. Everything worked fine
> > > before, but now as soon as I place the w3c.jar or the xml.jar
> > > into the classpath JRun won't come up.
> > > 
> > > I guess it's something about a collision in the org.w3c.*
> > > packages somewhere...
> > > 
> > > The latest installation instruction obviously don't work.
> > > Can anyone give me a hint who has gone through this before?
> > 
> > Ok, found it... the w3c.jar was corrupt (the META-INF was missing)
> > Could someone please doublecheck and commit a correct jar to the CVS!?
> > (Robin? Shall I send the jar to you?)
> 
> You're right, lib/w3c.jar is missing a manifest. Does that necessarily make it
> corrupt? 'jar tvf' works fine. What error was JRun giving?

error (JRun) JRun Aborting! [javax.servlet.ServletException: Could not instantiate allaire.jrun.jsp.JSPServlet]
javax.servlet.ServletException: Could not instantiate allaire.jrun.jsp.JSPServlet
javax.servlet.ServletException: Could not instantiate allaire.jrun.jsp.JSPServlet
	at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:242)
	at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:620)
	at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187)
	at allaire.jrun.ServletService.init(ServletService.java:66)
	at allaire.jrun.ServletService.init(ServletService.java:31)
	at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:236)
	at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:620)
	at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
	at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187)
	at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
	at allaire.jrun.ServletService.init(ServletService.java:66)
	at allaire.jrun.ServletService.init(ServletService.java:31)
	at JRun.main(JRun.java:130)

This was really strange... I never thought a missing manifest could be the
problem. Anyway, this was the only difference to the other jars.

Now it works!
--
Torsten


Re: JRun 3.0 with 1.8.2 - jar hell

Posted by Jeff Turner <je...@socialchange.net.au>.
On Fri, Feb 23, 2001 at 06:20:28PM +0100, Torsten Curdt wrote:
> > I just tried to upgrade our site from 1.8 to 1.8.2.
> > We are running on JRun 3.0. Everything worked fine
> > before, but now as soon as I place the w3c.jar or the xml.jar
> > into the classpath JRun won't come up.
> > 
> > I guess it's something about a collision in the org.w3c.*
> > packages somewhere...
> > 
> > The latest installation instruction obviously don't work.
> > Can anyone give me a hint who has gone through this before?
> 
> Ok, found it... the w3c.jar was corrupt (the META-INF was missing)
> Could someone please doublecheck and commit a correct jar to the CVS!?
> (Robin? Shall I send the jar to you?)

You're right, lib/w3c.jar is missing a manifest. Does that necessarily make it
corrupt? 'jar tvf' works fine. What error was JRun giving?

--Jeff

[snip]
> --
> Torsten
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

-- 

RE: JRun 3.0 with 1.8.2 - jar hell

Posted by Torsten Curdt <tc...@dff.st>.
> I just tried to upgrade our site from 1.8 to 1.8.2.
> We are running on JRun 3.0. Everything worked fine
> before, but now as soon as I place the w3c.jar or the xml.jar
> into the classpath JRun won't come up.
> 
> I guess it's something about a collision in the org.w3c.*
> packages somewhere...
> 
> The latest installation instruction obviously don't work.
> Can anyone give me a hint who has gone through this before?

Ok, found it... the w3c.jar was corrupt (the META-INF was missing)
Could someone please doublecheck and commit a correct jar to the CVS!?
(Robin? Shall I send the jar to you?)

Still the xml.jar prevents JRun from running. Although everything
seems to work fine without it!

Puzzled...
--
Torsten