The load on startup number is what ranking to startup. It basically means
that lower numbers start up first. SO... if you wanted servlets A,B,C,D to
start up in that order,
A=10, B=200, C=316, D=445
Doesn't matter what the numbers are, as long as they are in the correct
order.
I usually setup my startup values starting at 5. This gives any servlets
that Orion wants to startup globally a chance to go first. If there is a
tie, I don't know what order they start in... probably by the name of the
servlet alphabetically.
Try <load-on-startup>5</load-on-startup>
Tony
-----Original Message-----
From: Neal Kaiser [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 8:40 AM
To: Orion-Interest
Subject: Classpath.class and load-on-startup, Can't
start Orion
All of a sudden I get this error in my
global-application.log:
/4/01 12:19 PM defaultWebApp: Error preloading servlet
javax.servlet.ServletException: Error instantiating servlet
'classpath'
(servlet class not found, make sure it exists at
/usr/local/orion/default-web-app/WEB-INF/classes/classpath/Classpath.class,
in a jar in /usr/local/orion/default-web-app/WEB-INF/lib/,
in an
orion-web.xml specified classpath or global server
classpath)
at com.evermind.server.http.HttpApplication.wi(JAX)
at com.evermind.server.http.HttpApplication.wt(JAX)
at com.evermind.server.http.HttpApplication.v3(JAX)
at
com.evermind.server.http.HttpApplication.<init>(JAX)
at com.evermind.server.Application.uq(JAX)
at com.evermind.server.http.en.uq(JAX)
at com.evermind.server.http.em.uy(JAX)
at com.evermind.server.http.em.gf(JAX)
at com.evermind.server.http.en.u1(JAX)
at com.evermind.server.http.en.gf(JAX)
at com.evermind.server.ApplicationServer.aqb(JAX)
at com.evermind.server.ApplicationServer.gf(JAX)
at com.evermind.server.hi.run(JAX)
at java.lang.Thread.run(Thread.java:484)
at com.evermind.util.f.run(JAX)
I have the following in global-web-application.xml
<servlet>
<servlet-name>classpath</servlet-name>
<servlet-class>classpath.Classpath</servlet-class>
<init-param>
<param-name>defaultContentType</param-name>
<param-value>text/html</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
And the Classpath.class is in /usr/local/orion/lib
I think it has to do with the load-on-startup not working? I
had a similar
problem with a webapp
I installed which had <load-on-startup>1</load-on-startup>
but it wasn't
loading it. I changed the 1 to a
2 (just guessing that Orion might load it that way) and it
actually worked.
But now all of a sudden I get this error. I even tried
removing that webapp
with the load-on-startup. Same problem. What are the valid
values for
load-on-startup? 0 or 1?
My only other hunch is that the problem could be related to
a classpath
issue. I had to change the classpath a bit for other
programs. But I tried
all variations and could not get it to work.
Thanks, Neal