Hi all
I have tried everything with regards to the
servlet-mapping i.e. putting the
ConnectionPool/ConnectionPool in the TOMCAT_HOME/lib
and webapps/portfolio/lib directory, where portfolio
is the name of my application!
I tried copying the HelloWorldExample from
TOMCAT_HOME/examples and putting it in the portfolio
dir. but when i try running it it gives an error;
Error: 500
Location: /portfolio/servlet/helloworld
Internal Servlet Error:
java.util.MissingResourceException: Can't find
resource for base name LocalStrings, locale en_US
at java.util.ResourceBundle.getBundle
ResourceBundle.java:423)
at java.util.ResourceBundle.getBundle
ResourceBundle.java:353)
at HelloWorldExample.doGet(HelloWorldExample.java:25)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService
ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
rg.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)
I dont really know know whats wrong!
Can someone please help me!!!!
thanks
priya
--- Vinay Menon <[EMAIL PROTECTED]> wrote:
> Make sure that your connectio pool class is under
> the correct directory
> structure under WEB-INF/classes. For eg. if your
> ConnectionPool class is in
> uk.co.youconame.dbclasses.ConnectionPool make sure
> that it exists under the
> directory
>
> WEB-INF/classes/uk/co/yourconame/dbclasses/
>
> Vinay
> ----- Original Message -----
> From: "Priya Gupta" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, July 07, 2001 12:02 AM
> Subject: Problem running servlets on Apache/Tomcat
>
>
> > Hi
> > This query has been posted on this list quite a
> no.
> > of times and even after going through the archives
> I'm
> > still stuck up with this problem!
> > To start with the configuration... I'm working
> > Windows 2000 professional with Tomcat 3.2.2 and
> Apache
> > 1.3.20. The backend is Oracle 8.1.6.
> > I have an application called 'portfolio' for
> which I
> > created a folder in C:\TOMCAT_HOME\webapps called
> > portfolio with a hierarchy of other directories
> > required, like
> > C:\TOMCAT_HOME\webapps\portfolio\WEB-INF where I
> > copied the web.xml and
> > C:\TOMCAT_HOME\webapps\portfolio\WEB-INF\classes
> where
> > I put all the servlet classes. I have put all the
> > other files like htmls, images etc. in the
> > C:\TOMCAT_HOME\webapps\portfolio directory! and
> not to
> > forget the C:\TOMCAT_HOME\webapps\portfolio\lib
> dir.
> > for all the jar files and Orcale driver...
> > I have made changes to my servlet.xml file also
> to
> > let tomcat recognize my application! Putting in
> the
> > 'context-path' stuff and have edited the web.xml
> file
> > to map the servlets....
> > Now I can execute my servlets but cannot run
> > them... coz when I try exceuting them I get an
> error
> > 'ClassDefNotFound: ConnectionPool/ConnectionPool'
> > Now CoonnectionPool is actually a package(as
> the
> > name impies) that i created to make a connection
> to
> > the database. Its also in the classes dir. When I
> > execute the servlets I dont get any errors as to
> > "unable to find ConnectionPool", so I presume that
> > they are in the Path.
> > Now I'm really stuck up and am unable to find
> the
> > real problem! May be someone out there whos done
> > something similar can help me solve this!!!!
> > Thanks a lot in advance
> > Priyanka
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/