Problem running Servlets in tomcat 5.0

2005-03-17 Thread samsher khan
Hi 
I am able to run the jsp in the tomcat 5.0 but when I
try to run a war file containing servlets instead of
executing it the IE try's to download it as zip file.
I have web.xml file web-inf folder also.If I just give
only the servlet path in the IE then the server say
requested resource not available

it would be great if u guys can help (it is important)
Thanks 
Samsher Khan



Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Trouble running servlets using TomCat4.1.18

2004-07-08 Thread Mike Curwen
did you turn on the invoker servlet ?


> -Original Message-
> From: Kamaleshwaran Sivalingam [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 08, 2004 9:26 AM
> To: Tomcat Users List
> Subject: Trouble running servlets using TomCat4.1.18
> 
> 
> Hi,
> I have trouble running servlets using tomcat4.1.18 in 
> Redhat Linux. I have 
> Apache 1.3.20 installed  which is listening on port 80. The 
> TomCat  server is 
> listening on  port 8080. The Apache server is used for 
> serving php. so when i 
> entered "http://localhost"; on the mozilla  browser, i get the 
> index.php page.  
> 
> When i entered "http://localhost:8080"; i get the index.html 
> page which is under 
> the tomcat directory. When i click on a button on my index 
> page i must get a 
> servlet  which should be executed by the tomcat. But  I get 
> the following error 
> on my browser.
> 
> Not Found
> The requested URL /examples/servlet/PeatPlot was not found on 
> this server.
> 
> --
> --
> Apache/1.3.20 Server at _default_ Port 80
> 
> 
> So it  was served by apache on port 80.
> How do i redirect this to port 8080(TomCat)? can you help  me out?
> 
> Thanks,
> kamaleshwaran Sivalingam
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Trouble running servlets using TomCat4.1.18

2004-07-08 Thread Kamaleshwaran Sivalingam
Hi,
I have trouble running servlets using tomcat4.1.18 in Redhat Linux. I have 
Apache 1.3.20 installed  which is listening on port 80. The TomCat  server is 
listening on  port 8080. The Apache server is used for serving php. so when i 
entered "http://localhost"; on the mozilla  browser, i get the index.php page.  

When i entered "http://localhost:8080"; i get the index.html page which is under 
the tomcat directory. When i click on a button on my index page i must get a 
servlet  which should be executed by the tomcat. But  I get the following error 
on my browser.

Not Found
The requested URL /examples/servlet/PeatPlot was not found on this server.


Apache/1.3.20 Server at _default_ Port 80


So it  was served by apache on port 80.
How do i redirect this to port 8080(TomCat)? can you help  me out?

Thanks,
kamaleshwaran Sivalingam

Help: running servlets on IIS

2003-08-14 Thread Raghusimha Sudhakara
Hello, I had a very simple question that I have been struggling with and
any help on which I would greatly appreciate. I am trying to run
servlets on IIS using tomcat below IIS. I have an external *.properties
file that contains all the initial arguments for my servlet. Can anybody
tell me how I can get this properties file loaded every time the servlet
is invoked by the browser.

I tried giving the properties name and file location in the web.xml file
in the init param section but I still get an error message in the
browser saying it did not find the file. I have tried both
C:\jakarta-tomcat and, the partial \WEB-INF\ as the param value.
I heard an other option is to extend init and load the file. Details
regarding any of this will be greatly appreciated. I am new to most of
this stuff Please help!!!

Thanks.

Raghu



Re: running servlets that invoke DLLs (Native Methods)

2002-09-25 Thread Zahid Rahman


If you are  getting an error  similar to the one below.
java.lang.UnsatisfiedLinkError: no hello in shared library path
  at java.lang.Runtime.loadLibrary(Runtime.java)
  at java.lang.System.loadLibrary(System.java)
  at
  at java.lang.Thread.init(Thread.java)

Then try this page.
http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step6.html

- Original Message -
From: "Mark Hansen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 11:53 PM
Subject: running servlets that invoke DLLs (Native Methods)


> I have a servlet that calls a Native Method (stored in a Windows DLL).
> Tomcat can't seem to find the DLL even though it is on the system path
(PATH
> environment variable).
>
> Does anyone know how Tomcat finds Native Methods that are called by
> servlets?
>
> Thanks,
>
> Mark
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




running servlets that invoke DLLs (Native Methods)

2002-09-25 Thread Mark Hansen

I have a servlet that calls a Native Method (stored in a Windows DLL).
Tomcat can't seem to find the DLL even though it is on the system path (PATH
environment variable).

