What application url are you using for your demonstration app? Is it '/'?
If so, make it something else - I believe you have to have unique
application urls - even across jrun servers.
----- Original Message -----
From: "Jim Gillaspy" <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 4:22 PM
Subject: RE: Unable to assign classpaths at application level
> Well, that didn't work. if you look at the following error, we are
running
> in
>
> /data/jrun/servers/demonstration/demonstration-app/
>
> but to find the package, JRun never looks in
>
> /data/jrun/servers/demonstration/demonstration-app/WEB-INF/classes
>
> instead it looks in
>
> /data/jrun/servers/default/default-app/WEB-INF/classes
>
> It's driving us nuts!
>
>
> 500 Internal Server Error
> /login.jsp:
>
> javax.servlet.ServletException: Compilation error occured:
> Found 2 errors in JSP file:
> /data/jrun/servers/demonstration/demonstration-app/login.jsp:65: Error:
> Could not find package named:
> /data/jrun/servers/demonstration/demonstration-app/footer.jsp:24: Error:
> "Formatter" is either a misplaced package name or a non-existent entity.
>
> allaire.jrun.scripting.DefaultCFE:
> Errors reported by
>
compiler:/data/jrun/servers/default/default-app/WEB-INF/jsp/jrun__login2ejsp
> a.java:12:8:12:15: Error: Could not find package named:
> /usr/java1.2/jre/lib/rt.jar(cmd/util),
> /usr/java1.2/jre/lib/i18n.jar(cmd/util),
> /data/jrun/lib/ext/cmd/util,
> /data/jrun/lib/ext/activation.jar(cmd/util),
> /data/jrun/lib/ext/ejb.jar(cmd/util),
> /data/jrun/lib/ext/iioprt.jar(cmd/util),
> /data/jrun/lib/ext/jaxp.jar(cmd/util),
> /data/jrun/lib/ext/jdbc.jar(cmd/util),
> /data/jrun/lib/ext/jms.jar(cmd/util),
> /data/jrun/lib/ext/jndi.jar(cmd/util),
> /data/jrun/lib/ext/jta.jar(cmd/util),
> /data/jrun/lib/ext/mail.jar(cmd/util),
> /data/jrun/lib/ext/parser.jar(cmd/util),
> /data/jrun/lib/ext/pop3.jar(cmd/util),
> /data/jrun/lib/ext/servlet.jar(cmd/util),
> /data/jrun/lib/jrun.jar(cmd/util),
> /data/jrun/lib/install.jar(cmd/util),
> /data/jrun/lib/ejipt.jar(cmd/util),
> /data/jrun/lib/ejipt_client.jar(cmd/util),
> /data/jrun/lib/ejipt_tools.jar(cmd/util),
> /usr/java1.2/lib/tools.jar(cmd/util),
> /data/jrun/lib/jsp.jar(cmd/util),
> /data/jrun/lib/ssi.jar(cmd/util),
> /data/jrun/lib/wddx.jar(cmd/util),
> /data/jrun/lib/xt.jar(cmd/util),
> /data/jrun/lib/rhino.jar(cmd/util),
> /data/jrun/servers/lib/cmd/util,
> /data/jrun/servers/lib/jrun_drivers.jar(cmd/util),
> /data/jrun/servers/lib/jruntags.jar(cmd/util),
> /data/jrun/servers/default/lib/cmd/util,
> /data/jrun/servlets/cmd/util,
>
> /data/jrun/servers/default/default-app/WEB-INF/classes/cmd/util,
>
/data/jrun/servers/default/default-app/WEB-INF/lib/cmd/util
> or
>
/data/jrun/servers/default/default-app/WEB-INF/jsp/cmd/util
>
/data/jrun/servers/default/default-app/WEB-INF/jsp/jrun__login2ejspa.java:48
> :11:48:19: Error: "Formatter" is either a misplaced package name or a
> non-existent entity.
>
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.(Compiled Code)
> at java.lang.Exception.(Compiled Code)
> at
>
allaire.jrun.CompilationFailedException.(CompilationFailedException.java:22)
> at allaire.jrun.scripting.DefaultCFE.(JavaCompilerService.java:368)
> at allaire.jrun.scripting.DefaultCFE.(JavaCompilerService.java:376)
> at
>
allaire.jrun.scripting.JavaCompilerService.compile(JavaCompilerService.java:
> 122)
> at allaire.jrun.jsp.JSPServlet.compilePage(Compiled Code)
> at allaire.jrun.jsp.JSPServlet.createServlet(Compiled Code)
> at allaire.jrun.jsp.JSPServlet.loadPage(Compiled Code)
> at allaire.jrun.jsp.JSPServlet.service(Compiled Code)
> at allaire.jrun.servlet.JRunSE.service(Compiled Code)
> at allaire.jrun.servlet.JRunSE.runServlet(Compiled Code)
> at allaire.jrun.servlet.JRunRequestDispatcher.forward(Compiled Code)
> at allaire.jrun.servlet.JRunSE.service(Compiled Code)
> at allaire.jrun.servlet.JvmContext.dispatch(Compiled Code)
> at allaire.jrun.jrpp.ProxyEndpoint.run(Compiled Code)
> at allaire.jrun.ThreadPool.run(Compiled Code)
> at allaire.jrun.WorkerThread.run(Compiled Code)
>
>
>
> Jim Gillaspy
> Director of Information Systems
> CMD Services, Inc.
> [EMAIL PROTECTED]
> 678-475-2030
>
>
> -----Original Message-----
> From: Tom Duffy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 04, 2001 9:57 AM
> To: JRun-Talk
> Subject: Re: Unable to assign classpaths at application level
>
>
> I have a similiar situation and found that this works:
>
> Libraries that are common to all jrun servers are put in the
> {jrun.rootdir}/server/lib directory.
>
> Libraries that are common to all apps running in a jrun server are put in
> {jrun.server.rootdir}/lib directory.
>
> By default, every Jrun server has these directories in their classpaths.
To
> verify this, using the Jrun Management Console (JMC) check the Java
Settings
> for a Jrun server and view the classpath entries.
>
> Libraries that are used only by a specific app are put in the WEB-INF/lib
or
> WEB-INF/classes directories for the application.
>
> Hope this helps.
>
> Tom D.
>
>
>
> ----- Original Message -----
> From: "Jim Gillaspy" <[EMAIL PROTECTED]>
> To: "JRun-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, May 04, 2001 9:32 AM
> Subject: Unable to assign classpaths at application level
>
>
> > We have multiple client websites that are almost the same but not
exactly
> > so. We want to have class libraries at the application level so our
beans
> > can be different for each client.
> >
> > The manual discusses how to set this up. However:
> >
> > - when we insert into webapp.properties:
> > user.classpath=/data/jrun/servers/client1/client1-app/classes
> > where classes is a directory in client1-app, JRun crashes and won't
> restart
> > until we take that line out. (There was nothing in webapp.properties to
> > begin with).
> >
> > - when this didn't work, we decided to just set up the class directories
> at
> > the server level and set up a server for each client, so we inserted
into
> > local.properties for the server:
> >
> > user.classpath=/data/jrun/servers/client1/classes
> >
> > where all of our classes were in directories beneath this directory. We
> > would, for example, have a statement
> >
> > import="cmd.starfill.*, cmd.util.*, web.*"
> >
> > in our jsp scripts.
> >
> > When we do this, we get "package not found" error messages when the jsp
is
> > compiled, UNLESS WE PUT THE DIRECTORY AND CLASSES IN THE DEFAULT
> > APPLICATION, THEN THEY CAN BE SEEN BY ALL SERVERS!!!
> >
> > Any ideas?
> >
> >
> > Jim Gillaspy
> > Director of Information Systems
> > CMD Services, Inc.
> > [EMAIL PROTECTED]
> > 678-475-2030
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists