RE: Is Apache -warp- Tomcat a Myth?

2002-02-07 Thread Cressatti, Dominique

It's not that hard (always easy when you know how!).

1 question: is port 5080 where apache is listen on?
looking at your httpd.conf it seem your trying to
do something complex before trying the easy standard one.

Have you tried (providing that you have the examples servlets):

WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples

and then point your browser to http://localhost/examples/snoop

Dom


-Original Message-
From: Ken Corey [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2002 10:18
To: Tomcat Users List
Subject: Is Apache -warp- Tomcat a Myth?


Hi All,

I'm having such a huge amount of trouble with this, I'm hoping someone can 
suggest something.  It just doesn't make sense...it's like software 
engineering...I was 90% of the way there in 1 hour, but the final 10% has 
taken me another 12 hours, and it still doesn't work!

I've got a Linux 2.2.19 box (pre glibc-2.2, so prebuilds depending on 
glibc-2.2 won't work).

I'm running Apache 1.3.20, and Tomcat 4.0.1, jdk 1.3.0.

I've compiled my own warp connector module, and set everything up as per the 
sun web page here: http://dcb.sun.com/practices/howtos/tomcat_apache.jsp 
which I thought was going to provide everything I needed.

My httpd.conf file has: 

LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp js1.atomic-interactive.com:8008
WebAppDeploy sample warpConnection /sample/

I went through the development process as outlined on the tomcat site, so 
now, I've got a lovely little project directory (hello world, of course), a 
web.xml that specifies the servlet.  The project is called 'sample'.

(NOTE: 213.165.155.8 as shown below *is* js1.atomic-interactive.com shown 
above. I could see no difference in my tests one way or another, as I don't 
have virtual hosts turned on in Apache.)

So, after a deploy and a tomcat restart, my tomcat application can now be 
seen:
http://213.165.155.8:8080/sample

The index.html page is pulled up, and when the link is clicked it takes the 
user to the servlet served up by Tomcat.
http://213.165.155.8:8080/sample/hello

Now, let's try this on Apache 1.3.20:
http://213.165.155.8:5080/sample

Nothing is shown in Tomcat's logs, and so apache tries to offer the 
index.html, which of course doesn't exist as far as Apache is concerned.

http://213.165.155.8:5080/sample/

tomcat 'sees' this one, judging by the logs:
2002-02-07 09:40:48 WarpEngine[js1.atomic-interactive.com]: Mapping request
2002-02-07 09:40:48 WarpHost[js1.atomic-interactive.com]: Mapping request for 
Host
2002-02-07 09:40:48 StandardContext[/sample]: Mapping contextPath='/sample' 
with requestURI='/sample/' and relativeURI='/'
2002-02-07 09:40:48 StandardContext[/sample]: Decoded relativeURI='/'
2002-02-07 09:40:48 StandardContext[/sample]:   Trying exact match
2002-02-07 09:40:48 StandardContext[/sample]:  Mapped to servlet 'default' 
with servlet path '/' and path info 'null' and update=true
2002-02-07 09:40:48 default: DefaultServlet.serveResource:  Serving resource 
'/' headers and data

However, tomcat apparently denies any knowlege, so Apache tries to load the 
index.html file, which still doesn't exist:
http://213.165.155.8:5080/sample/index.html

Strangely, though, the servlet still does exist:
http://213.165.155.8:5080/sample/hello

So what gives?

-Ken

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


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




RE: apache + mod_SSL + tomcat

2002-02-06 Thread Cressatti, Dominique

Anton Brazhnyk answered it.
I followed his advice.
I basically commented out the HttpConnector running on port 8080
and that was it.
From that point I can't an http connection on port 8080
but I can still access my app on port 80 (normal http)
and port 443 (https).

One point that was made by somebody else what
about the connection between apache and tomcat?
Either mod_jk on port 8009 (or 8007) or mod_webapp
on port 8008. As far as I know those connectors are
not ssl enabled. 

Dom


-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 13:33
To: Tomcat Users List
Subject: Re: apache + mod_SSL + tomcat


I never saw an answer go by to the below question and was curious what it would be. 
Does no one now the answer
Dean

Cressatti, Dominique wrote:

 Hi,

 I've got apache + mod_SSL + tomcat working
 (I don't deserve that much credit as mod_ssl worked
 right out the box) but I wonder couldn't the security bypassed,
 like for example accessing the page on port 8080 instead of port
 443 ?

 Dom


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


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




RE: apache + mod_SSL + tomcat

2002-02-06 Thread Cressatti, Dominique

...my servlet can determine if the connection is from 8443 or 8080..
While not much clued up about java (but having seen a few examples)
I would think its possible. Then again why would you like to do it at
the servlet level? Why would you want to keep port 8080 opened when
80, 443 or 8443 are?

Dom

-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 14:50
To: Tomcat Users List
Subject: Re: apache + mod_SSL + tomcat


I think there is a way to solve the problem without shutting down port 8080.  Someone 
please verify this is true.  If I use a servlet, my servlet can determine if the 
connection is from 8443 or 8080 and if it is from 8080 can deny the user access right 
away.  Is this correct?  I was kind of waiting on an answer like this.
thanks,
Dean


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


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




RE: WarpConnector: how to enable static content below dynamic content?

2002-02-06 Thread Cressatti, Dominique

What about something like:
WebAppDeploy mywebsite warpConnection /*.jsp

Dom

-Original Message-
From: Michel [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 16:10
To: Tomcat Users List
Subject: WarpConnector: how to enable static content below dynamic
content?


Howdy!

I'm Using Tomcat 4 with Apache 1.3 using the WarpConnector on RH7.2

Because the index page of my website is a JSP, I mapped the root of my
website to a tomcat webapp using:
WebAppDeploy mywebsite warpConnection /

Now I can't use any of the static pages from Apache, like /usage, /doc, etc,
even AFTER I define new aliases to explicitly define /usage etc. to their
locations.

Apparently everything below / is passed to tomcat regardlessly.

Does anyone have a better solution to allow the root index.jsp but still
allows for  static content from / and below?

TIA

gr. Michel


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


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




RE: deploying WARs in different locations..(web.xml error)

2002-02-05 Thread Cressatti, Dominique

What does your context for your app look
like?

-Original Message-
From: Liam Holohan [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 16:30
To: Tomcat Users List
Subject: deploying WARs in different locations..(web.xml error)


Hi all ..
I'm having difficulity in getting my wars to unpack into non standard 
locations


I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2
Using mod_webapp and seems to be working fine

Did a search on google and mailing lists but to no avail.
At wits end :-(


Tomcat is installed into /home/wasp/tomcat/4.0/
Tomcat conf files are in /home/wasp/tomcat/4.0/conf/server.xml etc..
Apache is in /home/wasp/apache/1.3.22/ etc..
The document root of my virtual hosts are in 
/home/wasp/vhosts/virtual_host_name

I want to deploy a web app (war file app-example.war, build with 
jbuilder and examined with jar and looks ok) into a virtual host called 
www.test.com
i.e /home/wasp/vhosts/www.test.com/htdocs/webapps


It seems to recognise the context app-example I want to set up but 
does not read the WEB-INF/web.xml file inside the war ??

I keep getting an error WEB-INF/web.xml not found
i.e in my 
/home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-context.log
(custom log for virtual host www.test.com set up in server.xml)

StandardContext[/app-example]: Configuring default Manager
StandardContext[/app-example]: Processing standard container startup
WebappLoader[/app-example]: Deploying class repositories to work 
directory /home/wasp/tomcat/4.0/work/www.test.com/app-example
WebappLoader[/app-example]: Reloading checks are enabled for this Context
StandardManager[/app-example]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/app-example]: Seeding of random number generator has 
been completed
ContextConfig[/app-example]: ContextConfig: Processing START
StandardContext[/app-example]: Setting deployment descriptor public ID 
to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
ContextConfig[/app-example]: Missing application web.xml, using defaults 
only.

StandardWrapper[/app-example:invoker]: Loading container servlet invoker
invoker: init
StandardWrapper[/app-example:jsp]: Using Jasper classloader for servlet jsp
jsp: init
Internal Error: File /WEB-INF/web.xml not found



my config details are


in httpd.conf
VirtualHost 10.20.32.13
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
 ServerName www.test.com
 TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
 ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog

 WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008
 WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example
/VirtualHost



in server/xml ..

   !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache Virtual Host Warp connector Service
 Connector 
className=org.apache.catalina.connector.warp.WarpConnector port=8008 
minProcessors=5 maxProcessors=75 enableLookups=false 
acceptCount=10 debug=0/
 Engine className=org.apache.catalina.connector.warp.WarpEngine 
name=www.test.com debug=1 
appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps
   Logger className=org.apache.catalina.logger.FileLogger 
prefix=www.test.com- suffix=-engine.log timestamp=false/
   Host name=www.test.com debug=0 
appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger 
directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
suffix=-tomcat.log timestamp=false/
 Valve className=org.apache.catalina.valves.AccessLogValve 
directory=/home/wasp/vhosts/www.test.com/logs  prefix=www.test.com- 
suffix=-tomcat-access.log pattern=common/
 Context path= 
docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/ debug=0/
 Context path=/app-example 
docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war 
debug=1 reloadable=true
   Logger className=org.apache.catalina.logger.FileLogger 
directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
suffix=-app-example-context.log timestamp=false/
 /Context
   /Host
   Realm className=org.apache.catalina.realm.MemoryRealm /
 /Engine
   /Service



any help or pointers to sombody who has the same problem would be great !!

Thx in advance
Liam


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


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




RE: deploying WARs in different locations..(web.xml error)

2002-02-05 Thread Cressatti, Dominique

It definitely looks to complex to me.
Anyway, attached is post of guy who got it working.

Dom


-Original Message-
From: Liam Holohan [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 16:48
To: Tomcat Users List
Subject: Re: deploying WARs in different locations..(web.xml error)


Cressatti, Dominique wrote:

 What does your context for your app look
 like?
 
 -Original Message-
 From: Liam Holohan [mailto:[EMAIL PROTECTED]]
 Sent: 05 February 2002 16:30
 To: Tomcat Users List
 Subject: deploying WARs in different locations..(web.xml error)
 
 
 Hi all ..
 I'm having difficulity in getting my wars to unpack into non standard 
 locations
 
 
 I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2
 Using mod_webapp and seems to be working fine
 
 Did a search on google and mailing lists but to no avail.
 At wits end :-(
 
 
 Tomcat is installed into /home/wasp/tomcat/4.0/
 Tomcat conf files are in /home/wasp/tomcat/4.0/conf/server.xml etc..
 Apache is in /home/wasp/apache/1.3.22/ etc..
 The document root of my virtual hosts are in 
 /home/wasp/vhosts/virtual_host_name
 
 I want to deploy a web app (war file app-example.war, build with 
 jbuilder and examined with jar and looks ok) into a virtual host called 
 www.test.com
 i.e /home/wasp/vhosts/www.test.com/htdocs/webapps
 
 
 It seems to recognise the context app-example I want to set up but 
 does not read the WEB-INF/web.xml file inside the war ??
 
 I keep getting an error WEB-INF/web.xml not found
 i.e in my 
 /home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-context.log
 (custom log for virtual host www.test.com set up in server.xml)
 
 StandardContext[/app-example]: Configuring default Manager
 StandardContext[/app-example]: Processing standard container startup
 WebappLoader[/app-example]: Deploying class repositories to work 
 directory /home/wasp/tomcat/4.0/work/www.test.com/app-example
 WebappLoader[/app-example]: Reloading checks are enabled for this Context
 StandardManager[/app-example]: Seeding random number generator class 
 java.security.SecureRandom
 StandardManager[/app-example]: Seeding of random number generator has 
 been completed
 ContextConfig[/app-example]: ContextConfig: Processing START
 StandardContext[/app-example]: Setting deployment descriptor public ID 
 to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
 ContextConfig[/app-example]: Missing application web.xml, using defaults 
 only.
 
 StandardWrapper[/app-example:invoker]: Loading container servlet invoker
 invoker: init
 StandardWrapper[/app-example:jsp]: Using Jasper classloader for servlet jsp
 jsp: init
 Internal Error: File /WEB-INF/web.xml not found
 
 
 
 my config details are
 
 
 in httpd.conf
 VirtualHost 10.20.32.13
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
  ServerName www.test.com
  TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
  ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog
 
  WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008
  WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example
 /VirtualHost
 
 
 
 in server/xml ..
 
!-- Define an Apache-Connector Service --
Service name=Tomcat-Apache Virtual Host Warp connector Service
  Connector 
 className=org.apache.catalina.connector.warp.WarpConnector port=8008 
 minProcessors=5 maxProcessors=75 enableLookups=false 
 acceptCount=10 debug=0/
  Engine className=org.apache.catalina.connector.warp.WarpEngine 
 name=www.test.com debug=1 
 appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps
Logger className=org.apache.catalina.logger.FileLogger 
 prefix=www.test.com- suffix=-engine.log timestamp=false/
Host name=www.test.com debug=0 
 appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger 
 directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
 suffix=-tomcat.log timestamp=false/
  Valve className=org.apache.catalina.valves.AccessLogValve 
 directory=/home/wasp/vhosts/www.test.com/logs  prefix=www.test.com- 
 suffix=-tomcat-access.log pattern=common/
  Context path= 
 docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/ debug=0/
  Context path=/app-example 
 docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war 
 debug=1 reloadable=true
Logger className=org.apache.catalina.logger.FileLogger 
 directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
 suffix=-app-example-context.log timestamp=false/
  /Context
/Host
Realm className=org.apache.catalina.realm.MemoryRealm /
  /Engine
/Service
 
 
 
 any help or pointers to sombody who has the same problem would be great !!
 
 Thx in advance
 Liam
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL

RE: deploying WARs in different locations..(web.xml error)

2002-02-05 Thread Cressatti, Dominique

Oh as far as .war are concerned, tomcat will
automatically unpack them. If you want to keep
your app in a packed format it has to be in .jar
format (which you put normally under webapps/yourapp/WEB-INF/lib)

Dom

-Original Message-
From: Liam Holohan [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 16:48
To: Tomcat Users List
Subject: Re: deploying WARs in different locations..(web.xml error)


Cressatti, Dominique wrote:

 What does your context for your app look
 like?
 
 -Original Message-
 From: Liam Holohan [mailto:[EMAIL PROTECTED]]
 Sent: 05 February 2002 16:30
 To: Tomcat Users List
 Subject: deploying WARs in different locations..(web.xml error)
 
 
 Hi all ..
 I'm having difficulity in getting my wars to unpack into non standard 
 locations
 
 
 I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2
 Using mod_webapp and seems to be working fine
 
 Did a search on google and mailing lists but to no avail.
 At wits end :-(
 
 
 Tomcat is installed into /home/wasp/tomcat/4.0/
 Tomcat conf files are in /home/wasp/tomcat/4.0/conf/server.xml etc..
 Apache is in /home/wasp/apache/1.3.22/ etc..
 The document root of my virtual hosts are in 
 /home/wasp/vhosts/virtual_host_name
 
 I want to deploy a web app (war file app-example.war, build with 
 jbuilder and examined with jar and looks ok) into a virtual host called 
 www.test.com
 i.e /home/wasp/vhosts/www.test.com/htdocs/webapps
 
 
 It seems to recognise the context app-example I want to set up but 
 does not read the WEB-INF/web.xml file inside the war ??
 
 I keep getting an error WEB-INF/web.xml not found
 i.e in my 
 /home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-context.log
 (custom log for virtual host www.test.com set up in server.xml)
 
 StandardContext[/app-example]: Configuring default Manager
 StandardContext[/app-example]: Processing standard container startup
 WebappLoader[/app-example]: Deploying class repositories to work 
 directory /home/wasp/tomcat/4.0/work/www.test.com/app-example
 WebappLoader[/app-example]: Reloading checks are enabled for this Context
 StandardManager[/app-example]: Seeding random number generator class 
 java.security.SecureRandom
 StandardManager[/app-example]: Seeding of random number generator has 
 been completed
 ContextConfig[/app-example]: ContextConfig: Processing START
 StandardContext[/app-example]: Setting deployment descriptor public ID 
 to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
 ContextConfig[/app-example]: Missing application web.xml, using defaults 
 only.
 
 StandardWrapper[/app-example:invoker]: Loading container servlet invoker
 invoker: init
 StandardWrapper[/app-example:jsp]: Using Jasper classloader for servlet jsp
 jsp: init
 Internal Error: File /WEB-INF/web.xml not found
 
 
 
 my config details are
 
 
 in httpd.conf
 VirtualHost 10.20.32.13
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
  ServerName www.test.com
  TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
  ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog
 
  WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008
  WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example
 /VirtualHost
 
 
 
 in server/xml ..
 
!-- Define an Apache-Connector Service --
Service name=Tomcat-Apache Virtual Host Warp connector Service
  Connector 
 className=org.apache.catalina.connector.warp.WarpConnector port=8008 
 minProcessors=5 maxProcessors=75 enableLookups=false 
 acceptCount=10 debug=0/
  Engine className=org.apache.catalina.connector.warp.WarpEngine 
 name=www.test.com debug=1 
 appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps
Logger className=org.apache.catalina.logger.FileLogger 
 prefix=www.test.com- suffix=-engine.log timestamp=false/
Host name=www.test.com debug=0 
 appBase=/home/wasp/vhosts/www.test.com/htdocs/webapps unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger 
 directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
 suffix=-tomcat.log timestamp=false/
  Valve className=org.apache.catalina.valves.AccessLogValve 
 directory=/home/wasp/vhosts/www.test.com/logs  prefix=www.test.com- 
 suffix=-tomcat-access.log pattern=common/
  Context path= 
 docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/ debug=0/
  Context path=/app-example 
 docBase=/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war 
 debug=1 reloadable=true
Logger className=org.apache.catalina.logger.FileLogger 
 directory=/home/wasp/vhosts/www.test.com/logs prefix=www.test.com- 
 suffix=-app-example-context.log timestamp=false/
  /Context
/Host
Realm className=org.apache.catalina.realm.MemoryRealm /
  /Engine
/Service
 
 
 
 any help or pointers to sombody who has the same problem would be great

apache + mod_SSL + tomcat

2002-02-05 Thread Cressatti, Dominique

Hi,
 
I've got apache + mod_SSL + tomcat working
(I don't deserve that much credit as mod_ssl worked
right out the box) but I wonder couldn't the security bypassed,
like for example accessing the page on port 8080 instead of port
443 ?
 
Dom



RE: apache + mod_SSL + tomcat

2002-02-05 Thread Cressatti, Dominique

Well... like I said I deserve not credit
on that subject it worked straight out the
box.

Am using RH 7.2, I made sure I installed openSSL
and mod_SSL. I pointed my browser to https://localhost:443
and is worked (there was even a preconfigured certificat)

Like I said I deserve no credits.
Dom

-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 17:44
To: Tomcat Users List
Subject: RE: apache + mod_SSL + tomcat


Dom,
Do you think you could give some of us a few pointers on how you
got mod_SSL and tomcat to work?  That would be awesome.  Thanks.

Charlie

-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 12:38 PM
To: Tomcat Users List
Subject: apache + mod_SSL + tomcat


Hi,
 
I've got apache + mod_SSL + tomcat working
(I don't deserve that much credit as mod_ssl worked
right out the box) but I wonder couldn't the security bypassed,
like for example accessing the page on port 8080 instead of port
443 ?
 
Dom


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


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




RE: error on startup - catalina.out no such file or directory

2002-02-04 Thread Cressatti, Dominique

Do U have the correct directory structure?
Another thing DO NOT install tomcat in /home
the correct place is in /var
(unless of course you wanna know how long the logs
generation will take to fill up your /home directory)

Dom


-Original Message-
From: John Menke [mailto:[EMAIL PROTECTED]]
Sent: 04 February 2002 16:24
To: tomcat-user
Subject: error on startup - catalina.out no such file or directory


I am trying to run the 4.01 version.  When I try to run startup.sh I get the
following:

[root@remote bin]# ./startup.sh
Using CLASSPATH:
/home/jakarta-tomcat-4.01/bin/bootstrap.jar:/usr/java/jdk1.3.1_01/lib/tools.
jar
Using CATALINA_BASE: /home/jakarta-tomcat-4.01
Using CATALINA_HOME: /home/jakarta-tomcat-4.01
Using JAVA_HOME: /usr/java/jdk1.3.1_01
touch: creating `/home/jakarta-tomcat-4.01/logs/catalina.out': No such file
or directory
./catalina.sh: /home/jakarta-tomcat-4.01/logs/catalina.out: No such file or
directory

Why is this happening?


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


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




RE: Mod_Webapp

2002-02-01 Thread Cressatti, Dominique

Have you tried something like:

WebAppDeploy YourContextDir YourConnection /AnyURLYouWant/*.jsp
WebAppDeploy YourContextDir YourConnection /AnyURLYouWant/servlet*

Let us know if it worked
Dom
-Original Message-
From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2002 08:14
To: Tomcat Users List
Subject: Mod_Webapp 


Hi

I have an app which Iam upgrading from Tomcat 3 to 4, implementing mod_webapp.

Whereas I used to have

http://server/dir

where dir lived on Apache were it contained all static html, gifs and also as a 
context /dir on Tomcat where I put my JSP and servlets. So I would only mount the 
following on ajp12.

JkMount /ism/*.jsp  ajp12
JkMount /ism/servlet/*  ajp12

As far as Ican see, with mod_webapp, you have to mount the whole of /ism/, thereby 
forcing all static content into Tomcat. Is there any way around this ? 

The release notes say that mod_webapp fowards *all requests uunder the specified 
context path to Tomcat for processing. When Tomcat 4.0 final is released, it will 
automatically configure 
itself to serve static resources from Apache... Having read that 4.0.1 was production 
quality, I thought that it was a formal release of version 4. What is Tomcat 4.0 final 
 as opposed to 
production quality, released 4.0.1? 

This feels like a shortcoming in mod_webapp and the way that things are mounted with 
mod_webapp. I have posted and seen questions asking whether you can mount /*.jsp in 
mod_webapp 
but never seen a satisfactory respose or solution.

Thanks

Chris


Kevin HaleBoyes a écrit :
 
 This may seem long but I wanted to include anything
 I thought was relevant.
 
   CATALINA_HOME=/usr/local/jakarta/jakarta-tomcat-4.0.2-b2
   JAVA_HOME=/usr/java/jdk1.3.1_02
 
 I added a new Host entry to server.xml for my new website.
 This is the only change I made to the stock server.xml.
 
Host name=192.168.0.52 debug=0 appBase=webapps unpackWARs=true
  Realm className=org.apache.catalina.realm.MemoryRealm /
 
  Valve className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=192.168.0.52_access_log.
 suffix=.txt
   pattern=common/
 
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=192.168.0.52_log. suffix=.txt timestamp=true/
 
  Context path=/manager docBase=manager debug=0 privileged=true/
 
  Context path= docBase=NewWebsite debug=0 reloadable=true
Logger className=org.apache.catalina.logger.FileLogger
   prefix=NewWebsite_log. suffix=.txt timestamp=true/
  /Context
/Host
 
 This works great.  When I point my browser at http://192.168.0.52:8080/
 I get my home page and the JSP/servlet stuff works as expected.
 
 Like so many other, the next step is to set up the
 Warp connector so that I can front Tomcat with Apache.
 
 I changed the stock httpd.conf (RedHat 7.2 i386) by adding a
 new VirtualHost section to correspond to NewWebsite above.
 I installed mod_webapp.so from the downloaded webapp-module-1.0.2-tc402
 archive.
 
NameVirtualHost 192.168.0.52
 
LoadModule webapp_module modules/mod_webapp.so
WebAppConnection warpConnection warp 192.168.0.52:8008
WebAppDeploy examples warpConnection /examples/
 
VirtualHost 192.168.0.52
ServerName 192.168.0.52
WebAppDeploy NewWebsite warpConnection /
/VirtualHost
 
 The address 192.168.0.52 will eventually become a properly
 DNS-registered name www.NewWebsite.com (names and ip
 addresses may have been changed to protect the guilty).
 
 The intention is to have any request for http://192.168.0.52/ be
 redirected by mod_webapp to the NewWebsite Tomcat context.
 But that is not what happens.  Instead, the browser sits as if
 it is loading something that never comes and there are no
 messages in any of the apache  tomcat log files on the server.
 Not even an access log entry.
 
 On startup of httpd I get the following message in the httpd
 error log.
 
   [Thu Jan 31 12:49:58 2002] [warn] Loaded DSO modules/mod_webapp.so uses
 plain Apache 1.3 API, this module might crash under EAPI! (please recompile it
 with -DEAPI)
   [Thu Jan 31 12:49:59 2002] [notice] Apache/1.3.20 (Unix)  (Red-Hat/Linux)
 mod_python/2.7.6 Python/1.5.2 mod_ssl/2.8.4 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6
 mod_perl/1.24_01 mod_throttle/3.1.2 configured -- resuming normal operations
   [Thu Jan 31 12:49:59 2002] [notice] suEXEC mechanism enabled (wrapper:
 /usr/sbin/suexec)
   [Thu Jan 31 12:53:08 2002] [error] Connection warpConnection cannot
 connect
   [Thu Jan 31 12:53:08 2002] [error] Cannot open connection warpConnection
   [Thu Jan 31 12:53:08 2002] [error] Connection warpConnection cannot
 connect
   [Thu Jan 31 12:53:08 2002] [error] Cannot open connection warpConnection
   [Thu Jan 31 12:53:08 2002] [error] Connection warpConnection cannot
 connect
   [Thu Jan 31 12:53:08 2002] [error] Cannot open connection warpConnection
   [Thu Jan 31 12:53:08 2002] [error] Connection 

RE: classes NOT in WEB-INF/classes or CATALINE_HOME/classes

2002-02-01 Thread Cressatti, Dominique

I can't answer directly to your question
but here are some avenues that you might to
explore.

Here is some of the stuff I've learned so far.

You can modify the class path and append the directory
where your common classes live.

In the context section (either your apps-YourApp.xml
4 tomcat3 or server.xml 4 tomcat4)

path= only refer to the URL under which your app will
published will docbase= refer to where your app physically
lives (which I think doesn't have to be under /webapps).

And lastely may be there something that can be done in
web.xml

Dom



-Original Message-
From: Dave Ford [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2002 14:15
To: [EMAIL PROTECTED]
Subject: classes NOT in WEB-INF/classes or CATALINE_HOME/classes


From my understanding of Tomcat, unjar'd classes should be placed in
WEB-INF/classes for ONE web app, and  CATALINA_HOME/classes for shared
access by ALL webapps (correct me if I'm wrong).

Here is what I would like to do: make an un-jar'd class library available to
ONE or ALL web apps. And NOT place them in pre-designated directories.
Reason: I have a development box that runs Tomcat, Orion Server and Web
Logic. It also runs non-webapps. I have a common set of classes used by all.
Don't want to maintain multiple copies of the common class library.

I understand that a webapp is supposed to be a self contained deployment
unit, but it seems that classes should, optionally, be allowed in user
defined paths. In Orion Server, this can be accomplished by adding a
classpath entry to orion-web.xml (one web app) or server.xml (all web-apps).
How can this be done in Tomcat?

Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.comave


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


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




RE: tomcat + apache webapps

2002-02-01 Thread Cressatti, Dominique

I believe so.

create a context in server.xml
As an example see mine.
Context path=/CGI-BIN
docBase=webapps/lansa
debug=0
reloadable=true 
  SimpleRealm filename=conf/users/lansa-users.xml /
  LogSetter name=lansa_tc.log path=logs/lansa.log /
  LogSetter name=lansa_servlet_log
 path=logs/servlet_lansa.log
 servletLogger=true/
  /Context

/CGI-BIN refer to the name of your app and you can test it
by pointing your browser to http://localhost:8080/MyApp/servlet/YourServlet

webapps/lansa refer to where your app is physically located (in my case
under tomcat_home/webapps/lansa

Check that you can access your app as above 1st.
Once your happy you use WebAppDeploy to publish your app through apache,
eg:
...
WebAppDeploy YourAppName WarpConnection /AnyURLYouWant
if you point your browser to http://localhost/AnyURLYouWant/YourServlet
it should work as well.

Let me know if it's not clear

Dom



-Original Message-
From: Doremieux, Olivier [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2002 17:05
To: '[EMAIL PROTECTED]'
Subject: tomcat + apache  webapps


Is there some way to not put my application in the apache/webapps directory?

 
I am using Tomcat 4.0.1  apache 1.3.22
 
Thanks
 
Olivier Dorémieux


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




RE: /manager and mod_webapp connector

2002-02-01 Thread Cressatti, Dominique

I don't about manager but have you tried the examples
like
WebAppDeploy examples WarpConn /examples
and point your browser to 
http://localhost/examples/snoop

Does that work?

Dom

-Original Message-
From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2002 16:51
To: Tomcat Users List
Subject: /manager and mod_webapp connector


Hi everybody

I actually have some pb around /manager.

If i enter the URL http://localhost:8080/manager/list

All is OK. As i add a role - for testing - in the tomcat-users.xml file
i am then asked to enter a login/password issue to make the connection.

BUT when i do the same http://localhost:80/manager/list

i obtain an error 500 after quite a long time.

The config in Apache is

WebAppDeploy manager WarpConn /manager

Maybe this Directive is not available in Apache ?

Any help/ideas welcome.

Jean-Luc B :O)



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


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




RE: guide to getting up and running?

2002-02-01 Thread Cressatti, Dominique

yep it's in tomcat or http://jakarta.apache.org/tomcat/

unpacked classes go in webapps/yourapp/WEB-INF/classes
.jar go in webapps/yourapp/WEB-INF/lib


-Original Message-
From: Clay Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2002 19:08
To: [EMAIL PROTECTED]
Subject: guide to getting up and running?


Can anyone point to a guide to getting up and running with Tomcat, such as
where I put my class file, getting the enviornment set up and things like
that?

Thanks
-Clay


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


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




URL to servlet mapping with mod_jk

2002-01-31 Thread Cressatti, Dominique

quick question:
how do I map a servlet to a URL using mod_jk
eg I have /MyApp/WEB-INF/classes/dir1/dir2dir3/MyServlet.class
and I want that to http://host/MyApp/MyServlet
  

Thanks

Dom


 



RE: URL to servlet mapping with mod_jk

2002-01-31 Thread Cressatti, Dominique

Oh I've got that right!
http://myhost:8080/MyApp/MyServlet
works.
but how do I change the URL that mod_jk publish.

In tomcat4 I would have in web.xml

...
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/MyServletURL/url-pattern
/servlet-mappingI
...

and in my http.conf
...WebAppDeploy MyApp WarpConnection /MyURL

so I can do
http://myhost/MyURL/MyServletURL

What's the equivalent with mod_jk ?

Having looked so far at tomcat3 + mod_jk
and http://myhost/example/soop works
and tried adding in mod_jk.conf

JkMount /MyURL *ajp13
JkMount /MyURL/* *ajp13

but that doesn't work. why?

Dom


-Original Message-
From: Matt Egyhazy [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 13:13
To: Tomcat Users List
Subject: Re: URL to servlet mapping with mod_jk


look at documentation on the servlet and servlet-mapping elements in the
web.xml.

matt
- Original Message -
From: Cressatti, Dominique [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 4:34 AM
Subject: URL to servlet mapping with mod_jk


quick question:
how do I map a servlet to a URL using mod_jk
eg I have /MyApp/WEB-INF/classes/dir1/dir2dir3/MyServlet.class
and I want that to http://host/MyApp/MyServlet


Thanks

Dom






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


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




RE: URL to servlet mapping with mod_jk

2002-01-31 Thread Cressatti, Dominique

I believe *ajp13 should be just ajp13
Sorry I mistyped

I definitely had

JkMount /MyURL ajp13
JkMount /MyURL/* ajp13

but it still doesn't work.
I get the following message when I try
to access it:
Not Found (404)
Original request: /CGI-BIN/LANSAWEBReset Not found request: /CGI-BIN/LANSAWEBReset

so in mod_jk I had

JkMount /CGI-BIN ajp13
JkMount /CGI-BIN/* ajp13

is it failing because my app is called lansa
and therefore doesn't share the same name as the URL ?

Dom



-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 13:54
To: 'Tomcat Users List'
Subject: RE: URL to servlet mapping with mod_jk




 -Original Message-
 From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 31, 2002 8:29 AM
 To: Tomcat Users List
 Subject: RE: URL to servlet mapping with mod_jk
 
 
 Oh I've got that right!
 http://myhost:8080/MyApp/MyServlet
 works.
 but how do I change the URL that mod_jk publish.
 
 In tomcat4 I would have in web.xml
 
 ...
 servlet-mapping
 servlet-nameMyServlet/servlet-name
 url-pattern/MyServletURL/url-pattern
 /servlet-mappingI
 ...
 
 and in my http.conf
 ...WebAppDeploy MyApp WarpConnection /MyURL
 
 so I can do
 http://myhost/MyURL/MyServletURL
 
 What's the equivalent with mod_jk ?
 
 Having looked so far at tomcat3 + mod_jk
 and http://myhost/example/soop works
 and tried adding in mod_jk.conf
 
 JkMount /MyURL *ajp13
 JkMount /MyURL/* *ajp13

I believe *ajp13 should be just ajp13.  These two
mappings  would send all requests to Tomcat/Catalina.
This is the simplest way to map the whole web application
to Tomcat.  You can use:

JkMount /MyURL/MyServlet ajp13

to map only the servlet.  You would need to supply any
additional mappings and Apache config needed to have
your web application work successfully.

Larry

 
 but that doesn't work. why?
 
 Dom
 
 
 -Original Message-
 From: Matt Egyhazy [mailto:[EMAIL PROTECTED]]
 Sent: 31 January 2002 13:13
 To: Tomcat Users List
 Subject: Re: URL to servlet mapping with mod_jk
 
 
 look at documentation on the servlet and servlet-mapping 
 elements in the
 web.xml.
 
 matt
 - Original Message -
 From: Cressatti, Dominique [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, January 31, 2002 4:34 AM
 Subject: URL to servlet mapping with mod_jk
 
 
 quick question:
 how do I map a servlet to a URL using mod_jk
 eg I have /MyApp/WEB-INF/classes/dir1/dir2dir3/MyServlet.class
 and I want that to http://host/MyApp/MyServlet
 
 
 Thanks
 
 Dom
 
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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


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




RE: URL to servlet mapping with mod_jk

2002-01-31 Thread Cressatti, Dominique

I modified my mod_jk.conf to the following

JkMount /lansa /CGI-BIN ajp13
JkMount /lansa /CGI-BIN/* ajp13

but http://192.168.0.247/CGI-BIN/LANSAWEBReset
comes up with:
Not Found
The requested URL /CGI-BIN/LANSAWEBReset was not found on this server.

yet http://192.168.0.247:8080/lansa/LANSAWEBReset
works.

Sorry if the question looks dumb but I didn't see where
was the URL part in your explaination.

Dom


-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 16:05
To: 'Tomcat Users List'
Subject: RE: URL to servlet mapping with mod_jk


The syntax for JkMount is something like:

JkMount /ctx path [/more path ] [ / | /* | /*.ext ] worker

The ctx path has to match up with the context path in use
by Tomcat, i.e. the Context path=ctx path ... / or equivalent
if auto-served.  If the remainder of the mapping matches the request,
it will be passed to Tomcat where it should correspond to
servable content.  

Cheers,
Larry

 -Original Message-
 From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 31, 2002 10:54 AM
 To: Tomcat Users List
 Subject: RE: URL to servlet mapping with mod_jk
 
 
 I believe *ajp13 should be just ajp13
 Sorry I mistyped
 
 I definitely had
 
 JkMount /MyURL ajp13
 JkMount /MyURL/* ajp13
 
 but it still doesn't work.
 I get the following message when I try
 to access it:
 Not Found (404)
 Original request: /CGI-BIN/LANSAWEBReset Not found request: 
 /CGI-BIN/LANSAWEBReset
 
 so in mod_jk I had
 
 JkMount /CGI-BIN ajp13
 JkMount /CGI-BIN/* ajp13
 
 is it failing because my app is called lansa
 and therefore doesn't share the same name as the URL ?
 
 Dom
 
 
 
 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Sent: 31 January 2002 13:54
 To: 'Tomcat Users List'
 Subject: RE: URL to servlet mapping with mod_jk
 
 
 
 
  -Original Message-
  From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 31, 2002 8:29 AM
  To: Tomcat Users List
  Subject: RE: URL to servlet mapping with mod_jk
  
  
  Oh I've got that right!
  http://myhost:8080/MyApp/MyServlet
  works.
  but how do I change the URL that mod_jk publish.
  
  In tomcat4 I would have in web.xml
  
  ...
  servlet-mapping
  servlet-nameMyServlet/servlet-name
  url-pattern/MyServletURL/url-pattern
  /servlet-mappingI
  ...
  
  and in my http.conf
  ...WebAppDeploy MyApp WarpConnection /MyURL
  
  so I can do
  http://myhost/MyURL/MyServletURL
  
  What's the equivalent with mod_jk ?
  
  Having looked so far at tomcat3 + mod_jk
  and http://myhost/example/soop works
  and tried adding in mod_jk.conf
  
  JkMount /MyURL *ajp13
  JkMount /MyURL/* *ajp13
 
 I believe *ajp13 should be just ajp13.  These two
 mappings  would send all requests to Tomcat/Catalina.
 This is the simplest way to map the whole web application
 to Tomcat.  You can use:
 
 JkMount /MyURL/MyServlet ajp13
 
 to map only the servlet.  You would need to supply any
 additional mappings and Apache config needed to have
 your web application work successfully.
 
 Larry
 
  
  but that doesn't work. why?
  
  Dom
  
  
  -Original Message-
  From: Matt Egyhazy [mailto:[EMAIL PROTECTED]]
  Sent: 31 January 2002 13:13
  To: Tomcat Users List
  Subject: Re: URL to servlet mapping with mod_jk
  
  
  look at documentation on the servlet and servlet-mapping 
  elements in the
  web.xml.
  
  matt
  - Original Message -
  From: Cressatti, Dominique [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, January 31, 2002 4:34 AM
  Subject: URL to servlet mapping with mod_jk
  
  
  quick question:
  how do I map a servlet to a URL using mod_jk
  eg I have /MyApp/WEB-INF/classes/dir1/dir2dir3/MyServlet.class
  and I want that to http://host/MyApp/MyServlet
  
  
  Thanks
  
  Dom
  
  
  
  
  
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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


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




RE: WebAppDeploy Vs WebAppMount

2002-01-30 Thread Cressatti, Dominique

jakarta.apache.org it's there.
sorry but I looked into
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/src/
but I couldn't find anything related to mod_webapp

I think you specify this in web.xml of the web application.
but web.xml will relate to port 8080 (or whichever port tomcat listen
to). Frankly am rather confused how come web.xml wiil relate
to something in WebAppDeploy.
It seem to me that both can do servlet to URL mapping but while
web.xml will be serving servlets on port 8080, Webappdeploy
will do it on port 80 and that the 1 am interested.

Dom


-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 06:59
To: Tomcat Users List
Subject: Re: WebAppDeploy Vs WebAppMount


 where do I get the latest source of mod_webapp?

jakarta.apache.org it's there.

 Beside how do specify the mapping?
 What I want to be able to do is point my
 browser to: http://localhost/examples/HelloWorldExmample
 instead of having to do: http://localhost/examples/servlet/HelloWorldExmample
 How do I specify that in WebAppDeploy ?

I think you specify this in web.xml of the web application.

Nix.

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




RE: WebAppDeploy Vs WebAppMount

2002-01-30 Thread Cressatti, Dominique

Are you saying that in order to get
something like:
http://localhost/examples/HelloWorldExample

working, I need to have something like:
WebAppDeploy examples WarpConnection /examples
in httpd.conf
and have a URL-to-Servlet mapping in a web.xml?

Dom

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 13:39
To: Tomcat Users List
Subject: Re: WebAppDeploy Vs WebAppMount


jakarta.apache.org it's there.
 sorry but I looked into 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/src/
 but I couldn't find anything related to mod_webapp

It usually accompanies the distribution of Tomcat. Haven't looked lately.

I think you specify this in web.xml of the web application.
 but web.xml will relate to port 8080 (or whichever port tomcat listen
 to).

There seams to be a misconception here. Port is set in 
$CATALINA_BASE/config/server.xml, while web.xml is in Context/WEB-INF/web.xml. 
web.xml sets up the particular context, dfining URL-to-servlet mappings, parameters, 
etc.

 Frankly am rather confused how come web.xml wiil relate
 something in WebAppDeploy.

It won't, exactly. WARP is supposed to pick it up, the whole context.

  seem to me that both can do servlet to URL mapping but while
 web.xml will be serving servlets on port 8080, Webappdeploy
 will do it on port 80 and that the 1 am interested.

Hmm, well, no, not exactly. WebAppDeploy does just URL-to-connection mapping, 
directing certain URLs to WARP connection, while Tomcat does the URL-to-servlet 
mapping. Tomcat has the final word, in any case.

Nix.

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




RE: WebAppDeploy Vs WebAppMount

2002-01-30 Thread Cressatti, Dominique

You can just modify your server.xml to have TC listen to 80.
Thanks but I still want to serve static pages hence
need to have apache.

-Original Message-
From: Anton Brazhnyk [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 14:48
To: Tomcat Users List
Subject: RE: WebAppDeploy Vs WebAppMount


Hi,

 -Original Message-
 From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 30, 2002 1:05 PM
 To: Tomcat Users List
 Subject: RE: WebAppDeploy Vs WebAppMount
 
 
 jakarta.apache.org it's there.
 sorry but I looked into
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/src/
 but I couldn't find anything related to mod_webapp
 
 I think you specify this in web.xml of the web application.
 but web.xml will relate to port 8080 (or whichever port tomcat listen
 to). Frankly am rather confused how come web.xml wiil relate
 to something in WebAppDeploy.
 It seem to me that both can do servlet to URL mapping but while
 web.xml will be serving servlets on port 8080, Webappdeploy
 will do it on port 80 and that the 1 am interested.
 

If all you need is port 80 then there is no need in mod_webapp.
You can just modify your server.xml to have TC listen to 80.

 Dom
 

Anton

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


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




WebAppDeploy Vs WebAppMount

2002-01-29 Thread Cressatti, Dominique

what's the difference between the 2?
 
I grabed what I think was the lastest mod_webapp module
( http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b2/rpms/)
and it added the following in my httpd.conf
 
WebAppConnection WarpConnection warp localhost:8008
WebAppDeploy examples WarpConnection /examples
IfModule mod_webapp.c
WebAppConnection warpConnection warp localhost:8008
WebAppMount examples warpConnection /examples/
WebAppMount manager warpConnection /manager/
WebAppMount webdav warpConnection /webdav/
/IfModule
 
whoever set up the rpm, there was already an error when tried to start
apache. Apache complained about the same connection name.
It appear that the connection name is NOT case sensitive.
 
Anyway after I changed 1of  the connection name to avoid the duplicate
apache came with the error:
Syntax error on line 1453 of /etc/httpd/conf/httpd.conf:
Invalid command 'WebAppMount', perhaps mis-spelled or defined by a module not in
cluded in the server configuration
 
Has anybody else encountered the same problem?
 
The reason I wanted a recent version of mod_webapp is that it is
supposed to support specification of complete path as David Smith
mentionned in post (BTW David, I couldn't find any mod_webapp in the nightly
snapshot, so that's why I used the rpm).

Best regards.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

Legal stuff 
This E-mail is confidential and may also be privileged. If you are not the intended 
recipient, please notify us immediately by telephoning +44 (0) 1727 790300. You should 
not copy it or use it for any other purpose, nor disclose its contents to any other 
person. In messages of non-business nature, the views and opinions expressed are the 
author's own and do not necessarily reflect the views and opinions of the Company 

 



RE: WebAppDeploy Vs WebAppMount

2002-01-29 Thread Cressatti, Dominique

you can always try to compile it, it's quite easy now
where do I get the latest source of mod_webapp?

Beside how do specify the mapping?
What I want to be able to do is point my
browser to:
http://localhost/examples/HelloWorldExmample
instead of having to do:
http://localhost/examples/servlet/HelloWorldExmample
How do I specify that in WebAppDeploy ?

Thanks
Dom

-Original Message-
From: Patrick Roumanoff [mailto:[EMAIL PROTECTED]]
Sent: 29 January 2002 17:22
To: Tomcat Users List
Subject: Re: WebAppDeploy Vs WebAppMount


 WebAppConnection WarpConnection warp localhost:8008


 WebAppDeploy examples WarpConnection /examples


 IfModule mod_webapp.c


 WebAppConnection warpConnection warp localhost:8008


 WebAppMount examples warpConnection /examples/


 WebAppMount manager warpConnection /manager/


 WebAppMount webdav warpConnection /webdav/


 /IfModule



Obviously there is something wrong here... should be something like

IfModule mod_webapp.c


 WebAppConnection warpConnection warp localhost:8008


 WebAppDeploy examples WarpConnection /examples


 WebAppDeploy manager WarpConnection /manager

 WebAppDeploy webdav WarpConnection /webdav

/IfModule



WebAppMount is not document with mod_webapp 1.0.2-tc402

more over, manager servlet doesn't work, I guess it's because
it require BASIC authentication and the RELEASE-NOTES for tomcat
402b says it's broken in mod_webapp...

 The reason I wanted a recent version of mod_webapp is that it is


 supposed to support specification of complete path as David Smith


 mentionned in post (BTW David, I couldn't find any mod_webapp in the

 nightly


 snapshot, so that's why I used the rpm).



you can always try to compile it, it's quite easy now

hope this help

pkr

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


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




RE: mod_webapp problem.. please haaaalp

2002-01-24 Thread Cressatti, Dominique

I would try:
LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  examples warpConnection /examples

for a start.
also you missed 
AddModule mod_webapp.c in your httpd.conf
and did you specify your SeverName as well (very important)?

Dom


-Original Message-
From: thys de wet [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2002 10:59
To: [EMAIL PROTECTED]
Subject: mod_webapp problem.. please hlp


I am having problems with mod_webapp..
Yes i have browsed the archives, no i haven't found an answer.

Heres the scenario .

Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc.

Both of these work fine independantly.

Entry in httpd.conf
LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  webdav warpConnection /webdav/
WebAppInfo /webappinfo

Entry in apache error log file when trying /webappinfo

[Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not
exist: /usr/local/apache_1.3.22/htdocs/webappinfo

Any ideas please. I would realy like to get thois working.



Oh dear, I think you'll find reality's on the blink again.
-- Marvin The Paranoid Android


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


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




RE: mod_webapp problem.. please haaaalp

2002-01-24 Thread Cressatti, Dominique

you know what I meant by servername (not the one associated with
virtualhost)?
unommenting #ServerName and specifying your box like:
ServerName DNSNameOfyourServer.

Also did you remove/unmented that WebAppInfo directive?
Also where did you put WebAppconnection? just after LoadModule?

Dom

-Original Message-
From: thys de wet [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2002 12:02
To: 'Tomcat Users List'
Subject: RE: mod_webapp problem.. please hlp


I've tried that, my servername is specified in httpd.conf, I've also added
Addmodule mod_webapp.c. I still get the same problems..



-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 1:32 PM
To: Tomcat Users List
Subject: RE: mod_webapp problem.. please hlp


I would try:
LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  examples warpConnection /examples

for a start.
also you missed
AddModule mod_webapp.c in your httpd.conf
and did you specify your SeverName as well (very important)?

Dom


-Original Message-
From: thys de wet [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2002 10:59
To: [EMAIL PROTECTED]
Subject: mod_webapp problem.. please hlp


I am having problems with mod_webapp..
Yes i have browsed the archives, no i haven't found an answer.

Heres the scenario .

Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc.

Both of these work fine independantly.

Entry in httpd.conf
LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  webdav warpConnection /webdav/
WebAppInfo /webappinfo

Entry in apache error log file when trying /webappinfo

[Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not
exist: /usr/local/apache_1.3.22/htdocs/webappinfo

Any ideas please. I would realy like to get thois working.



Oh dear, I think you'll find reality's on the blink again.
-- Marvin The Paranoid Android


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


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



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


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




RE: mod_webapp problem.. please haaaalp

2002-01-24 Thread Cressatti, Dominique

 LoadModule webapp_module libexec/mod_webapp.so
has to be under other LoadModule lines
AddModule mod_webapp.c
has to be under other AddModule lines
and then add 

WebAppConnection warpConnection warp localhost:8008
WebAppDeploy  examples warpConnection /examples

at the END of your httpd.conf and remove the one you had
before.
Then see if apache still complains. if not I'll tell
you how to test it then.

Dom

-Original Message-
From: thys de wet [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2002 12:19
To: 'Tomcat Users List'
Subject: RE: mod_webapp problem.. please hlp


my httpd.conf now looks like :


ServerName isolde.ics.didata.com


 LoadModule webapp_module libexec/mod_webapp.so

AddModule mod_webapp.c
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  webdav warpConnection /webdav/
WebAppInfo /webappinfo


still no joy :(

-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 2:14 PM
To: Tomcat Users List
Subject: RE: mod_webapp problem.. please hlp


you know what I meant by servername (not the one associated with
virtualhost)?
unommenting #ServerName and specifying your box like:
ServerName DNSNameOfyourServer.

Also did you remove/unmented that WebAppInfo directive?
Also where did you put WebAppconnection? just after LoadModule?

Dom

-Original Message-
From: thys de wet [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2002 12:02
To: 'Tomcat Users List'
Subject: RE: mod_webapp problem.. please hlp


I've tried that, my servername is specified in httpd.conf, 
I've also added
Addmodule mod_webapp.c. I still get the same problems..



-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 1:32 PM
To: Tomcat Users List
Subject: RE: mod_webapp problem.. please hlp


I would try:
LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  examples warpConnection /examples

for a start.
also you missed
AddModule mod_webapp.c in your httpd.conf
and did you specify your SeverName as well (very important)?

Dom


-Original Message-
From: thys de wet [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2002 10:59
To: [EMAIL PROTECTED]
Subject: mod_webapp problem.. please hlp


I am having problems with mod_webapp..
Yes i have browsed the archives, no i haven't found an answer.

Heres the scenario .

Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc.

Both of these work fine independantly.

Entry in httpd.conf
LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  webdav warpConnection /webdav/
WebAppInfo /webappinfo

Entry in apache error log file when trying /webappinfo

[Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not
exist: /usr/local/apache_1.3.22/htdocs/webappinfo

Any ideas please. I would realy like to get thois working.



Oh dear, I think you'll find reality's on the blink again.
-- Marvin The Paranoid Android


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


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



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


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



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


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




specifying servlet in subdirectory in web.xml

2002-01-24 Thread Cressatti, Dominique

Hi,
 
how do I specify the location of class in a subdirectory.
 
I have HelloWorldExample.class and LocalStrings.properties under
/webapps/test/WEB-INF/classes
and my web.xml looks like:
...
servlet
servlet-namehello/servlet-name
servlet-classHelloWorldExample/servlet-class
/servlet
 
servlet-mapping
servlet-namehello/servlet-name
url-pattern/hello/url-pattern
/servlet-mapping
...
 
It all works find I point my browser to http://localhost:8080/test/hello.
However if I move HelloWorldExample.class and LocalStrings.properties under
/webapps/test/WEB-INF/classes/hello
and change my web.xml (to reflect the move) to:
... 
servlet
servlet-namehello/servlet-name
servlet-classhello.HelloWorldExample/servlet-class
/servlet
...

pointing my browser to http://localhost:8080/test/hello
comes up with:
error 500
location/test/hello
internal error
java.lang.NoClassDefFoundError: hello/HelloWorldExample (wrong name: HelloWorldExample)

why? I suspect that didn't define the path in servlet-class correctly so what's the 
right syntax?
 
Thanks
Dom




RE: specifying servlet in subdirectory in web.xml

2002-01-24 Thread Cressatti, Dominique

Thanks

a lot of things start to make sense now

Dom

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2002 11:59
To: 'Tomcat Users List'
Subject: RE: specifying servlet in subdirectory in web.xml



The directories under the classes directory correspond to the
package statement used in the source file.  If you want to call your class
hello.HelloWorldExample then you need to put package hello; as the first
line of HelloWorldExample.java and recompile.

Randy
 

 -Original Message-
 From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 24, 2002 7:40 AM
 To: Tomcat Users List
 Subject: specifying servlet in subdirectory in web.xml
 
 
 Hi,
  
 how do I specify the location of class in a subdirectory.
  
 I have HelloWorldExample.class and LocalStrings.properties under
 /webapps/test/WEB-INF/classes
 and my web.xml looks like:
 ...
 servlet
 servlet-namehello/servlet-name
 servlet-classHelloWorldExample/servlet-class
 /servlet
  
 servlet-mapping
 servlet-namehello/servlet-name
 url-pattern/hello/url-pattern
 /servlet-mapping
 ...
  
 It all works find I point my browser to 
 http://localhost:8080/test/hello.
 However if I move HelloWorldExample.class and 
 LocalStrings.properties under
 /webapps/test/WEB-INF/classes/hello
 and change my web.xml (to reflect the move) to:
 ... 
 servlet
 servlet-namehello/servlet-name
 servlet-classhello.HelloWorldExample/servlet-class
 /servlet
 ...
 
 pointing my browser to http://localhost:8080/test/hello
 comes up with:
 error 500
 location/test/hello
 internal error
 java.lang.NoClassDefFoundError: hello/HelloWorldExample 
 (wrong name: HelloWorldExample)
 
 why? I suspect that didn't define the path in servlet-class 
 correctly so what's the right syntax?
  
 Thanks
 Dom
 
 

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


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




running servlet manually

2002-01-24 Thread Cressatti, Dominique

How do I run manually a servlet located in subdirectory.
I mean I can run HelloWorldExample directly (not using web.xml)
by doing:
http://localost:8080/appdir/servlet/HelloWorldExample
when it is located in:
/webapp/appdir/WEB-INF/classes/
 
but how would I do it (specify the subdirectory) if
HelloWorldExample.class was located in
/webapp/appdir/WEB-INF/classes/subdir/

Thanks

Dom




Can't find my servlet config file

2002-01-24 Thread Cressatti, Dominique

Hi,
 
one of my servlet relies on a text file to run but tomcat doesn't seem
to find it.
When I do http://localhost:8080/lansa.servlet/com.lansa.web.servlet.LANSAWEB
I get:
The configuration file 'L4W3SERV.CFG' could not be found
the directory containing the configuration file may not be included in the CLASSPATH'
..\lib\tomcat.jar'
  
That proves that the servlet run but even though I copied L4W3SERV.CFG into
about every tomcat's directory, it still can't find it.
Any idea

Thanks

Dom


 



running jar files

2002-01-22 Thread Cressatti, Dominique

I have some jar files, swingall.jar and lansa.jar
How do I do the equivalent of:
java -cp ./:./lansa.jar:./swingall.jar com.lansa.web.admin.WebAbmin
which basically run manually  the WebAdmin applet.
I know it's an applet but there is a servlet equivalent.
 
Sorry if this is too much of a basic question but after 3 days
of trying just about every combination under the sun, am still getting nowhere,
all I ever get is java.lang.NoClassDefFoundError... com/lansa/web/servlet
  
Dom




RE: running jar files

2002-01-22 Thread Cressatti, Dominique

May be I wasn't too clear.

actually something like:
 c:\ java -cp jarfile1.jar;jarfile2.jar; com.lansa.web.admin.WebAdmin
works very well and am just trying to reproduce that under
tomcat4.

I've even extracted all the content of lansa.jar and swingall.jar
and copied it under /webapps/lansa/WEB-INF/classes
but no matter I always seem to get the dependency issue.
I believe there's no classes missing cos I know those jar files
work using jserve but it seem that tomcat can't find the required
classes.

Thanks
Dom

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2002 16:36
To: Tomcat Users List
Subject: RE: running jar files


To execute a Jar file I would do 
 c:\ java -jar jarfile.jar
 if I was trying to execute a specific class in a jar file I would do : 
 c:\ java -cp jarfile1.jar;jarfile2.jar; com.lansa.web.admin.WebAdmin

If that doesn´t work I would check if this class really exists in the
jarfiles I have, and if I have the correct path.
Anyways it seems that you are executing the correct class, but it does
not get to another class that should be in the jarfiles that you have in
your classpath.  So, I would check if I had this class
com.lansa.web.servlet in my jarfiles (the ones in my classpath). 
maybe it isn´t there, then you should head back to the download page or
something. 
I dont know this product and I´ve never used it. It seems like you´re
haveing problems with basic java stuff, really just pretty much off
topic for this list.

 hope it helps, 
  regards, 
[EMAIL PROTECTED]



 


-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: 22. janúar 2002 16:25
To: Tomcat Users List
Subject: running jar files


I have some jar files, swingall.jar and lansa.jar
How do I do the equivalent of:
java -cp ./:./lansa.jar:./swingall.jar com.lansa.web.admin.WebAbmin
which basically run manually  the WebAdmin applet.
I know it's an applet but there is a servlet equivalent.
 
Sorry if this is too much of a basic question but after 3 days
of trying just about every combination under the sun, am still getting
nowhere,
all I ever get is java.lang.NoClassDefFoundError...
com/lansa/web/servlet
  
Dom


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


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




basic servlet move doesn't work

2002-01-21 Thread Cressatti, Dominique

Hi,
 
I have a very simple example app.
For testing purposes I moved the servlet into a subdirectory.
So before the move I had
/webapps/Wide_World/WEB-INFO/classes/ForwardServlet.class
and after the move I had
/webapps/Wide_World/WEB-INFO/classes/dir/ForwardServlet.class
 
according to the docs I've read I can do such a thing and reflect it
I need edit /webapps/Wide_World/web.xml
 
from:
servlet-nameforward/servlet-name
servlet-classForwardServlet/servlet-class
 
to
servlet-nameforward/servlet-name
servlet-classdir.ForwardServlet/servlet-class
 
which I did (and restated tomcat).
However how such simple change doesn't work?
Now when I try to access again the servlet I get:
...HTTP error status 500...
Error allocating a servlet instance
root cause
java.lang.NoClassDefFoundError: dir/ForwardServlet (wrong name: ForwardServlet)...
 
What's going on!
 
Thanks
Dom





RE: basic servlet move doesn't work

2002-01-21 Thread Cressatti, Dominique

No I didn't change anything.
So I see the location is hard-coded.

I did that little test cos. I've got
another app with the following dir
structure
com/lansa/web/servlet/LANSAWEB
which I put webapp/lansa/WEB-INFO
yet every time am trying to run it always complains
with the same kind of error, root cause...java.lang.NoClassDefFoundError...
basically it can't find the class in com/lansa/web/servlet.

Yet from what I've read it seem that you only need to put unpacked
your classes in /webapps/AppName/WEB-INF/classes and basically your
app will know where to find other classes which it depends on, requiring
no need to have classpath anymore.

Sorry for so far the docs looks misleading to me.
On thing this app was original in jar file format and
contains an applet which I could easily run using the command
$JAVA_HOME/jre/bin/java -cp ./:./lansa.jar:./swingall.jar 
com.lansa.web.admin.WebAdministrator

What am trying to run is com.lansa.web.servlet.LANSAWEB
As well there was no web.xml provided but do I really need
to create it given that putting everything under /WEB-INF/classes
claims to resolve all dependencies?

Beside why can I run the applet from the command line using
the jar files but I couldn't do the same thing (no web.xml required)
when trying to run the servlet.
As well I must mention that a colleague manage to run the LANSAWEB
servlet using the same jar file and jserve.

Thanks

Dom

-Original Message-
From: dderry [mailto:[EMAIL PROTECTED]]
Sent: 21 January 2002 15:00
To: Tomcat Users List
Subject: Re: basic servlet move doesn't work


Sounds like you may have not changed the package statement in
ForwardServlet. Remember that the directory structure reflects the package
structure (or vice versa). It looks like it is finding the class
ForwardServlet, but it is the wrong name because it is expecting to find
dir.ForwardServlet (ie. it expects ForwardServlet to be in the dir package).

Hope this helps,
Dave Derry


- Original Message -
From: Cressatti, Dominique [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 21, 2002 10:53 AM
Subject: basic servlet move doesn't work


Hi,

I have a very simple example app.
For testing purposes I moved the servlet into a subdirectory.
So before the move I had
/webapps/Wide_World/WEB-INFO/classes/ForwardServlet.class
and after the move I had
/webapps/Wide_World/WEB-INFO/classes/dir/ForwardServlet.class

according to the docs I've read I can do such a thing and reflect it
I need edit /webapps/Wide_World/web.xml

from:
servlet-nameforward/servlet-name
servlet-classForwardServlet/servlet-class

to
servlet-nameforward/servlet-name
servlet-classdir.ForwardServlet/servlet-class

which I did (and restated tomcat).
However how such simple change doesn't work?
Now when I try to access again the servlet I get:
...HTTP error status 500...
Error allocating a servlet instance
root cause
java.lang.NoClassDefFoundError: dir/ForwardServlet (wrong name:
ForwardServlet)...

What's going on!

Thanks
Dom






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


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




RE: IIS or Apache

2002-01-21 Thread Cressatti, Dominique

From stability/bugs/security point of view the choice is easy,
use apache.
Why on earth anyone would run IIS? given it track record (code red, nimba, etc...).
apache is portable, try to replicate a config on another platform using IIS,
even on another MS platform it's not that easy.
With Apache on the other hand you bearly need to copy the structure and
httpd.conf

Apache has 60% market share and IIS about 20%
yet IIS is top notch when it comes to the amount of bugs/security
holls uncovered, apache bearly none.

Again why on earth anyone with a bit of common sense would consider
running IIS.

Dom

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 21 January 2002 16:51
To: [EMAIL PROTECTED]
Subject: IIS or Apache


Hi,
I have a JSP application (with java classes) to run on Windows 2000
server. For JSP i am using tomcat container. Can anyone please let me know
should I use Microsoft IIS web server or Apache web server for my
application. Please tell me which is better IIS or Apache on the following
basis:
1. Stability
2. Speed
3. Load
4. Overall (considering any other parameters)

Sumit.
The information contained in this e-mail and any files transmitted with it
may be privileged and confidential.  If the reader of this message,
regardless of the address or routing, is not an intended recipient, you are
hereby notified that you have received this transmittal in error and any
review, use, distribution, dissemination or copying is strictly prohibited.
If you have received this message in error, please delete this e-mail and
all files transmitted with it from your system and notify the sender by
reply e-mail or by calling 1-888-338-6076. 

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


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




RE: IIS or Apache

2002-01-21 Thread Cressatti, Dominique

Ever heard of managers ;)
yes and what do they pay you for?
tell you how to do your job or letting
you do your job ie finding the best web server.

If he willing to put his butt on the line for
deploying the worth web server and take full
responsibilities for breaking into your site,
fine.

Again do your job, compare which of apache and IIS
had the most bug/securities hols issues which
one tie you up to a specific platform ,which one
makes it difficult to replicate/migrate to a different
PC.

As well if you go for IIS you gonna have to patch and
keep up with them fairly frequently (look at how many
patches had been released for IIS in the last year),
therefore it means more down time.

Apache is open source = if you find a bug that prevent
your site to stay up or compromise it, providing that
can code in C you can fix it there and then.
With IIS pray that MS 1) can be asked to fix it 2) they
do it quickly.

If apache/Linux is good enough for amazon.com to commit
there business on it why can't it be good enough for your
boss?

Dom
-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: 21 January 2002 17:09
To: Tomcat Users List
Subject: RE: IIS or Apache


Ever heard of managers ;)

 -Original Message-
 From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 21, 2002 18:08
 To: Tomcat Users List
 Subject: RE: IIS or Apache


 From stability/bugs/security point of view the choice is easy,
 use apache.
 Why on earth anyone would run IIS? given it track record (code
 red, nimba, etc...).
 apache is portable, try to replicate a config on another platform
 using IIS,
 even on another MS platform it's not that easy.
 With Apache on the other hand you bearly need to copy the structure and
 httpd.conf

 Apache has 60% market share and IIS about 20%
 yet IIS is top notch when it comes to the amount of bugs/security
 holls uncovered, apache bearly none.

 Again why on earth anyone with a bit of common sense would consider
 running IIS.

 Dom

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 21 January 2002 16:51
 To: [EMAIL PROTECTED]
 Subject: IIS or Apache


 Hi,
   I have a JSP application (with java classes) to run on Windows 2000
 server. For JSP i am using tomcat container. Can anyone please let me know
 should I use Microsoft IIS web server or Apache web server for my
 application. Please tell me which is better IIS or Apache on the following
 basis:
 1. Stability
 2. Speed
 3. Load
 4. Overall (considering any other parameters)

 Sumit.
 The information contained in this e-mail and any files transmitted with it
 may be privileged and confidential.  If the reader of this message,
 regardless of the address or routing, is not an intended
 recipient, you are
 hereby notified that you have received this transmittal in error and any
 review, use, distribution, dissemination or copying is strictly
 prohibited.
 If you have received this message in error, please delete this e-mail and
 all files transmitted with it from your system and notify the sender by
 reply e-mail or by calling 1-888-338-6076.

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


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




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


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




RE: Apache - Tomcat - integration

2002-01-18 Thread Cressatti, Dominique

it's fairly easy, once you know how do it
and were are pitfalls.

2...
I don't know what is the AJP connector but I don't
you need since you should be using the warp connector.

1st) are tomcat and apache working? have you tried to
go to http://localhost:8080/examples/ and http://localhost

What did you add in your httpd.conf?
did you uncomment and configured the ServerName
(not the one to do with virtualhost) directive?

Dom




-Original Message-
From: Brown Bay [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2002 06:06
To: Tomcat Users List
Subject: Apache - Tomcat - integration


Hi,

I have been trying to make Apache 1.3 and Tomcat 4.0 work together but I was
not sure what the different pieces are that I need to make them work
together. I have listed a couple of doubts below, please take the time to
answer them.

1. What is mod_webwap. Do I need this in my case. I have downloaded and
copied the .dll into winnt/system32 and into %APACHE_HOME%/modules and the
.so in to %APACHE_HOME%/modules

2. What is AJP connector and what is the relation with mod_jk. Do I need
this in my case, according to the docs the AJP connector is required to
connect to web servers, but the docs dont say exactly what is to be done (or
maybe I have not been able to understand)

One of the places that I saw
http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml and
http://dcb.sun.com/practices/howtos/tomcat_apache.jsp gave an easy guide
that does not seem to work in my case. When I type http://localhost/examples
the Apache.exe process runs at 99% and never comes back.

Please let me know.

Thanks in advance.

Brown.

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


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




RE: apache-tomcat4 connection via WARP

2002-01-18 Thread Cressatti, Dominique

one thing I've noticed is
if if try

http://hostname:8080/examples
it automatically add that trailing slash for u
once it reached the page.

So I get the feeling that it's something
to do with tomcat (I may be wrong)

Dom


-Original Message-
From: Young Jun Kim [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2002 09:35
To: [EMAIL PROTECTED]
Subject: apache-tomcat4 connection via WARP


i have apache+tomcat4 with WARP connector(mod_webapp.so).
everything works fine except one thing...

when i tried
http://hostname/examples/
default webpage (such as index.jsp, index.html) is displayed correctly.
but, when i tried
http://hostname/examples  -- no slash(/)
i got internal error (500 error).

the strange thing is when i tried http://hostname:8080/examples
(when directly access to tomcat4) default page is displayed correctly.

other directories not connected to tomcat work fine.

does anyone know what's wrong this configuration? is this apache problem? or 
tomcat4 problem?


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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


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




RE: Apache - Tomcat - integration

2002-01-18 Thread Cressatti, Dominique

as well:
http://localhost/examples
will not work for me but
http://localhost/examples/
does.

Dom

-Original Message-
From: Cressatti, Dominique 
Sent: 18 January 2002 10:22
To: Tomcat Users List
Subject: RE: Apache - Tomcat - integration


it's fairly easy, once you know how do it
and were are pitfalls.

2...
I don't know what is the AJP connector but I don't
you need since you should be using the warp connector.

1st) are tomcat and apache working? have you tried to
go to http://localhost:8080/examples/ and http://localhost

What did you add in your httpd.conf?
did you uncomment and configured the ServerName
(not the one to do with virtualhost) directive?

Dom




-Original Message-
From: Brown Bay [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2002 06:06
To: Tomcat Users List
Subject: Apache - Tomcat - integration


Hi,

I have been trying to make Apache 1.3 and Tomcat 4.0 work together but I was
not sure what the different pieces are that I need to make them work
together. I have listed a couple of doubts below, please take the time to
answer them.

1. What is mod_webwap. Do I need this in my case. I have downloaded and
copied the .dll into winnt/system32 and into %APACHE_HOME%/modules and the
.so in to %APACHE_HOME%/modules

2. What is AJP connector and what is the relation with mod_jk. Do I need
this in my case, according to the docs the AJP connector is required to
connect to web servers, but the docs dont say exactly what is to be done (or
maybe I have not been able to understand)

One of the places that I saw
http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml and
http://dcb.sun.com/practices/howtos/tomcat_apache.jsp gave an easy guide
that does not seem to work in my case. When I type http://localhost/examples
the Apache.exe process runs at 99% and never comes back.

Please let me know.

Thanks in advance.

Brown.

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


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


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




executing servlet in a jar file

2002-01-17 Thread Cressatti, Dominique

Hi,
 
am trying to execute a servlet within a jar file.
I gathered so far that I had to copy the jar file in ./WEB-INF/lib
 
As an alternative I've extracted the content of that jar file an
put the classes under ./WEB-INF/classes.
The problem is that the servlet I want to execute is buried within
several subdirectories and when extracted it looked like something like:
 
MyWebapp/subdirectory1/subdirectory2/subdirectory3/servlet1.class
 
Like I said I copied all the servlets under /subdirectory3 into ./WEB-INF/classes
but when tried to run it manually ( http://localhost:8080/MyWebapp/servlet/servlet1)
it can up with a error mentioning the above directory structure so I gathered
the servlets object to move out the directory structure.
I then moved all the above directory structure back (including moving back the 
servlets under
/directory3) under ./WEB-INF/classes but when I tried to run again it just wouldn't 
find my
servlet (resource is not available).
 
So how do I run the servlet manually ((like 
http://localhost:8080/MyWebapp/servlet/servlet1)
using the jar file or how organise my directories so my servlet work when extracted 
under ./WEB-INF/classes ?

 
Thanks
Dom

 



RE: executing servlet in a jar file

2002-01-17 Thread Cressatti, Dominique

Walter,

I had look around and tried what you suggested,
added all the classes under /directory3 because
at 1st it complain that some the class were missing.
Yet I still have some errors.

Beside how come the HelloWorldExample can be run
from http://localhost:8080/examples/servlets/HelloWorldExample
when there is no mention whatsoever of HelloWorlExample (not even
hello) and its class web.xml in ./examples/WEB-INF/web.xml?

Thanks
Dom

-Original Message-
From: Walter De Wit [mailto:[EMAIL PROTECTED]]
Sent: 17 January 2002 10:18
To: 'Tomcat Users List'
Subject: RE: executing servlet in a jar file


I think you forgot the web.xml file which contains the mapping between the
URL and the servlet class file.
In web.xml which must be situated in WEB-INF directory, for each servlet
there must be a servlet-mapping entry:
servlet
  servlet-nameMyServlet/servlet-name
 
servlet-classsubdirectory1.subdirectory2.subdirectory3.servlet1.class/ser
vlet-class
/servlet
servlet-mapping
  servlet-nameMyServlet/servlet-name
  url-pattern/doMyServlet/url-pattern
/servlet-mapping 

Now calling http://localhost:8080/MyWebapp/doMyServlet will start the
servlet1.class.
Maybe you should read some documentation about a .war file (which is a
.jar), or open one of the examples delivered together with Tomcat.

-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: donderdag 17 januari 2002 11:06
To: Tomcat Users List
Subject: executing servlet in a jar file


Hi,
 
am trying to execute a servlet within a jar file.
I gathered so far that I had to copy the jar file in ./WEB-INF/lib
 
As an alternative I've extracted the content of that jar file an
put the classes under ./WEB-INF/classes.
The problem is that the servlet I want to execute is buried within
several subdirectories and when extracted it looked like something like:
 
MyWebapp/subdirectory1/subdirectory2/subdirectory3/servlet1.class
 
Like I said I copied all the servlets under /subdirectory3 into
./WEB-INF/classes
but when tried to run it manually (
http://localhost:8080/MyWebapp/servlet/servlet1)
it can up with a error mentioning the above directory structure so I
gathered
the servlets object to move out the directory structure.
I then moved all the above directory structure back (including moving back
the servlets under
/directory3) under ./WEB-INF/classes but when I tried to run again it just
wouldn't find my
servlet (resource is not available).
 
So how do I run the servlet manually ((like
http://localhost:8080/MyWebapp/servlet/servlet1)
using the jar file or how organise my directories so my servlet work when
extracted under ./WEB-INF/classes ?

 
Thanks
Dom

 

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


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




RE: executing servlet in a jar file

2002-01-17 Thread Cressatti, Dominique

Walter,

am looking right now at CATALINA_HOME/conf/web.xml
my guess is that I might still be missing some
dependencies.
A colleague told that he deployed successfully
the same app under jserve and only add
to link the class path for the application,
so I was thinking that if I could define
the root path of the classes for this app
it could work.

I seem to recall seeing a post where something
like virtual host were defined.

Rgds
Dom

-Original Message-
From: Walter De Wit [mailto:[EMAIL PROTECTED]]
Sent: 17 January 2002 15:33
To: 'Tomcat Users List'
Subject: RE: executing servlet in a jar file


After I send you the mail I found something else:
The directory CATALINA_HOME/conf contains also a web.xml file !
This file is loaded first for every web application before the web.xml file
of the web application itself is loaded.
This file contains some default settings valid for every web application. It
contains an Invoker servlet which seems to do the job of trying to load a
servlet when the url matches /servlet/*.
So this is what causes the HelloWorldExample to be loaded correctly.

Now you know why but also I do not understand why your servlet is not
running.
What are the errors you got ?

-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: donderdag 17 januari 2002 16:17
To: Tomcat Users List
Subject: RE: executing servlet in a jar file


Walter,

I had look around and tried what you suggested,
added all the classes under /directory3 because
at 1st it complain that some the class were missing.
Yet I still have some errors.

Beside how come the HelloWorldExample can be run
from http://localhost:8080/examples/servlets/HelloWorldExample
when there is no mention whatsoever of HelloWorlExample (not even
hello) and its class web.xml in ./examples/WEB-INF/web.xml?

Thanks
Dom

-Original Message-
From: Walter De Wit [mailto:[EMAIL PROTECTED]]
Sent: 17 January 2002 10:18
To: 'Tomcat Users List'
Subject: RE: executing servlet in a jar file


I think you forgot the web.xml file which contains the mapping between the
URL and the servlet class file.
In web.xml which must be situated in WEB-INF directory, for each servlet
there must be a servlet-mapping entry:
servlet
  servlet-nameMyServlet/servlet-name
 
servlet-classsubdirectory1.subdirectory2.subdirectory3.servlet1.class/ser
vlet-class
/servlet
servlet-mapping
  servlet-nameMyServlet/servlet-name
  url-pattern/doMyServlet/url-pattern
/servlet-mapping 

Now calling http://localhost:8080/MyWebapp/doMyServlet will start the
servlet1.class.
Maybe you should read some documentation about a .war file (which is a
.jar), or open one of the examples delivered together with Tomcat.

-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: donderdag 17 januari 2002 11:06
To: Tomcat Users List
Subject: executing servlet in a jar file


Hi,
 
am trying to execute a servlet within a jar file.
I gathered so far that I had to copy the jar file in ./WEB-INF/lib
 
As an alternative I've extracted the content of that jar file an
put the classes under ./WEB-INF/classes.
The problem is that the servlet I want to execute is buried within
several subdirectories and when extracted it looked like something like:
 
MyWebapp/subdirectory1/subdirectory2/subdirectory3/servlet1.class
 
Like I said I copied all the servlets under /subdirectory3 into
./WEB-INF/classes
but when tried to run it manually (
http://localhost:8080/MyWebapp/servlet/servlet1)
it can up with a error mentioning the above directory structure so I
gathered
the servlets object to move out the directory structure.
I then moved all the above directory structure back (including moving back
the servlets under
/directory3) under ./WEB-INF/classes but when I tried to run again it just
wouldn't find my
servlet (resource is not available).
 
So how do I run the servlet manually ((like
http://localhost:8080/MyWebapp/servlet/servlet1)
using the jar file or how organise my directories so my servlet work when
extracted under ./WEB-INF/classes ?

 
Thanks
Dom

 

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


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

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


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




RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-15 Thread Cressatti, Dominique

Did you get the RPM or the standard binary?
The RPM open port 8180 (this is set in catalina_home/bin/conf/server.xml)
while the standard binary (jakarta-tomcat)open port 8080.

I've found that with the rpm version, ./service tomcat4 start
doesn't start tomcat (even though it claim so).
I think it something to do with not being able to find the java
path (even if it is correctly defined in /etc/tomcat4/conf/tomcat4.conf)

which binary did you get? RPM or standard binary?

Dom


-Original Message-
From: John Niven [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 12:50
To: Tomcat Users List
Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
Mode


Steve

I'm not sure (I'm a relative newbie and my platform is typically Windows :(
) but I thought the default port on Linux was 8180, not 8080.  If you've not
changed the defaults, have you tried http://localhost:8180?

Best wishes,
John

John Niven
johnDOTnivenATmarcatDOTcom


 -Original Message-
 From: Steve [mailto:[EMAIL PROTECTED]]
 Sent: 14 January 2002 10:33
 To: Tomcat Users List
 Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
 Mode
 
 
 Hi Nelson.
 
 I did download  install the jdk 1.3.1_02, tomcat 4.0.1
 
 I put my JAVA_HOME, TOMCAT_HOME,  CATALINA_HOME paths into 
 /etc/profile
 ( so I could use these things any where ).
 
 
 The paths are set and tomcat is reporting the correct paths back to me
 before it sits there and does nothing.
 
 
 
 
 Nelson Yip wrote:
 
   FOLLOW THESE SIMPLE INSTRUCTIONS AND IT SHOULD WORK.
   BTW, I INSTALLED TOMCAT ON REDHAT 7.2.
  
   1.  Download both attached file j2sdk-1_3_1_02-linux-i386.bin and
   jakarta-tomcat-4.0.1.tar.gz
   2.  Ftp the files over to your home directory.
   3.  Gunzip the file gunzip jakarta-tomcat-4.0.1.tar.gz 
 after that you
   should see a file name jakarta-tomcat-4.0.1.tar
   4.  Extract the tar file tar -xvf 
 jakarta-tomcat-4.0.1.tar you should
   get a folder called jakarta-tomcat-4.0.1
   5.  This is a binary file and we no compiling is needed.
   6.  The folder is currently in your home directory and all 
 you need to
   do is move it over to the path you want Tomcat to be located.  mv
   jakarta-tomcat-4.0.1 /usr/local/bin
   7.  You cannot run Tomcat without installing the java jdk pack.
   8.  Next is to install j2sdk-1_3_1_02-linux-i386.bin
   9.  Just type the command ./j2sdk-1_3_1_02-linux-i386.bin
   10.  Follow the on screen instruction for the install and 
 you should
   have specify the path to be /usr/local/bin
   11.  The next thing is to set your environment so it will 
 recognized
   JAVA_HOME and TOMCAT_HOME.
   12.  I am running the bash shell, so you must edit your 
 .bash_profile,
   the file is hidden and is located in your home directory.
   13.  Make sure your .bash_profile contains the following:
  # .bash_profile
  
  # Get the aliases and functions
  if [ -f ~/.bashrc ]; then
  . ~/.bashrc
  fi
  
  # User specific environment and startup programs
  
  PATH=$PATH:$HOME/bin
  BASH_ENV=$HOME/.bashrc
  JAVA_HOME=$JAVA_HOME/usr/local/bin/jdk1.3.1_02
  TOMCAT_HOME=$TOMCAT_HOME/usr/local/bin/jakarta-tomcat-4.0.1
  
  export TOMCAT_HOME JAVA_HOME BASH_ENV PATH
  unset USERNAME
   14.  The final step is to reboot the Linux box by typing 
 shutdown -r
   now
   15.  You can startup Tomcat by type 
 $TOMCAT_HOME/bin/catalina.sh start
   16.  To check if Tomcat is working type this in your browser
   http://www.domain.com:8080;, make sure you use port 8080.
   17.  Done.
   -Original Message-
   From: Todd Wright [mailto:[EMAIL PROTECTED]]
   Sent: Monday, January 14, 2002 4:37 PM
   To: Tomcat Users List
   Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In 
 Stand Alone
   Mode
  
   I have Suse 7.2 with jdk 1.4beta-3 fresh install and It 
 came right up. I
  
   never use the distro jdk, I've been burnt too many times.
  
   Todd Wright
  
   At 04:14 PM 1/14/2002 -0500, you wrote:
  
  Do you have jdk installed on your system?
  Also did u setup your JAVA_HOME and CATALINA_HOME?
  
  -n
  
  -Original Message-
  From: Steve [mailto:[EMAIL PROTECTED]]
  Sent: Monday, January 14, 2002 3:37 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In 
 Stand Alone Mode
  
  Hi;
  
  I've been trying to install and use Tomcat 4.0.1 in stand 
 alone mode on
  Suse 7.2 linux.
  
  I haven't been able to get my tomcat files to come up in 
 my browser(
  Netscape 6.2.1 ) using http://localhost:8080/
  
  I also haven't gotten any error messages that might give 
 me a clue :).
  
  I don't have a web server or any kind of networking 
 software running on
  my box.
  
  These are the messages I got from std out when I ran startup.sh:
  
  ===
  Using CLASSPATH:
  /usr/local/Tomcat/bin/bootstrap.jar:/usr/local/JDK/lib/tools.jar
  Using CATALINA_BASE: 

RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-15 Thread Cressatti, Dominique

stupid question but have you
set JAVA_HOME and CATALINA_HOME ?
what do you get when you do
echo $JAVA_HOME ?

Dom

-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 02:32
To: Tomcat Users List
Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
Mode


I didn't use an rpm so I guess I got the standard binaries.

I tried both ports in my browser...8180 and 8080.

I copied the same Tomcat 4.0.1 download to the windows 98 side of my 
hard drive.  I had no trouble getting it to work with 
http://localhost:8080 there.


Cressatti, Dominique wrote:

 Did you get the RPM or the standard binary?
 The RPM open port 8180 (this is set in catalina_home/bin/conf/server.xml)
 while the standard binary (jakarta-tomcat)open port 8080.
 
 I've found that with the rpm version, ./service tomcat4 start
 doesn't start tomcat (even though it claim so).
 I think it something to do with not being able to find the java
 path (even if it is correctly defined in /etc/tomcat4/conf/tomcat4.conf)
 
 which binary did you get? RPM or standard binary?
 
 Dom
 
 
 -Original Message-
 From: John Niven [mailto:[EMAIL PROTECTED]]
 Sent: 15 January 2002 12:50
 To: Tomcat Users List
 Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
 Mode
 
 
 Steve
 
 I'm not sure (I'm a relative newbie and my platform is typically Windows :(
 ) but I thought the default port on Linux was 8180, not 8080.  If you've not
 changed the defaults, have you tried http://localhost:8180?
 
 Best wishes,
 John
 
 John Niven
 johnDOTnivenATmarcatDOTcom
 
 
 
-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]]
Sent: 14 January 2002 10:33
To: Tomcat Users List
Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
Mode


Hi Nelson.

I did download  install the jdk 1.3.1_02, tomcat 4.0.1

I put my JAVA_HOME, TOMCAT_HOME,  CATALINA_HOME paths into 
/etc/profile
( so I could use these things any where ).


The paths are set and tomcat is reporting the correct paths back to me
before it sits there and does nothing.




Nelson Yip wrote:

  FOLLOW THESE SIMPLE INSTRUCTIONS AND IT SHOULD WORK.
  BTW, I INSTALLED TOMCAT ON REDHAT 7.2.
 
  1.  Download both attached file j2sdk-1_3_1_02-linux-i386.bin and
  jakarta-tomcat-4.0.1.tar.gz
  2.  Ftp the files over to your home directory.
  3.  Gunzip the file gunzip jakarta-tomcat-4.0.1.tar.gz 
after that you
  should see a file name jakarta-tomcat-4.0.1.tar
  4.  Extract the tar file tar -xvf 
jakarta-tomcat-4.0.1.tar you should
  get a folder called jakarta-tomcat-4.0.1
  5.  This is a binary file and we no compiling is needed.
  6.  The folder is currently in your home directory and all 
you need to
  do is move it over to the path you want Tomcat to be located.  mv
  jakarta-tomcat-4.0.1 /usr/local/bin
  7.  You cannot run Tomcat without installing the java jdk pack.
  8.  Next is to install j2sdk-1_3_1_02-linux-i386.bin
  9.  Just type the command ./j2sdk-1_3_1_02-linux-i386.bin
  10.  Follow the on screen instruction for the install and 
you should
  have specify the path to be /usr/local/bin
  11.  The next thing is to set your environment so it will 
recognized
  JAVA_HOME and TOMCAT_HOME.
  12.  I am running the bash shell, so you must edit your 
.bash_profile,
  the file is hidden and is located in your home directory.
  13.  Make sure your .bash_profile contains the following:
 # .bash_profile
 
 # Get the aliases and functions
 if [ -f ~/.bashrc ]; then
 . ~/.bashrc
 fi
 
 # User specific environment and startup programs
 
 PATH=$PATH:$HOME/bin
 BASH_ENV=$HOME/.bashrc
 JAVA_HOME=$JAVA_HOME/usr/local/bin/jdk1.3.1_02
 TOMCAT_HOME=$TOMCAT_HOME/usr/local/bin/jakarta-tomcat-4.0.1
 
 export TOMCAT_HOME JAVA_HOME BASH_ENV PATH
 unset USERNAME
  14.  The final step is to reboot the Linux box by typing 
shutdown -r
  now
  15.  You can startup Tomcat by type 
$TOMCAT_HOME/bin/catalina.sh start
  16.  To check if Tomcat is working type this in your browser
  http://www.domain.com:8080;, make sure you use port 8080.
  17.  Done.
  -Original Message-
  From: Todd Wright [mailto:[EMAIL PROTECTED]]
  Sent: Monday, January 14, 2002 4:37 PM
  To: Tomcat Users List
  Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In 
Stand Alone
  Mode
 
  I have Suse 7.2 with jdk 1.4beta-3 fresh install and It 
came right up. I
 
  never use the distro jdk, I've been burnt too many times.
 
  Todd Wright
 
  At 04:14 PM 1/14/2002 -0500, you wrote:
 
 Do you have jdk installed on your system?
 Also did u setup your JAVA_HOME and CATALINA_HOME?
 
 -n
 
 -Original Message-
 From: Steve [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 14, 2002 3:37 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In 
Stand Alone Mode
 
 Hi;
 
 I've been trying to install and use Tomcat 4.0.1 in stand 
alone mode on
 Suse 7.2 linux.
 
 I

RE: Apache 1.3.22 + Warp + Tomcat

2002-01-15 Thread Cressatti, Dominique

my guess

you didn't specify if you made the module executable.
have u done so.
if not do:
chmod 755 /apacheLibs/mod_webapp.so



-Original Message-
From: Elteto Zoltan [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 14:42
To: Tomcat Users List
Subject: Apache 1.3.22 + Warp + Tomcat


Hi everyone,

I want to install the warp connector into an apache...under linux
So far so good :)

I couldn't find a good documentation for this :(

I have made the following steps:

1) install apache

./configure --prefix=/usr/local/apache \
 --enable-module=so \
 --enable-module=rewrite \
 --enable-rule=SHARED_CORE
make
make install

2) install tomcat which runs well as a standalone

3) I copied mod_webapp.so in the libexec folder

4) in httpd.conf

LoadModule mod_webapp libexec/mod_webapp.so

ClearModuleList

AddModule mod_env.c
AddModule mod_so.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_setenvif.c
AddModule mod_webapp.c
AddModule mod_rewrite.c

5) when I start  ./apachectl configtest
I get the following error:

Syntax error on line 210 of /usr/local/apache/conf/httpd.conf:
Can't locate API module structure `mod_webapp' in file
/usr/local/apache/libexec/mod_webapp.so:
/usr/local/apache/libexec/libhttpd.so: undefined symbol: mod_webapp

--
What I do wrong?
Can anybody help me?
Any help would be great for me.

Th
zoli




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


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




RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-15 Thread Cressatti, Dominique

Maybe your firewall is too strict, or ping localhost doesn't work? (add it...
I wouldn't go into that at this point.

Dom

-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 14:45
To: Tomcat Users List
Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
Mode


Maybe your firewall is too strict, or ping localhost doesn't work? (add it
to /etc/hosts if it doesn't..)

Mvgr,
Martin

 -Original Message-
 From: Steve [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 03:32
 To: Tomcat Users List
 Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
 Mode


 I didn't use an rpm so I guess I got the standard binaries.

 I tried both ports in my browser...8180 and 8080.

 I copied the same Tomcat 4.0.1 download to the windows 98 side of my
 hard drive.  I had no trouble getting it to work with
 http://localhost:8080 there.


 Cressatti, Dominique wrote:

  Did you get the RPM or the standard binary?
  The RPM open port 8180 (this is set in
 catalina_home/bin/conf/server.xml)
  while the standard binary (jakarta-tomcat)open port 8080.
 
  I've found that with the rpm version, ./service tomcat4 start
  doesn't start tomcat (even though it claim so).
  I think it something to do with not being able to find the java
  path (even if it is correctly defined in /etc/tomcat4/conf/tomcat4.conf)
 
  which binary did you get? RPM or standard binary?
 
  Dom
 
 
  -Original Message-
  From: John Niven [mailto:[EMAIL PROTECTED]]
  Sent: 15 January 2002 12:50
  To: Tomcat Users List
  Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
  Mode
 
 
  Steve
 
  I'm not sure (I'm a relative newbie and my platform is
 typically Windows :(
  ) but I thought the default port on Linux was 8180, not 8080.
 If you've not
  changed the defaults, have you tried http://localhost:8180?
 
  Best wishes,
  John
 
  John Niven
  johnDOTnivenATmarcatDOTcom
 
 
 
 -Original Message-
 From: Steve [mailto:[EMAIL PROTECTED]]
 Sent: 14 January 2002 10:33
 To: Tomcat Users List
 Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
 Mode
 
 
 Hi Nelson.
 
 I did download  install the jdk 1.3.1_02, tomcat 4.0.1
 
 I put my JAVA_HOME, TOMCAT_HOME,  CATALINA_HOME paths into
 /etc/profile
 ( so I could use these things any where ).
 
 
 The paths are set and tomcat is reporting the correct paths back to me
 before it sits there and does nothing.
 
 
 
 
 Nelson Yip wrote:
 
   FOLLOW THESE SIMPLE INSTRUCTIONS AND IT SHOULD WORK.
   BTW, I INSTALLED TOMCAT ON REDHAT 7.2.
  
   1.  Download both attached file j2sdk-1_3_1_02-linux-i386.bin and
   jakarta-tomcat-4.0.1.tar.gz
   2.  Ftp the files over to your home directory.
   3.  Gunzip the file gunzip jakarta-tomcat-4.0.1.tar.gz
 after that you
   should see a file name jakarta-tomcat-4.0.1.tar
   4.  Extract the tar file tar -xvf
 jakarta-tomcat-4.0.1.tar you should
   get a folder called jakarta-tomcat-4.0.1
   5.  This is a binary file and we no compiling is needed.
   6.  The folder is currently in your home directory and all
 you need to
   do is move it over to the path you want Tomcat to be located.  mv
   jakarta-tomcat-4.0.1 /usr/local/bin
   7.  You cannot run Tomcat without installing the java jdk pack.
   8.  Next is to install j2sdk-1_3_1_02-linux-i386.bin
   9.  Just type the command ./j2sdk-1_3_1_02-linux-i386.bin
   10.  Follow the on screen instruction for the install and
 you should
   have specify the path to be /usr/local/bin
   11.  The next thing is to set your environment so it will
 recognized
   JAVA_HOME and TOMCAT_HOME.
   12.  I am running the bash shell, so you must edit your
 .bash_profile,
   the file is hidden and is located in your home directory.
   13.  Make sure your .bash_profile contains the following:
# .bash_profile
  
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
  
# User specific environment and startup programs
  
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
JAVA_HOME=$JAVA_HOME/usr/local/bin/jdk1.3.1_02
TOMCAT_HOME=$TOMCAT_HOME/usr/local/bin/jakarta-tomcat-4.0.1
  
export TOMCAT_HOME JAVA_HOME BASH_ENV PATH
unset USERNAME
   14.  The final step is to reboot the Linux box by typing
 shutdown -r
   now
   15.  You can startup Tomcat by type
 $TOMCAT_HOME/bin/catalina.sh start
   16.  To check if Tomcat is working type this in your browser
   http://www.domain.com:8080;, make sure you use port 8080.
   17.  Done.
   -Original Message-
   From: Todd Wright [mailto:[EMAIL PROTECTED]]
   Sent: Monday, January 14, 2002 4:37 PM
   To: Tomcat Users List
   Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In
 Stand Alone
   Mode
  
   I have Suse 7.2 with jdk 1.4beta-3 fresh install and It
 came right up. I
  
   never use the distro jdk, I've been burnt too many times.
  
   Todd Wright
  
   At 04:14 PM 1/14/2002

RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-15 Thread Cressatti, Dominique

David

have you got the mod-webbapp working under Mandrake?

Dom

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 15:25
To: Tomcat Users List
Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
Mode


hmmm if you do a ps -a | grep java, do you get a list of java threads?  
That'll show that TC is actually working and not getting a seg fault on 
startup or something.  Also netstat -tln should provide a list of open server 
ports for your machine and you should see some ports open [8005 (AJP12), 8008 
(WARP), 8080 or 8180 (HTTP), maybe 8009 (AJP13)] as a result of TC working.

I modified my startup.sh and shutdown.sh to include ulimit -s 2048 because TC 
would die on startup with a seg fault. (Mandrake 8 and TC 4.0.1)

Just something to think about.

--David

On Monday 14 January 2002 08:21 am, you wrote:
 Hi I just thought I would send more information into the list in case I
 am missing any insights into my puzzle that somebody else might see

 I have Suse 7.2 with the KDE 2.1.2

 I installed Sun's JDK 1.3.1_02 in usr/local/JDK
 I installed Tomcat 4.0.1 in usr/local/Tomcat

 In my /etc/profile I added the following variables:

 JAVA_HOME=/usr/local/JDK
 TOMCAT_HOME=/usr/local/Tomcat
 CATALINA_HOME=/usr/local/Tomcat

 All of the directories involved grant read, write, and execute
 permissions to the users group.

 When I execute Tomcat 4.0.1 through startup.sh Tomcat repeats back all
 of the paths/environmental variables correctly with no error messages.
 The Tomcat logs show no error messages.

 However when I go to http://localhost:8080/ in Netscape 6.2.1 ( and
 konqueror ) nothing happens.

 When I run the shutdown script more then once I get an error so I
 believe Tomcat, in some way is on.

 I would like to get Tomcat working in stand alone mode, but I am
 clueless about what else I can try ( I did put the ulimit command at the
 top of catalina.sh ).

 Any ideas?

 Thanks in advance



 Steve

 The Java Resource Dump
 http://www.geocities.com/beforewisdom/Java/index.html

 ---
 Rancor is an outpouring of a feeling of inferiority
 - Jose' Ortega y Gasset
 


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

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


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




RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-15 Thread Cressatti, Dominique

u said that you added JAVA_HOME (and etc) in
your profile but have you checked that they
are set to some value before starting tomcat?

-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 03:29
To: Tomcat Users List
Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
Mode


I don't have a firewall set up.  I know this because when Suse boots up 
it sends me a note saying that the firewall is not in use( I am using 
this box as a desktop/development environment).

I did ping localhost I am getting responses( no error messages 
)...it is still going.

Martin van den Bemt wrote:

 Maybe your firewall is too strict, or ping localhost doesn't work? (add it
 to /etc/hosts if it doesn't..)
 
 Mvgr,
 Martin
 
 
-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 03:32
To: Tomcat Users List
Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
Mode


I didn't use an rpm so I guess I got the standard binaries.

I tried both ports in my browser...8180 and 8080.

I copied the same Tomcat 4.0.1 download to the windows 98 side of my
hard drive.  I had no trouble getting it to work with
http://localhost:8080 there.


Cressatti, Dominique wrote:


Did you get the RPM or the standard binary?
The RPM open port 8180 (this is set in

catalina_home/bin/conf/server.xml)

while the standard binary (jakarta-tomcat)open port 8080.

I've found that with the rpm version, ./service tomcat4 start
doesn't start tomcat (even though it claim so).
I think it something to do with not being able to find the java
path (even if it is correctly defined in /etc/tomcat4/conf/tomcat4.conf)

which binary did you get? RPM or standard binary?

Dom


-Original Message-
From: John Niven [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 12:50
To: Tomcat Users List
Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
Mode


Steve

I'm not sure (I'm a relative newbie and my platform is

typically Windows :(

) but I thought the default port on Linux was 8180, not 8080.

If you've not

changed the defaults, have you tried http://localhost:8180?

Best wishes,
John

John Niven
johnDOTnivenATmarcatDOTcom




-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]]
Sent: 14 January 2002 10:33
To: Tomcat Users List
Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
Mode


Hi Nelson.

I did download  install the jdk 1.3.1_02, tomcat 4.0.1

I put my JAVA_HOME, TOMCAT_HOME,  CATALINA_HOME paths into
/etc/profile
( so I could use these things any where ).


The paths are set and tomcat is reporting the correct paths back to me
before it sits there and does nothing.




Nelson Yip wrote:


FOLLOW THESE SIMPLE INSTRUCTIONS AND IT SHOULD WORK.
BTW, I INSTALLED TOMCAT ON REDHAT 7.2.

1.  Download both attached file j2sdk-1_3_1_02-linux-i386.bin and
jakarta-tomcat-4.0.1.tar.gz
2.  Ftp the files over to your home directory.
3.  Gunzip the file gunzip jakarta-tomcat-4.0.1.tar.gz

after that you

should see a file name jakarta-tomcat-4.0.1.tar
4.  Extract the tar file tar -xvf

jakarta-tomcat-4.0.1.tar you should

get a folder called jakarta-tomcat-4.0.1
5.  This is a binary file and we no compiling is needed.
6.  The folder is currently in your home directory and all

you need to

do is move it over to the path you want Tomcat to be located.  mv
jakarta-tomcat-4.0.1 /usr/local/bin
7.  You cannot run Tomcat without installing the java jdk pack.
8.  Next is to install j2sdk-1_3_1_02-linux-i386.bin
9.  Just type the command ./j2sdk-1_3_1_02-linux-i386.bin
10.  Follow the on screen instruction for the install and

you should

have specify the path to be /usr/local/bin
11.  The next thing is to set your environment so it will

recognized

JAVA_HOME and TOMCAT_HOME.
12.  I am running the bash shell, so you must edit your

.bash_profile,

the file is hidden and is located in your home directory.
13.  Make sure your .bash_profile contains the following:
   # .bash_profile

   # Get the aliases and functions
   if [ -f ~/.bashrc ]; then
   . ~/.bashrc
   fi

   # User specific environment and startup programs

   PATH=$PATH:$HOME/bin
   BASH_ENV=$HOME/.bashrc
   JAVA_HOME=$JAVA_HOME/usr/local/bin/jdk1.3.1_02
   TOMCAT_HOME=$TOMCAT_HOME/usr/local/bin/jakarta-tomcat-4.0.1

   export TOMCAT_HOME JAVA_HOME BASH_ENV PATH
   unset USERNAME
14.  The final step is to reboot the Linux box by typing

shutdown -r

now
15.  You can startup Tomcat by type

$TOMCAT_HOME/bin/catalina.sh start

16.  To check if Tomcat is working type this in your browser
http://www.domain.com:8080;, make sure you use port 8080.
17.  Done.
-Original Message-
From: Todd Wright [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 4:37 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In

Stand Alone

Mode

I have Suse 7.2 with jdk 1.4beta-3 fresh install and It

came right up. I

running tomcat under Mandrake

2002-01-15 Thread Cressatti, Dominique

David,
 
sorry to be persistent but did you said that your running
tomcat under Mandrake?
If so have you managed to get the mod_webapp working
properly?
Dom




RE: Apache 1.3.22 + Warp + Tomcat

2002-01-15 Thread Cressatti, Dominique

not too sure but I think
it's more an error to do with apache than
mod_webapp.
may be you should try the apache mailing list.

Dom

-Original Message-
From: Elteto Zoltan [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 16:18
To: Tomcat Users List
Subject: Re: Apache 1.3.22 + Warp + Tomcat


Good guess!!!
I did not change that.
th
but the error message is still persisting :((

zoli

- Original Message - 
From: Cressatti, Dominique [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 4:53 PM
Subject: RE: Apache 1.3.22 + Warp + Tomcat


 my guess
 
 you didn't specify if you made the module executable.
 have u done so.
 if not do:
 chmod 755 /apacheLibs/mod_webapp.so
 
 
 
 -Original Message-
 From: Elteto Zoltan [mailto:[EMAIL PROTECTED]]
 Sent: 15 January 2002 14:42
 To: Tomcat Users List
 Subject: Apache 1.3.22 + Warp + Tomcat
 
 
 Hi everyone,
 
 I want to install the warp connector into an apache...under linux
 So far so good :)
 
 I couldn't find a good documentation for this :(
 
 I have made the following steps:
 
 1) install apache
 
 ./configure --prefix=/usr/local/apache \
  --enable-module=so \
  --enable-module=rewrite \
  --enable-rule=SHARED_CORE
 make
 make install
 
 2) install tomcat which runs well as a standalone
 
 3) I copied mod_webapp.so in the libexec folder
 
 4) in httpd.conf
 
 LoadModule mod_webapp libexec/mod_webapp.so
 
 ClearModuleList
 
 AddModule mod_env.c
 AddModule mod_so.c
 AddModule mod_log_config.c
 AddModule mod_mime.c
 AddModule mod_negotiation.c
 AddModule mod_status.c
 AddModule mod_include.c
 AddModule mod_autoindex.c
 AddModule mod_dir.c
 AddModule mod_cgi.c
 AddModule mod_asis.c
 AddModule mod_imap.c
 AddModule mod_actions.c
 AddModule mod_userdir.c
 AddModule mod_alias.c
 AddModule mod_access.c
 AddModule mod_auth.c
 AddModule mod_setenvif.c
 AddModule mod_webapp.c
 AddModule mod_rewrite.c
 
 5) when I start  ./apachectl configtest
 I get the following error:
 
 Syntax error on line 210 of /usr/local/apache/conf/httpd.conf:
 Can't locate API module structure `mod_webapp' in file
 /usr/local/apache/libexec/mod_webapp.so:
 /usr/local/apache/libexec/libhttpd.so: undefined symbol: mod_webapp
 
 --
 What I do wrong?
 Can anybody help me?
 Any help would be great for me.
 
 Th
 zoli
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


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


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




RE: running tomcat under Mandrake

2002-01-15 Thread Cressatti, Dominique

David,

3 questions
which version of MDK are u using? am MDK 8.1
I had nothing but problem with the mod_webapp
always complaining when am not including WebAppDeploy
in a virtual server section while under Window
I've had no problem whatsoever (doesn't need to be
under virtualHost ServerName

What's you're situation ? did u have to include it
in a virtualhost section?
and until I saw your post I though I might have been a
problem with the MDK apache built.

I got the mod_webapp source but got stucked at not
finding the warp.jar
Woudl you care to enlightent me where u got it.

Best rgds (and full of hopes)
Dom

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 17:02
To: Tomcat Users List
Subject: Re: running tomcat under Mandrake


Yup.  I built mod_webapp from nightly snapshot (didn't use the excessively 
old version included with the TC binaries).  There have been a lot of bug 
fixes and support for SSL was added in version 1.1.

Why?  Is it not working on your system?  I would note if anyone on the list 
decides to build their own mod_webapp, that they also build warp.jar and 
replace the existing version in Tomcat.  mod_webapp.so and warp.jar seem to 
be a matched pair -- replace one and the other should be also.

--David

On Tuesday 15 January 2002 11:16 am, you wrote:
 David,

 sorry to be persistent but did you said that your running
 tomcat under Mandrake?
 If so have you managed to get the mod_webapp working
 properly?
 Dom

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


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




mod_webapp on linux not RH 71 distro

2002-01-14 Thread Cressatti, Dominique

anyone out there who managed to get the mod_webapp module working
under Linux but not the RH 7.1 distro?
Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 



RE: how to deploy WebApps in apache's UserDir's ?

2002-01-10 Thread Cressatti, Dominique

I was just looking at doing something along
the same lines.
Such as how do I map something
like:
http://localhost/testurl
to execute directly HelloWorldExample

I tried
WebAppDeploy test/servlet/HelloWorldExample conn /testurl
WebAppDeploy /../../../test/WEB-INF/HelloWorldExample conn /testurl
but none of them worked.

(test is a directory where I copied some of the examples which worked
when I had WebAppDeploy test conn /test and pointing my browser to
http://localhost/testurl/servlet/HelloWorldExample)

Dom

-Original Message-
From: Laura Reising [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2002 11:16
To: Tomcat Users List
Subject: Re: how to deploy WebApps in apache's UserDir's ?


Hello Daniel,

 I think the Warp connector has problems with absolute path names

 try this... - depending on where your tomcat webapps directory is

 WebAppDeploy /../../../home/laura/www/jsp conn /jsp

dingdingding! It works!

Thanx for the tip!

Laura



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


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




RE: how to deploy WebApps in apache's UserDir's ?

2002-01-10 Thread Cressatti, Dominique

Hi Laura,

Try to remove the leading Slash.
I tried but apache times out.
Where was your class or jar file (absolute path)
and what your WebAppDeploy looked like?

What I don't understand is why there are so many slashes

Cheers
Dom

-Original Message-
From: Laura Reising [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2002 12:31
To: Tomcat Users List
Subject: Re: how to deploy WebApps in apache's UserDir's ?


Hello Dom,

 I tried
 WebAppDeploy test/servlet/HelloWorldExample conn /testurl
 WebAppDeploy /../../../test/WEB-INF/HelloWorldExample conn /testurl
 but none of them worked.

about the second WebAppDeploy:
Try to remove the leading Slash.

HTH
Laura





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


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




RE: how to deploy WebApps in apache's UserDir's ?

2002-01-10 Thread Cressatti, Dominique

/home/laura/www/jsp/
I see ...
no quite what am trying to do, which I would
have though was easier.
I simply wanted to bind the HelloWorldExample
(still in the webapps directory)
to specific url like http://localhost/test
so it gets running automatically.
Any idea

Cheers
Dom

-Original Message-
From: Laura Reising [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2002 14:51
To: Tomcat Users List
Subject: Re: how to deploy WebApps in apache's UserDir's ?


Hello Dom,

 Where was your class or jar file (absolute path)

you mean my JSP-Files!??

/home/laura/www/jsp/



 and what your WebAppDeploy looked like?

WebAppDeploy ../../../../home/laura/www/jsp conn /jsp


HTH
Laura



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


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




RE: how to deploy WebApps in apache's UserDir's ?

2002-01-10 Thread Cressatti, Dominique

Daniel,

put the HelloWorld.html file
I may be mistaken but I far as I can see no
html page is required.
If my WebAppDeploy looks like:
WebAppDeployexamplesconn /examples
and point my browser to http://localhost/examples/servlet/HelloWorldExample
I get straight to the example which make me thing that I run HelloWorldExample
directly without involving the html page.

So all want to do is have a simple url like:
http://localhost/helloworldexample
and run it directly.

Given the format of the WebAppDeploy (and what I've read so
far) I would have thought that it's possible to map any path
to any url.

Cheers
Dom


-Original Message-
From: Armbrust, Daniel C. [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2002 15:19
To: 'Tomcat Users List'
Subject: RE: how to deploy WebApps in apache's UserDir's ?


Maybe I am misunderstanding what you want to do, but, If you just want to
deploy the Hello World example, you should make a new webapp, say testurl.

inside of testurl, put the HelloWorld.html file, and also, a WEB-INF
directory, inside of which you will need a classes folder, where you will
put the class file(s) for HelloWorld.

your directory structure should be something like

/var/tomcat4/webapps/testurl
HelloWorld.html
WEB-INF(directory)

/var/tomcat4/webapps/testurl/WEB-INF
classes(directory)
/var/tomcat4/webapps/testurl/WEB-INF/classes
HelloWorldExample.class


which you should then be able to deploy in apache with 

WebAppDeploy /testurl conn /testurl

You only specify the path to the webapp, as the directory that contains the
WEB-INF directory, and the other parts of your webapp.


(after you deploy it in tomcat of course, with something like
  Context path=/testurl docBase=testurl 
 debug=0 privileged=true/
)


You were trying to deploy helloworld as its own webapp, but it isn't one the
way it is currently.  It is a part of the example webapp.  So you cannont
simply put your webapp path as 
WebAppDeploy /test/WEB-INF/HelloWorldExample conn /testurl

and have it work. 

I didn't test any of this, and there may be a typo/mistake or two, but, it
should get you closer to what you want to do.

Dan
 


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


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




RE: Tomcat 4 integration with apache

2002-01-07 Thread Cressatti, Dominique

me 2, am dying to see it.
Dom

-Original Message-
From: louie miranda [mailto:[EMAIL PROTECTED]]
Sent: 07 January 2002 11:01
To: Tomcat Users List
Subject: Re: Tomcat 4 integration with apache


Me 2, if possible can i have to a copy step by step!! thanks!

- Original Message -
From: Shiva.Devaguptapu [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 07, 2002 12:54 PM
Subject: RE: Tomcat 4 integration with apache


 Please tell me the steps to do it...

 -Original Message-
 From: Vinay Singh [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, January 06, 2002 11:26 PM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 4 integration with apache


 I did Apache 1.3.20 integration with Tomcat 4.0.1 using mod_webapp. I
can
 tell u the steps if you want.

 -Original Message-
 From: Shiva.Devaguptapu [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, January 06, 2002 8:44 PM
 To: Tomcat Users List
 Subject: Tomcat 4 integration with apache


 Hi,
 Pls help me in integrating Tomcat 4 with apache. I did the
 same(only) for tomcat 3.2.3 and apache 1.3.20, using mod_jk.dll, but
don't
 know how to do for tomcat 4.x.
 Thanks in advance...
 Shiva.

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

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



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


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




RE: Tomcat with Apache

2002-01-04 Thread Cressatti, Dominique

 ...I
currently have apache 1.3.* connected to tomcat 4.0.1 with the
warp connector.  Works great.  Great concept.

How did you achieve that?
is it on Linux or a different OS?
Can you still serve static page as well
as java pages?
If yes could you show me your http.conf
cos apart from getting tomcat working
am getting absolutely nowhere.

Cheers
Dom

-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]]
Sent: 02 January 2002 16:41
To: Tomcat Users List
Subject: Tomcat with Apache


I am going to run an entire site in java (jsp or velocity) and I
currently have apache 1.3.* connected to tomcat 4.0.1 with the
warp connector.  Works great.  Great concept.

But...

Do I really need Apache?  I am not going to have any html.  All
the pages on the site will be java.  Is tomcat a good enough server
to take a heavily traficked site?  I would say that Apache would
handle the images, but we use a 3rd party (mirror image) for that.

So should I use Apache or not?

Thanks in advance.

Charlie Harvey

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


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




RE: getting mod_webapps to work

2001-12-21 Thread Cressatti, Dominique

Cheers Brian,

How do test that it works?

Dom

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:35
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247

VirtualHost 192.168.0.247
ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example
/VirtualHost
 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247

VirtualHost 192.168.0.247
ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
/VirtualHost
 
#tomcat webapps directive
 
VirtualHost 192.168.0.247
ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples
/VirtualHost

What am I doing wrong? Can anyone show me a typical example
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test http://sol.lansa.co.uk/test 
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

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

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




RE: getting mod_webapps to work

2001-12-21 Thread Cressatti, Dominique

Brian,

everything checks OK
but I've lost static pages.
I mean http://sol.lansa.co.uk/
now returns Forbiden... you have permission / on
this server
Somehow am baffled that am trying to access /

As for http://sol.lansa.co.uk/examples/jsp
am getting WebApp error  Web-application not yet
deployed

if we talking about the examples JSP stuff, I do have
it and I know it use to run on http://sol.lansa.co.uk:8080/examples/jsp

Dom


-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:56
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


apachectl check

apachectl restart

$CATALINA_HOME/bin/catalina.sh run


http://sol.lansa.co.uk/examples/jsp

should work if your tomcat examples are install and configured like so in
httpd.conf 
  WebAppDeployexamples  conn/example





-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 10:06 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


Cheers Brian,

How do test that it works?

Dom

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:35
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247

VirtualHost 192.168.0.247
ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example
/VirtualHost
 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247

VirtualHost 192.168.0.247
ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
/VirtualHost
 
#tomcat webapps directive
 
VirtualHost 192.168.0.247
ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples
/VirtualHost

What am I doing wrong? Can anyone show me a typical example
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test http://sol.lansa.co.uk/test 
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

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

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

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

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