tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Duffy <duff...@yahoo.com>
Subject RE: Servlet Deployment Problem
Date Thu, 24 Apr 2003 11:47:15 GMT

Thank you, Jacob, that's exactly what I'm doing.  I
know it's working, because my context.xml calls for a
log file that is created successfully, and the log
file contains info about the JNDI data source that I
ask for in <Resource>. - MOD

--- Jacob Kjome <hoju@visi.com> wrote:
> 
> Glad you figured that out, but I noticed you
> mentioned using a context.xml 
> with the catalina ant "install" task.  If you mean
> having the "context.xml" 
> in the META-INF of the .war file, only the "deploy"
> task will work with 
> that setup.  If you want to specify a context.xml
> for the install task, you 
> have to provide the path to the context.xml in the
> "config" attribute of 
> the "install" task.
> 
> Jake
> 
> At 01:21 PM 4/23/2003 -0700, you wrote:
> 
> >Yes, I am, and that's exactly what I left out. 
> Thank
> >you. - MOD
> >
> >
> >--- "Shapira, Yoav" <Yoav.Shapira@mpi.com> wrote:
> > >
> > > Howdy,
> > > Are you overriding the init() or
> init(ServletConfig)
> > > method in your
> > > servlet?  You should override the first, or make
> > > sure super(config) is
> > > the first line of the second.
> > >
> > > Yoav Shapira
> > > Millennium ChemInformatics
> > >
> > >
> > > >-----Original Message-----
> > > >From: Michael Duffy [mailto:duffymo@yahoo.com]
> > > >Sent: Wednesday, April 23, 2003 4:10 PM
> > > >To: tomcat-user@jakarta.apache.org
> > > >Subject: Servlet Deployment Problem
> > > >
> > > >I'm trying to deploy a servlet to Tomcat
> 4.1.24,
> > > using
> > > >Ant and the Catalina install task with
> context.xml
> > > and
> > > >web.xml descriptors.
> > > >
> > > >When I deploy the servlet I get this exception
> out
> > > in
> > > >the context log file:
> > > >
> > > >2003-04-23 14:18:35
> > > >StandardWrapper[/api-prototype:default]:
> Loading
> > > >container servlet default
> > > >2003-04-23 14:18:35
> > > StandardContext[/api-prototype]:
> > > >Servlet /api-prototype threw load() exception
> > > >javax.servlet.ServletException: Servlet.init()
> for
> > > >servlet APIPrototypeServlet threw exception
> > > >     at
> > >
> >
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
> > > va:9
> > > >63)
> > > >     at
> > >
> >
>
>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > >     at
> > >
> >
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
> > > java
> > > >:3420)
> > > >     at
> > >
> >
>
>org.apache.catalina.core.StandardContext.start(StandardContext.java:360
> > > 8)
> > > >     at
> > >
> >
>
>org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConf
> > > ig.j
> > > >ava:614)
> > > >     at
> > >
> >
>
>org.apache.catalina.startup.HostConfig.run(HostConfig.java:854)
> > > >     at java.lang.Thread.run(Thread.java:536)
> > > >----- Root Cause -----
> > > >java.lang.NullPointerException
> > > >     at
> > >
> >
>
>javax.servlet.GenericServlet.getServletContext(GenericServlet.java:204)
> > > >     at
> > >
> >
>
>com.kaman.api.control.APIPrototypeServlet.init(Unknown
> > > >Source)
> > > >     at
> > >
> >
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
> > > va:9
> > > >35)
> > > >     at
> > >
> >
>
>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > >     at
> > >
> >
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
> > > java
> > > >:3420)
> > > >     at
> > >
> >
>
>org.apache.catalina.core.StandardContext.start(StandardContext.java:360
> > > 8)
> > > >     at
> > >
> >
>
>org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConf
> > > ig.j
> > > >ava:614)
> > > >     at
> > >
> >
>
>org.apache.catalina.startup.HostConfig.run(HostConfig.java:854)
> > > >     at java.lang.Thread.run(Thread.java:536)
> > > >
> > > >I've never seen this before.  Can anyone tell
> me
> > > what
> > > >I've done wrong?  The web.xml and context.xml
> are
> > > both
> > > >well-formed XML, according to XMLNotepad. 
> Thanks -
> > > MOD
> > > >
> > >
> >__________________________________________________
> > > >Do you Yahoo!?
> > > >The New Yahoo! Search - Faster. Easier. Bingo
> > > >http://search.yahoo.com
> > > >
> > >
> >
>
>---------------------------------------------------------------------
> > > >To unsubscribe, e-mail:
> > > tomcat-user-unsubscribe@jakarta.apache.org
> > > >For additional commands, e-mail:
> > > tomcat-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> > > This e-mail, including any attachments, is a
> > > confidential business communication, and may
> contain
> > > information that is confidential, proprietary
> and/or
> > > privileged.  This e-mail is intended only for
> the
> > > individual(s) to whom it is addressed, and may
> not
> > > be saved, copied, printed, disclosed or used by
> > > anyone else.  If you are not the(an) intended
> > > recipient, please immediately delete this e-mail
> > > from your computer system and notify the sender.
> > > Thank you.
> > >
> > >
> > >
>
>---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > tomcat-user-help@jakarta.apache.org
> > >
> >
> >
> >__________________________________________________
> >Do you Yahoo!?
> >The New Yahoo! Search - Faster. Easier. Bingo
> >http://search.yahoo.com
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

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


Mime
View raw message