Does anyone know how Tomcat finds Native Methods that are called by
servlets?

Thanks,

Mark


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problem Running Servlets

2002-04-02 Thread Jason Johnston

Sorry, the structure I meant was 

/core/WEB-INF/classes/test/HelloWWW



Re: Problem Running Servlets

2002-04-02 Thread Jason Johnston

Try running your servlet from the address:

http://localhost:5001/core/servlet/HelloWWW


I ran into this problem and found several things that I changed to get it to work.  

1.  I moved it into a test directory and made the servlet part of a test package
  i.e.  package test;

I could not get the servlet to run from (in your case) /webapps/core/HelloWWW.  I had 
to do what I mentioned in 1.  As I gather this has to do with servlet mapping.  I 
ended up with a structure more like /webapps/core/test/HelloWWW

2. I deleted my web.xml file and let tomcat use the defaults.


I have gotten many of my servlets to work this way however, I'm still having trouble 
with tomcat finding my custom web.xml files.  I constantly get the error in the log 
that the web.xml file is missing for my webapp when it certainly isn't.  I've found 
other people with this problem but no solutions.  Apparently there is also a bug under 
2000 with root context and web.xml, but if you're experiencing that tomcat really 
shouldn't work at all.

Hope this helps, if anyone finds a solution to the missing web.xml problem please let 
me know.



Problem Running Servlets

2002-04-02 Thread Smalley, Howard

Hi All

Perhaps someone can help me with this,

I'm trying to get a very simple servlet to run, I'm using Tomcat 4.0.3 on
Windows 2000. I've set up my application in the webapps directory, then
added my servlet name to the web.xml in this directory.

Tomcat starts up ok, but when I try to run the servlet using the path to the
servlet,
eg, http://localhost:5001/Core/HelloWWW I get an HTTP status 404 error,
requested resource (/HelloWWW) is not available.

Interestingly if I try and run this servlet by adding,
Execute 

to the examples html page, I'm then asked if I would like to download the
file?

I'm sure this is a simple configuration problem.

Any help would be greatly appreciated.

Thanks
Howard


This e-mail is from Advantica Technologies Limited and is intended only for
the addressee named above. As this e-mail may contain confidential or
privileged information, if you are not the named addressee or the person
responsible for delivering the message to the named addressee, please advise
the sender by return e-mail. The contents should not be disclosed to any
other person nor copies taken.
Advantica Technologies Limited is a Lattice Group company, registered in
England & Wales
No. 3294136 Registered Office 130 Jermyn Street, London SW1Y 4UR 
http://www.advanticatech.com 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: problem in running servlets

2002-02-12 Thread tarunjava

i hope by classpath u mean u have put the class file in the directory /My
Application/WEB-NF/lasses/ folder . If it is anywhere else it wont work ~!
tarun
- Original Message -
From: "Deep Singh Bhau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 5:23 PM
Subject: problem in running servlets


Hi


I have put the Servlet class(DeepServlet.class) in a folder which is
there in my classpath. And I have set the following in web.xml(it is
within the folder WEB-INF UNDER MY APPLICATION).





deep
com.servlet.DeepServlet



/deep
deep





BUT IM OPENING IT IN BROWSER

http://localhost:8080/deep/deep

ITS GIVING PAGE NOT FOUND.

Please comment

Regards,
Deep



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




problem in running servlets

2002-02-12 Thread Deep Singh Bhau

Hi 
 
 
I have put the Servlet class(DeepServlet.class) in a folder which is
there in my classpath. And I have set the following in web.xml(it is
within the folder WEB-INF UNDER MY APPLICATION).
 

 
 

deep
com.servlet.DeepServlet

 

/deep
deep

 


 
BUT IM OPENING IT IN BROWSER
 
