Re: FW: Barracuda: Cannot load servlet name...
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi David, You can ignore the WEB-INF/jars directory for deployment purposes. That said, it does contain some jars that are needed at runtime. The reason they are in that directory rather than WEB-INF/lib is that the Sun class loading spec and the servlet spec forbid endorsed packages to be in WEB-INF/lib. That includes some packages from javax.xml.* and org.w3c.dom which are in xerces-1.4.4-xmlc-2.1.jar. Now, my only experience is with using Tomcat, not Enhydra 5.0. So, I'll give you some hints on using Barracuda in Tomcat at you can map the instructions to Enhydra 5.0. The following need to be put in CATALINA_HOME/shared/lib: xerces-1.4.4-xmlc-2.1.jar gnu-regexp-1.1.4.jar jtidy-r7-xmlc-2.1.jar xmlc-2.1.jar wireless-xmlc-2.1jar xhtml-xmlc-2.1.jar Note: the latter two aren't needed unless you are doing wireless and/or XHTML DOM programming. Everything else Barracuda related can go in WEB-INF/lib such as: barracuda-core.jar plankton.jar log4j.jar Note: the former 2 are in lib-ext (barracuda.jar contains extra examples and tutorials that your app doesn't require). Using the latest log4j.jar either from Barracuda or elsewhere is fine. One other thing to note is that Enhydra-5.0 should be able to work with the latest CVS. You might want to try that. See information on obtaining the latest CVS at: http://barracudamvc.org/Barracuda/docs/cvs.html If you do get the latest CVS, the instructions are a bit different for the libraries needed. Actually, it is probably more straightforward. Let us know if you have further questions. I'm sure we can get this to work on Enhydra 5.0. Jake At 07:21 AM 1/28/2003 -0500, you wrote: >I'm using the version shiped with Enhydra 5.0. I have the barracuda jars in my >WEB-INF/lib directory along with the applications jar. I have nothing in the >WEB-INF/jars directory. Is this the correct way to deploy a Barracuda >application for Enhydra? > >David Robison > >Quoting Jacob Kjome <[email protected]>: > > > Hi David, > > > > First, what version of Barracuda are you using? Barracuda-1.1.1 is what > > > > shipped with Enhydra 5.0. Are you using older libraries than that? > > Sorry, > > I can't verify anything on Enhydra 5.0 because I don't use it. Anyone > > else > > have any experience with Enhydra 5.0? > > > > Jake > > > > At 09:32 AM 1/27/2003 -0700, Christian Cryder wrote: > > >"urn:schemas-microsoft-com:office:office" xmlns:w = > > >"urn:schemas-microsoft-com:office:word"> > > >-----Original Message----- > > >From: [email protected] > > [mailto:[email protected]]On > > >Behalf Of David R Robison > > >Sent: Monday, January 27, 2003 8:09 AM > > >To: [email protected] > > >Subject: Barracuda: Cannot load servlet name... > > > > > >Ive recently upgraded from Enhydra 3.1 to Ehnydra 5.0. When I now try > > to > > >start my Barracuda application, I get the following errors in the > > >multiserver.log: > > > > > > > > > > > >2003.01.27 09:56:43: Multiserver,INFO: Starting servlet/application > > >ClientPortal > > > > > >2003.01.27 09:56:43: Multiserver,DEBUG: initContext() > > >servletID=ClientPortal context=org.apache.tomcat.core.Context@5d173 > > >path=/ClientPortal url=file:/home/enhydra/webapps/ClientPortal. > > > > > >2003.01.27 09:56:43: Multiserver,INFO: Application ClientPortal has url > > > > >prefix "/ClientPortal". > > > > > >2003.01.27 09:56:43: ClientPortal,INFO: Configuring web service using > > > > >"default" > > > > > >2003.01.27 09:56:45: ClientPortal,INFO: Configuring web service using > > > > >"file:/home/enhydra/webapps/ClientPortal/WEB-INF/web.xml" > > > > > >2003.01.27 09:56:48: ClientPortal,INFO: default: init > > > > > >2003.01.27 09:56:48: ClientPortal,INFO: jsp: init > > > > > >2003.01.27 09:56:48: ClientPortal,INFO: ApplicationGateway: init > > > > > >2003.01.27 09:56:48: ClientPortal,ERROR: cannot load servlet name: > > >ApplicationGateway > > > > > >2003.01.27 09:56:48: Multiserver,DEBUG: Context time out is > > > > > >2003.01.27 09:56:48: ClientPortal,DEBUG: SessionMgr: > > StandardSessionHome: > > >BASIC > > > > > >2003.01.27 09:56:48: ClientPortal,DEBUG: > > SessionManager.SessionLifetimeMax > > >= 0 sec > > > > > >2003.01.27 09:56:48: ClientPortal,DEBUG: > > SessionManager.SessionIdleTimeMax > > >= 324000 sec > > > > > >2003.01.27 09:56:48: ClientPortal,DEBUG: > > >SessionManager.SessionNoUserIdleTimeMax = 324000 sec > > > > > >2003.01.27 09:56:48: ClientPortal,DEBUG: > > SessionManager.IdleScanInterval = > > >30 sec > > > > > >2003.01.27 09:56:48: ClientPortal,DEBUG: > > >SessionManager.SessionEncodeUrlState = Auto > > > > > >2003.01.27 09:56:48: ClientPortal,DEBUG: > > >SessionManager.SessionEncodeRandomParameter = No > > > > > > > > > > > >Here is the portion of multiserver.conf that configures the > > application: > > > > > > > > > > > >Channel.CM_0.channel_0.Enabled = yes > > > > > >Channel.CM_0.channel_0.Servlet = ClientPortal > > > > > >Channel.CM_0.channel_0.Url = "/ClientPortal" > > > > > > > > > > > >Application.ClientPortal.Running = yes > > > > > >Application.ClientPortal.isInvokerEnabled = true > > > > > >Application.ClientPortal.isWARValidated = true > > > > > >Application.ClientPortal.DocRoot = > > "/home/enhydra/webapps/ClientPortal" > > > > > >Application.ClientPortal.isWARExpanded = true > > > > > >Application.ClientPortal.Description = "ORCI Client Portal web site" > > > > > >Application.ClientPortal.isWorkDirPersistent = true > > > > > >Application.ClientPortal.defaultSessionTimeOut = 5400 > > > > > >Connection.CM_0.Type = EnhydraDirector > > > > > >Connection.CM_0.ThreadTimeout = 300 > > > > > >Connection.CM_0.ClientTimeout = 30 > > > > > >Connection.CM_0.SessionAffinity = true > > > > > >Connection.CM_0.QueueSize = 400 > > > > > >Connection.CM_0.Port = 8888 > > > > > >Connection.CM_0.NumThreads = 200 > > > > > >Connection.CM_0.BindAddress = "(All Interfaces)" > > > > > >Connection.CM_0.AuthKey = "(Unauthenticated)" > > > > > >Connection.CM_0.PrefixHint = "http://www.openroadsconsulting.com" > > > > > > > > > > > >In WEB-INF/lib I have a jar file called ClientPortal.jar. I seems that > > it > > >may not be loading the jar into the classpath, but Im not sure. Any > > ideas > > >what might be the problem or ideas on what to check next? > > > > > > > > > > > >David R Robison > > > > > >Open Roads Consulting, Inc. > > > > > ><http://www.openroadsconsulting.com>http://www.openroadsconsulting.com > > > > > > > > > > > > > >