Tomcat/IIS intergration - once again ;-(

2002-11-29 Thread Marcel Stoer
Hi all

Tomcat is running fine and so is IIS. The integration seemed to be
successful for all examples are running through
http://localhost/examples/an_so_on on the IIS port. HOWEVER, the web
apps I added myself refuse to show up - they only work if called on the
Tomcat port directly.

Concrete:
There's a web app called MyOwnTest_Java with jsp files in
$CATALINA_HOME\webapps\MyOwnTest_Java\Public. As you can see the uri map
has been added to the properties file. But once a request is made for
localhost/MyOwnTest_Java/Public/index.jsp the match fails.

Where is the problem here???

Cheers
Marcel

Isapi.log
=
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (806)]: Using registry.
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (808)]: Using log file
C:\Program Files\Apache Group\Tomcat4.0\logs\iis_redirect.log.
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (809)]: Using log level
0.
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (810)]: Using extension
uri /jakarta/isapi_redirect.dll.
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (811)]: Using worker file
C:\Program Files\Apache Group\Tomcat4.0\conf\ntiis\workers.properties.
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (812)]: Using worker
mount file C:\Program Files\Apache
Group\Tomcat4.0\conf\ntiis\uriworkermap.properties.
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (159)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (199)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (217)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (273)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/MyOwnTask_Java/servlet/=ajp13 was added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (262)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix rule
/MyOwnTask_Java/.jsp=ajp13 was added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (262)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix rule
/examples/jsp/.jsp=ajp13 was added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (273)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/examples/servlet/=ajp13 was added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (273)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /manager/=ajp13 was
added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (273)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /webdav/=ajp13 was
added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (302)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 6 rules
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (324)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (82)]: Into wc_open
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (207)]: Into build_worker_map,
creating 2 workers
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (213)]: build_worker_map,
creating worker ajp12
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (152)]: wc_create_worker, about
to create instance ajp12 of ajp12
[Fri Nov 29 08:39:51 2002]  [jk_ajp12_worker.c (264)]: Into
ajp12_worker_factory
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (161)]: wc_create_worker, about
to validate and init ajp12
[Fri Nov 29 08:39:51 2002]  [jk_ajp12_worker.c (182)]: Into
jk_worker_t::validate
[Fri Nov 29 08:39:51 2002]  [jk_ajp12_worker.c (194)]: In
jk_worker_t::validate for worker ajp12 contact is localhost:8007
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (223)]: build_worker_map,
removing old ajp12 worker 
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (213)]: build_worker_map,
creating worker ajp13
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (152)]: wc_create_worker, about
to create instance ajp13 of ajp13
[Fri Nov 29 08:39:51 2002]  [jk_ajp13_worker.c (922)]: Into
ajp13_worker_factory
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (161)]: wc_create_worker, about
to validate and init ajp13
[Fri Nov 29 08:39:51 2002]  [jk_ajp13_worker.c (443)]: Into
jk_worker_t::validate
[Fri Nov 29 08:39:51 2002]  [jk_ajp13_worker.c (456)]: In
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Fri Nov 29 08:39:51 2002]  [jk_ajp13_worker.c (482)]: Into
jk_worker_t::init
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (223)]: build_worker_map,
removing old ajp13 worker 
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (235)]: build_worker_map, done
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (102)]: wc_open, done[Fri Nov
29 08:41:44 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc started
[Fri Nov 29 08:41:44 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
Virtual Host redirection of 

[Fwd: Mozilla 1.x/N6+ causes memory leak on Tomcat 3.2.4]

2002-11-29 Thread Christopher Mark Balz

--
. . . / This Cabinet is formd of Gold / And Pearl  Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames  other Hills / And another pleasant Surrey Bower
. . .
- from The Crystal Cabinet, a poem by William Blake.

---BeginMessage---
In side-by-side tests, IE 5.5 causes no such leak, but Moz1.x/N6+ cause 
Tomcat to simply start allocating memory until the heap size limit is 
exceeded by about 20MB, resulting in an eventual shutdown of the JVM.

I'm pretty sure it's not my code since the leak starts immediately on 
secure (ssl) session log-in to a static page (no servlet action 
whatsoever).  If a Moz/N6+ browser is already logged in however, after 
restarting the Tomcat server it takes a request from Moz1.x/N6 to start 
the big leak that leads to an eventual JVM shutdown.

I thought that Netscape existed only to torture client-side developers; 
it seems they've got something going on the server-side now!  Of course, 
it would be Tomcat's bug, but it's funny how many bugs always surround 
Netscape.

Since this bug crashes my server, I would very much appreciate help with 
it.  I've seen other postings on the web indicating that this is a 
problem but have not seen anyone address it in a response.

 - CB

--
. . . / This Cabinet is formd of Gold / And Pearl  Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames  other Hills / And another pleasant Surrey Bower
. . .
- from The Crystal Cabinet, a poem by William Blake.


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


Mozilla crashes Tomcat.

2002-11-29 Thread Christopher Mark Balz
Mozilla 1.x/N6+ causes a devastating memory leak on Tomcat 3.2.4.  In 
side-by-side tests, IE 5.5 causes no such leak, but Moz1.x/N6+ cause 
Tomcat to simply start allocating memory until the heap size limit is 
exceeded by about 20MB, resulting in an eventual shutdown of the JVM.

I'm pretty sure it's not my code since the leak starts immediately on 
secure (ssl) session log-in to a static page (no servlet action 
whatsoever).  If a Moz/N6+ browser is already logged in however, after 
restarting the Tomcat server it takes a request from Moz1.x/N6 to start 
the big leak that leads to an eventual JVM shutdown.

I thought that Netscape existed only to torture client-side developers; 
it seems they've got something going on the server-side now!  Of course, 
it would be Tomcat's bug, but it's funny how many bugs always surround 
Netscape.

Since this bug crashes my server, I would very much appreciate help with 
it.  I've seen other postings on the web indicating that this is a 
problem but have not seen anyone address it in a response.

 - CB

--
. . . / This Cabinet is formd of Gold / And Pearl  Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames  other Hills / And another pleasant Surrey Bower
. . .
- from The Crystal Cabinet, a poem by William Blake.


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



Re: tomcat 4 and javax.sevlet.*

2002-11-29 Thread Andreas Probst
On 28 Nov 2002 at 17:11, David Brown wrote:

 Tushar Kulkarni writes: 
 
  Hi,
  I have installed Tomcat4.1. I want to change the directory
  webapps\examples\JSP to say C:\myExamples. So that I can store
  my jsp files in to the myexamples directory and access it
  through the browser with the address ,
  http://localhost:8080/myexamples instead
  http://localhost:8080/examples. Please tell me how to I
  accomplish this task. Thanks 
  
   
 
 
 Hello Tushar, no need to change directories and should not be
 necessary if u create ur application context: /myexamples the
 same way /examples was created. ur installed tc came w the
 application context: /examples ready to go right? but, b4 it
 got tarballed the tc magicians created a .war/.jar file combo
 that gets expanded to: $TOMCAT_HOME/webapps/examples and under
 the: /examples context u will find:
 $TOMCAT_HOME/webapps/examples/WEB-INF/web.xml a very important
 file that is created to define and describe to the tc server how
 to unpack the .war/.jar that was created for the /examples
 application. And, under:
 $TOMCAT_HOME/webapps/examples/WEB-INF/classes u should find a
 myriad of example applications including:
 $TOMCAT_HOME/webapps/examples/WEB-INF/classes/examples (and many
 others). in fact all the examples and demos displayed at:
 http://localhost:8080  r expanded and stored her. allow me to
 recommend: discover how this is done by studying ant and the
 build.xml that escorts the tc server to great heights. if u

Application Developer's Guide with sample build script:
http://jakarta.apache.org/tomcat/tomcat-4.0-
doc/appdev/index.html
or
localPathToTomcat/webapps/tomcat-docs/appdev/index.html

Classloader-Howto:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-
howto.html
or
localPathToTomcat/webapps/tomcat-docs/class-loader-howto.html

 accomplish this u should have when comleted the following:
 $TOMCAT_HOME/webapps/myexamples when the tc server expands ur
 .war file. And, u should be able to access the contents w/ the
 following url: http://localhost:8080/myexamples. hope this helps,
 david. 
 


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




RE: Mozilla crashes Tomcat.

2002-11-29 Thread Ralph Einfeldt
Maybe you should provide the answer to following questions:

- Do you run tomcat stand alone ?
- If yes which JSSE do you use ?
- Which jvm do you use ?
- On which operating system ?

Maybe you should try to profile tomcat with a tool like 
OptimizeIt to see if it is tomcat or the underlying ssl 
implementation that has the leak.

BTW:

tc 3.2 is quite outdated.
Maybe you should upgrade to 3.3.* or 4.*.

 -Original Message-
 From: Christopher Mark Balz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 29, 2002 9:21 AM
 To: [EMAIL PROTECTED]
 Subject: Mozilla crashes Tomcat.
  
 I'm pretty sure it's not my code since the leak starts immediately on 
 secure (ssl) session log-in to a static page (no servlet action 
 whatsoever).  If a Moz/N6+ browser is already logged in 
 however, after restarting the Tomcat server it takes a request from 
 Moz1.x/N6 to start the big leak that leads to an eventual JVM shutdown.
 


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




Re: Host Context - Unpacking of WARs

2002-11-29 Thread RXZ JLo
On linux, for tomcat 4.0.6, even without a context in
server.xml, my classes got reloaded (ie., the webapp
restarted) - no reloadable=true in server.xml

Is this correct?



--- Kwok Peng Tuck [EMAIL PROTECTED] wrote:
 For the context of the webapp in the server.xml .
 
 
 RXZ JLo wrote:
 
 For the applications deployed through WAR files,
 where
 do I specify attributes like reloadable?
 
 thanks.
 rf
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 
 --
 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]
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




How can I activate a pool of threads using Ajp13 and Tomcat 4.x?

2002-11-29 Thread Luca Ventura
Hello everybody!

I have Tomcat 4.x integrated with IIS 5. I would like to activate a pool of
threads to serve all requests. I tried to add
in the server.xml the following lines:


Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler
value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
Parameter name=port value=8009/
Parameter name=max_threads value=30/
Parameter name=max_spare_threads value=10/
Parameter name=min_spare_threads value=5 /
/Connector

I want to use Ajp13 protocolol so I used Ajp13ConnectionHandler class
instead of Ajp12ConnectionHandler.
Anyway these settings don't work in Tomcat 4.x but only in Tomcat 3.x and
with Ajp12 protocol. Why?

How can I obtain the same effect in Tomcat 4.x? I would like to set in
Tomcat 4.x all the properties indicated above (max_threads,
max_spare_threads, etc)...

Thanks everybody in advance!

   Luca



How do I get the absolute path of a file in a directory above WEB-INFdirectory of my web application?

2002-11-29 Thread Peter Lee
I am using Tomcat for servlets. 
How  do I get the absolute path of a file in a directory above WEB-INF
directory of my 
web application?

Thanks


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




How to configure data transport constraint for a URL in Tomcat?

2002-11-29 Thread Peter Lee
I have this online form page that needs to be secure, so I do not want to send it in 
plain 
text. How do I apply data transport constraint to the URLused to generate the form in 
Tomcat?

Thanks

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




installing mod_jk2

2002-11-29 Thread Joshua
how do i install and set up mod_jk2, i am running
tomcat 4.1, and Apache 2.0.43

andrewjj20

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: mod_jk

2002-11-29 Thread José Moreira
hello how did u install the mod_jk.dll?

i copied it to the modules dir and added LoadModule jk_moduke
modules/mod_jk.dll ang got module not found

-Mensagem original-
De: Andrewjj20 [mailto:[EMAIL PROTECTED]]
Enviada: quinta-feira, 28 de Novembro de 2002 23:17
Para: tomcat
Assunto: RE:mod_jk


i am using tomcat 4.1, and apache 2.0.43, i am also useing the mod_jk.dll
found on the website

andrewjj20


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




RE: [ Tomcat as Webserver ]

2002-11-29 Thread Steve Beech
Can't you just run Tomcat as a standalone webserver?

-Original Message-
From: Osvâneo A. Ferreira [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 18:00
To: Tomcat Users List
Subject: Re: [ Tomcat as Webserver ]


You´re correct. Now I make a some test integrating Apache with Tomcat.
Thanks for help.

Osvâneo A. Ferreira


- Original Message -
From: Jerry Birchler [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 28, 2002 2:31 PM
Subject: RE: [ Tomcat as Webserver ]


 Yes, sort of. I think you are talking about integrating Apache with Tomcat
 through a listener and sharing html and images from Tomcat.

 For instance, I had integrated Apache with Tomcat using the Coyote
listener.
 I wanted to share /images and such between Tomcat and Apache as I have
both
 JSP and PHP web pages and wanted an easy way to share folders.

 Tomcat does not follow symlinks as web folders, but Apache can handle it.
 So, I put things like /images in my ROOT context and symlinked it for
 Apache. This  forces me to refer to common objects using slash instead of
 things like '../', but I can live with that. So, putting things in ROOT,
 symlinking for Apache, and using some aliases in httpd.conf has made my
 development environment seemless.

 I have run into some quirks with directory listing tomcat managed folders
 through SSL. Directory listing in production is turned off, anyway. SSL on
 JSP web pages and tomcat managed HTML work just fine.

 -Original Message-
 From: Osvâneo A. Ferreira [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 28, 2002 9:45 AM
 To: Tomcat Users List
 Subject: [ Tomcat as Webserver ]


 Hi,

 I´m using tomcat-4.1.2 and I would like know, it´s can used as WebServer.
 I configured a non-SSL legacy HTTP/1.1 connector on port 80.

 It´s possible ?

 [ Osvâneo ]


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

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




[repeat] IllegalStateException??? Please help!

2002-11-29 Thread Steve Beech
I've set up a SSL socket in Tomcat and everything appears to work okay. I
can connect to the port, install the cert and access the site.

However, when I access the HTTPS port with my browser and get the 'Security
Alert' prompt telling me about the certificate and asking me if I want to
continue, then I get the following message scrolling continually within the
Tomcat window.

2002-11-20 15:25:31 - Ctx(  ): IllegalStateException in: R( /) Current state
= F
LUSHED, new state = CODING
2002-11-20 15:25:31 - Ctx(  ): IllegalStateException in: R( /) Current state
= F
LUSHED, new state = CODING
2002-11-20 15:25:31 - Ctx(  ): IllegalStateException in: R( /) Current state
= F
LUSHED, new state = CODING

Can anybody tell me what this means and how I might prevent it from
happening?

Thanks

Steve


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




RE: thread comunicating with ServletContexts

2002-11-29 Thread Reynir Hübner
Hi, 

I was tired and obviously not thinking straigt as the error I was doing was calling 
thread.run but not thread.start...
And that was the reason for application lockup..
It works fine right now.
Thanx
-reynir

 -Original Message-
 From: Nathan Smith [mailto:[EMAIL PROTECTED]] 
 Sent: 28. nóvember 2002 22:30
 To: Tomcat Users List
 Subject: Re: thread comunicating with ServletContexts
 
 
 I have implemented Scheduler program that has a thread 
 monitoring a database table for any new tasks that need to be 
 run in the background. At the moment these tasks consist of 
 just servlets, but should probably work with a class that 
 extend a Struts Action.
 
 I created an HttpURLConnection from a URL object, which 
 contains the URI part that normally invokes a servlet. i.e. 
 /servlet/some.servlet.Servlet with the context name on the 
 front of course, and the server name, port, and scheme (HTTP) 
 from the ServletContext object.
 
 Once you are connected you can then fiddle around with 
 connection settings. Create an OutputStream to write to the 
 servlet and as InputStream to read from the servlet. I found 
 that I had to write to the servlet and then close the writer 
 and then open the input stream and close it in that order.
 
 Hope this helps,
 
 
 Nathan.
 
 - Original Message -
 From: Reynir Hübner [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, November 29, 2002 10:19 AM
 Subject: thread comunicating with ServletContexts
 
 
 Hi,
 
 I have a slight problem
 
 I am starting up a thread when application starts with a 
 ServletContextListener implementation. The purpouse of the 
 thread is to monitor a directory that has few xml descriptor 
 files in it. Attributes from the XML files are parsed into 
 the ServletContext on startup of the ServletContext, and then 
 it's possible to trigger reload by executing a servlet, that 
 does the reload.
 
 Right now the initial load and the reload by servlet are 
 working, The thread is monitoring the directory every 10 
 seconds it checks if anything has been modified (works fine).
 
 The problem I am facing right now is to find a way to pass 
 the attributes read by the Thread (instanciated in a 
 listener) from the xml files,  into the ServletContext.
 
 One way of doing it might be to run a HTTPUrlConnect against 
 the servlet that can then reload the attributes from the xml 
 files, that might work, but then I will have to worrie about 
 some authentication, etc. That I dont want to have to think 
 about right now.
 
 I tried passing a ServletContext variable  to the 
 ServletContext to the Thread, but that seems to lock up the 
 webapplication, meaning the thread runs fine but nothing else.
 
 I'm tired and I think I must be not thinking straight, can 
 someone help me ?
 :)
 
 Thanx
 -reynir
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [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]




startup classes in tomcat 4.1.12

2002-11-29 Thread P Sasidhar
Hi,
 
Can any one tell me how to configure start up classes in
tomcat 4.1.12 server
 
 
sasi
 
 
 
 
 



Re: Apache Mod_jk.conf file.

2002-11-29 Thread mlh
Andoni wrote:

I have my .conf files working fine, I just have a question that is bugging
me.

I am told everywhere to put my mod_jk.conf file under the /tomcat/conf/
directory and then include it in the bottom of my httpd.conf file.  Is there
any real reason for this separation?  Can I just take all that is in this
file and paste it into the bottom of my httpd.conf file where the include
statement is?


No reason at all, in fact that's what I do.

In fact in some setups, mod_jk.conf CANNOT be in tomcat's conf dir, 
because tomcat could be on a separate machine.  Since mod_jk.conf is
properly an apache conf file, not a tomcat one, the correct place
imho is in apache's conf dir.

Matt




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



RE: startup classes in tomcat 4.1.12

2002-11-29 Thread Reynir Hübner
Sure, there are few possibilities.

One is to make a ServletContextListener, with this you can start up what ever class 
you like when the application starts.
Another one is to make servlet and have its load-on-startup parameter set in web.xml 

For example if I have a servletcontextListener called ContextAttributeListener I would 
define it like this in web.xml for my application.

listener
  listener-classcom.firm.listeners.ContextAttributeListener/listener-class
/listener 

This class can then do what ever you like.

Servlet would be defined like this : 

servlet
  servlet-namestartup_servlet/servlet-name
  servlet-classcom.something.project.startup_servlet/servlet-class
  init-param
param-namesomeconfigpath/param-name
param-value/WEB-INF/conf/something.properties/param-value
  /init-param
  load-on-startup1/load-on-startup
/servlet


And as the load-on-startup param is set to 1 it will be the first servlet to be loaded 
in the startup line.
Hope this helps
-reynir


 -Original Message-
 From: P Sasidhar [mailto:[EMAIL PROTECTED]] 
 Sent: 29. nóvember 2002 11:05
 To: [EMAIL PROTECTED]
 Subject: startup classes in tomcat 4.1.12
 
 
 Hi,
  
 Can any one tell me how to configure start up 
 classes in tomcat 4.1.12 server
  
  
 sasi
  
  
  
  
  
 

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




Re: Programmatic login

2002-11-29 Thread Rodrigo Ruiz
I think the same Bill implements with a Valve could be implemented with a
Filter with an HttpRequestWrapper for setting the principal. Am I right?

- Original Message -
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 17, 2002 8:53 AM
Subject: Re: Programmatic login


 The following is a bare-bones implemetation.  Posted under the standard
 Apache Licence.

 import java.io.*;
 import java.security.Principal;
 import javax.servlet.*;
 import javax.servlet.http.*;
 import org.apache.catalina.*;

 public class MyValve implements Valve {
 public MyValve() {}

 public void invoke(Request request, Response response, ValveContext
 context)
  throws IOException, ServletException {
  HttpSession session = ((HttpServletRequest)request.getRequest())
 .getSession(false);
  if(session != null) {
 Principal user =
 (Principal)session.getAttribute(my.login.principal);
 if(user != null) {
 ((HttpRequest)request).setUserPrincipal(user);
 }
  }
  context.invokeNext(request, response);
   }
 }


 Zsolt Koppany [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 it sounds very interesting. Could you provide some implementation details
 (source code)?

 Zsolt

 On Saturday 16 November 2002 08:26, Bill Barker wrote:
  setUserPrincipal





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




RE: How do I get the absolute path of a file in a directory above WEB-INFdirectory of my web application?

2002-11-29 Thread Reynir Hübner

Try this : 

String filepath = ServletContext.getRealPath(/WEB-INF/somedir);

Hope it helps
-reynir


 -Original Message-
 From: Peter Lee [mailto:[EMAIL PROTECTED]] 
 Sent: 29. nóvember 2002 09:18
 To: [EMAIL PROTECTED]
 Subject: How do I get the absolute path of a file in a 
 directory above WEB-INFdirectory of my web application?
 
 
 I am using Tomcat for servlets. 
 How  do I get the absolute path of a file in a directory 
 above WEB-INF directory of my 
 web application?
 
 Thanks
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [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]




Re: startup classes in tomcat 4.1.12

2002-11-29 Thread David Brown
P Sasidhar writes: 

Hi,
 
Can any one tell me how to configure start up classes in
tomcat 4.1.12 server
 
 
sasi
 
 
 
 
 
Hello sasi, what r u trying to do? need more info: is tc running? if tc is 
running, what happened? what url did u invoke? have u checked ur logs? what 
more can u find out to report? david. 


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



RE: startup classes in tomcat 4.1.12

2002-11-29 Thread P Sasidhar
Hi David,

Thanks for your help.it got solved.

sasi


-Original Message-
From: David Brown [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 29, 2002 4:17 PM
To: [EMAIL PROTECTED]
Subject: Re: startup classes in tomcat 4.1.12

P Sasidhar writes: 

 Hi,
  
 Can any one tell me how to configure start up classes in
 tomcat 4.1.12 server
  
  
 sasi
  
  
  
  
  
Hello sasi, what r u trying to do? need more info: is tc running? if tc
is 
running, what happened? what url did u invoke? have u checked ur logs?
what 
more can u find out to report? david. 


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




Re: How to configure data transport constraint for a URL in Tomcat?

2002-11-29 Thread David Brown
Peter Lee writes: 

I have this online form page that needs to be secure, so I do not want to send it in plain 
text. How do I apply data transport constraint to the URLused to generate the form in 
Tomcat? 

Thanks 

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



Hello, u have to use the tc ssl and security realm as provided in server.xml 
and ur whatever is to be protected application directory web.xml file. to 
get rolling u will want the memory realm in server.xml uncommented first. u 
will have to have a security key for the tomcat user home. after u get going 
if this secure page is in the public exposure u will want to go to one of 
the database security realms or at least PGP encrypt the tomcac-users.xml 
file and chmod 600 so non-root intruders don't get any passwords. hope this 
helps, david. 


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



Re: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2002-11-29 Thread David Brown
Peter Lee writes: 

I am using Tomcat for servlets. 
How  do I get the absolute path of a file in a directory above WEB-INF
directory of my 
web application? 

Thanks 


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



Hello, probably deprecated but probably still works: 
request.getRealPath(/). 


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



Re: Mozilla crashes Tomcat.

2002-11-29 Thread David Brown
Christopher Mark Balz writes: 

Mozilla 1.x/N6+ causes a devastating memory leak on Tomcat 3.2.4.  In 
side-by-side tests, IE 5.5 causes no such leak, but Moz1.x/N6+ cause 
Tomcat to simply start allocating memory until the heap size limit is 
exceeded by about 20MB, resulting in an eventual shutdown of the JVM. 

I'm pretty sure it's not my code since the leak starts immediately on 
secure (ssl) session log-in to a static page (no servlet action 
whatsoever).  If a Moz/N6+ browser is already logged in however, after 
restarting the Tomcat server it takes a request from Moz1.x/N6 to start 
the big leak that leads to an eventual JVM shutdown. 

I thought that Netscape existed only to torture client-side developers; it 
seems they've got something going on the server-side now!  Of course, it 
would be Tomcat's bug, but it's funny how many bugs always surround 
Netscape. 

Since this bug crashes my server, I would very much appreciate help with 
it.  I've seen other postings on the web indicating that this is a problem 
but have not seen anyone address it in a response. 

 - CB 

--
. . . / This Cabinet is formd of Gold / And Pearl  Crystal shining 
bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames  other Hills / And another pleasant Surrey Bower
. . .
- from The Crystal Cabinet, a poem by William Blake. 


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




Hello Christopher, can u upgrade tc? david. 

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



Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Patrick Kosiol
Hi,

I am using the Tomcat 4.0.4 as a standalone-server. Esspecially because 
JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a server-directory 
(package). The server-dir contains the Servlet-Class and the client-dir 
contains the client, of course. This client is a java.applet and does 
work fine (it is startet through out a html-page). But my problem is to 
connect to the servlet.
I have also tried to put the .war file into the %CATALINA_HOME%/webapps 
- folder and added the Lines
!-- TOMCAT Bfpl-Context -- 
Context path=/myApp docBase=myApp debug=0 reloadable=true / 
into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. But 
that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a java.frame 
(opened by the applet) to this servlet. What the adress of the servlet?

So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(

I hope anyone can help me. thx

Patrick



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



RES: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Tiago Ferraz Machado
Hi,

I don't know if it is it, but there is a directive called unpackWARs=true that I 
think you should add to your server.xml.

Could anyone confirm that ?

Thanks,

Tiago.

-Mensagem original-
De: Patrick Kosiol [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 29 de novembro de 2002 10:18
Para: Tomcat Users List
Assunto: Servlet and Applet working in Tomcat 4.0.4 standalone


Hi,

I am using the Tomcat 4.0.4 as a standalone-server. Esspecially because 
JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a server-directory 
(package). The server-dir contains the Servlet-Class and the client-dir 
contains the client, of course. This client is a java.applet and does 
work fine (it is startet through out a html-page). But my problem is to 
connect to the servlet.
I have also tried to put the .war file into the %CATALINA_HOME%/webapps 
- folder and added the Lines
!-- TOMCAT Bfpl-Context -- 
 Context path=/myApp docBase=myApp debug=0 reloadable=true / 
into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. But 
that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a java.frame 
(opened by the applet) to this servlet. What the adress of the servlet?

So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(

I hope anyone can help me. thx

Patrick



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




Re: RES: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Patrick Kosiol
THX,

that might be of course, but I am running the default settings of the 
Tomcat so this option is already set TRUE. That is not the problem. 
Because of that I don't understand why it doesn't unpack the war-file
But without the WAR-File can I also put my webapp onto the server? And 
how do I do that?

thx
Patrick

Tiago Ferraz Machado wrote:

Hi,

I don't know if it is it, but there is a directive called unpackWARs=true that I think you should add to your server.xml.

Could anyone confirm that ?

Thanks,

Tiago.

-Mensagem original-
De: Patrick Kosiol [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 29 de novembro de 2002 10:18
Para: Tomcat Users List
Assunto: Servlet and Applet working in Tomcat 4.0.4 standalone


Hi,

I am using the Tomcat 4.0.4 as a standalone-server. Esspecially because 
JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a server-directory 
(package). The server-dir contains the Servlet-Class and the client-dir 
contains the client, of course. This client is a java.applet and does 
work fine (it is startet through out a html-page). But my problem is to 
connect to the servlet.
I have also tried to put the .war file into the %CATALINA_HOME%/webapps 
- folder and added the Lines
!-- TOMCAT Bfpl-Context -- 
Context path=/myApp docBase=myApp debug=0 reloadable=true / 
into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. But 
that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a java.frame 
(opened by the applet) to this servlet. What the adress of the servlet?

So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(

I hope anyone can help me. thx

Patrick



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

 




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




Tomcat-IIS-Help!!!

2002-11-29 Thread Mauritz Viljoen
I have a huge problem getting the redirect of IIS to tomcat to work. I have followed 
all the instructions on the tomcat-iis-howto.html document, but alas, still not 
working.

I get the following error in the logfile 
10:50:16 127.0.0.1 GET /jakarta/isapi_redirect.dll 200

According to the document the cause of this is Excecute acces for the virtual 
directory jakarta is not enabled, but it is.

Please can I have some help regariding to this issue

Thanks
Mauritz Viljoen
www.liquidafrica.com




Re: Host Context - Unpacking of WARs

2002-11-29 Thread David Brown
Kwok Peng Tuck writes: 

For the context of the webapp in the server.xml . 


RXZ JLo wrote: 

For the applications deployed through WAR files, where
do I specify attributes like reloadable? 

thanks.
rf 

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com 

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




Hello rf, try server.xml. david. 

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



Re: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2002-11-29 Thread Andreas Probst
If you're trying from inside a servlet or so, the 
getResourceAsStream works fine, as the path pass something like
/WEB-INF/somedir/somefile.someextension.
Try not to use getRealPath.
See list's messages explaining the use of properties files.

If you want to access a directory below WEB-INF from client 
side, Tomcat won't normally do. Everything inside WEB-INF is 
protected from client access. But I could imagine you could 
develop a servlet, which serves these resource if necessary. But 
you should rather not do this.

Andreas

On 29 Nov 2002 at 4:17, Peter Lee wrote:

 On 29 Nov 2002 at 11:03, Andreas Probst wrote:
 
 I can now access the folder directly above the WEB-INF folder.
 Actually, I meant  a folder which is  directly below  the WEB-INF
 folder. This is still causing problems.
 
 Thanks
 
  Hello Peter,
  
  did you try 
  public java.lang.String getRealPath(java.lang.String path) of
  javax.servlet.ServletContext?
  
  or preferrably
  public java.net.URL getResource(java.lang.String path)
  or public java.io.InputStream 
  getResourceAsStream(java.lang.String path)
  
  Which directory do you mean, your webapp's directory, which is
  directly above WEB-INF or do you mean even higher above?
  
  The getResourceAsStream works fine for resources inside your
  webapp and should be used instead of getRealPath.
  
  Hope this helps.
  
  Andreas
  
  
  On 29 Nov 2002 at 1:18, Peter Lee wrote:
  
   I am using Tomcat for servlets. 
   How  do I get the absolute path of a file in a directory
   above WEB-INF directory of my web application?
   
   Thanks
   
   
  
 
 



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




Re: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread David Brown
Patrick Kosiol writes: 

Hi, 

I am using the Tomcat 4.0.4 as a standalone-server. Esspecially because 
JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a server-directory 
(package). The server-dir contains the Servlet-Class and the client-dir 
contains the client, of course. This client is a java.applet and does work 
fine (it is startet through out a html-page). But my problem is to connect 
to the servlet.
I have also tried to put the .war file into the %CATALINA_HOME%/webapps - 
folder and added the Lines
!-- TOMCAT Bfpl-Context -- Context path=/myApp docBase=myApp 
debug=0 reloadable=true / into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. But 
that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a java.frame 
(opened by the applet) to this servlet. What the adress of the servlet? 

So my Applet is working fine but I do not get a connection to the servlet, 
so I cannot get my data from the webserver. :-( 

I hope anyone can help me. thx 

Patrick 

 

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




Hello Patrick, based on ur info i have to make some assumptions. from ur 
statment: I have also tried to put the .war file into the 
%CATALINA_HOME%/webapps - folder... and on: So the .war - File should be 
extracted at the next start of Tomcat. But that doesn't work... i am 
compelled to ask: does the .war expanded into something expected like: 
$CATALINA_HOME/webapps/myApp? if not, this is the source of ur problem. if u 
do get expansion does this exist?: 
$CATALINA_HOME/webapps/myApp/WEB-INF/web.xml? if not, this is the source of 
ur problem. if u do have a web.xml then look 4 the following (depending on 
package naming): $CATALINA_HOME/webapps/myApp/WEB-INF/classes/package 
name/myApp/myApp.class (assuming ur servlet is named myApp.java). if this 
does not exits then definitely a source of problems. one small observation: 
ur statement: I have also tried to put the .war file... is disturbing 
because any good development system should work such that correct deployment 
is automatic. i'm not criticisizing jbuilder and borland. i like borland 
products. and, i'm not criticisizing u 4 ur choices. it just seems many 
people have problems w/ tc dev based more on deployment issues. if u have 
not progressed try the following: try to use the command line and deploy a 
test servlet (not myApp). and, invoke the servlet from the browser. ur 
applet should be outside ur webapps environment. if u can invoke ur test 
servlet then try to invoke it from ur applet. if u r comfortable working 
from the command line u might want to try the ant build system that is used 
to build the tc /examples applications. ant is a very powerfull tool and 
can really help w/ deployment issues. ide's r ok 4 debugging code issues 
but i have found most java developers have issues based more on: 
packaging, directories, files systems and deployment in general than code 
issues. hope this helps, david. 


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



Help: Standard SQL Tags w/ Connection Pooling Problem

2002-11-29 Thread Matt Fury
Hi All,

This is sort of a cross posting with tagging but I am
having some problems with configuration.
I am trying to use connection pooling w/ the JSTL and
Commons. Please let me know if this is not possible.
From  the limited amount of info I could find, it just
seems as though I set my pooling up in Web.xml and
Server.xml and call the datasource in the tags.

But I am receiving this error:
org.apache.jasper.JasperException: Cannot create
resource instance

I am guessing that means there is a problem accessing
a class or something.

Here are the sections from my web.xml and server.xml

web.xml
---
resource-ref
res-ref-namejdbc/VODatabase/res-ref-name
res-typejavax.sql.Datasource/res-type
res-authContainer/res-auth
/resource-ref

server.xml
--
DefaultContext
Resource name=jdbc/VODatabase
auth=Container
type=javax.sql.DataSource/
 ResourceParams name=jdbc/VODatabase
parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
/parameter
 parameter
namefactory/name
   
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
nameurl/name
   
valuejdbc:mysql://localhost/VOFinal?autoReconnect=true/value
/parameter
parameter
  namedriverName/name
  valuejdbc:mysql:VOFinal/value
/parameter
parameter
nameusername/name
valuevos/value
/parameter
parameter
namepassword/name
valuev0sp@ss/value
/parameter
parameter
namemaxActive/name
value100/value
/parameter
parameter
namemaxIdle/name
value3/value
/parameter
parameter
namemaxWait/name
value100/value
/parameter
   /ResourceParams
   /DefaultContext



Thanks!!


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




Re: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Patrick Kosiol
David Brown wrote:


Patrick Kosiol writes:


Hi,
I am using the Tomcat 4.0.4 as a standalone-server. Esspecially 
because JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a 
server-directory (package). The server-dir contains the Servlet-Class 
and the client-dir contains the client, of course. This client is a 
java.applet and does work fine (it is startet through out a 
html-page). But my problem is to connect to the servlet.
I have also tried to put the .war file into the 
%CATALINA_HOME%/webapps - folder and added the Lines
!-- TOMCAT Bfpl-Context -- Context path=/myApp docBase=myApp 
debug=0 reloadable=true / into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. 
But that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a 
java.frame (opened by the applet) to this servlet. What the adress of 
the servlet?
So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(
I hope anyone can help me. thx
Patrick
 

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




Hello Patrick, based on ur info i have to make some assumptions. from 
ur statment: I have also tried to put the .war file into the 
%CATALINA_HOME%/webapps - folder... and on: So the .war - File 
should be extracted at the next start of Tomcat. But that doesn't 
work... i am compelled to ask: does the .war expanded into something 
expected like: $CATALINA_HOME/webapps/myApp? if not, this is the 
source of ur problem. if u do get expansion does this exist?: 
$CATALINA_HOME/webapps/myApp/WEB-INF/web.xml? if not, this is the 
source of ur problem. if u do have a web.xml then look 4 the following 
(depending on package naming): 
$CATALINA_HOME/webapps/myApp/WEB-INF/classes/package 
name/myApp/myApp.class (assuming ur servlet is named myApp.java). if 
this does not exits then definitely a source of problems. one small 
observation: ur statement: I have also tried to put the .war file... 
is disturbing because any good development system should work such 
that correct deployment is automatic. i'm not criticisizing jbuilder 
and borland. i like borland products. and, i'm not criticisizing u 4 
ur choices. it just seems many people have problems w/ tc dev based 
more on deployment issues. if u have not progressed try the following: 
try to use the command line and deploy a test servlet (not myApp). 
and, invoke the servlet from the browser. ur applet should be outside 
ur webapps environment. if u can invoke ur test servlet then try to 
invoke it from ur applet. if u r comfortable working from the command 
line u might want to try the ant build system that is used to build 
the tc /examples applications. ant is a very powerfull tool and can 
really help w/ deployment issues. ide's r ok 4 debugging code issues 
but i have found most java developers have issues based more on: 
packaging, directories, files systems and deployment in general than 
code issues. hope this helps, david.

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

Hello,

1. I do not get any expansions.
2. My DirectorySystem is:
   WEB-INF
   classes
   myApp
   client
   server

Can that works that the client and the server classes are in there 
folders? These Directory is created by JB so that should also work in 
Tomcat.

Patrick



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



multiple execution of a 'load-on-startup'

2002-11-29 Thread Maxime Colas des Francs
Hello ,

A strange thing about 'load-on-startup' servlet.

I use tomcat 4.1.12 with multi-host, and log4j 1.2.7

in my web.xml i wrote these lines :

servlet
  servlet-nameSetup/servlet-name
  servlet-classinit.SetupServlet/servlet-class
 load-on-startup/
/servlet

and i put an information log at the end of the servlet init() method

at tomcat startup, we can read in the log :

INFO  2002-11-29 09:28:50,084 [Thread-7] init.SetupServlet : end of
initialisation setup.
INFO  2002-11-29 09:28:55,352 [HostConfig[myhost]] init.SetupServlet : end
of initialisation setup.
INFO  2002-11-29 09:28:56,943 [HostConfig[myhost]] init.SetupServlet : end
of initialisation setup.
INFO  2002-11-29 09:29:17,647 [main] init.SetupServlet : end of
initialisation setup.
INFO  2002-11-29 09:29:20,501 [main] init.SetupServlet : end of
initialisation setup.

five execution for this servlet ??
(what an initialisation !)

if i remove the two other host definitions in my server.xml, and restart
tomcat,
this log appear only 2 times , execute by a thread main ...

INFO  2002-11-29 09:42:53,267 [main] init.SetupServlet : end of
initialisation setup.
INFO  2002-11-29 09:42:56,144 [main] init.SetupServlet : end of
initialisation setup.

Smby can explain this ??
Why 5 or 2 executions of a load-on-startup servlet ?
Why when i remove other host in tomcat configuration file,
3 lines dissepear in the log of an application on the first ??

thks !
_
M



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




Connecting to Xindice through Tomcat

2002-11-29 Thread Fred O Shea






Hi,

Could you recommended any sources which give a detailed description on how 
to Connect to Xindice(Apaches native XML database) through Tomcat.  I want 
to make use of the servlet programming capabilities of Tomcat and manipulate 
the XML documents i have stored in Xindice.

Many thanks,

David

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



Re: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Andreas Probst
On 29 Nov 2002 at 15:43, Patrick Kosiol wrote:

deleted older messages...

 
 Hello,
 
 1. I do not get any expansions.
 2. My DirectorySystem is:
 WEB-INF
 classes
 myApp
 client
 server
 
 Can that works that the client and the server classes are in
 there folders? These Directory is created by JB so that should
 also work in Tomcat.
 
 Patrick
 
A client cannot access files inside or below WEB-INF. Put all 
the files your applet needs above WEB-INF.

If you need the same classes on server and client you must have 
them twice.

For complex deployment see Ant as David suggested. You might 
also want to read the Application Developer's Guide:
http://jakarta.apache.org/tomcat/tomcat-4.0-
doc/appdev/index.html
or
localPathToTomcat/webapps/tomcat-docs/appdev/index.html

Andreas


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




FreeBSD 4.7 Apache2.0.43 tomcat 4.1.12 - problem with mod_jk2.so

2002-11-29 Thread Michael Galloway McLean
Hi.

I have installed apache2 - no problem.  It works fine.
I have installed tomcat4.1 from binaries - no problem. This too works fine
for standalone.

The problem I am having is when I try to build the mod_jk2.so module for
apache.

I am using ant to build the connector (jdk1.3.1).

When I first built the connector, apache complained about undefined symbols
for apr.  I changed the build.xml file to link against the apr libraries
that came with apache2.  The next problem I found was that I needed to then
rebuild apr using --enable-threads as a configure option.  I also passed
LIBS=-lc_r to the configuration script.

Now with the current apr libraries, when I start apache.  
/usr/local/apache2/bin/apachectl start
/usr/libexec/ld-elf.so.1: /usr/local/apache2/lib/libapr-0.so.9: Undefined
symbol pthread_mutexattr_init

platform is:
uname -a
FreeBSD removed 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT
2002
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386

Any help on how to build the mod_jk2.so module for this platform would be
greatly appreciated.  

Many thanks in advance.
Michael

(ps.  I also received the same error message when I tried the prebuilt
mod_jk.so module that I downloaded for FreeBSD)




Tomcat problems

2002-11-29 Thread Lewis, Hugh F
 Hi
 
 We are attempting to get the ISAPI to work, we have one web 
 server with IIS
 and win2k a second server with bugseye, emerge and tomcat 
 installed. The
 Jakarta.dll is on the web server. What we are trying to do is 
 to re-direct
 people from the web server to the other server with tomcat installed.
 we have tried everything we can think of.
 Is there some additional config required?
 
 Regards
 Hugh Lewis



The data contained in, or attached to, this e-mail, may contain confidential
information. If you have received it in error you should notify the sender
immediately by reply e-mail, delete the message from your system and contact
+44(0)1332 248119 (the Rolls-Royce IT Security Director) if you need
assistance. Please do not copy it for any purpose, or disclose its contents
to any other person.

An e-mail response to this address may be subject to interception or
monitoring for operational reasons or for lawful business practices.

(c) 2002 Rolls-Royce plc


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




RE: How to add a servlet to a new Webapp

2002-11-29 Thread Scott Murray
To get rid of the invoker, this could be your entire web.xml file:

***
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

 servlet-mapping
  servlet-nameinvoker/servlet-name
   url-pattern/servlet/*/url-pattern
 /servlet-mapping

/web-app
***


-Original Message-
From: Rasputin [mailto:[EMAIL PROTECTED]]On Behalf Of Rasputin
Sent: Thursday, November 28, 2002 5:24 PM
To: Tomcat Users List
Subject: Re: How to add a servlet to a new Webapp


* Curley, Thomas [EMAIL PROTECTED] [1114 14:14]:

 If anyone can explain the web.xml file in plain lang / what filters do and
how to get rid of the invoker then please do

See the link to chapter 5 at http://www..moreservlets.com

--
Rasputin :: Jack of All Trades - Master of Nuns

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




Re: JSP + custom tags (XML)

2002-11-29 Thread Becky Phaneuf
Hi Paul,

I believe I've shuffled through everyone's answer to your question.  

But, lets assume you're doing everything right from a tag library perspective.  This 
error could simply be because your XML document doesn't refer to a DTD (from what 
you've posted it appears it does not).  The parser may require a DTD to validate your 
XML document.  The DTD would declare books and any constraints it may have.

Just a thought,
-Becky

 [EMAIL PROTECTED] 11/27/02 05:50PM 
Hi,
In my quest to be able to parse a 10 line XML file in a JSP 
(notice the sarcasm there?) and extract an element value, I have come 
accross a few PDFs that talk of custom tags - and for the purposes of XML, 
a taglib directive. In several examples I saw %@ taglib uri=... 
prefix=tl % and syntax such as tl:parse id= Can anyone shed some 
light on this please? What is 'uri'? Presuming it was a path to my XML 
file I plugged in - %@ taglib uri=myfile.xml prefix=tl %, hoping I 
could parse it and extract elements using tl:parse id= etc. Supplying 
the XML file below, I was given the error in the browser:

org.apache.jasper.JasperException: XML parsing error on file /myfile.xml: 
(line 3, col -1): Element type books is not declared.

?xml version=1.0 encoding=ISO-8859-1? 
books

book isbn=123
title1/title
quantity10/quantity
price$17.95/price
/book
 
/books

What have I stumbled upon? Am i way off thinking I can use this syntax to 
parse my XML file? What is the significance of the error displayed?

Thanks very much

paul.


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




Re: Mozilla crashes Tomcat.

2002-11-29 Thread Christopher Mark Balz
Yes, you are right, excuse me for not supplying the basic info of
several systems I am using.  I'm using:

tomcat 3.2 standalone - yes.
Java SDK 1.4 (includes JSSE)
Sun's JVM standard with SDK 1.4
The problem happens on Win2K and also on Linux RedHat 8.0 (Contains
latest OpenSSL).

I have by now done a fair bit of testing on this, all in the SSL mode. 
The application is stable when accessed by IE 5.5.  When using Mozilla 
1.1, however, the Tomcat Java process is inevitably thrown into a 
memory-allocating behavior (moving by about 10MB every 10 seconds) that 
continues until crash of the Tomcat Java process.  Sometimes this 
behavior is invoked simply by logging in under Mozilla (SSL), and 
sometimes it requires an access or two from Mozilla.  A tell-tale sign 
from Mozilla that the memory allocating behavior has been invoked is 
that a browser alert pops up saying document contains no data.

I can run the very same accesses, using the very same front-end, from IE 
5.5 with apparently no problem, and the behavior of the servlet is 
exactly the same for both browsers.

I know that Mozilla uses a rather non-sensical security system whereby a 
site is deemed insecure if a window frame it contains is written to by 
JavaScript code from the original secured site.  IE, of course, does not 
do this.  Maybe there is some unfortunate interaction here with Tomcat? 
 For it seems that something in Moz's headers must be confusing Tomcat.

In any case, upgrading to 3.3 is not a bad idea.  I am about at the end 
of my rope with this bug.  I would go to 4.0 but want to stay as far 
away from the bleeding edge as reasonable and hope to avoid the changing 
of my configuration files that moving to 4.0 would necessitate.

I really hope someone out there has some ideas.  It is all too familiar 
a situation to me to have a Netscape product involved in just burning up 
days of my time.

   - CB



Ralph Einfeldt wrote:
 Maybe you should provide the answer to following questions:

 - Do you run tomcat stand alone ?
 - If yes which JSSE do you use ?
 - Which jvm do you use ?
 - On which operating system ?

 Maybe you should try to profile tomcat with a tool like
 OptimizeIt to see if it is tomcat or the underlying ssl
 implementation that has the leak.

 BTW:

 tc 3.2 is quite outdated.
 Maybe you should upgrade to 3.3.* or 4.*.


-Original Message-
From: Christopher Mark Balz [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 29, 2002 9:21 AM
To: [EMAIL PROTECTED]
Subject: Mozilla crashes Tomcat.

I'm pretty sure it's not my code since the leak starts immediately on
secure (ssl) session log-in to a static page (no servlet action
whatsoever).  If a Moz/N6+ browser is already logged in
however, after restarting the Tomcat server it takes a request from
Moz1.x/N6 to start the big leak that leads to an eventual JVM shutdown.




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



--
. . . / This Cabinet is formd of Gold / And Pearl  Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames  other Hills / And another pleasant Surrey Bower
. . .
- from The Crystal Cabinet, a poem by William Blake.



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



Tomcat 4.1.12 doesn't find class in shared/classes/

2002-11-29 Thread Jim Coble
Tomcat 4.1.12 on Solaris 8.  Put a new class in
$CATALINA_HOME/shared/classes/foo/.  Stopped and restarted Tomcat.  Tried
to use the class in a web app but Tomcat couldn't find it.  Put the same
class in $CATALINA_HOME/common/classes/foo/ and Tomcat found it just fine.
Any idea why it didn't find it in the shared/classes directory?

Thanks.
--Jim
==
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: [EMAIL PROTECTED]
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==




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




Can tomcat redirect to IIS?

2002-11-29 Thread Prashanth Pushpagiri
Hi

I am using IIS 5.0 on Windows 2000 Adv Server and
tomcat 4.1.12 for my servlet engine. When we configure
tomcat with other webservers, we have request filters
identifying which requests need to be handled by
tomcat right? I want to know if it is possible to do
the reverse. Say I have a request that comes to IIS
(say). I want to have IIS serving out the file
requested after tomcat checks for some credentials
(session stuff). That way I am using tomcat for its
designated purpose of serving dynamic content and that
of IIS of serving static content, the only difference
is tomcat still checks who should serve it. Is this
possible?

Thanks
VP

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




SSL problem

2002-11-29 Thread Gabriel Enriquez Perez
I have created my certificate using keytool...

After it, i uncommented the lines in the server.xml and all that stuff.

When i tried using 127.0.0.1 (https://127.0.0.1:8443/) it functions okay... 
The problem is that... as soon as i am in a network, if i use the ip address
of my computer... if i try to use it... it doesn't appear anything. There's
anything on the browser... actually it appears the lock (in IE 5.5 in the
bottom-rigth corner)... but immediately. just as a blink! afterwards,
anything happends. If i use the ip address and as a non-SSL
(http://127.0.0.1:8080/),, it functions properly.

Could anyone help me???
i have no idea what this is happening.



HTTP Status 500

2002-11-29 Thread Paul Kavanagh
Hi there,

I'm trying to get the attached webapp (from Chapter Three of Mastering
Struts) working with Tomcat
4.1.12. My understanding is that I should be able to just drop the attached
(unzipped of course)
into a webappname/ folder and then be able to access it via
http://localhost/webappname. Is this
correct ?

When I try however, I get get this error:

HTTP Status 500 - No Context configured to process this request


type Status report
message No Context configured to process this request
description The server encountered an internal error (No Context configured
to process this
request) that prevented it from fulfilling this request.


Apache Tomcat/4.1.12-LE-jdk14

I know this is probably something dumb and config-related on my behalf. I
appreciate the help.

Thanks in advance,
-Paul

ps I've removed the Struts Jars from the zip, but they are in WEB-INF/lib



wileystruts.zip
Description: Zip compressed data
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


how to set server.xml to show all info on Tomcat Server?

2002-11-29 Thread James HU






_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



Re: How to add a servlet to a new Webapp

2002-11-29 Thread Steve R. Burrus
  Hello David Brown, I am getting the very same 404 server error msg. when I try to 
run/execute a VERY BASIC JSP, for the current date and time!!! I need some special 
guidance from u re. how to edit the web.xml file to set the context variable!! And, 
would you also tell me how to write the  and the  settings in the server.xml file?!

**

On Thu 11/28, David Brown  wrote:From: David Brown [mailto: 
[EMAIL PROTECTED]]To: [EMAIL PROTECTED]: Thu, 28 Nov 2002 
12:49:01 -0500Subject: Re: How to add a servlet to a new WebappCurley, Thomas writes: 

 Hi All, 
 
 Using Tomcat 4.1.12 on Win 2K 
 
 I am getting a 404 error when I try to create a new webapp and add a very basic 
servlet.  The servlet works if I create the package structure within the examples 
WEB-INF/classes.  Here are the steps: 
 
 1.created webapps/study
 2.created .../study/WEB-INF/classes/com/wrox/projsp/ch03/TestServlet.java and 
compiled [ok]
 3.added the following line to server.xml after the examples   
 
   
 
 4.just copied the examples web.xml to study/WEB-INF and added the following 
lines 
 
 
 
   
   TestServlet
   
   
   com.wrox.projsp.ch03.TestServlet
   
  
 
 
 TestServlet
 /TestServlet
  
 
 
 5.restart tomcat  
 
 
 RESULT - The requested resource (/study/servlet/TestServlet) is not available. 
 
 
 Can anyone see what I am missing ? 
 
  
 
 thanks 
 
 
 Thomas 
 
  
 
 --
 To unsubscribe, e-mail:   
 For additional commands, e-mail:  
 
 

Hello Thomas, i see this all the time on this ml. i don't know what folks' 
fascination is w/ server.xml and a basic application. yes, this is working 4 
u because web.xml is already defined for the webapp /examples. look closer 
at how the tc folks do it, namely, using the ant build and allowing tc to do 
its job by creating a .war/.jar combo and letting the tc server (when 
bounced, autoreload or using the webapp /manager) expand the .war into its 
very own: $CATALINA_HOME/webapps//WEB-INF/web.xml 
and 
$CATALINA_HOME/webapps//classes//So 
meServletUbuild.class. pls allow me recommend u look into ant and build.xml. 
it's worth the trouble if u r serious about tc learning and dev. trying to 
build anything structured by hand is not recommended. even seasoned vets 
don't do this because they r the ones that invented this stuff. using ide's 
r ok (especially when employers require ide use) but i use 3 or 4 tc tools 
to develop anything i want w/ ease because the chore of structured 
compilation and deployment is pretty much automatic. hope this help, david. 


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



___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



RE: SSL problem

2002-11-29 Thread mech
Could it be a firewall problem in the network? Port 8443 is not too
common. Some admins might block it. Try to change port to 443 to find
out if it's a protocol or a port problem.

 -Original Message-
 From: Gabriel Enriquez Perez [mailto:[EMAIL PROTECTED]] 
 Sent: Freitag, 29. November 2002 17:53
 To: '[EMAIL PROTECTED]'
 Subject: SSL problem
 
 
 I have created my certificate using keytool...
 
 After it, i uncommented the lines in the server.xml and all 
 that stuff.
 
 When i tried using 127.0.0.1 (https://127.0.0.1:8443/) it 
 functions okay... 
 The problem is that... as soon as i am in a network, if i use 
 the ip address of my computer... if i try to use it... it 
 doesn't appear anything. There's anything on the browser... 
 actually it appears the lock (in IE 5.5 in the bottom-rigth 
 corner)... but immediately. just as a blink! afterwards, 
 anything happends. If i use the ip address and as a non-SSL 
(http://127.0.0.1:8080/),, it functions properly.

Could anyone help me???
i have no idea what this is happening.


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




Mozilla 1.x/N6+ causes memory leak on Tomcat 3.2.4

2002-11-29 Thread Christopher Mark Balz
In side-by-side tests, IE 5.5 causes no such leak, but Moz1.x/N6+ cause 
Tomcat to simply start allocating memory until the heap size limit is 
exceeded by about 20MB, resulting in an eventual shutdown of the JVM.

I'm pretty sure it's not my code since the leak starts immediately on 
secure (ssl) session log-in to a static page (no servlet action 
whatsoever).  If a Moz/N6+ browser is already logged in however, after 
restarting the Tomcat server it takes a request from Moz1.x/N6 to start 
the big leak that leads to an eventual JVM shutdown.

I thought that Netscape existed only to torture client-side developers; 
it seems they've got something going on the server-side now!  Of course, 
it would be Tomcat's bug, but it's funny how many bugs always surround 
Netscape.

Since this bug crashes my server, I would very much appreciate help with 
it.  I've seen other postings on the web indicating that this is a 
problem but have not seen anyone address it in a response.

 - CB

--
. . . / This Cabinet is formd of Gold / And Pearl  Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames  other Hills / And another pleasant Surrey Bower
. . .
- from The Crystal Cabinet, a poem by William Blake.


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



Re: How to add a servlet to a new Webapp

2002-11-29 Thread bido
This shouldn't be too hard to solve. Post the associated servlet and 
servlet-mapping from your web.xml -the one under webapps/study.



On Friday, November 29, 2002, at 05:53  PM, Steve R. Burrus wrote:

  Hello David Brown, I am getting the very same 404 server error msg. 
when I try to run/execute a VERY BASIC JSP, for the current date and 
time!!! I need some special guidance from u re. how to edit the 
web.xml file to set the context variable!! And, would you also tell me 
how to write the  and the  settings in the server.xml file?!

**

On Thu 11/28, David Brown  wrote:From: David Brown [mailto: 
[EMAIL PROTECTED]]To: [EMAIL PROTECTED]: Thu, 
28 Nov 2002 12:49:01 -0500Subject: Re: How to add a servlet to a new 
WebappCurley, Thomas writes:

Hi All,

Using Tomcat 4.1.12 on Win 2K

I am getting a 404 error when I try to create a new webapp and add a 
very basic servlet.  The servlet works if I create the package 
structure within the examples WEB-INF/classes.  Here are the steps:

1.	created webapps/study
2.	created 
.../study/WEB-INF/classes/com/wrox/projsp/ch03/TestServlet.java and 
compiled [ok]
3.	added the following line to server.xml after the examples

		

4.	just copied the examples web.xml to study/WEB-INF and added the 
following lines




  TestServlet


  com.wrox.projsp.ch03.TestServlet




TestServlet
/TestServlet



5.	restart tomcat


RESULT - The requested resource (/study/servlet/TestServlet) is not 
available.


Can anyone see what I am missing ?



thanks


Thomas



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



Hello Thomas, i see this all the time on this ml. i don't know what 
folks'
fascination is w/ server.xml and a basic application. yes, this is 
working 4
u because web.xml is already defined for the webapp /examples. look 
closer
at how the tc folks do it, namely, using the ant build and allowing tc 
to do
its job by creating a .war/.jar combo and letting the tc server (when
bounced, autoreload or using the webapp /manager) expand the .war 
into its
very own: $CATALINA_HOME/webapps//WEB-INF/web.xml
and
$CATALINA_HOME/webapps//classes//So
meServletUbuild.class. pls allow me recommend u look into ant and 
build.xml.
it's worth the trouble if u r serious about tc learning and dev. 
trying to
build anything structured by hand is not recommended. even seasoned 
vets
don't do this because they r the ones that invented this stuff. using 
ide's
r ok (especially when employers require ide use) but i use 3 or 4 tc 
tools
to develop anything i want w/ ease because the chore of structured
compilation and deployment is pretty much automatic. hope this help, 
david.


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



___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


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




tomcat linux (SuSE) and latin characters

2002-11-29 Thread Dionisio Ruiz de Zarate
When i start my linux machine the tomcat show me (the jsp pages) some
characters bad:
ó --?
some latin characters (ISO-8859-1) show me in the jsp pages as ?
but if i restart the tomcat shows me well.
what can be the problem? and the solution?
thanks



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




set enviroment variables on linux

2002-11-29 Thread Jack_-_Ganzha
How can i set a enviroment variable on linux using kde interface?



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




url patterns

2002-11-29 Thread Warner Onstine
I'm trying to figure out if this can be done with url-patterns. I need to
protect a sub-string of this url
/wo/c/ognl/admin/...

I need to protect the ognl/admin part. The problem is that the preceding
string before it can change depending on actions that I perform so I can't
just do /wo/c/ognl/admin/* as that won't guarantee my security. I tried
*/ognl/admin/* but received an error when starting up saying that it had to
start with a '.' or '/'.

Any help on this is greatly appreciated.

-warner

+warner onstine+


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




tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-29 Thread Ron Day
I just installed Tomcat 4.1.12.

But now my tomcat 4.0.3 webapps run about 10 times slower.

Anyone have any ideas as to why this may be.

I did not change anything, and it happens for jsp's and servlets !!!

ron


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




Linux Install of tomcat4-4.1.12 error

2002-11-29 Thread Ken Fawcett
In installing RPM for tomcat4-4.1.12-full.2jpp.noarch.rpm I got a bunch of 
warnings about files that were
created (which I think is OK) but then get this error:

error: unpacking of archive failed on file /var/tomcat4/logs: cpio: rename 
failed -- Is a directory

Perhaps someone can point me in the right direction to resolve the error. 
(I did
have tomcat4-4.0.3-1 installed before and uninstalled it before this 
install attempt.)

Thanks, Ken.


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



Re: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-29 Thread Steven Burrus
I need some help/assistance right away with trying to see a JSP in my 
browser!! All that I get for my efforts is a cryptic server error msg. 
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:

I just installed Tomcat 4.1.12.

But now my tomcat 4.0.3 webapps run about 10 times slower.

Anyone have any ideas as to why this may be.

I did not change anything, and it happens for jsp's and servlets !!!

ron


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





--
Steven Burrus

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




Re: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-29 Thread micael
I don't get why someone answers another person's request for assistance 
with their own request, but what do I know.  The one I am answer is the 
first guy.  You may need to reboot your Tomcat.  That happened to me 
once.  4.1.12 is not slower.  Sometimes I have found that if Tomcat is 
accessed while it is building, some strange things happen and I don't have 
a clue what, of course, but I have gotten the same run about 10 times 
slower phenomenon.  I would say 40 times actually, in one case.  Anyway, 
rebooting fixed if for me, for what that is worth.

At 12:36 AM 11/30/2002 -0600, you wrote:
I need some help/assistance right away with trying to see a JSP in my 
browser!! All that I get for my efforts is a cryptic server error msg. 
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:

I just installed Tomcat 4.1.12.

But now my tomcat 4.0.3 webapps run about 10 times slower.

Anyone have any ideas as to why this may be.

I did not change anything, and it happens for jsp's and servlets !!!

ron


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




--
Steven Burrus

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



Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-29 Thread micael
Okay, Steve.  Don't know why you answered Ron's question with yours.  Must 
have hit the wrong switch?  You need to give more information.  Where is 
your JSP, for example.  Is this the index.jsp you are talking about, or 
some other situation?  With no information, answering is impossible.  Micael

At 12:36 AM 11/30/2002 -0600, you wrote:
I need some help/assistance right away with trying to see a JSP in my 
browser!! All that I get for my efforts is a cryptic server error msg. 
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:

I just installed Tomcat 4.1.12.

But now my tomcat 4.0.3 webapps run about 10 times slower.

Anyone have any ideas as to why this may be.

I did not change anything, and it happens for jsp's and servlets !!!

ron


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




--
Steven Burrus

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



Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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