http://localhost:8080/deep/deep
 
ITS GIVING PAGE NOT FOUND.
 
Please comment
 
Regards,
Deep 



Problems running servlets on OSX

2002-02-02 Thread Michael Dizon

I am having problems running accessing servlets on Tomcat. JSP files are 
fine, but when trying to access the servlets I get a 404. Everything 
seems okay in the catalina.out log file.
Here is what is outputted in the localhost_examples_log:

2002-02-02 15:00:33 WebappLoader[/examples]: Deploying class 
repositories to work directory /usr/local/jakarta-
tomcat-4.0.1/work/localhost/examples
2002-02-02 15:00:33 WebappLoader[/examples]: Reloading checks are 
enabled for this Context
2002-02-02 15:00:33 StandardManager[/examples]: Seeding random number 
generator class java.security.SecureRandom
2002-02-02 15:00:33 StandardManager[/examples]: Seeding of random number 
generator has been completed
2002-02-02 15:00:35 ContextConfig[/examples]: Added certificates -> 
request attribute Valve
2002-02-02 15:00:35 ContextConfig[/examples]: Configured an 
authenticator for method FORM
2002-02-02 15:00:35 ContextListener: contextInitialized()
2002-02-02 15:00:35 SessionListener: contextInitialized()
2002-02-02 15:00:35 StandardContext[/examples]: Exception starting 
filter Set Character Encoding
java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1307)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1156)
 at org.apache.catalina.core.ApplicationFilterConfig.getFilter
(ApplicationFilterConfig.java:252)
 at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef
(ApplicationFilterConfig.java:314)
 at org.apache.catalina.core.ApplicationFilterConfig.
(ApplicationFilterConfig.java:120)
 at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:
3065)
 at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3371)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
 at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
 at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at 
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-02-02 15:00:35 StandardContext[/examples]: Context startup failed 
due to previous errors
2002-02-02 15:00:35 SessionListener: contextDestroyed()
2002-02-02 15:00:35 ContextListener: contextDestroyed()

Mike


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Running Servlets on Tomcat4.0

2001-11-12 Thread Steve Vu

Here's a snippet from the sample web.xml file from the
Tomcat docs.  At the bare minimum, you just need to
define the servlet name, the class associated with the
servlet, then map the servlet to a URL pattern:




  controller
  
This servlet plays the "controller" role in
the MVC architecture
used in this application.  It is generally
mapped to the ".do"
filename extension with a 
element, and all form
submits in the app will be submitted to a
request URI like
"saveCustomer.do", which will therefore be
mapped to this servlet.

The initialization parameter namess for this
servlet are the
"servlet path" that will be received by this
servlet (after the
filename extension is removed).  The
corresponding value is the
name of the action class that will be used to
process this request.
  
 
com.mycompany.mypackage.ControllerServlet
  
listOrders
   
com.mycompany.myactions.ListOrdersAction
  
  
saveCustomer
   
com.mycompany.myactions.SaveCustomerAction
  
  
  5



  graph
  
This servlet produces GIF images that are
dynamically generated
graphs, based on the input parameters included
on the request.
It is generally mapped to a specific request
URI like "/graph".
  






  controller
  *.do



  graph
  /graph


--- LIM TIENAIK <[EMAIL PROTECTED]> wrote:
> Can anyone give me some guidelines  on how to run
> the servlets on tomcat. I 
> just can't figure out how the web.xml works.
> 
>
_
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Running Servlets on Tomcat4.0

2001-11-12 Thread Steve Guo

I have been running servlets without modifying the
web.xml file on win nt.

--- LIM TIENAIK <[EMAIL PROTECTED]> wrote:
> Can anyone give me some guidelines  on how to run
> the servlets on tomcat. I 
> just can't figure out how the web.xml works.
> 
>
_
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
> 
> 
> --
> To unsubscribe:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands:
> <mailto:[EMAIL PROTECTED]>
> Troubles with the list:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Running Servlets on Tomcat4.0

2001-11-12 Thread LIM TIENAIK

Can anyone give me some guidelines  on how to run the servlets on tomcat. I 
just can't figure out how the web.xml works.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Running servlets on tomcat 3.2.1 with IIS 5.0

2001-10-18 Thread Boris Maretic

Hi

Please can anyone help me about this problem.

I have just installed TOMCAT 3.2.1 (standalone) on WIN200 and it works.
I have setup tomcat as a JSP engine for IIS. 
But now I would like to make tomcat as a SERVLET engine for IIS.

System:
WIN 2000
IIS 5.0
TOMCAT 3.2.1
C:\INETPUB\WWWROOT\MYAPP\ is place where application files are situated 

A part of Servlet.xml file which I added is this:
-
 

--

I have used automatically generated file uriworkermap.properties-auto.
The part of that file is:
-
#
# Default worker to be used through our mappings
#
default.worker=ajp12

#
# Root context mounts for Tomcat
#
/servlet/*=$(default.worker)
/*.jsp=$(default.worker)
---

JSP files are executed by tomcat  correctly but servlet not.Why?
How to run servlet from IIS?



Thanks in advance!

Boris
Ecsat-Split
Croatia








Re: Running servlets in tomcat

2001-07-30 Thread Richard Draucker

The sub-directory in your url is controlled by the mapping in your server.xml 
file under the tomcat/conf directory.  Look in server.xml, near the bottom.  
You must have a mapping (servlet context) setup for satheonline or Tomcat 
won't be able to find the servlet. 
If you have no mappings setup, i.e. you're using the default, just get rid of 
the satheonline in your url and it should find the servlet just fine. 
Also, Tomcat comes with a "test" context that contains their 
HelloWorldExample.  If that is the example you're trying to run, then just 
replace satheonline part of the url with "test"



On Monday 30 July 2001 03:31 am, you wrote:
> hi
> I m using tomcat 3.1 but I am unable to run servlets in tomcat
>
> Is there any configuration problem.
>
> I have added the following line in my /tomcat/binary/conf/server.xml file
> and created a webapp "satheonline " under /tomcat/binary/webapps/
>
>  reloadable="true" >
> 
>
> Then I have created the following directory structure under sathonline:
>
> satheonline(contains all html files )--Meta-inf
>  --web-infclasses (contains
> servlet class files)
>
> Besides the web.xml file in web-inf contains the following
>
>  
> 
>helloworldexample
> 
> 
> HelloWorldExample
> 
> 
>
> The server starts fine. But when I type
> http://localhost:8080/satheonline/servlet/HelloWorldExample it gives a 404
> error
>
> what is missing ?
>
> thanks
>
> amit sathe

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




Running servlets in tomcat

2001-07-30 Thread AN Sathe

hi
I m using tomcat 3.1 but I am unable to run servlets in tomcat

Is there any configuration problem.

I have added the following line in my /tomcat/binary/conf/server.xml file
and created a webapp "satheonline " under /tomcat/binary/webapps/




Then I have created the following directory structure under sathonline:

satheonline(contains all html files )--Meta-inf
 --web-infclasses (contains
servlet class files)

Besides the web.xml file in web-inf contains the following

 

   helloworldexample


HelloWorldExample



The server starts fine. But when I type
http://localhost:8080/satheonline/servlet/HelloWorldExample it gives a 404
error

what is missing ?

thanks

amit sathe




Re: Problem running servlets on Apache/Tomcat

2001-07-09 Thread Priya Gupta

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/



Re: Problem running servlets on Apache/Tomcat

2001-07-07 Thread Vinay Menon

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/




Re: Problem running servlets on Apache/Tomcat

2001-07-06 Thread Boris Niyazov

If you use packages as jar files you should place them ether in 
WEB-INF/classes/lib (for a particular webapp) or $TOMCAT_HOME/lib. The latter 
will assure that all your webapps will have access to the classes in the jar.

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED]  * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



>
>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/




Problem running servlets on Apache/Tomcat

2001-07-06 Thread Priya Gupta

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/



Problem running servlets on Apache using JNI

2001-06-04 Thread Brenda Mijares

I found the following message, yet no reply ... I am having the same
problem except I'm running on Linux..
Does anyone know the solution, to make a basic call to a native method
from a class called from
a servlet??? Do you really need to change the workers.properties file...

Appreciate any help.

thanks,

Brenda

*
From: "Michael Cohen (ETL)"
 Subject:  Tomcat + JNI
 Date:  Fri, 17 Nov 2000 16:58:51 +0100

 Hi,

 I have just installed Apache1.3.14 + modssl + tomcat 3.2b5 on
 Solaris 2.6
 and am trying to call a native method from my servlet (this worked
 fine
 under JavaWebServer2.0).

 The shared library is definitely being loaded (ie no exception is
 thrown when I tried
 to load it separately, the lib is on the LD_LIBRARY_PATH etc) but
 "UnsatisfiedLinkError"
 is still being thrown indicating the implementation of  the native
 method is not
 found.

 I havent done anything special to tomcat for JNI, I was a bit
 baffled by the purpose
 jni_server.xml and jni_workers.properties files! I only need to call
 a C program from
 within a class called by the servlet, don't need to call java
 methods from the native
 code.

 Has anyone come across anything like this?

 Many thanks,

 Mike.

--
Brenda Mijares
Interact Incoporated
email:[EMAIL PROTECTED]
phone:512-502-9969 ext. 120





running servlets on IIS

2001-05-01 Thread Robin Imrie

Hi,

I am running tomcat 3.2 and IIS4 on NT Server 4.

I am using IIS to deliver asp pages and want to use tomcat to run my
servlets. I have set-up tomcat to run in process. My first servlet is used
to process a form using the Post method, when I press the submit button I
get the following error back:

HTTP Error 405
405 Method Not Allowed

The method specified in the Request Line is not allowed for the resource
identified by the request. Please ensure that you have the proper MIME type
set up for the resource you are requesting.

What is the best way to configure Tomcat and IIS so that I can run servlets?

When I run my servlets should I use a full URL path or should I be able to
use a relative path.

thanks

Robin

---
Robin Imrie
Software Engineer
Email: [EMAIL PROTECTED]
---





Tradeoffs: running servlets + EJB in same VM or different VM?

2001-04-02 Thread David M. Karr

In a J2EE scenario, is it reasonable to consider both the possibility of
running the servlet container and the EJB container in the same VM, and running
them in different VMs?  I would guess the former would give a small plus to
performance, whereas the latter would be a small plus for scalability.

-- 
===
David M. Karr  ; Best Consulting
[EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)




Running servlets in a stand alone

2001-03-16 Thread Jeff Finley
Ok, this is the second machine!  I FINALLY go servlets to run on a win98 machine with tomcat 4.01 beta now I'm trying to do the same thing, tomcat 4.01 beta standalone and I cannot get the stupid HelloWorld servlet to output to the browser!  It appears to run, no log messages saying exceptions, no browser exception just a blank page!  What is up with this?  I'm using the url of http://localhost:8080/MyTest/servlet/srv.HelloWorld.  My web.xml file looks like this:       PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"     "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">      Joe Testing     This is a simple web application with a source code organization based on the recommendations of the Application Developer's Guide.       HelloServlet   srv.HelloWorld      HelloServlet   /hello     I'm using ANT to do the builds, using an index.htm page to link to the HelloWorld servlet and I get nothing!  Please oh pleas help!  This is making absolutely no sense.Jeff FinleyNo Technologies Inc.Just Doing it because, NY 000501Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: [NEWBIE] Running Servlets on Tomcat

2001-02-19 Thread Andrew Robson

On Sat, 17 Feb 2001, you wrote:
> 
> hi everybody
> 
> i have just downloaded and installed Tomcat and am a complete 
> newbie at it...the installation gave me a few problems like "environment
> out of space " and a few other regarding the class path etc...but i have 
> manged to get it right now
> 
> the problem is that I dont know how to run my servlets !!!
> I am running Tomcat and Apche on my Windows 2000 machine...
> 
> the path where i am storing my .class files is:
> 
> c:\tomcat\webapps\user\web-inf\classes\hello.class
> 
> i have been told, that one need to add  web.xml file to the 
> classes directory ??
> 
> can some one please tell me :
> 
> 1. Where to store the .class files ?
   You are putting them in the right place
  
> 2. what link to give to the browser ?

If you are running tomcat standalone and have not changed the 
default port settings then
http://localhost:8080/user/servlet/hello
If you have integrated Apache and tomcat then 
http://localhost/user/servlet/hello

> 3. in what way should i configure the web.xml file ??
> ( there is already a web.xml file in tomcat\conf\..)

 There are two types of web.xml file. The default which is global
 to tomcat i.e. the one in tomcat\conf. I believe from 3.2 onwards 
 this is no longer read by tomcat so you can forget about it. 
 You can also and should define a web.xml file for each web app.
 This should be deployed in the WEB-INF dir of your app (not the 
 classes dir)
 Take a look at the web.xml file in the examples directory. 
 Also, chapters 9,10 and 14 of the Servlet API spec is the best place 
 to learn how to configure web.xml. It is available at
 http://java.sun.com/products/servlet/

 Hope this helps
 Andrew
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: [NEWBIE] Running Servlets on Tomcat

2001-02-17 Thread Ashant Chalasani

Ritin,

The complete instructions to configure your Tomcat environment can be found 
in the /docs directory under your tomcat root.  Additionally the servlet 
specs also are helpful in describing the web.xml file etc., you'll find that 
@ http://java.sun.com/aboutJava/communityprocess/review/jsr053/index.html

Quickly...

>c:\tomcat\webapps\user\web-inf\classes\hello.class
>1. Where to store the .class files ?

This is the right folder to store your .class files.  Don't forget to change 
the context path in server.xml file (in this case to point to /user 
directory)

>2. what link to give to the browser ?

The browser needs to call something like this...

http://localhost:8080//servlet/
Note that this path holds good only for invoking .class files, not regular 
htmls or jsps etc.

>3. in what way should i configure the web.xml file ??
> ( there is already a web.xml file in tomcat\conf\..)

The web.xml is the Deployment Descriptor file for your web-app, you can find 
all config. details in the Servlet Spec.

Cheers

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




[NEWBIE] Running Servlets on Tomcat

2001-02-17 Thread Ritin



hi everybody
 
i have just downloaded and installed Tomcat and am 
a complete 
newbie at it...the installation gave me a few 
problems like "environment
out of space " and a few other regarding the class 
path etc...but i have 
manged to get it right now
 
the problem is that I dont know how to run my 
servlets !!!
I am running Tomcat and Apche on my Windows 2000 
machine...
 
the path where i am storing my .class files 
is:
 
c:\tomcat\webapps\user\web-inf\classes\hello.class
 
i have been told, that one need to add  
web.xml file to the 
classes directory ??
 
can some one please tell me :
 
1. Where to store the .class files ?
2. what link to give to the browser ?
3. in what way should i configure the web.xml file 
??
    ( there is already a web.xml 
file in tomcat\conf\..)
 
Regards, 
 
Ritin


running servlets

2001-02-16 Thread Winifred Sanchez

I copied some sample servlets from the examples context into another context I made to 
see if they would run. But they won't run. I have placed the servlets inside the 
WEB-INF/classes directory just like in the examples context and also made a web.xml 
file under WEB-INF with the following lines:



 
   

SessionExample
 
 
SessionExample
  
   
   
 
SessionExample
 
 
/SessionExample
 
   



I'm trying to access the servlet with:
http://hostname/context/servlet/SessionExample

but I keep on getting

Error: 404

Location: /context/servlet/SessionExample


How do I make the servlet work?

I am using Tomcat 3.1 with Apache handling static pages.

Thanks.



Get your small business started at Lycos Small Business at 
http://www.lycos.com/business/mail.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




running servlets

2001-02-16 Thread Winifred Sanchez

I copied some sample servlets from the examples context into another context I made to 
see if they would run. But they won't run. I have placed the servlets inside the 
WEB-INF/classes directory just like in the examples context and also made a web.xml 
file under WEB-INF with the following lines:



 
   

SessionExample
 
 
SessionExample
  
   
   
 
SessionExample
 
 
/SessionExample
 
   



I'm trying to access the servlet with:
http://hostname/context/servlet/SessionExample

but I keep on getting

Error: 404

Location: /context/servlet/SessionExample


I am using Tomcat 3.1 with Apache handling static pages.

Thanks.



Get your small business started at Lycos Small Business at 
http://www.lycos.com/business/mail.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Running Servlets from any directory

2001-01-15 Thread Derek Mc Connon

I want to set up tomcat to run from any directory, not just from the
examples path.
I wonder would anyone be able to help me with this

thanks

Derek


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: difficulty in running servlets

2000-11-14 Thread dynacomconsulting

Hi,
1.
Pl add servlet mapping tag.Like below
- 
  hi 
  /hi 
  
2.
Check out for the server root and port number .
3.
Check for the classpath of hi.class

Good luck,
Ravi
Dynacom


--- Rasika <[EMAIL PROTECTED]> wrote:
> Hello,
> I have installed TOMCAT with Apache. I followed your
> user guide and then tomcat faqs to install tomcat.
> Now I am able to run .jsp files using both tomcat as
> well as Apache. I can also run sample servlet
> provided alongwith examples. But I cannot run my own
> servlet.
> I have stored itin webapps/root/web-inf/classes
> directory. 
> I still don't understand which files need to be
> configured in order to run my servlets?
>  
> I have added following block to web.xml file
> 
>   hi
>   hi
> 
>  
> where "hi" is the name of my servlet file. But when
> I try to run it through browser giving command
> http://localhost:8040//hi where 8040 is apache
> port(which I have changed ) it gives me 404 error.
>  
> Can you please help me in configuring files so as to
> run my own servlets?
>  
> Thanks,
> Rasikaj
> 


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/



RE: difficulty in running servlets

2000-11-13 Thread Jovie



 try adding 
this
 
    
hi    
/hi    

 
 to your 
web.xml

  -Original Message-From: Rasika 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, November 14, 2000 5:06 
  PMTo: [EMAIL PROTECTED]Subject: difficulty 
  in running servlets
  Hello,I have installed TOMCAT with Apache. I 
  followed your user guide and then tomcat faqs to install tomcat.Now I am 
  able to run .jsp files using both tomcat as well as Apache. I can also run 
  sample servlet provided alongwith examples. But I cannot run my own 
  servlet.I have stored itin webapps/root/web-inf/classes directory. I 
  still don't understand which files need to be configured in order to run my 
  servlets? I have added following block to web.xml 
  file  
  hi  
  hi    
   where "hi" is the name of my servlet file. But 
  when I try to run it through browser giving command http://localhost:8040//hi where 8040 is 
  apache port(which I have changed ) it gives me 404 error. Can you 
  please help me in configuring files so as to run my own 
  servlets? Thanks,Rasikaj


difficulty in running servlets

2000-11-13 Thread Rasika




Hello,I have installed TOMCAT with Apache. I 
followed your user guide and then tomcat faqs to install tomcat.Now I am 
able to run .jsp files using both tomcat as well as Apache. I can also run 
sample servlet provided alongwith examples. But I cannot run my own 
servlet.I have stored itin webapps/root/web-inf/classes directory. I 
still don't understand which files need to be configured in order to run my 
servlets? I have added following block to web.xml 
file  
hi  
hi    
 where "hi" is the name of my servlet file. But 
when I try to run it through browser giving command http://localhost:8040//hi where 8040 is 
apache port(which I have changed ) it gives me 404 error. Can you 
please help me in configuring files so as to run my own 
servlets? Thanks,Rasikaj


difficulty in running servlets

2000-11-13 Thread Rasika



Hello,I have installed TOMCAT with Apache. I 
followed your user guide and then tomcat faqs to install tomcat.Now I am 
able to run .jsp files using both tomcat as well as Apache. I can also run 
sample servlet provided alongwith examples. But I cannot run my own 
servlet.I have stored itin webapps/root/web-inf/classes directory. I 
still don't understand which files need to be configured in order to run my 
servlets? I have added following block to web.xml 
file  
hi  
hi    
 where "hi" is the name of my servlet file. But 
when I try to run it through browser giving command http://localhost:8040//hi where 8040 is 
apache port(which I have changed ) it gives me 404 error. Can you 
please help me in configuring files so as to run my own 
servlets? Thanks,Rasikaj