Re[8]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Andrey
Hello,

Wednesday, April 13, 2005, 11:19:00 PM, you wrote:



> Well so far that is normal, what isn't normal is that the browser
> isn't sending another GET request for https://62.86.16.101/index.jsp
> what happens if you request that URL directly?

> Hang on you know what is happening? I bet HTTP/1.1 isn't enabled in
> the browser, I had the exact same problem the other day...

> Tools / Internet Options, Advanced, HTTP/1.1 Settings: enable both of
> those for some reason the Proxy one still seems to effect things even
> when you tell IE to not use the proxy for the site you are accessing.

> Regards,

I can POST more...   It's loop. .. if i use non-https connection all
work fine. (https is configured on 443 port now .. no difference)


GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/index.jsp
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1

GET /index.jsp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1

GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/index.jsp
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1

GET /index.jsp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1

GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/index.jsp
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1

GET /index.jsp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1





-- 
Best regards,
Andrey
[EMAIL PROTECTED]


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



Re: Apache Tomcat & JK Mod

2005-04-13 Thread Mladen Turk
Geoff Wiggs wrote:
I know this question has probably been asked 1000 times, but here I go
again.
OK. Once for all :)
RewriteEngine On
RewriteRule (.*) /servlets-examples$1 [PT]

I have Apache / Tomcat and jk_mod all running correctly.  If I hit the URL
correctly (i.e. "www.server.com/context/") my jsp's and servlets come up
just fine.  Now I want to serve my home page (www.server.com
 ) as a JSP.  My context is /home.  If I hit
www.server.com/home the JSP comes up just the way I want it.
 
How can I make the connection between the request for www.servername.com
  and the correct context
www.servername.com/home?  Apache, jk_mod or Tomcat options would be fine, I
am just having a problem making the connection between the three work the
way I need.  
 
I still do not understand why would yo wish to do something like that.
You can easily make Tomcat working on port 80, and move your /home to
the ROOT.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat example app corrupt

2005-04-13 Thread Parsons Technical Services
I am getting the same thing. When I download it, I cannot extract the files. 
The example on the 5.0 page is also semi broke. It doesn't have a war but 
drops you to a folder directory when you follow the link. If you browse 
around you can find the app.

So it's not on your end. It is the file.
Doug
- Original Message - 
From: "Mark Panahi" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 13, 2005 5:00 PM
Subject: Fwd: tomcat example app corrupt

-- Forwarded message --
From: Mark Panahi <[EMAIL PROTECTED]>
Date: Apr 12, 2005 9:47 PM
Subject: tomcat example app corrupt
To: [EMAIL PROTECTED]
The example app posted at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample/ seems
to be corrupt.
Any help?
Thanks,
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: RES: How can I create a digest password - digest.bat is the key!

2005-04-13 Thread Parsons Technical Services
Dejavu
In a properly configured system, if the attacker can read the server.xml or 
context element then he has OWNED your system and has free reign.

If secured on windows then only two groups should have access, admins and 
the webadmins. If either of those have been compromised you got big issues.

What exactly do you mean by "watch clean passwords"?
Doug
- Original Message - 
From: "Paulo Alvim" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, April 13, 2005 7:00 PM
Subject: RES: RES: How can I create a digest password - digest.bat is the 
key!


Ok, thank you,
I didn't think that it would be the only solution...but it would make 
things
a little more difficult and our customers don't like the idea of to watch
clean passwords because they don't do it to create Windows Services or
Oracle users.

We know that these softwares have proprietary databases to store that 
pass -
but I was wondering what could be done in the Tomcat Open-Source
context...do you think that the only approach would be to protect the
folders/files - file system level security? What are you guys doing?

-Mensagem original-
De: Mark Thomas [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 18:16
Para: Tomcat Users List
Assunto: Re: RES: How can I create a digest password - digest.bat is the
key!
Paulo,
I am pretty sure this won't work. Tomcat can't calculate the real
password (required by the database) from the hash. The key feature of a
hash is its one way nature.
Also, if Tomcat could get the password from the hash so could any 
attacker.

Mark
Paulo Alvim wrote:
Lorenzo,
Are you using the DBCP JDBC connection pooling (with that configuration
files in the "conf/catalina/localhost")?
We'd like to know if your approach could be used to change the "JDBC pool
configuration files" from:
  

  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@x:1521:oraplcdb


  username
  demo3


  password
  mypass

   (...)
  
...to something like (pass encrypted):


  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@x:1521:oraplcdb


  username
  demo3


  password
  %$&#I(#)$

   (...)
  
-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 17:13
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - digest.bat is the key!
Prioridade: Alta
Dear Paulo:
Thanks for your comments.
What we want is to have minimum exposure to hacking.
We found out that, in the context.xml, we can specify the users.xml file,
and the digest method. So now it is possible to have a different user and
password for admin and manager, and in a separate location where
hackers -hopelly- cannot get thru.
Also in the net we found that we can generate the MD5 password using
digest.bat that is in the tomcat/bin directory. This worked perfectly!
Thanks again,
Regards,
Lorenzo Jimenez

-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 02:01 p.m.
To: Tomcat Users List
Subject: [SPAM2] - RES: How can I create a digest password - another
error -
Found word(s) list error in the Text body
Hi,
I don't know if it's your objective but is it possible to use MD5 to
encode
passwords in the DBCP conf files?
Is there any documentation about how could we avoid to have the real
passwords in these files?
Thanks in advance!
Alvim
-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 15:04
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - another error
Prioridade: Alta

Dear Jerry:
Thanks for the advice.
I follow your advice but did not worked. I use this
C:\>java -cp C:\Java\Tomcat5.0.28\common\lib\catalina.jar
org.apache.catalina.realm.RealmBase -a MD5 admin
And I got this error:
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Thanks again,
Lorenzo

-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de 

Re: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Robert r. Sanders
Note that there are also a number of Filters that can implement 
something similar, with much more fine grained control than the 
servlet-spec allows for container-managed security.

Darryl Wilburn wrote:
I lost the thread to this original message, but found
what I consider good information.
Ike,
Here's a link to some information on using
security-constraint: 
http://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html

It also states:
"The  sub-element defines the
authentication method for the defined realm. The
possible values are BASIC, DIGEST, and FORM. And the
 sub-element names the Web resource that
this  maps to."
So it doesn't seem to require BASIC authentication.
Darryl
		
__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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

--
   Robert r. Sanders
   Chief Technologist
   iPOV
   (334) 821-5412
   www.ipov.net
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re[6]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Bill Barker

"Andrey" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hello,
>
> Wednesday, April 13, 2005, 10:17:42 PM, you wrote:
>
>
>>>I can connect to ssl port ... and i can see sertificate.. but when i
>>>accept this sertificate my browser says "The page cannot be
>>>displayed".
>
>> Just a basic guesswork... Assuming the code does not differentiate 
>> between
>> ssl and non-ssl, could it be a browser specific problem? Also, can you 
>> see
>> it from local machine, i.e. https://localhost:8443/...?
>
>> Just my 2 pence...
>
> No difference between local/remote.
> I don't think it's network/browser related problem.
>
> Thanks to Jason..
>
> GET / HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
> application/x-shockwave-flash, application/vnd.ms-excel, 
> application/vnd.ms-powerpoint, application/msword, */*
> Accept-Language: lv
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
> CLR 1.1.4322)
> Host: 62.86.16.101
> Connection: Keep-Alive
>
> HTTP/1.1 302 Moved Temporarily
> Location: https://62.86.16.101/index.jsp
> Content-Length: 0
> Date: Wed, 13 Apr 2005 19:38:50 GMT
> Server: Apache-Coyote/1.1
>
> What can i do ? :)
>

MSIE is sending the wrong Host header (it's known to do that :), so the 
Location is bad on the response (it's asking MSIE to connect to port 443). 
What you can do is:

1) Use FireFox.
2) Configure the connector to run on the default port of 443.
3) Get MS to fix their browser.

>
>
> -- 
> Best regards,
> Andrey
> [EMAIL PROTECTED] 




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



Apache Tomcat & JK Mod

2005-04-13 Thread Geoff Wiggs
I know this question has probably been asked 1000 times, but here I go
again.
 
I have Apache / Tomcat and jk_mod all running correctly.  If I hit the URL
correctly (i.e. "www.server.com/context/") my jsp's and servlets come up
just fine.  Now I want to serve my home page (www.server.com
 ) as a JSP.  My context is /home.  If I hit
www.server.com/home the JSP comes up just the way I want it.
 
How can I make the connection between the request for www.servername.com
  and the correct context
www.servername.com/home?  Apache, jk_mod or Tomcat options would be fine, I
am just having a problem making the connection between the three work the
way I need.  
 
Regards,
 
Geoff 
[EMAIL PROTECTED]
 


ThreadPool logFull

2005-04-13 Thread Patty O'Reilly
Hi,

I'm running tomcat 5.0.30.

After running for a week or so the server begins to slow down and
finally crashes because it is out of threads. I can see the java
processes accumulating day by day.

Apr 8, 2005 3:11:16 PM org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (200) are currently busy, waiting. Increase maxThreads (200)
or check the servlet status

I'm pretty new to tomcat. Not sure if the error is in my apache
server's workers.properties, or the tomcat servers server.xml, or

Can anyone point me in the right direction. This service is lightly
loaded. 200 threads should be plenty.

--patty


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



RES: RES: How can I create a digest password - digest.bat is the key!

2005-04-13 Thread Paulo Alvim
Ok, thank you,

I didn't think that it would be the only solution...but it would make things
a little more difficult and our customers don't like the idea of to watch
clean passwords because they don't do it to create Windows Services or
Oracle users.

We know that these softwares have proprietary databases to store that pass -
but I was wondering what could be done in the Tomcat Open-Source
context...do you think that the only approach would be to protect the
folders/files - file system level security? What are you guys doing?

-Mensagem original-
De: Mark Thomas [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 18:16
Para: Tomcat Users List
Assunto: Re: RES: How can I create a digest password - digest.bat is the
key!


Paulo,

I am pretty sure this won't work. Tomcat can't calculate the real
password (required by the database) from the hash. The key feature of a
hash is its one way nature.

Also, if Tomcat could get the password from the hash so could any attacker.

Mark

Paulo Alvim wrote:
> Lorenzo,
>
> Are you using the DBCP JDBC connection pooling (with that configuration
> files in the "conf/catalina/localhost")?
>
> We'd like to know if your approach could be used to change the "JDBC pool
> configuration files" from:
>
>   
> 
>   driverClassName
>   oracle.jdbc.driver.OracleDriver
> 
> 
>   url
>   jdbc:oracle:thin:@x:1521:oraplcdb
> 
> 
>   username
>   demo3
> 
> 
>   password
>   mypass
> 
>(...)
>   
>
> ...to something like (pass encrypted):
>
> 
> 
>   driverClassName
>   oracle.jdbc.driver.OracleDriver
> 
> 
>   url
>   jdbc:oracle:thin:@x:1521:oraplcdb
> 
> 
>   username
>   demo3
> 
> 
>   password
>   %$&#I(#)$
> 
>(...)
>   
>
>
> -Mensagem original-
> De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
> Enviada em: quarta-feira, 13 de abril de 2005 17:13
> Para: Tomcat Users List
> Assunto: RE: How can I create a digest password - digest.bat is the key!
> Prioridade: Alta
>
>
> Dear Paulo:
>
> Thanks for your comments.
>
> What we want is to have minimum exposure to hacking.
>
> We found out that, in the context.xml, we can specify the users.xml file,
> and the digest method. So now it is possible to have a different user and
> password for admin and manager, and in a separate location where
> hackers -hopelly- cannot get thru.
>
> Also in the net we found that we can generate the MD5 password using
> digest.bat that is in the tomcat/bin directory. This worked perfectly!
>
> Thanks again,
> Regards,
>
> Lorenzo Jimenez
>
>
>
> -Original Message-
> From: Paulo Alvim [mailto:[EMAIL PROTECTED]
> Sent: Miércoles, 13 de Abril de 2005 02:01 p.m.
> To: Tomcat Users List
> Subject: [SPAM2] - RES: How can I create a digest password - another
error -
> Found word(s) list error in the Text body
>
> Hi,
>
> I don't know if it's your objective but is it possible to use MD5 to
encode
> passwords in the DBCP conf files?
>
> Is there any documentation about how could we avoid to have the real
> passwords in these files?
>
> Thanks in advance!
>
> Alvim
>
> -Mensagem original-
> De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
> Enviada em: quarta-feira, 13 de abril de 2005 15:04
> Para: Tomcat Users List
> Assunto: RE: How can I create a digest password - another error
> Prioridade: Alta
>
>
>
> Dear Jerry:
>
> Thanks for the advice.
>
> I follow your advice but did not worked. I use this
>
> C:\>java -cp C:\Java\Tomcat5.0.28\common\lib\catalina.jar
> org.apache.catalina.realm.RealmBase -a MD5 admin
>
> And I got this error:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/management/MBeanRegistration
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.access$100(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>
> Thanks again,
>
> Lorenzo
>
>
>
>
> -Original Message-
> From: J Malcolm [mailto:[EMAIL PROTECTED]
> Sent: Miércoles, 13 de Abril de 2005 11:07 a.m.
> To: 'Tomcat Users List'
> Subject: [SPAM2] - RE: How can I create a digest password - Found word(s)
> list error in the Text body
>
> The problem you are hiting is due to the location of the jar file in the
> default tomcat install.  You can move the jar file into th

RES: How can I create a digest password - digest.bat is the key! - Found word(s) list error in the Text body

2005-04-13 Thread Paulo Alvim
That's my question...

To generate encrypt pass is like you did.

But DBCP would need to have a flag in order to decrypt the pass...I don't
know if the "realm" is related to this.

-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 18:02
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - digest.bat is the key!
- Found word(s) list error in the Text body
Prioridade: Alta


Paulo:

> Are you using the DBCP JDBC connection pooling

Yes, but how can I tell tomcat the password is encrypted?
Using the realm?

Thanks again,

Lorenzo


-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 02:59 p.m.
To: Tomcat Users List
Subject: [SPAM2] - RES: How can I create a digest password - digest.bat is
the key! - Found word(s) list error in the Text body

Lorenzo,

Are you using the DBCP JDBC connection pooling (with that configuration
files in the "conf/catalina/localhost")?

We'd like to know if your approach could be used to change the "JDBC pool
configuration files" from:

  

  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@x:1521:oraplcdb


  username
  demo3


  password
  mypass

   (...)
  

...to something like (pass encrypted):



  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@x:1521:oraplcdb


  username
  demo3


  password
  %$&#I(#)$

   (...)
  


-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 17:13
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - digest.bat is the key!
Prioridade: Alta


Dear Paulo:

Thanks for your comments.

What we want is to have minimum exposure to hacking.

We found out that, in the context.xml, we can specify the users.xml file,
and the digest method. So now it is possible to have a different user and
password for admin and manager, and in a separate location where
hackers -hopelly- cannot get thru.

Also in the net we found that we can generate the MD5 password using
digest.bat that is in the tomcat/bin directory. This worked perfectly!

Thanks again,
Regards,

Lorenzo Jimenez



-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 02:01 p.m.
To: Tomcat Users List
Subject: [SPAM2] - RES: How can I create a digest password - another error -
Found word(s) list error in the Text body

Hi,

I don't know if it's your objective but is it possible to use MD5 to encode
passwords in the DBCP conf files?

Is there any documentation about how could we avoid to have the real
passwords in these files?

Thanks in advance!

Alvim

-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 15:04
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - another error
Prioridade: Alta



Dear Jerry:

Thanks for the advice.

I follow your advice but did not worked. I use this

C:\>java -cp C:\Java\Tomcat5.0.28\common\lib\catalina.jar
org.apache.catalina.realm.RealmBase -a MD5 admin

And I got this error:

Exception in thread "main" java.lang.NoClassDefFoundError:
javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Thanks again,

Lorenzo




-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 11:07 a.m.
To: 'Tomcat Users List'
Subject: [SPAM2] - RE: How can I create a digest password - Found word(s)
list error in the Text body

The problem you are hiting is due to the location of the jar file in the
default tomcat install.  You can move the jar file into the lib\common area.

Frankly, I think it's much cleaner to just copy the code to create pw's into
one of your own classes.  It's only a few lines of code.  Just find the
realmbase class in the Tomcat source and clone the method.

Jerry

-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: How can I create a d

RE: apache + tomcat + JK connector configuration

2005-04-13 Thread Delphine Lê
thank you, but it's got them:

# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=6969
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300


> Post the workers.properties file.  You probably need to include these
> lines in that file:
>
> worker.list=worker1
> worker.worker1.port=6969
>
>
>
> -Original Message-
> From: Delphine Lê [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 13, 2005 2:01 PM
> To: tomcat-user@jakarta.apache.org
> Subject: apache + tomcat + JK connector configuration
>
>
> Hello,
>
>
>
> Has anyone had any success in configuring Apache (2.0.53) with Tomcat
> (4.1.29) in Windows XP, using a recent JK connector ?
>
> We have a server running with the JK2 connector and I'm trying to
> replace it with the latest JK connector (JK-1.2.10), the reason being
> that JK2 is officially unsupported as of 15 Nov 2004 and we're
> experiencing a problem with truncated requests due to this connector.
>
>
>
> In Apache, I configured a worker called worker1 and I send everything
> from context /examples to this worker following
> http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html.
>
> The configuration looks fine, since I can see in the following lines in
> mod_jk.log:
>
>
>
> [Wed Apr 13 18:49:13 2005] [debug]
> uri_worker_map_add::jk_uri_worker_map.c (269): exact rule
> /examples=worker1 was added
>
> [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219):
> creating worker worker1
>
> [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125):
> about to create instance worker1 of ajp13
>
> [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138):
> about to validate and init worker1
>
> [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781):
> worker worker1 contact is 'localhost:6969'
>
>
>
> However, if I send a request, it doesn't get through and I get an error
> message in the browser.
>
> The log shows:
>
> [Wed Apr 13 18:50:16 2005] [info]
> ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
> tomcat. Tomcat is probably not started or is listening on the wrong
> host/port (127.0.0.1:6969). Failed errno = 61
>
> [Wed Apr 13 18:50:16 2005] [info]  ajp_send_request::jk_ajp_common.c
> (1227): Error connecting to the Tomcat process.
>
>
>
> What should I change in Tomcat configuration to have it work with JK
> instead of JK2 ?
>
> It is of course started and listening on port 6969. The configuration in
> server.xml looks like this:
>
>
>
> 
> port="6969" minProcessors="5" maxProcessors="75" enableLookups="true"
> redirectPort="8443" acceptCount="100" debug="0"
> connectionTimeout="2" useURIValidationHack="false"
> disableUploadTimeout="true"/>
>
>
>
> Thanks.
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Hassan Schroeder
Ikonne, Ike wrote:
It is more like the last thing you listed below.  I know that when fronted with
Apache, that can be done, I thought tomcat had similar directory control that 
apache has without having to setup security constraints.  You basically nailed
it, I may have to tell my clients to just front tomcat with Apache.
How are adding lines of configuration to .htaccess/httpd.conf any
different than adding a few lines to web.xml?
And for no apparent (to me, anyway) advantage you're going to throw
in another couple of pieces of software to be installed, configured
and maintained?
What exactly is it about Apache httpd "directory control" that you
prefer?
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


RE: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Ikonne, Ike
Hi Jason,

It is more like the last thing you listed below.  I know that when fronted with
Apache, that can be done, I thought tomcat had similar directory control that 
apache has without having to setup security constraints.  You basically nailed
it, I may have to tell my clients to just front tomcat with Apache.

Again, thanks for your response

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 4:27 PM
To: Tomcat Users List
Subject: Re: How do I restrict access to webapps applications from
browser users?


On 4/13/05, Ikonne, Ike <[EMAIL PROTECTED]> wrote:
> Hi Darryl,
> 
> Thanks, I thought there was another way to do it other than setting up
> security constraints and making users to get the signon page that is
> associated with this.
> 

Maybe you need to describe what you are actually trying to achieve by
this setup.

Are you trying to make it so the content can only be streamed from a
JSP/servlet and not accessed directly via the web? (Often done for
images and confidential stuff like documents etc)

or

Are you trying to lock certain users out of certain directories?

If you are trying to protect static content you might be best off
using Apache and utilising .htaccess files but it all depends what you
are trying to do...

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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


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



RE: apache + tomcat + JK connector configuration

2005-04-13 Thread Trung Nguyen
Post the workers.properties file.  You probably need to include these lines in 
that file:

worker.list=worker1
worker.worker1.port=6969



-Original Message-
From: Delphine Lê [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 2:01 PM
To: tomcat-user@jakarta.apache.org
Subject: apache + tomcat + JK connector configuration


Hello,

 

Has anyone had any success in configuring Apache (2.0.53) with Tomcat
(4.1.29) in Windows XP, using a recent JK connector ?

We have a server running with the JK2 connector and I'm trying to
replace it with the latest JK connector (JK-1.2.10), the reason being
that JK2 is officially unsupported as of 15 Nov 2004 and we're
experiencing a problem with truncated requests due to this connector.

 

In Apache, I configured a worker called worker1 and I send everything
from context /examples to this worker following
http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html.

The configuration looks fine, since I can see in the following lines in
mod_jk.log:

 

[Wed Apr 13 18:49:13 2005] [debug]
uri_worker_map_add::jk_uri_worker_map.c (269): exact rule
/examples=worker1 was added

[Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219):
creating worker worker1

[Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125):
about to create instance worker1 of ajp13

[Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138):
about to validate and init worker1

[Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781):
worker worker1 contact is 'localhost:6969'

 

However, if I send a request, it doesn't get through and I get an error
message in the browser.

The log shows:

[Wed Apr 13 18:50:16 2005] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
tomcat. Tomcat is probably not started or is listening on the wrong
host/port (127.0.0.1:6969). Failed errno = 61

[Wed Apr 13 18:50:16 2005] [info]  ajp_send_request::jk_ajp_common.c
(1227): Error connecting to the Tomcat process.

 

What should I change in Tomcat configuration to have it work with JK
instead of JK2 ? 

It is of course started and listening on port 6969. The configuration in
server.xml looks like this:

 



 

Thanks.

 


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



Re: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Jason Bainbridge
On 4/13/05, Ikonne, Ike <[EMAIL PROTECTED]> wrote:
> Hi Darryl,
> 
> Thanks, I thought there was another way to do it other than setting up
> security constraints and making users to get the signon page that is
> associated with this.
> 

Maybe you need to describe what you are actually trying to achieve by
this setup.

Are you trying to make it so the content can only be streamed from a
JSP/servlet and not accessed directly via the web? (Often done for
images and confidential stuff like documents etc)

or

Are you trying to lock certain users out of certain directories?

If you are trying to protect static content you might be best off
using Apache and utilising .htaccess files but it all depends what you
are trying to do...

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



RE: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Ikonne, Ike
Hi Darryl,

Thanks, I thought there was another way to do it other than setting up 
security constraints and making users to get the signon page that is 
associated with this.

Thanks,

Ike

-Original Message-
From: Darryl Wilburn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 4:09 PM
To: tomcat-user@jakarta.apache.org
Subject: How do I restrict access to webapps applications from browser
users?


I lost the thread to this original message, but found
what I consider good information.

Ike,
Here's a link to some information on using
security-constraint: 
http://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html

It also states:

"The  sub-element defines the
authentication method for the defined realm. The
possible values are BASIC, DIGEST, and FORM. And the
 sub-element names the Web resource that
this  maps to."

So it doesn't seem to require BASIC authentication.

Darryl



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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


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



Re: RES: How can I create a digest password - digest.bat is the key!

2005-04-13 Thread Mark Thomas
Paulo,
I am pretty sure this won't work. Tomcat can't calculate the real 
password (required by the database) from the hash. The key feature of a 
hash is its one way nature.

Also, if Tomcat could get the password from the hash so could any attacker.
Mark
Paulo Alvim wrote:
Lorenzo,
Are you using the DBCP JDBC connection pooling (with that configuration
files in the "conf/catalina/localhost")?
We'd like to know if your approach could be used to change the "JDBC pool
configuration files" from:
  

  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@x:1521:oraplcdb


  username
  demo3


  password
  mypass

   (...)
  
...to something like (pass encrypted):


  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@x:1521:oraplcdb


  username
  demo3


  password
  %$&#I(#)$

   (...)
  
-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 17:13
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - digest.bat is the key!
Prioridade: Alta
Dear Paulo:
Thanks for your comments.
What we want is to have minimum exposure to hacking.
We found out that, in the context.xml, we can specify the users.xml file,
and the digest method. So now it is possible to have a different user and
password for admin and manager, and in a separate location where
hackers -hopelly- cannot get thru.
Also in the net we found that we can generate the MD5 password using
digest.bat that is in the tomcat/bin directory. This worked perfectly!
Thanks again,
Regards,
Lorenzo Jimenez

-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 02:01 p.m.
To: Tomcat Users List
Subject: [SPAM2] - RES: How can I create a digest password - another error -
Found word(s) list error in the Text body
Hi,
I don't know if it's your objective but is it possible to use MD5 to encode
passwords in the DBCP conf files?
Is there any documentation about how could we avoid to have the real
passwords in these files?
Thanks in advance!
Alvim
-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 15:04
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - another error
Prioridade: Alta

Dear Jerry:
Thanks for the advice.
I follow your advice but did not worked. I use this
C:\>java -cp C:\Java\Tomcat5.0.28\common\lib\catalina.jar
org.apache.catalina.realm.RealmBase -a MD5 admin
And I got this error:
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Thanks again,
Lorenzo

-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 11:07 a.m.
To: 'Tomcat Users List'
Subject: [SPAM2] - RE: How can I create a digest password - Found word(s)
list error in the Text body
The problem you are hiting is due to the location of the jar file in the
default tomcat install.  You can move the jar file into the lib\common area.
Frankly, I think it's much cleaner to just copy the code to create pw's into
one of your own classes.  It's only a few lines of code.  Just find the
realmbase class in the Tomcat source and clone the method.
Jerry
-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: How can I create a digest password
Importance: High
Hi,
I need help to generate encrypted passwords. Using the Tomcat 5's
documentation:
C:\>java org.apache.catalina.realm.RealmBase -a MD5 mypassd
And this is the error message:
"Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/realm/RealmBase"
I also checked the classpath, and Catalina.jar is in it.
I even tried being positioned on catalina's directory.
Using Win XP, Tomcat 5.0.28, and j2sdk1.4.2_07.
Thank you very much!
Lorenzo
-
Si usted no es el destinatario indicado en este mensaje o responsable como
persona
de la entrega del me

Error

2005-04-13 Thread hgomez
During a routine email scan at UTC, a file attached to this
message was deleted per UTC Security Policy.  UTC does not allow
emailing several file types due to their potential to transmit viruses.

An attachment named sjufp.scr was removed from this message.
The body text of the message that included the deleted attachment can be found
in the .txt file below.  It is safe to open this file. If you believe this
message is not business related simply delete it. If the message is business
related and you require the file that was deleted, please contact the 
sender/nand arrange an alternate means of receiving it.  The recommended method 
is to/nhave the sender zip the file before sending it.

The message cannot be represented in 7-bit ASCII encoding and has been sent as 
a binary attachment.


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

How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Darryl Wilburn
I lost the thread to this original message, but found
what I consider good information.

Ike,
Here's a link to some information on using
security-constraint: 
http://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html

It also states:

"The  sub-element defines the
authentication method for the defined realm. The
possible values are BASIC, DIGEST, and FORM. And the
 sub-element names the Web resource that
this  maps to."

So it doesn't seem to require BASIC authentication.

Darryl



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



RE: How can I create a digest password - digest.bat is the key! - Found word(s) list error in the Text body

2005-04-13 Thread Lorenzo Jiménez
Paulo:

> Are you using the DBCP JDBC connection pooling

Yes, but how can I tell tomcat the password is encrypted?
Using the realm?

Thanks again,

Lorenzo


-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 13 de Abril de 2005 02:59 p.m.
To: Tomcat Users List
Subject: [SPAM2] - RES: How can I create a digest password - digest.bat is the 
key! - Found word(s) list error in the Text body

Lorenzo,

Are you using the DBCP JDBC connection pooling (with that configuration
files in the "conf/catalina/localhost")?

We'd like to know if your approach could be used to change the "JDBC pool
configuration files" from:

  

  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@x:1521:oraplcdb


  username
  demo3


  password
  mypass

   (...)
  

...to something like (pass encrypted):



  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@x:1521:oraplcdb


  username
  demo3


  password
  %$&#I(#)$

   (...)
  


-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 17:13
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - digest.bat is the key!
Prioridade: Alta


Dear Paulo:

Thanks for your comments.

What we want is to have minimum exposure to hacking.

We found out that, in the context.xml, we can specify the users.xml file,
and the digest method. So now it is possible to have a different user and
password for admin and manager, and in a separate location where
hackers -hopelly- cannot get thru.

Also in the net we found that we can generate the MD5 password using
digest.bat that is in the tomcat/bin directory. This worked perfectly!

Thanks again,
Regards,

Lorenzo Jimenez



-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 02:01 p.m.
To: Tomcat Users List
Subject: [SPAM2] - RES: How can I create a digest password - another error -
Found word(s) list error in the Text body

Hi,

I don't know if it's your objective but is it possible to use MD5 to encode
passwords in the DBCP conf files?

Is there any documentation about how could we avoid to have the real
passwords in these files?

Thanks in advance!

Alvim

-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 15:04
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - another error
Prioridade: Alta



Dear Jerry:

Thanks for the advice.

I follow your advice but did not worked. I use this

C:\>java -cp C:\Java\Tomcat5.0.28\common\lib\catalina.jar
org.apache.catalina.realm.RealmBase -a MD5 admin

And I got this error:

Exception in thread "main" java.lang.NoClassDefFoundError:
javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Thanks again,

Lorenzo




-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 11:07 a.m.
To: 'Tomcat Users List'
Subject: [SPAM2] - RE: How can I create a digest password - Found word(s)
list error in the Text body

The problem you are hiting is due to the location of the jar file in the
default tomcat install.  You can move the jar file into the lib\common area.

Frankly, I think it's much cleaner to just copy the code to create pw's into
one of your own classes.  It's only a few lines of code.  Just find the
realmbase class in the Tomcat source and clone the method.

Jerry

-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: How can I create a digest password
Importance: High

Hi,

I need help to generate encrypted passwords. Using the Tomcat 5's
documentation:

C:\>java org.apache.catalina.realm.RealmBase -a MD5 mypassd

And this is the error message:

"Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/realm/RealmBase"

I also checked the classpath, and Catalina.jar is in it.
I even tried being positioned on catalina's directory.

Using Win XP, Tomcat 5.0.28, and j2sdk1.4

Fwd: tomcat example app corrupt

2005-04-13 Thread Mark Panahi
-- Forwarded message --
From: Mark Panahi <[EMAIL PROTECTED]>
Date: Apr 12, 2005 9:47 PM
Subject: tomcat example app corrupt
To: [EMAIL PROTECTED]


The example app posted at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample/ seems
to be corrupt.

Any help?

Thanks,

Mark

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



RES: How can I create a digest password - digest.bat is the key!

2005-04-13 Thread Paulo Alvim
Lorenzo,

Are you using the DBCP JDBC connection pooling (with that configuration
files in the "conf/catalina/localhost")?

We'd like to know if your approach could be used to change the "JDBC pool
configuration files" from:

  

  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@x:1521:oraplcdb


  username
  demo3


  password
  mypass

   (...)
  

...to something like (pass encrypted):



  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@x:1521:oraplcdb


  username
  demo3


  password
  %$&#I(#)$

   (...)
  


-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 17:13
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - digest.bat is the key!
Prioridade: Alta


Dear Paulo:

Thanks for your comments.

What we want is to have minimum exposure to hacking.

We found out that, in the context.xml, we can specify the users.xml file,
and the digest method. So now it is possible to have a different user and
password for admin and manager, and in a separate location where
hackers -hopelly- cannot get thru.

Also in the net we found that we can generate the MD5 password using
digest.bat that is in the tomcat/bin directory. This worked perfectly!

Thanks again,
Regards,

Lorenzo Jimenez



-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 02:01 p.m.
To: Tomcat Users List
Subject: [SPAM2] - RES: How can I create a digest password - another error -
Found word(s) list error in the Text body

Hi,

I don't know if it's your objective but is it possible to use MD5 to encode
passwords in the DBCP conf files?

Is there any documentation about how could we avoid to have the real
passwords in these files?

Thanks in advance!

Alvim

-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 15:04
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - another error
Prioridade: Alta



Dear Jerry:

Thanks for the advice.

I follow your advice but did not worked. I use this

C:\>java -cp C:\Java\Tomcat5.0.28\common\lib\catalina.jar
org.apache.catalina.realm.RealmBase -a MD5 admin

And I got this error:

Exception in thread "main" java.lang.NoClassDefFoundError:
javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Thanks again,

Lorenzo




-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 11:07 a.m.
To: 'Tomcat Users List'
Subject: [SPAM2] - RE: How can I create a digest password - Found word(s)
list error in the Text body

The problem you are hiting is due to the location of the jar file in the
default tomcat install.  You can move the jar file into the lib\common area.

Frankly, I think it's much cleaner to just copy the code to create pw's into
one of your own classes.  It's only a few lines of code.  Just find the
realmbase class in the Tomcat source and clone the method.

Jerry

-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: How can I create a digest password
Importance: High

Hi,

I need help to generate encrypted passwords. Using the Tomcat 5's
documentation:

C:\>java org.apache.catalina.realm.RealmBase -a MD5 mypassd

And this is the error message:

"Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/realm/RealmBase"

I also checked the classpath, and Catalina.jar is in it.
I even tried being positioned on catalina's directory.

Using Win XP, Tomcat 5.0.28, and j2sdk1.4.2_07.

Thank you very much!

Lorenzo


-

Si usted no es el destinatario indicado en este mensaje o responsable como
persona
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor
notifique
al correo [EMAIL PROTECTED] Para más referencia sobre términos
importantes
relacionados a este correo visite
http://www.nacion.com/disclaimer/index_es2.htm

I

RE: Information on a hacked tomcat 5

2005-04-13 Thread Lorenzo Jiménez
Thanks Mark, your input is much appreciated.

Lorenzo

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 13 de Abril de 2005 02:42 p.m.
To: Tomcat Users List
Subject: Re: Information on a hacked tomcat 5

It depends if these apps are visible to the internet. You can use a 
remote address filter (actually a valve not a filter in the servlet API 
sense of the word) to limit their accessibility.

If the apps are visible, an attacker with your manager password can 
replace one of your trusted apps/deploy their own app which can do 
anything allowed by your security policy and the permissions of the user 
under which the tomcat process runs. Assuming they can then escalate 
their access via some other vulnerability, getting root access is also 
possible.

Things you can do to mitigate this risk
- configure a remote address filter for all admin sensitive apps (admin, 
manager + any of your own)
- configure a security manager

and then test your configuration to make sure it does what you think it 
does.

Depending on your OS there may be other things you can do to isolate the 
tomcat process from the rest of the box.

Mark

Lorenzo Jiménez wrote:
> Hi,
> 
> If someone in the net, found out, by any reason, our admin or manager user 
> and password, what resources he can get besides turn on/off the apps, looking 
> tomcat-users.xml?
> 
> Can he/she get info on the application context.xml like database user and 
> passwords?
> Can he/she deploy an exe or script for converting a server in a zombie?
> Change the server init scripts?
> Change the root password?
> 
> Thanks very much,
> 
> Lorenzo Jimenez
> 
> 
> 
> 
> 
> 
> 
> -
> 
> Si usted no es el destinatario indicado en este mensaje o responsable como 
> persona 
> de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
> notifique 
> al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
> relacionados a este correo visite 
> http://www.nacion.com/disclaimer/index_es2.htm
> 
> If you are not the addressee indicated in this message (or responsible for 
> delivery of the 
> message to such person), you may not copy or send this message to anyone, 
> please notify
> to [EMAIL PROTECTED] Click here for important additional terms relating to 
> this e-mail. 
> 
> 
> -
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


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


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



Re: Information on a hacked tomcat 5

2005-04-13 Thread Mark Thomas
It depends if these apps are visible to the internet. You can use a 
remote address filter (actually a valve not a filter in the servlet API 
sense of the word) to limit their accessibility.

If the apps are visible, an attacker with your manager password can 
replace one of your trusted apps/deploy their own app which can do 
anything allowed by your security policy and the permissions of the user 
under which the tomcat process runs. Assuming they can then escalate 
their access via some other vulnerability, getting root access is also 
possible.

Things you can do to mitigate this risk
- configure a remote address filter for all admin sensitive apps (admin, 
manager + any of your own)
- configure a security manager

and then test your configuration to make sure it does what you think it 
does.

Depending on your OS there may be other things you can do to isolate the 
tomcat process from the rest of the box.

Mark
Lorenzo Jiménez wrote:
Hi,
If someone in the net, found out, by any reason, our admin or manager user and 
password, what resources he can get besides turn on/off the apps, looking 
tomcat-users.xml?
Can he/she get info on the application context.xml like database user and 
passwords?
Can he/she deploy an exe or script for converting a server in a zombie?
Change the server init scripts?
Change the root password?
Thanks very much,
Lorenzo Jimenez



-
Si usted no es el destinatario indicado en este mensaje o responsable como persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for delivery of the 
message to such person), you may not copy or send this message to anyone, please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this e-mail. 


-

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


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


mod_access module with the allow directive confusion

2005-04-13 Thread Jay Hulslander
I would like to limit access to a directory path that I have in tomcat by 
domain.  I believe I can use the mod_access module with the allow directive 
to do this.  I found information about the directive at 
http://httpd.apache.org/docs/mod/mod_access.html#allow but I am still 
slightly confused.  The problem is I don't know what file I need to edit, 
and I may not have my syntax correct.  What I am trying to do is 
below.  Please point me in the right direction.

Thanks,
Jay

Order Deny,Allow
Deny from all
Allow from cornell.edu
 


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


Re: Re[6]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Jason Bainbridge
On 4/13/05, Andrey <[EMAIL PROTECTED]> wrote:

> GET / HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
> application/x-shockwave-flash, application/vnd.ms-excel, 
> application/vnd.ms-powerpoint, application/msword, */*
> Accept-Language: lv
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
> 1.1.4322)
> Host: 62.86.16.101
> Connection: Keep-Alive
> 
> HTTP/1.1 302 Moved Temporarily
> Location: https://62.86.16.101/index.jsp
> Content-Length: 0
> Date: Wed, 13 Apr 2005 19:38:50 GMT
> Server: Apache-Coyote/1.1

Well so far that is normal, what isn't normal is that the browser
isn't sending another GET request for https://62.86.16.101/index.jsp
what happens if you request that URL directly?

Hang on you know what is happening? I bet HTTP/1.1 isn't enabled in
the browser, I had the exact same problem the other day...

Tools / Internet Options, Advanced, HTTP/1.1 Settings: enable both of
those for some reason the Proxy one still seems to effect things even
when you tell IE to not use the proxy for the site you are accessing.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Information on a hacked tomcat 5

2005-04-13 Thread Lorenzo Jiménez

Hi,

If someone in the net, found out, by any reason, our admin or manager user and 
password, what resources he can get besides turn on/off the apps, looking 
tomcat-users.xml?

Can he/she get info on the application context.xml like database user and 
passwords?
Can he/she deploy an exe or script for converting a server in a zombie?
Change the server init scripts?
Change the root password?

Thanks very much,

Lorenzo Jimenez







-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 


-



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



RE: How can I create a digest password - digest.bat is the key!

2005-04-13 Thread Lorenzo Jiménez
Dear Paulo:

Thanks for your comments. 

What we want is to have minimum exposure to hacking. 

We found out that, in the context.xml, we can specify the users.xml file, and 
the digest method. So now it is possible to have a different user and password 
for admin and manager, and in a separate location where hackers -hopelly- 
cannot get thru.

Also in the net we found that we can generate the MD5 password using digest.bat 
that is in the tomcat/bin directory. This worked perfectly!

Thanks again,
Regards,

Lorenzo Jimenez 



-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 13 de Abril de 2005 02:01 p.m.
To: Tomcat Users List
Subject: [SPAM2] - RES: How can I create a digest password - another error - 
Found word(s) list error in the Text body

Hi,

I don't know if it's your objective but is it possible to use MD5 to encode
passwords in the DBCP conf files?

Is there any documentation about how could we avoid to have the real
passwords in these files?

Thanks in advance!

Alvim

-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 15:04
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - another error
Prioridade: Alta



Dear Jerry:

Thanks for the advice.

I follow your advice but did not worked. I use this

C:\>java -cp C:\Java\Tomcat5.0.28\common\lib\catalina.jar
org.apache.catalina.realm.RealmBase -a MD5 admin

And I got this error:

Exception in thread "main" java.lang.NoClassDefFoundError:
javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Thanks again,

Lorenzo




-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 11:07 a.m.
To: 'Tomcat Users List'
Subject: [SPAM2] - RE: How can I create a digest password - Found word(s)
list error in the Text body

The problem you are hiting is due to the location of the jar file in the
default tomcat install.  You can move the jar file into the lib\common area.

Frankly, I think it's much cleaner to just copy the code to create pw's into
one of your own classes.  It's only a few lines of code.  Just find the
realmbase class in the Tomcat source and clone the method.

Jerry

-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: How can I create a digest password
Importance: High

Hi,

I need help to generate encrypted passwords. Using the Tomcat 5's
documentation:

C:\>java org.apache.catalina.realm.RealmBase -a MD5 mypassd

And this is the error message:

"Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/realm/RealmBase"

I also checked the classpath, and Catalina.jar is in it.
I even tried being positioned on catalina's directory.

Using Win XP, Tomcat 5.0.28, and j2sdk1.4.2_07.

Thank you very much!

Lorenzo


-

Si usted no es el destinatario indicado en este mensaje o responsable como
persona
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor
notifique
al correo [EMAIL PROTECTED] Para más referencia sobre términos
importantes
relacionados a este correo visite
http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for
delivery of the
message to such person), you may not copy or send this message to anyone,
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating
to this e-mail.


-



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



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


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



-
To 

RES: RES: JVM' sperm size always increase after hot deploy to tomcat 5.0.28

2005-04-13 Thread Paulo Alvim
Hi!

Anyone could tell us if TC 5.5.x has improvements in the JVM's perm memory
area management?

-Mensagem original-
De: Paulo Alvim [mailto:[EMAIL PROTECTED]
Enviada em: sábado, 9 de abril de 2005 14:53
Para: Tomcat Users List
Assunto: RES: RES: JVM' sperm size always increase after hot deploy to
tomcat 5.0.28


Thanks Michael...

But we had already tried to put both the "PropertyUtils.clearDescriptors();"
and the "Introspector.flushCaches();" in the ServletContextListener -
contextDestroyed and it didn't help so much (...) I'll try also with the
logging "LogManager.shutdown();".

But "try Tomcat 5.5x" - do you recommend that because it has improvements in
this area?

-Mensagem original-
De: Michael Echerer [mailto:[EMAIL PROTECTED]
Enviada em: sábado, 9 de abril de 2005 07:23
Para: Tomcat Users List
Assunto: Re: RES: JVM' sperm size always increase after hot deploy to
tomcat 5.0.28




Paulo Alvim wrote:
> Thank you all
>
> It's good to know that we're not alone...but since we used to have
workable
> 'hot deploy' others pre-J2EE App Servers our customers will insist with
> that - maybe we'll have to reconsider other App Server as our main
> Open-Source production environment option.
>
> Does anyone know if JBoss 4 makes improvement in this area? I really can't
> believe that it's so hard...
>
Guess that won't help, because JBoss uses Tomcat as web container.

Check: http://issues.apache.org/bugzilla/show_bug.cgi?id=26135 and try
Tomcat 5.5x

Generally these undeploy memory leakage issues are mainly "coded" into
the webapp or in libraries. Some references won't be garbage collected
when undeploying. There seem to be problems with commons-logging and
beanutils, but could also be self-made, of course.

Cheers,
Michael


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



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



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



RES: How can I create a digest password - another error

2005-04-13 Thread Paulo Alvim
Hi,

I don't know if it's your objective but is it possible to use MD5 to encode
passwords in the DBCP conf files?

Is there any documentation about how could we avoid to have the real
passwords in these files?

Thanks in advance!

Alvim

-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 15:04
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - another error
Prioridade: Alta



Dear Jerry:

Thanks for the advice.

I follow your advice but did not worked. I use this

C:\>java -cp C:\Java\Tomcat5.0.28\common\lib\catalina.jar
org.apache.catalina.realm.RealmBase -a MD5 admin

And I got this error:

Exception in thread "main" java.lang.NoClassDefFoundError:
javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Thanks again,

Lorenzo




-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 11:07 a.m.
To: 'Tomcat Users List'
Subject: [SPAM2] - RE: How can I create a digest password - Found word(s)
list error in the Text body

The problem you are hiting is due to the location of the jar file in the
default tomcat install.  You can move the jar file into the lib\common area.

Frankly, I think it's much cleaner to just copy the code to create pw's into
one of your own classes.  It's only a few lines of code.  Just find the
realmbase class in the Tomcat source and clone the method.

Jerry

-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: How can I create a digest password
Importance: High

Hi,

I need help to generate encrypted passwords. Using the Tomcat 5's
documentation:

C:\>java org.apache.catalina.realm.RealmBase -a MD5 mypassd

And this is the error message:

"Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/realm/RealmBase"

I also checked the classpath, and Catalina.jar is in it.
I even tried being positioned on catalina's directory.

Using Win XP, Tomcat 5.0.28, and j2sdk1.4.2_07.

Thank you very much!

Lorenzo


-

Si usted no es el destinatario indicado en este mensaje o responsable como
persona
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor
notifique
al correo [EMAIL PROTECTED] Para más referencia sobre términos
importantes
relacionados a este correo visite
http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for
delivery of the
message to such person), you may not copy or send this message to anyone,
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating
to this e-mail.


-



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



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


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



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



RE: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

2005-04-13 Thread Larry Isaacs
There are too many differences and too many "what ifs" to
provide a practical "upgrade" document.  You will need to
assess what features and customizations you are using now
in 3.2.2 and discover how the same thing or something
equivalent may be accomplished in 3.3.2.  Some things will
be the same or similar, but some will be different.  The
only thing you should have any real problem with are
customizations that depend on "quirks" in 3.2.2 that have
been fixed or don't apply to 3.3.2.

Cheers,
Larry

> -Original Message-
> From: Horvath, Ruth (Ruth) ** CTR ** [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 13, 2005 2:33 PM
> To: Tomcat Users List
> Subject: RE: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows
> 
> 
> Thanks - I've already read them and they really don't answer 
> my questions (I've actually read the 3.3, 3.3.1 & 3.3.2) I 
> can find installation instructions (but not upgrade)
> 
> Ruth 
> 
> -Original Message-
> From: David Smith [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 13, 2005 12:26 PM
> To: Tomcat Users List
> Subject: Re: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows
> 
> I would say take a look at the release notes here:
> 
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html
> 
> --David
> 
> Horvath, Ruth (Ruth) ** CTR ** wrote:
> 
> >Where do I find these ?
> >
> >Ruth
> >
> >-Original Message-
> >From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, April 13, 2005 11:28 AM
> >To: Tomcat Users List
> >Subject: Re: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows
> >
> >Reading the changelog is a good place to start...
> >
> >Jon
> >
> >- Original Message -
> >From: "Horvath, Ruth (Ruth) ** CTR **" <[EMAIL PROTECTED]>
> >To: 
> >Sent: Wednesday, April 13, 2005 12:16 PM
> >Subject: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows
> >
> >
> >
> >Sorry if this has been discussed before, but I couldn't find 
> this topic
> 
> >in the archives.
> >I'm also new to tomcat. I'm not a developer, but a member of 
> our system
> 
> >verification team.
> >I've been asked to evaluate what needs to be done to upgrade our 
> >current version of tomcat.
> >
> >Currently, our application is using tomcat 3.2.2 (I know - 
> we need to 
> >get into the 21st century) The management team is looking to 
> upgrade to
> >3.3.2 (baby steps - this is for a point release - our next major 
> >release we hope to convince them to at least use 5.0) Anyway, if I 
> >upgrade from
> >3.2.2 to 3.3.2, what is this buying me (improved performance 
> - what) ?
> >What is the best way to test (or should I just verify I didn't break 
> >anything that was previously working) ?
> >
> >What is the best way to upgrade (without loosing my customized 
> >xml/properties files) Is it good enough to look at what's 
> currently in 
> >my 3.2.2 bin/conf/lib directories and just copy in the 3.3.2 
> versions 
> >of those files currently used ?
> >
> >Also, my current 3.2.2 has jk_nt_service.exe and 
> isapi_redirect.dll in 
> >the bin directory, but I don't see these in the 3.3.2 bin.  
> Where would
> 
> >I find these ? These look like they've been modified 
> (according to the 
> >release notes), so I'm guessing I need to find them.
> >
> >Thank-you for your time and patience,
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >  
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re[6]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Andrey
Hello,

Wednesday, April 13, 2005, 10:17:42 PM, you wrote:


>>I can connect to ssl port ... and i can see sertificate.. but when i
>>accept this sertificate my browser says "The page cannot be
>>displayed".

> Just a basic guesswork... Assuming the code does not differentiate between
> ssl and non-ssl, could it be a browser specific problem? Also, can you see
> it from local machine, i.e. https://localhost:8443/...? 

> Just my 2 pence...

No difference between local/remote.
I don't think it's network/browser related problem.

Thanks to Jason..

GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/index.jsp
Content-Length: 0
Date: Wed, 13 Apr 2005 19:38:50 GMT
Server: Apache-Coyote/1.1

What can i do ? :)



-- 
Best regards,
Andrey
[EMAIL PROTECTED]


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



Re: Re[2]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Jason Bainbridge
On 4/13/05, Andrey <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> Wednesday, April 13, 2005, 8:21:22 PM, you wrote:
> 
> > Sounds like you are using Internet Explorer so the first step would be
> > to disable "Show friendly HTTP error messages" and if you are using IE
> > for any sort of web development testing that is one of the first
> > things you should do:
> 
> > Tools / Internet Options, Advanced tab, then it is under the Browsing
> > subheading.
> 
> > Then you can see the real error.
> 
> > Regards,
> 
> Same error.. and it looks like loop.

Do you have any other web servers running on the same machine? MSIE
gets confused when you access say IIS on https://mymachine and then
access Tomcat on http://mymachine:8443 and produces the behaviour you
describe.

Try installing iehttpheaders and monitor the requests and responses:
http://www.blunck.info/iehttpheaders.html

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Virtual Host in Tomcat 4.1.29

2005-04-13 Thread Darryl Wilburn
Disregard... I think I've got it!

Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



Re: Re[4]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Ben Kim

>I can connect to ssl port ... and i can see sertificate.. but when i
>accept this sertificate my browser says "The page cannot be
>displayed".

Just a basic guesswork... Assuming the code does not differentiate between
ssl and non-ssl, could it be a browser specific problem? Also, can you see
it from local machine, i.e. https://localhost:8443/...? 

Just my 2 pence...


Regards,

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas A&M University


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



Virtual Host in Tomcat 4.1.29

2005-04-13 Thread Darryl Wilburn
I'm going to try to keep this short and to the point. 
I'm trying to configure a virtual host on a 4.1.29
server with no luck.  I've successfully configured it
on 5.5.7 which seems to have better facilities for
configuring VH's.  I've configured the server.xml to
have an additional host entry as shown:


 
nt-notes2


Logging is working fine, but when I try to navigate to
http://ddi, I get "No context configured to process
this request.  Problem is when I try to configure a
DefaultContext, I get a different error message.  So
what needs defined and where does it go.  BTW, I have
a WEB-INF under webapps/ddi with an empty web.xml. 
This is where I've been trying to configure the
default context for this VH.

Thanks for any help!
Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
thank you all ... i got it compiled.


"David B. Saul" <[EMAIL PROTECTED]> wrote:
BTW - adding the PWD to the classpath should have no effect on your issue!

-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 2:31 PM
To: 'Tomcat Users List'
Subject: RE: class path (UNCLASSIFIED)


Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes, only if the folder/directory names have spaces, and
then search your system for HelloWorld.class if you do not see it in this
directory. You also mentioned you were using a batch file, or script file,
to compile. Do this from a command line from the directory you where the
source code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath. I am guessing this is the
HellowWorld.java servlet example included with Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacode>javac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacode>javac -classpath
"c:\tomcat\common\lib\servlet.jar" HelloWorld.java

C:\javacode>javac HelloWorld.java


"David B. Saul" wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath "C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar" HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

>tried that too... but it can't identify the path.
>
>C:\javacode>javac -classpath >4.1\common\lib> HellWorld.java
>
>
>

Try use quotes instead of '<' and '>' to quote the class path.

Good luck.

Bao

>The system cannot find the file specified.
>
>anyways.. now will reinstall as suggested 'without' spaces and will let 
>you know.. thanks so far
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>Try compiling the class by including the path for servlet.jar in your 
>javac command, if you haven't done that yet.
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:33 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>I compiling it from the command prompt.
>The sourse code is in c:\javacode
>so i on cmd... i change directory to c:\javacode>javac HelloWorld.java
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>I am sorry, but how are you compiling your class ?
>Are you using any IDE (i.e Eclipse, Jdeveloper) ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:07 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>The same as before.
>
>C:\javacode>javac HelloWorld.java
>HelloWorld.java:2: package javax.servlet does not exist import 
>javax.servlet.*; ^
>HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
>HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
>location: class HelloWorld
>public class HelloWorld extends HttpServlet { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class 
>HttpServletRequest
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class 
>HttpServletResponse
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException {
>
>^
>6 errors
>
>-
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>What errors are you getting again ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 9:47 AM
>To: Tomcat Users List; Jason Bainbridge
>Subject: Re: class path
>
>Hi
>These are the env. variables that I have set explicitly for tomcat 4.1 
>installation
>
>lJAVA_HOME = C:\java\bin
>lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;

RE: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

2005-04-13 Thread Horvath, Ruth \(Ruth\) ** CTR **

Thanks - I've already read them and they really don't answer my
questions
(I've actually read the 3.3, 3.3.1 & 3.3.2)
I can find installation instructions (but not upgrade)

Ruth 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 12:26 PM
To: Tomcat Users List
Subject: Re: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

I would say take a look at the release notes here:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html

--David

Horvath, Ruth (Ruth) ** CTR ** wrote:

>Where do I find these ?
>
>Ruth
>
>-Original Message-
>From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 11:28 AM
>To: Tomcat Users List
>Subject: Re: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows
>
>Reading the changelog is a good place to start...
>
>Jon
>
>- Original Message -
>From: "Horvath, Ruth (Ruth) ** CTR **" <[EMAIL PROTECTED]>
>To: 
>Sent: Wednesday, April 13, 2005 12:16 PM
>Subject: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows
>
>
>
>Sorry if this has been discussed before, but I couldn't find this topic

>in the archives.
>I'm also new to tomcat. I'm not a developer, but a member of our system

>verification team.
>I've been asked to evaluate what needs to be done to upgrade our 
>current version of tomcat.
>
>Currently, our application is using tomcat 3.2.2 (I know - we need to 
>get into the 21st century) The management team is looking to upgrade to
>3.3.2 (baby steps - this is for a point release - our next major 
>release we hope to convince them to at least use 5.0) Anyway, if I 
>upgrade from
>3.2.2 to 3.3.2, what is this buying me (improved performance - what) ?
>What is the best way to test (or should I just verify I didn't break 
>anything that was previously working) ?
>
>What is the best way to upgrade (without loosing my customized 
>xml/properties files) Is it good enough to look at what's currently in 
>my 3.2.2 bin/conf/lib directories and just copy in the 3.3.2 versions 
>of those files currently used ?
>
>Also, my current 3.2.2 has jk_nt_service.exe and isapi_redirect.dll in 
>the bin directory, but I don't see these in the 3.3.2 bin.  Where would

>I find these ? These look like they've been modified (according to the 
>release notes), so I'm guessing I need to find them.
>
>Thank-you for your time and patience,
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>



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



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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
BTW - adding the PWD to the classpath should have no effect on your issue!

-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 2:31 PM
To: 'Tomcat Users List'
Subject: RE: class path (UNCLASSIFIED)


Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes, only if the folder/directory names have spaces, and
then search your system for HelloWorld.class if you do not see it in this
directory. You also mentioned you were using a batch file, or script file,
to compile. Do this from a command line from the directory you where the
source code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath. I am guessing this is the
HellowWorld.java servlet example included with Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacode>javac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacode>javac -classpath
"c:\tomcat\common\lib\servlet.jar" HelloWorld.java

C:\javacode>javac HelloWorld.java


"David B. Saul" <[EMAIL PROTECTED]> wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath "C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar" HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

>tried that too... but it can't identify the path.
>
>C:\javacode>javac -classpath >4.1\common\lib> HellWorld.java
>
>
>

Try use quotes instead of '<' and '>' to quote the class path.

Good luck.

Bao

>The system cannot find the file specified.
>
>anyways.. now will reinstall as suggested 'without' spaces and will let 
>you know.. thanks so far
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>Try compiling the class by including the path for servlet.jar in your 
>javac command, if you haven't done that yet.
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:33 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>I compiling it from the command prompt.
>The sourse code is in c:\javacode
>so i on cmd... i change directory to c:\javacode>javac HelloWorld.java
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>I am sorry, but how are you compiling your class ?
>Are you using any IDE (i.e Eclipse, Jdeveloper) ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:07 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>The same as before.
>
>C:\javacode>javac HelloWorld.java
>HelloWorld.java:2: package javax.servlet does not exist import 
>javax.servlet.*; ^
>HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
>HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
>location: class HelloWorld
>public class HelloWorld extends HttpServlet { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class 
>HttpServletRequest
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class 
>HttpServletResponse
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException {
>
>^
>6 errors
>
>-
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>What errors are you getting again ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 9:47 AM
>To: Tomcat Users List; Jason Bainbridge
>Subject: Re: class path
>
>Hi
>These are the env. variables that I have set explicitly for tomcat 4.1 
>installation
>
>lJAVA_HOME = C:\java\bin
>lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%
>J2EE
_
>HOME%\lib\j2ee.jar;"
>
>I have the path =C:\java\bi

RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes,
only if the folder/directory names have spaces, and then search your system
for HelloWorld.class if
you do not see it in this directory. You also mentioned you were using a
batch file, or script file, to
compile. Do this from a command line from the directory you where the source
code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath.
I am guessing this is the HellowWorld.java servlet example included with
Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacode>javac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacode>javac -classpath
"c:\tomcat\common\lib\servlet.jar" HelloWorld.java

C:\javacode>javac HelloWorld.java


"David B. Saul" <[EMAIL PROTECTED]> wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath "C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar" HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

>tried that too... but it can't identify the path.
>
>C:\javacode>javac -classpath >4.1\common\lib> HellWorld.java
>
>
>

Try use quotes instead of '<' and '>' to quote the class path.

Good luck.

Bao

>The system cannot find the file specified.
>
>anyways.. now will reinstall as suggested 'without' spaces and will let
>you know.. thanks so far
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>Try compiling the class by including the path for servlet.jar in your
>javac command, if you haven't done that yet.
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:33 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>I compiling it from the command prompt.
>The sourse code is in c:\javacode
>so i on cmd... i change directory to c:\javacode>javac HelloWorld.java
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>I am sorry, but how are you compiling your class ?
>Are you using any IDE (i.e Eclipse, Jdeveloper) ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:07 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>The same as before.
>
>C:\javacode>javac HelloWorld.java
>HelloWorld.java:2: package javax.servlet does not exist import
>javax.servlet.*; ^
>HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
>HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
>location: class HelloWorld
>public class HelloWorld extends HttpServlet { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class
>HttpServletRequest
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException {
>
>^
>6 errors
>
>-
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>What errors are you getting again ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 9:47 AM
>To: Tomcat Users List; Jason Bainbridge
>Subject: Re: class path
>
>Hi
>These are the env. variables that I have set explicitly for tomcat 4.1
>installation
>
>lJAVA_HOME = C:\java\bin
>lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH=
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE
_
>HOME%\lib\j2ee.jar;"
>
>I have the path =C:\java\bin; when i installed
>J2sdk1.4.2_06
>
>
>
>These being the variables I am still getting that error log where the
>compiler cannot locate the servlet pakages.
>
>Hope you can assit further.
>
>Thanks.
>
>
>
>Jason Bainbridge wrote:
>On Apr 12, 2005 3:39 PM, S M wrote

Re: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

2005-04-13 Thread David Smith
I would say take a look at the release notes here:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html
--David
Horvath, Ruth (Ruth) ** CTR ** wrote:
Where do I find these ?
Ruth 

-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:28 AM
To: Tomcat Users List
Subject: Re: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

Reading the changelog is a good place to start...
Jon
- Original Message -
From: "Horvath, Ruth (Ruth) ** CTR **" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 13, 2005 12:16 PM
Subject: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

Sorry if this has been discussed before, but I couldn't find this topic
in the archives.
I'm also new to tomcat. I'm not a developer, but a member of our system
verification team.
I've been asked to evaluate what needs to be done to upgrade our current
version of tomcat.
Currently, our application is using tomcat 3.2.2 (I know - we need to
get into the 21st century) The management team is looking to upgrade to
3.3.2 (baby steps - this is for a point release - our next major release
we hope to convince them to at least use 5.0) Anyway, if I upgrade from
3.2.2 to 3.3.2, what is this buying me (improved performance - what) ?
What is the best way to test (or should I just verify I didn't break
anything that was previously working) ?
What is the best way to upgrade (without loosing my customized
xml/properties files) Is it good enough to look at what's currently in
my 3.2.2 bin/conf/lib directories and just copy in the 3.3.2 versions of
those files currently used ?
Also, my current 3.2.2 has jk_nt_service.exe and isapi_redirect.dll in
the bin directory, but I don't see these in the 3.3.2 bin.  Where would
I find these ? These look like they've been modified (according to the
release notes), so I'm guessing I need to find them.
Thank-you for your time and patience,

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

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


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


Tomcat + Axis

2005-04-13 Thread Graice Marques
Hi people,

I'm having a problem with an AXIS web service executing in Tomcat.
When I start Tomcat, the AXIS process is created and it begins
increase the CPU usage until the time I have to restart Tomcat because
the CPU is 0% idle. Anybody can help me?

Thank you!

Best Regards,
 Graice

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



Re[4]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Andrey
Hello,

Wednesday, April 13, 2005, 9:07:34 PM, you wrote:

> I followed Tomcat directions and did not worked.
> I do find this and it worked, just go to
> http://galatea.com/flashguides/tomcat-ssl-5-unix

> Lorenzo

It's Windows. Sorry.




> -Original Message-
> From: Andrey [mailto:[EMAIL PROTECTED] 
> Sent: Miércoles, 13 de Abril de 2005 11:53 a.m.
> To: Tomcat Users List
> Subject: Re[2]: Tomcat/4.1.31 - SSL Troubles

> Hello,

> Wednesday, April 13, 2005, 8:47:13 PM, you wrote:

>>>I can connect to ssl port ... and i can see sertificate.. but when i
>>>accept this sertificate my browser says "The page cannot be
>>>displayed".

>> Is the page OK on http then?

>> - https://server.com:8443/app1/page1.jsp 
>> - http://server.com:8080/app1/page1.jsp

> Yes. usual http works.






-- 
Best regards,
Andrey
[EMAIL PROTECTED]


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



RE: Re[2]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Lorenzo Jiménez
I followed Tomcat directions and did not worked.
I do find this and it worked, just go to
http://galatea.com/flashguides/tomcat-ssl-5-unix

Lorenzo

-Original Message-
From: Andrey [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 13 de Abril de 2005 11:53 a.m.
To: Tomcat Users List
Subject: Re[2]: Tomcat/4.1.31 - SSL Troubles

Hello,

Wednesday, April 13, 2005, 8:47:13 PM, you wrote:

>>I can connect to ssl port ... and i can see sertificate.. but when i
>>accept this sertificate my browser says "The page cannot be
>>displayed".

> Is the page OK on http then?

> - https://server.com:8443/app1/page1.jsp 
> - http://server.com:8080/app1/page1.jsp

Yes. usual http works.



-- 
Best regards,
Andrey
[EMAIL PROTECTED]


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


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 


-



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



RE: How can I create a digest password - another error

2005-04-13 Thread Lorenzo Jiménez

Dear Jerry:

Thanks for the advice. 

I follow your advice but did not worked. I use this

C:\>java -cp C:\Java\Tomcat5.0.28\common\lib\catalina.jar 
org.apache.catalina.realm.RealmBase -a MD5 admin

And I got this error:

Exception in thread "main" java.lang.NoClassDefFoundError: 
javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Thanks again,

Lorenzo




-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 13 de Abril de 2005 11:07 a.m.
To: 'Tomcat Users List'
Subject: [SPAM2] - RE: How can I create a digest password - Found word(s) list 
error in the Text body

The problem you are hiting is due to the location of the jar file in the
default tomcat install.  You can move the jar file into the lib\common area.

Frankly, I think it's much cleaner to just copy the code to create pw's into
one of your own classes.  It's only a few lines of code.  Just find the
realmbase class in the Tomcat source and clone the method.

Jerry

-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: How can I create a digest password
Importance: High

Hi,

I need help to generate encrypted passwords. Using the Tomcat 5's
documentation:

C:\>java org.apache.catalina.realm.RealmBase -a MD5 mypassd

And this is the error message:

"Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/realm/RealmBase"

I also checked the classpath, and Catalina.jar is in it.
I even tried being positioned on catalina's directory.

Using Win XP, Tomcat 5.0.28, and j2sdk1.4.2_07.

Thank you very much!

Lorenzo


-

Si usted no es el destinatario indicado en este mensaje o responsable como
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos
importantes 
relacionados a este correo visite
http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for
delivery of the 
message to such person), you may not copy or send this message to anyone,
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating
to this e-mail. 


-



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



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


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



apache + tomcat + JK connector configuration

2005-04-13 Thread Delphine Lê
Hello,

 

Has anyone had any success in configuring Apache (2.0.53) with Tomcat
(4.1.29) in Windows XP, using a recent JK connector ?

We have a server running with the JK2 connector and I'm trying to
replace it with the latest JK connector (JK-1.2.10), the reason being
that JK2 is officially unsupported as of 15 Nov 2004 and we're
experiencing a problem with truncated requests due to this connector.

 

In Apache, I configured a worker called worker1 and I send everything
from context /examples to this worker following
http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html.

The configuration looks fine, since I can see in the following lines in
mod_jk.log:

 

[Wed Apr 13 18:49:13 2005] [debug]
uri_worker_map_add::jk_uri_worker_map.c (269): exact rule
/examples=worker1 was added

[Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219):
creating worker worker1

[Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125):
about to create instance worker1 of ajp13

[Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138):
about to validate and init worker1

[Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781):
worker worker1 contact is 'localhost:6969'

 

However, if I send a request, it doesn't get through and I get an error
message in the browser.

The log shows:

[Wed Apr 13 18:50:16 2005] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
tomcat. Tomcat is probably not started or is listening on the wrong
host/port (127.0.0.1:6969). Failed errno = 61

[Wed Apr 13 18:50:16 2005] [info]  ajp_send_request::jk_ajp_common.c
(1227): Error connecting to the Tomcat process.

 

What should I change in Tomcat configuration to have it work with JK
instead of JK2 ? 

It is of course started and listening on port 6969. The configuration in
server.xml looks like this:

 



 

Thanks.

 



Re[2]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Andrey
Hello,

Wednesday, April 13, 2005, 8:47:13 PM, you wrote:

>>I can connect to ssl port ... and i can see sertificate.. but when i
>>accept this sertificate my browser says "The page cannot be
>>displayed".

> Is the page OK on http then?

> - https://server.com:8443/app1/page1.jsp 
> - http://server.com:8080/app1/page1.jsp

Yes. usual http works.



-- 
Best regards,
Andrey
[EMAIL PROTECTED]


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



RE: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

2005-04-13 Thread Horvath, Ruth \(Ruth\) ** CTR **
Where do I find these ?

Ruth 

-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:28 AM
To: Tomcat Users List
Subject: Re: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

Reading the changelog is a good place to start...

Jon

- Original Message -
From: "Horvath, Ruth (Ruth) ** CTR **" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 13, 2005 12:16 PM
Subject: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows



Sorry if this has been discussed before, but I couldn't find this topic
in the archives.
I'm also new to tomcat. I'm not a developer, but a member of our system
verification team.
I've been asked to evaluate what needs to be done to upgrade our current
version of tomcat.

Currently, our application is using tomcat 3.2.2 (I know - we need to
get into the 21st century) The management team is looking to upgrade to
3.3.2 (baby steps - this is for a point release - our next major release
we hope to convince them to at least use 5.0) Anyway, if I upgrade from
3.2.2 to 3.3.2, what is this buying me (improved performance - what) ?
What is the best way to test (or should I just verify I didn't break
anything that was previously working) ?

What is the best way to upgrade (without loosing my customized
xml/properties files) Is it good enough to look at what's currently in
my 3.2.2 bin/conf/lib directories and just copy in the 3.3.2 versions of
those files currently used ?

Also, my current 3.2.2 has jk_nt_service.exe and isapi_redirect.dll in
the bin directory, but I don't see these in the 3.3.2 bin.  Where would
I find these ? These look like they've been modified (according to the
release notes), so I'm guessing I need to find them.

Thank-you for your time and patience,



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



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



Re: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Ben Kim
>I can connect to ssl port ... and i can see sertificate.. but when i
>accept this sertificate my browser says "The page cannot be
>displayed".

Is the page OK on http then?

- https://server.com:8443/app1/page1.jsp 
- http://server.com:8080/app1/page1.jsp


Regards,

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas A&M University


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



RE: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

2005-04-13 Thread Larry Isaacs
Tomcat 3.3.x differs from 3.2.x in a number of important respects.
It is likely you will have to "port" your customizations, rather
than just copy them.  To do so, you should familiarize yourself
with the documentation, which may be found in your distribution
or online here:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html

The last prebuilt jk_nt_service.exe that I am aware of is found here:

http://archive.apache.org/dist/jakarta/tomcat-3/archive/v3.3.1a/bin/win32/i386/

For Tomcat 3.3.2, you will need a newer version of isapi_redirect.dll.
These may be found here:

http://apache.roweboat.net/jakarta/tomcat-connectors/jk/binaries/win32/

For its current documentation, see:

http://jakarta.apache.org/tomcat/connectors-doc/

It is a bit sparse for IIS.  However, I haven't kept up with jk changes,
so I can't say how much of:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html

still applies.  Hopefully most.

Cheers,
Larry


> -Original Message-
> From: Horvath, Ruth (Ruth) ** CTR ** [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 13, 2005 1:16 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows
> 
> 
> Sorry if this has been discussed before, but I couldn't find 
> this topic in the archives.
> I'm also new to tomcat. I'm not a developer, but a member of 
> our system verification team.
> I've been asked to evaluate what needs to be done to upgrade 
> our current version of tomcat.
> 
> Currently, our application is using tomcat 3.2.2 (I know - we 
> need to get into the 21st century) The management team is 
> looking to upgrade to
> 3.3.2 (baby steps - this is for a point release - our next 
> major release we hope to convince them to at least use 5.0) 
> Anyway, if I upgrade from
> 3.2.2 to 3.3.2, what is this buying me (improved performance - what) ?
> What is the best way to test (or should I just verify I 
> didn't break anything that was previously working) ?
> 
> What is the best way to upgrade (without loosing my 
> customized xml/properties files) Is it good enough to look at 
> what's currently in my 3.2.2 bin/conf/lib directories and 
> just copy in the 3.3.2 versions of those files currently used ?
> 
> Also, my current 3.2.2 has jk_nt_service.exe and 
> isapi_redirect.dll in the bin directory, but I don't see 
> these in the 3.3.2 bin.  Where would I find these ? These 
> look like they've been modified (according to the release 
> notes), so I'm guessing I need to find them.
> 
> Thank-you for your time and patience,
> 
> 

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



Re: Running code on session timeout

2005-04-13 Thread dshort
Java Server Pages, 3rd Edition, O'Reilly - great book.  I can send you an 
example later tonight.

- Original Message -
From: Chris Bender <[EMAIL PROTECTED]>
Date: Wednesday, April 13, 2005 10:26 am
Subject: Running code on session timeout

> Hey,
> 
> I have been looking all over for a way to run code on a session 
> time out.  Basically, before a session times out, I need to 
> perform some functionality on the data in that session.  Ive read 
> about Session Manager and Session Listeners, but I have not been 
> able to find any examples of how these work.
> 
> Is it possible to do what I am asking, and if so, does anyone know 
> of a good reference site?
> 
> 
> Thanks
> 
> 
> 
> ---
> --
> This transmission (including any attachments) may contain 
> confidential information, privileged material (including material 
> protected by the solicitor-client or other applicable privileges), 
> or constitute non-public information. Any use of this information 
> by anyone other than the intended recipient is prohibited. If you 
> have received this transmission in error, please immediately reply 
> to the sender and delete this information from your system. Use, 
> dissemination, distribution, or reproduction of this transmission 
> by unintended recipients is not authorized and may be unlawful.
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

2005-04-13 Thread Jonathan Eric Miller
Reading the changelog is a good place to start...
Jon
- Original Message - 
From: "Horvath, Ruth (Ruth) ** CTR **" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 13, 2005 12:16 PM
Subject: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows


Sorry if this has been discussed before, but I couldn't find this topic
in the archives.
I'm also new to tomcat. I'm not a developer, but a member of our system
verification team.
I've been asked to evaluate what needs to be done to upgrade our current
version of tomcat.
Currently, our application is using tomcat 3.2.2 (I know - we need to
get into the 21st century) The management team is looking to upgrade to
3.3.2 (baby steps - this is for a point release - our next major release
we hope to convince them to at least use 5.0) Anyway, if I upgrade from
3.2.2 to 3.3.2, what is this buying me (improved performance - what) ?
What is the best way to test (or should I just verify I didn't break
anything that was previously working) ?
What is the best way to upgrade (without loosing my customized
xml/properties files) Is it good enough to look at what's currently in
my 3.2.2 bin/conf/lib directories and just copy in the 3.3.2 versions of
those files currently used ?
Also, my current 3.2.2 has jk_nt_service.exe and isapi_redirect.dll in
the bin directory, but I don't see these in the 3.3.2 bin.  Where would
I find these ? These look like they've been modified (according to the
release notes), so I'm guessing I need to find them.
Thank-you for your time and patience,

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


Running code on session timeout

2005-04-13 Thread Chris Bender
Hey,

I have been looking all over for a way to run code on a session time out.  
Basically, before a session times out, I need to perform some functionality on 
the data in that session.  Ive read about Session Manager and Session 
Listeners, but I have not been able to find any examples of how these work.

Is it possible to do what I am asking, and if so, does anyone know of a good 
reference site?


Thanks



-
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.

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



Re[2]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Andrey
Hello,

Wednesday, April 13, 2005, 8:21:22 PM, you wrote:

> Sounds like you are using Internet Explorer so the first step would be
> to disable "Show friendly HTTP error messages" and if you are using IE
> for any sort of web development testing that is one of the first
> things you should do:

> Tools / Internet Options, Advanced tab, then it is under the Browsing
> subheading.

> Then you can see the real error.

> Regards,


Same error.. and it looks like loop.



-- 
Best regards,
Andrey
[EMAIL PROTECTED]


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



RE: How can I create a digest password

2005-04-13 Thread J Malcolm
The problem you are hiting is due to the location of the jar file in the
default tomcat install.  You can move the jar file into the lib\common area.

Frankly, I think it's much cleaner to just copy the code to create pw's into
one of your own classes.  It's only a few lines of code.  Just find the
realmbase class in the Tomcat source and clone the method.

Jerry

-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: How can I create a digest password
Importance: High

Hi,

I need help to generate encrypted passwords. Using the Tomcat 5's
documentation:

C:\>java org.apache.catalina.realm.RealmBase -a MD5 mypassd

And this is the error message:

"Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/realm/RealmBase"

I also checked the classpath, and Catalina.jar is in it.
I even tried being positioned on catalina's directory.

Using Win XP, Tomcat 5.0.28, and j2sdk1.4.2_07.

Thank you very much!

Lorenzo


-

Si usted no es el destinatario indicado en este mensaje o responsable como
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos
importantes 
relacionados a este correo visite
http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for
delivery of the 
message to such person), you may not copy or send this message to anyone,
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating
to this e-mail. 


-



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



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



Re: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Jason Bainbridge
On 4/13/05, Andrey <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> (j2re1.4.1_02 is installed)
> 
> I've created certificate keystore as described: 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/printer/ssl-howto.html
> then i uncommented  element for an SSL connector i server.xml.
> 
> I can connect to ssl port ... and i can see sertificate.. but when i
> accept this sertificate my browser says "The page cannot be
> displayed".

Sounds like you are using Internet Explorer so the first step would be
to disable "Show friendly HTTP error messages" and if you are using IE
for any sort of web development testing that is one of the first
things you should do:

Tools / Internet Options, Advanced tab, then it is under the Browsing
subheading.

Then you can see the real error.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

2005-04-13 Thread Horvath, Ruth \(Ruth\) ** CTR **

Sorry if this has been discussed before, but I couldn't find this topic
in the archives.
I'm also new to tomcat. I'm not a developer, but a member of our system
verification team.
I've been asked to evaluate what needs to be done to upgrade our current
version of tomcat.

Currently, our application is using tomcat 3.2.2 (I know - we need to
get into the 21st century) The management team is looking to upgrade to
3.3.2 (baby steps - this is for a point release - our next major release
we hope to convince them to at least use 5.0) Anyway, if I upgrade from
3.2.2 to 3.3.2, what is this buying me (improved performance - what) ?
What is the best way to test (or should I just verify I didn't break
anything that was previously working) ?

What is the best way to upgrade (without loosing my customized
xml/properties files) Is it good enough to look at what's currently in
my 3.2.2 bin/conf/lib directories and just copy in the 3.3.2 versions of
those files currently used ?

Also, my current 3.2.2 has jk_nt_service.exe and isapi_redirect.dll in
the bin directory, but I don't see these in the 3.3.2 bin.  Where would
I find these ? These look like they've been modified (according to the
release notes), so I'm guessing I need to find them.

Thank-you for your time and patience,



SV: How can I create a digest password

2005-04-13 Thread Martin Lidgard
I created the following bash-script in Linux:

#===
echo -e "Enter password to encode: "
read password
$JAVA_HOME/bin/java -classpath $CATALINA_HOME/server/lib/catalina.jar
org.apache.catalina.realm.RealmBase -a SHA $password  
#===

In windows, the following works:

> java  -classpath D:\project\tdk-2.3_01\server\lib\catalina.jar
org.apache.catalina.realm.RealmBase -a SHA mypassword

/Martin

-Ursprungligt meddelande-
Från: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Skickat: den 13 april 2005 18:57
Till: Tomcat Users List
Ämne: How can I create a digest password
Prioritet: Hög

Hi,

I need help to generate encrypted passwords. Using the Tomcat 5's
documentation:

C:\>java org.apache.catalina.realm.RealmBase -a MD5 mypassd

And this is the error message:

"Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/realm/RealmBase"

I also checked the classpath, and Catalina.jar is in it.
I even tried being positioned on catalina's directory.

Using Win XP, Tomcat 5.0.28, and j2sdk1.4.2_07.

Thank you very much!

Lorenzo


-

Si usted no es el destinatario indicado en este mensaje o responsable como
persona de la entrega del mensaje, no debe copiar o reenviar este mensaje,
por favor notifique al correo [EMAIL PROTECTED] Para más referencia
sobre términos importantes relacionados a este correo visite
http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or send this
message to anyone, please notify to [EMAIL PROTECTED] Click here for
important additional terms relating to this e-mail. 


-



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




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



Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Andrey
Hello,

(j2re1.4.1_02 is installed)

I've created certificate keystore as described: 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/printer/ssl-howto.html
then i uncommented  element for an SSL connector i server.xml.

I can connect to ssl port ... and i can see sertificate.. but when i
accept this sertificate my browser says "The page cannot be
displayed".

No errors in log files.
What should i check? ..



-- 
Best regards,
Andrey
[EMAIL PROTECTED]


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



RE: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Fritz Schneider
Ike,

All I'm saying is "Here is what works for me." But it seems that you must
have some form of authentication as well as a statement of the required role
if you want to restrict access to certain users.

Fritz

-Original Message-
From: Ikonne, Ike [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 9:30 AM
To: Tomcat Users List
Subject: RE: How do I restrict access to webapps applications from browser
users?

Hi Fritz,

So, are you saying that I have to have basic authentication enabled in order
to restrict
access to certain directories?

Thanks,

Ike



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



How can I create a digest password

2005-04-13 Thread Lorenzo Jiménez
Hi,

I need help to generate encrypted passwords. Using the Tomcat 5's documentation:

C:\>java org.apache.catalina.realm.RealmBase -a MD5 mypassd

And this is the error message:

"Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/catalina/realm/RealmBase"

I also checked the classpath, and Catalina.jar is in it.
I even tried being positioned on catalina's directory.

Using Win XP, Tomcat 5.0.28, and j2sdk1.4.2_07.

Thank you very much!

Lorenzo


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 


-



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



Re: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Dakota Jack
The best way to insure safety, in my opinion, is to use a front
controller that acts as a traffic cop, sending all traffic to a
presentation tier kept under WEB-INF.

On 4/13/05, Ikonne, Ike <[EMAIL PROTECTED]> wrote:
> Hi Fritz,
> 
> So, are you saying that I have to have basic authentication enabled in order 
> to restrict
> access to certain directories?
> 
> Thanks,
> 
> Ike
> 
> 
> -Original Message-
> From: Fritz Schneider [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 13, 2005 11:04 AM
> To: 'Tomcat Users List'
> Subject: RE: How do I restrict access to webapps applications from
> browser users?
> 
> Ike.
> 
> You need to complete your  with authorization, login,
> and role information. Here is what works for me:
> 
> 
>   
> 
>   Restricted Files
>   /*
> 
> 
>
>app1
> 
>   
> 
>   
>   
> BASIC
> My Application
>   
> 
>   
>   
> 
>   The role that is required to log in to the application
> 
> app1
>   
> 
> You might also want to check out the single login valve.
> 
> Fritz
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



tomcat-5 jndi

2005-04-13 Thread Licinio Gomez Delgado
Hi,

I´ve been reading examples and the mailing list, but I can´t configure
correctly Tomcat 5.0.28 with Oracle 9, I´m a bit desperate. I think I´ve
tried everything.

this is what I got:


in my Tomcat 5.0\common\lib folder I´ve got ojdbc14.jar


---
Tomcat 5.0\conf\server.xml:
---



  
  
  



  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  

  
  





  






  
factory

org.apache.commons.dbcp.BasicDataSourceFactory
  
  
driverClassName

oracle.jdbc.driver.OracleDriver
  
  
url

jdbc:oracle:thin:@10.0.100.6:1521:bddesa
  
  
username
*
  
  
password
*
  
  
maxActive
20
  
  
maxIdle
10
  
  
maxWait
-1
  




  
  
  

  










---
Tomcat 5.0\webapps\ROOT\WEB-INF\web.xml
---




http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">

  Welcome to Tomcat
  
 Welcome to Tomcat
  





org.apache.jsp.index_jsp
org.apache.jsp.index_jsp



org.apache.jsp.index_jsp
/index.jsp








 Oracle Datasource example
 jdbc/bddesa
 javax.sql.DataSource
 Container








---
and in Tomcat 5.0\webapps\ROOT\test2.jsp:
---

...

out.print("1");
Context initContext = new InitialContext();
out.print("2");
Context envContext  = 
(Context)initContext.lookup("java:/comp/env");
out.print("3");
DataSource ds = (DataSource)envContext.lookup("jdbc/bddesa");
out.print("4");
conn = ds.getConnection();
out.print("5");

...

the output I´ve got is:

1234org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null'





When I connect directly, it works correctly:

DriverManager.registerDriver(new 
oracle.jdbc.driver.OracleDriver());
conn =
DriverManager.getConnection("jdbc:oracle:thin:@10.0.100.6:1521:bddesa","
*","");



any help, please?

thanks very much


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



RE: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Ikonne, Ike
Hi Fritz,

So, are you saying that I have to have basic authentication enabled in order to 
restrict
access to certain directories?

Thanks,

Ike



-Original Message-
From: Fritz Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:04 AM
To: 'Tomcat Users List'
Subject: RE: How do I restrict access to webapps applications from
browser users?


Ike.

You need to complete your  with authorization, login,
and role information. Here is what works for me:


  

  Restricted Files 
  /* 


   
   app1

  

  
  
BASIC
My Application
  

  
  

  The role that is required to log in to the application

app1
  

You might also want to check out the single login valve.

Fritz


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


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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread Ben Kim
>tried that... now no errors anyway but there is no class file too

Maybe you can just copy the servlets.jar file in c:\javacode and run

  c:\javacode>javac -verbose -classpath servlet.jar HelloWorld.java

if a class file is made, then delete the class file, and do 

  c:\javacode>javac -verbose -classpath "c:\javacode\servlet.jar"
HelloWorld.java

and if it works, change whatever is in " ... " with the actual location. 

If it doesn't compile, could you post 

- result of running "java -version"
- source of HelloWorld.java

Regards,

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas A&M University






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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M

Hi AllLet me make things clearer now, forget all the prior mails and listen
I have two java files 'HelloWorld.java' and "Hello.java'I am attaching the code for the same.
Now on compiling HelloWorld.java, I still getting errors no matter what way I compile, the log is attached also.On compiling Hello.java with the classpath, it compiles properly. However gives error when copiled without the classpath mentioned explicitly.
I brought in confusion earlier saying that HelloWorld compiled and there was no class file, however when I had received the Windows error.. sayong 'javac.exe encountered error', what actually had happeded.. it deleted the contents of HelloWorld.java, keeping the file name intact. That is why when I compiled a blank file it compiled without errors and it illusioned as if the code was compiled and no class file was generated.
 
To answer what c:/javacode is then that is the place where the source code as .java files reside.
"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
Classification: UNCLASSIFIED Caveats: NONETry to reboot your machine, then compile again and see what happens.Fadi -Original Message-From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:57 AMTo: Tomcat Users ListSubject: RE: class path (UNCLASSIFIED)it is netwroked...thgs are behaving perfectly ok if i compile an ordinary class i.e without a servlet then why should it matter otherwise...if i compiled it successfully there should be a class file.Now I am doubting the message: Windows gave a error msg saying that 'javac.exe' faced an error, close. and since then, I am getting no errors when compling the servlet, also no class file?"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]>wrote:Classification: UNCLASSIFIEDCaveats: NONEIt compiled successfully
 and no .class was generated ? This is weird.Maybe it is something with where you're writing to. If it compiled then javac's job is done.Is it a standalone server/PC or networked ? Do you have limited permissions ?Fadi -Original Message-From: S M [mailto:[EMAIL PROTECTED]Sent: Wednesday, April 13, 2005 11:44 AMTo: Tomcat Users ListSubject: RE: class path (UNCLASSIFIED)tried that... now no errors anyway but there is no class file too???"Caldarale, Charles R" wrote:> From: S M [mailto:[EMAIL PROTECTED]> Subject: RE: class path (UNCLASSIFIED)> > Now compiling> c:/javacode>javac> -classpath HelloWorld.java> it said - Access DeniedWhere are these angle brackets coming from? They should not be present.- ChuckTHIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended
 recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-Yahoo! Messenger - Communicate instantly..."Ping" your friends today!Download Messenger NowClassification: UNCLASSIFIEDCaveats: NONE-Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger NowClassification: UNCLASSIFIED Caveats: NONE  
Yahoo! Messenger - Communicate instantly..."Ping" your friends 
today! Download Messenger Now-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tomcat 4x - Delayed Startup when connected to network

2005-04-13 Thread Maarten Janssen
the same 4 us...maybe it helps you 2 to disable any virusscanner service..

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 13 april 2005 17:04
Aan: tomcat-user@jakarta.apache.org
Onderwerp: Tomcat 4x - Delayed Startup when connected to network


Tomcat 4,1  (we have tried the latest 31 build and an earlier 24 build) on
Windows XP.

When Tomcat starts it  hangs for an awfully long time (2 or 3 minutes)
before it prints the init line and tells me that it is initializing coyote.
This only happens when the host computer is connected to the network (i.e.
if the network cable is pulled out the Tomcat starts immediately). I guess
it is trying to connect to something on the network which is taking a long
time.  I have tried setting the verbosity (or is it Verbosity?) setting for
the loggers to see what it is doing but I don't think I have the correct
syntax for this (Verbosity="99" or verbosity="99") are not helpful. How can
I get some useful information before it prints out

Apr 13, 2005 5:56:34 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Starting service Tomcat-Standalone

This problem only started yesterday. We have been using Tomcat 4.1 for as
long as it has been out.

For the record this problem doesn't occur with the latest Tomcat 5 release.
Unfortunately we can't upgrade to this yet.

Thanks

Shimon Crown
Software Development
MKS Instruments
Control and Information Technology Division
1 Yodfat St,
Lod, 71100, Israel
Phone (972) 8 918 1039
Fax (972)8 918 1020
[EMAIL PROTECTED]

This e-mail is intended solely for the person or entity to which it is
addressed and may contain confidential information.  Any review,
dissemination, copying, printing or other use of this e-mail by persons or
entities other than the addressee is prohibited. If you have received this
e-mail in error, please contact the sender immediately and delete the
material from any computer.



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

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.7 - Release Date: 12-4-2005

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.7 - Release Date: 12-4-2005


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



AW: How to Deploy Replacement War

2005-04-13 Thread Bernhard Slominski
Hi Scott,

it's quite easy: you just have to copy the war-file across in your webapps
root.
Tomcat picks up the war file automatically and redeploys your application.
You don't have to mess around with the manager app. It normally only takes a
few seonds.
Depending on your configuration after some redeploys you might get some
memory problems, so if possible you should restart you Tomcat periodically,
like every night.

Cheers

Bernhard

> -Ursprüngliche Nachricht-
> Von: Scott Purcell [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 13. April 2005 17:46
> An: tomcat-user@jakarta.apache.org
> Betreff: How to Deploy Replacement War
> 
> 
> Hello,
> 
> I deployed a war file for a new project a couple of weeks 
> back. The war extracted, and the manager saw it, and all is 
> good. But now I need to replace that webapp, with a new war 
> file. Now the other day, I went to the manager, undeployed 
> the webapp, turned off Tomcat and deleted the webapp folder. 
> Then I put the war file under "webapps" and restarted the 
> server. But things got screwey and I had to repeat this a 
> couple of times, and also turn Tomcat off in order to remove the libs.
> 
> Anyway, what is the proper protocol on how to "properly" 
> replace a webapp with a new war.
> 
> 
> Thanks,
> 
> 
> Scott K Purcell
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Fritz Schneider
Ike.

You need to complete your  with authorization, login,
and role information. Here is what works for me:


  

  Restricted Files 
  /* 


   
   app1

  

  
  
BASIC
My Application
  

  
  

  The role that is required to log in to the application

app1
  

You might also want to check out the single login valve.

Fritz


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



RE: class path - c:/javacode>

2005-04-13 Thread Ben Kim


> c:/javacode>javac
> -classpath HelloWorld.java

Maybe OT, but I'm curious where this c:/javacode> is coming from (Doesn't
seem standard command shell which should be c:\javacode> ). Doesn't seem
to be from cygwin.


Regards,

Ben Kim
Database Developer/Systems administrator
434E Harrington Tower / College of Education 
Texas A&M University


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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread Caldarale, Charles R
> From: S M [mailto:[EMAIL PROTECTED] 
> Subject: RE: class path (UNCLASSIFIED)
> 
> see this... no errors... but no class file for the same 
>  
> C:\javacode>javac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java
> C:\javacode>javac -classpath "c:\tomcat\common\lib\servlet.jar"
HelloWorld.java
> C:\javacode>javac HelloWorld.java

Is the HelloWorld class part of a package?  If so, javac will create a
directory tree under your current directory using the components of the
package name, and you class will be at the end of it.  If you still
can't find the output class, use -verbose with javac for more
information.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.


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



Antwort: RE: class path (UNCLASSIFIED)

2005-04-13 Thread Sebastian . Wiemer




Sorry maybe you already did that. I'm new to the Mailing-List.

But is it possible to have a look at the source code of you're
HelloWorld.java file ?

Is it possible that your HelloWorld class is packaged into a special
package and the
class file is generated under that directory, but not obviously in the root
directory
where you started the cmd 'javac HelloWorld.java' ?

regards
Sebastian




S M <[EMAIL PROTECTED]> schrieb am 13.04.2005 17:51:50:

> see this... no errors... but no class file for the same 
>
> C:\javacode>javac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java
> C:\javacode>javac -classpath "c:\tomcat\common\lib\servlet.jar"
> HelloWorld.java
>
> C:\javacode>javac HelloWorld.java
>
>
> "David B. Saul" <[EMAIL PROTECTED]> wrote:
> Try typing/copying the following at the prompt in the directory where the
> source code is for HelloWorld.java:
>
> javac -classpath "C:\Program Files\Apache Group\Tomcat
> 4.1\common\lib\servlet.jar" HelloWorld.java
>
> if in fact this is where the servlet.jar file exists.
>
>
>
> -Original Message-
> From: BAO RuiXian [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 13, 2005 8:15 AM
> To: Tomcat Users List
> Subject: Re: class path (UNCLASSIFIED)
>
>
> Hello,
>
> S M wrote:
>
> >tried that too... but it can't identify the path.
> >
> >C:\javacode>javac -classpath >4.1\common\lib> HellWorld.java
> >
> >
> >
>
> Try use quotes instead of '<' and '>' to quote the class path.
>
> Good luck.
>
> Bao
>
> >The system cannot find the file specified.
> >
> >anyways.. now will reinstall as suggested 'without' spaces and will let
> >you know.. thanks so far
> >
> >"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
> >Classification: UNCLASSIFIED
> >Caveats: NONE
> >
> >Try compiling the class by including the path for servlet.jar in your
> >javac command, if you haven't done that yet.
> >
> >-Original Message-
> >From: S M [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, April 13, 2005 10:33 AM
> >To: Tomcat Users List
> >Subject: RE: class path (UNCLASSIFIED)
> >
> >I compiling it from the command prompt.
> >The sourse code is in c:\javacode
> >so i on cmd... i change directory to c:\javacode>javac HelloWorld.java
> >
> >"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
> >Classification: UNCLASSIFIED
> >Caveats: NONE
> >
> >I am sorry, but how are you compiling your class ?
> >Are you using any IDE (i.e Eclipse, Jdeveloper) ?
> >
> >-Original Message-
> >From: S M [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, April 13, 2005 10:07 AM
> >To: Tomcat Users List
> >Subject: RE: class path (UNCLASSIFIED)
> >
> >The same as before.
> >
> >C:\javacode>javac HelloWorld.java
> >HelloWorld.java:2: package javax.servlet does not exist import
> >javax.servlet.*; ^
> >HelloWorld.java:3: package javax.servlet.http does not exist import
> javax.servlet.http.*; ^
> >HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
> >location: class HelloWorld
> >public class HelloWorld extends HttpServlet { ^
> >HelloWorld.java:7: cannot resolve symbol symbol : class
HttpServletRequest
> >location: class HelloWorld
> >public void service(HttpServletRequest request, HttpServletResponse
> >response) th rows ServletException, IOException { ^
> >HelloWorld.java:7: cannot resolve symbol symbol : class
HttpServletResponse
> >location: class HelloWorld
> >public void service(HttpServletRequest request, HttpServletResponse
> >response) th rows ServletException, IOException { ^
> >HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
> >location: class HelloWorld
> >public void service(HttpServletRequest request, HttpServletResponse
> >response) th rows ServletException, IOException {
> >
> >^
> >6 errors
> >
> >-
> >
> >"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
> >Classification: UNCLASSIFIED
> >Caveats: NONE
> >
> >What errors are you getting again ?
> >
> >-Original Message-
> >From: S M [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, April 13, 2005 9:47 AM
> >To: Tomcat Users List; Jason Bainbridge
> >Subject: Re: class path
> >
> >Hi
> >These are the env. variables that I have set explicitly for tomcat 4.1
> >installation
> >
> >lJAVA_HOME = C:\java\bin
> >lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH=
>
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE

> _
> >HOME%\lib\j2ee.jar;"
> >
> >I have the path =C:\java\bin; when i installed
> >J2sdk1.4.2_06
> >
> >
> >
> >These being the variables I am still getting that error log where the
> >compiler cannot locate the servlet pakages.
> >
> >Hope you can assit further.
> >
> >Thanks.
> >
> >
> >
> >Jason Bainbridge wrote:
> >On Apr 12, 2005 3:39 PM, S M wrote:
> >
> >
> >>sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
> >>mentioned and yes it shows me the CLASSPATH as listed below
> >>
> >>
> >".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\se

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Try to reboot your machine, then compile again and see what happens.

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

it is netwroked...
thgs are behaving perfectly ok if i compile an ordinary class i.e without a 
servlet then why should it matter otherwise...
if i compiled it successfully there should be a class file.
 
Now I am doubting the message: Windows gave a error msg saying that 'javac.exe' 
faced an error, close. and since then, I am getting no errors when compling the 
servlet, also no class file?


"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
Classification: UNCLASSIFIED
Caveats: NONE

It compiled successfully and no .class was generated ? This is weird.
Maybe it is something with where you're writing to. If it compiled then javac's 
job is done.

Is it a standalone server/PC or networked ? Do you have limited permissions ?

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:44 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that... now no errors anyway but there is no class file too???


"Caldarale, Charles R" wrote:
> From: S M [mailto:[EMAIL PROTECTED]
> Subject: RE: class path (UNCLASSIFIED)
> 
> Now compiling
> c:/javacode>javac
> -classpath HelloWorld.java
> it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE



Re: Way to specify SingleSignOn session timeout?

2005-04-13 Thread Jonathan Eric Miller
Thanks, but, I know how to set it for a given application. I want to know 
how to set it or at least find out what the default value is for the global 
session. I've noticed that there are two cookies. One is JSESSIONID which is 
for the application session. The other is JSESSIONSSO is is presumably for 
the global session.

Jon
- Original Message - 
From: "Peter Rossbach" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, April 12, 2005 10:56 PM
Subject: Re: Way to specify SingleSignOn session timeout?


Look inside conf/web.xml
 

   
   30
   
Peter
Jonathan Eric Miller schrieb:
I'm using the SingleSignOn valve with Tomcat 5.5.9. Does anyone know what 
the default session timeout is set to? Is there a way to specify this 
timeout?

I'm finding that sometimes my session will timeout within an application, 
but, it doesn't redisplay the login page. I want to try to set it up so 
that the session timeout period is the same for all my applications (and 
the same for the global one) and that whenever the session times out, the 
login page is displayed.

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


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

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


RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
it is netwroked...
thgs are behaving perfectly ok if i compile an ordinary class i.e without a 
servlet then why should it matter otherwise...
if i compiled it successfully there should be a class file.
 
Now I am doubting the message: Windows gave a error msg saying that 'javac.exe' 
faced an error, close. and since then, I am getting no errors when compling the 
servlet, also no class file?


"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

It compiled successfully and no .class was generated ? This is weird.
Maybe it is something with where you're writing to. If it compiled then
javac's job is done.

Is it a standalone server/PC or networked ? Do you have limited permissions
?

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:44 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that... now no errors anyway but there is no class file too???


"Caldarale, Charles R" wrote:
> From: S M [mailto:[EMAIL PROTECTED]
> Subject: RE: class path (UNCLASSIFIED)
> 
> Now compiling
> c:/javacode>javac
> -classpath HelloWorld.java
> it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

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



-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now

RE: How to Deploy Replacement War (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

I am having a similar problem.  When I first started looking into tomcat, I got 
the sample.war from their website, put it
In the webapps folder, started tomcat, it unpacked it, deployed, all was fine.  
I deleted the sample folder that was created and I also deleted the sample.war 
file.  Now I am getting involved with JDO, and I just wanted to look at some 
files in the sample directory, so I placed the sample.war in the webapps 
directory, started tomcat, it never unpacked it.
Any input ?

Fadi 

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:46 AM
To: tomcat-user@jakarta.apache.org
Subject: How to Deploy Replacement War

Hello,

I deployed a war file for a new project a couple of weeks back. The war 
extracted, and the manager saw it, and all is good. But now I need to replace 
that webapp, with a new war file. Now the other day, I went to the manager, 
undeployed the webapp, turned off Tomcat and deleted the webapp folder. Then I 
put the war file under "webapps" and restarted the server. But things got 
screwey and I had to repeat this a couple of times, and also turn Tomcat off in 
order to remove the libs.

Anyway, what is the proper protocol on how to "properly" replace a webapp with 
a new war.


Thanks,


Scott K Purcell

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification:  UNCLASSIFIED 
Caveats: NONE



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
see this... no errors... but no class file for the same 
 
C:\javacode>javac -classpath c:\tomcat\common\lib\servlet.jar HelloWorld.java
C:\javacode>javac -classpath "c:\tomcat\common\lib\servlet.jar" HelloWorld.java

C:\javacode>javac HelloWorld.java


"David B. Saul" <[EMAIL PROTECTED]> wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath "C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar" HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

>tried that too... but it can't identify the path.
>
>C:\javacode>javac -classpath >4.1\common\lib> HellWorld.java
>
> 
>

Try use quotes instead of '<' and '>' to quote the class path.

Good luck.

Bao

>The system cannot find the file specified.
>
>anyways.. now will reinstall as suggested 'without' spaces and will let 
>you know.. thanks so far
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>Try compiling the class by including the path for servlet.jar in your 
>javac command, if you haven't done that yet.
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:33 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>I compiling it from the command prompt.
>The sourse code is in c:\javacode
>so i on cmd... i change directory to c:\javacode>javac HelloWorld.java
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>I am sorry, but how are you compiling your class ?
>Are you using any IDE (i.e Eclipse, Jdeveloper) ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:07 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>The same as before.
>
>C:\javacode>javac HelloWorld.java
>HelloWorld.java:2: package javax.servlet does not exist import 
>javax.servlet.*; ^
>HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
>HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
>location: class HelloWorld
>public class HelloWorld extends HttpServlet { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException {
>
>^
>6 errors
>
>-
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>What errors are you getting again ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 9:47 AM
>To: Tomcat Users List; Jason Bainbridge
>Subject: Re: class path
>
>Hi
>These are the env. variables that I have set explicitly for tomcat 4.1 
>installation
>
>lJAVA_HOME = C:\java\bin
>lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE
_
>HOME%\lib\j2ee.jar;"
>
>I have the path =C:\java\bin; when i installed
>J2sdk1.4.2_06
>
>
>
>These being the variables I am still getting that error log where the 
>compiler cannot locate the servlet pakages.
>
>Hope you can assit further.
>
>Thanks.
>
>
>
>Jason Bainbridge wrote:
>On Apr 12, 2005 3:39 PM, S M wrote:
> 
>
>>sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
>>mentioned and yes it shows me the CLASSPATH as listed below
>> 
>>
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%
>J2EE_
>HOME%\lib\j2ee.jar;"
> 
>
>>>where ";C:\javacode" had the source code.
>>> 
>>>
>
>Have you explicityly set CATALINA_HOME as well? Does it have spaces in 
>it? If so surround it with double quotes or move it to a path with no 
>spaces. I don't think having servlet.jar and j2ee.jar in the same 
>classpath is a good idea either.
>
>Regards,
>--
>Jason Bainbridge
>http://kde.org - [EMAIL PROTECTED]
>Personal Site - http://jasonbainbridge.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>Yahoo! Messenger - Communicate instantly..."Ping" your friends

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

It compiled successfully and no .class was generated ? This is weird.
Maybe it is something with where you're writing to.  If it compiled then
javac's job is done.

Is it a standalone server/PC or networked ? Do you have limited permissions
?

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:44 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that... now no errors anyway but there is no class file too???


"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote:
> From: S M [mailto:[EMAIL PROTECTED]
> Subject: RE: class path (UNCLASSIFIED)
> 
> Now compiling
> c:/javacode>javac
> -classpath HelloWorld.java
> it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

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



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
yes, i corrected that too...
not I am not getting any errors... but still the class file is not created... 
what do i do???


"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

Jay is correct, they should never be included as part of the specified path

Fadi 

-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:40 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: class path (UNCLASSIFIED)

Yes, doing a "javac -h" to receive help says " -classpath 
". But the angle brackets from 
are not meant to be included.

Jay
Vertical Technology Group
http://www.vtgroup.com/


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:32 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

> From: S M [mailto:[EMAIL PROTECTED]
> Subject: RE: class path (UNCLASSIFIED)
> 
> Now compiling
> c:/javacode>javac
> -classpath HelloWorld.java it said - 
> Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification: UNCLASSIFIED 
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath "C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar" HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

>tried that too... but it can't identify the path.
>
>C:\javacode>javac -classpath 4.1\common\lib> HellWorld.java
>
>  
>

Try use quotes instead of '<' and '>' to quote the class path.

Good luck.

Bao

>The system cannot find the file specified.
>
>anyways.. now will reinstall as suggested 'without' spaces and will let 
>you know.. thanks so far
>
>"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>Try compiling the class by including the path for servlet.jar in your 
>javac command, if you haven't done that yet.
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:33 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>I compiling it from the command prompt.
>The sourse code is in c:\javacode
>so i on cmd... i change directory to c:\javacode>javac HelloWorld.java
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>I am sorry, but how are you compiling your class ?
>Are you using any IDE (i.e Eclipse, Jdeveloper) ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:07 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>The same as before.
>
>C:\javacode>javac HelloWorld.java
>HelloWorld.java:2: package javax.servlet does not exist import 
>javax.servlet.*; ^
>HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
>HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
>location: class HelloWorld
>public class HelloWorld extends HttpServlet { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException {
>
>^
>6 errors
>
>-
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>What errors are you getting again ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 9:47 AM
>To: Tomcat Users List; Jason Bainbridge
>Subject: Re: class path
>
>Hi
>These are the env. variables that I have set explicitly for tomcat 4.1 
>installation
>
>lJAVA_HOME = C:\java\bin
>lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE
_
>HOME%\lib\j2ee.jar;"
>
>I have the path =C:\java\bin; when i installed
>J2sdk1.4.2_06
>
>
>
>These being the variables I am still getting that error log where the 
>compiler cannot locate the servlet pakages.
>
>Hope you can assit further.
>
>Thanks.
>
>
>
>Jason Bainbridge wrote:
>On Apr 12, 2005 3:39 PM, S M wrote:
>  
>
>>sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
>>mentioned and yes it shows me the CLASSPATH as listed below
>>
>>
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%
>J2EE_
>HOME%\lib\j2ee.jar;"
>  
>
>>>where ";C:\javacode" had the source code.
>>>  
>>>
>
>Have you explicityly set CATALINA_HOME as well? Does it have spaces in 
>it? If so surround it with double quotes or move it to a path with no 
>spaces. I don't think having servlet.jar and j2ee.jar in the same 
>classpath is a good idea either.
>
>Regards,
>--
>Jason Bainbridge
>http://kde.org - [EMAIL PROTECTED]
>Personal Site - http://jasonbainbridge.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
>Download Messenger Now
>  
>



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



How to Deploy Replacement War

2005-04-13 Thread Scott Purcell
Hello,

I deployed a war file for a new project a couple of weeks back. The war 
extracted, and the manager saw it, and all is good. But now I need to replace 
that webapp, with a new war file. Now the other day, I went to the manager, 
undeployed the webapp, turned off Tomcat and deleted the webapp folder. Then I 
put the war file under "webapps" and restarted the server. But things got 
screwey and I had to repeat this a couple of times, and also turn Tomcat off in 
order to remove the libs.

Anyway, what is the proper protocol on how to "properly" replace a webapp with 
a new war.


Thanks,


Scott K Purcell

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



Simple DBCP Conf Question

2005-04-13 Thread Jeff Sexton
I have some questions about the connection pool parameters.
I wonder if someone could give me a quick sketch of the relationship between 
minEvictableIdleTimeMillis and removeAbandonedTimeout ?

I'd like to setup my application so that all connections in a pool are closed during 
times of no activity at all.  Is that the implication of setting maxIdle to zero? 
And how do the timeout parameters allow me to define completely idle periods, like 
off hours when everyone has gone home and the applications are not being used?

Thanks!
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: multiple parameters and Laszlo

2005-04-13 Thread Larry Meadors
Use String.split(",") if you are on JDK1.4 or later to make it a String[].

If you are pre JDK1.4, you can use a java.util.StringTokenizer to accomplish 
a similar thing.

Larry


On 4/13/05, Guillaume Lederrey <[EMAIL PROTECTED]> wrote:
> 
> Hello !
> 
> This is not directly Tomcat related, but more of a general servlet
> API question.
> 
> I am developping an application with laszlo 
> (www.openlaszlo.org) 
> as
> the front end and a servlet backend. Laszlo is a rich-client framework
> based on flash. My problem is that when using a multiple select list,
> laszlo sends the parameters as : "url?list=1,2,3,..." instead of
> "url?list=1&list=2&list=3...". That means that I cannot use
> request.getParameterValues().
> 
> Do you know if there is an easy work around ? Or should I parse
> manually the "," in the param string ?
> 
> Thanks for your help !
> 
> Guillaume
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
tried that... now no errors anyway but there is no class file too???


"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote:
> From: S M [mailto:[EMAIL PROTECTED] 
> Subject: RE: class path (UNCLASSIFIED)
> 
> Now compiling
> c:/javacode>javac 
> -classpath HelloWorld.java 
> it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Jay is correct, they should never be included as part of the specified path

Fadi 

-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:40 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: class path (UNCLASSIFIED)

Yes, doing a "javac -h" to receive help says " -classpath ".  But the 
angle brackets from  are not meant to be included.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:32 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

> From: S M [mailto:[EMAIL PROTECTED]
> Subject: RE: class path (UNCLASSIFIED)
> 
> Now compiling
> c:/javacode>javac
> -classpath HelloWorld.java it said - 
> Access Denied

Where are these angle brackets coming from?  They should not be present.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification:  UNCLASSIFIED 
Caveats: NONE



RE: class path (UNCLASSIFIED)

2005-04-13 Thread Jay Burgess
Yes, doing a "javac -h" to receive help says " -classpath ".  But the
angle brackets from  are not meant to be included.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:32 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

> From: S M [mailto:[EMAIL PROTECTED] 
> Subject: RE: class path (UNCLASSIFIED)
> 
> Now compiling
> c:/javacode>javac 
> -classpath HelloWorld.java 
> it said - Access Denied

Where are these angle brackets coming from?  They should not be present.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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






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



Re: Tomcat memory alert (UNCLASSIFIED)

2005-04-13 Thread farhad
You can add these two options to your VM and monitor /tmp/gcOutput log 
file " -verbose:gc -Xloggc:/tmp/gcOutput" , or you can add a timer MBean 
to your server to  ping your VM.


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


multiple parameters and Laszlo

2005-04-13 Thread Guillaume Lederrey
  Hello !

  This is not directly Tomcat related, but more of a general servlet
API question.

  I am developping an application with laszlo (www.openlaszlo.org) as
the front end and a servlet backend. Laszlo is a rich-client framework
based on flash. My problem is that when using a multiple select list,
laszlo sends the parameters as : "url?list=1,2,3,..." instead of
"url?list=1&list=2&list=3...".  That means that I cannot use
request.getParameterValues().

  Do you know if there is an easy work around ? Or should I parse
manually the "," in the param string ?

   Thanks for your help !

Guillaume

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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread Caldarale, Charles R
> From: S M [mailto:[EMAIL PROTECTED] 
> Subject: RE: class path (UNCLASSIFIED)
> 
> Now compiling
> c:/javacode>javac 
> -classpath HelloWorld.java 
> it said - Access Denied

Where are these angle brackets coming from?  They should not be present.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: port number

2005-04-13 Thread Joe Plautz
No, they're not both listening on port 80, Apache is listening on port 
80 and forwards requests to tomcat as needed.

Joe
Magnotta, Salvatore wrote:
So then it is possible to have both on port 80?  "G" says no way...

No that's not possible.
Only one server for one port...
You could try to forward incomming connections from apache to tomcat. For
that there is a plug in on tomcats web site... 

G 

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:10 AM
To: Tomcat Users List
Subject: RE: port number

From: t.n.a. [mailto:[EMAIL PROTECTED] 
I host applications on a machine where both apache and tomcat are 
running. I access apache at port 80 and tomcat at 8080. Is it 
possible 
(using the tomcat apache connection, or some other way) to 
access both at port 80?

Yes, but you'll have to decide under which part of your Apache site
you'll show your Tomcat pages.  The trick is to install mod_jk to
connect from Apache to Tomcat (and make sure you've got a JK connector
enabled in Tomcat).  Then you can map part or all of the Tomcat URL
space into a virtual directory under Apache.  JK is independent of
Tomcat's HTTP connector so, if you wish, you can even remove Tomcat's
connector on port 8080 once you've done this - the Apache <=> JK <=>
Tomcat route becomes the only route through which you can access Tomcat.
- Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat & CallBackHandler

2005-04-13 Thread LERBSCHER Jean-Pierre
Hi,

In Tomcat 5.0, is there a mean to register or use our own CallbackHandler in
JAASRealm.?

Thanks.



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
I tried that too.. same problem...
anyways.. apart from that going as the suggestion of without spaces directory 
path... here is the modified thgs
CLASSPATH=.;c:\java;c:\tomcat\common\lib\servlet.jar
CATALINAHOME=c:\tomcat
JAVA_HOME and path remaing the same.
 
Now compiling
c:/javacode>javac -classpath HelloWorld.java
it said - Access Denied
 

then compiling like 
c:/javacode>javac HelloWorld.java 
it gives same set of errors 
 
and then again compiling like 
c:/javacode>javac -classpath HelloWorld.java
Windows gave a error saying 'javac' encountered an error.. please close.
 

and then closing and oping cmd again and 
then  compiling like 
c:/javacode>javac HelloWorld.java 
I got no errors... but also.. no class file created. :(
 
What do you have to say now?
 



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now

Re: class path (UNCLASSIFIED)

2005-04-13 Thread Mieke Banderas
Hassan Schroeder said:

>2) Don't put servlet.jar and j2ee.jar in the same classpath, as
>you'll have duplicated classes...

Excuse a stupid question, but how do you use both libraries at once then?
2 JVMs? separation between Tomcat and the J2EE framework? Or can one use
2 classpaths in the same JVM somehow? 
I haven't made it to this level yet, so bear with me.




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



RE: port number

2005-04-13 Thread Magnotta, Salvatore
So then it is possible to have both on port 80?  "G" says no way...


No that's not possible.

Only one server for one port...

You could try to forward incomming connections from apache to tomcat. For
that there is a plug in on tomcats web site... 

G 

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:10 AM
To: Tomcat Users List
Subject: RE: port number


> From: t.n.a. [mailto:[EMAIL PROTECTED] 
> I host applications on a machine where both apache and tomcat are 
> running. I access apache at port 80 and tomcat at 8080. Is it 
> possible 
> (using the tomcat apache connection, or some other way) to 
> access both at port 80?

Yes, but you'll have to decide under which part of your Apache site
you'll show your Tomcat pages.  The trick is to install mod_jk to
connect from Apache to Tomcat (and make sure you've got a JK connector
enabled in Tomcat).  Then you can map part or all of the Tomcat URL
space into a virtual directory under Apache.  JK is independent of
Tomcat's HTTP connector so, if you wish, you can even remove Tomcat's
connector on port 8080 once you've done this - the Apache <=> JK <=>
Tomcat route becomes the only route through which you can access Tomcat.

- Peter

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


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



Re: class path (UNCLASSIFIED)

2005-04-13 Thread BAO RuiXian
Hello,
S M wrote:
tried that too... but it can't identify the path.
C:\javacode>javac -classpath  HellWorld.java
 

Try use quotes instead of '<' and '>' to quote the class path.
Good luck.
Bao
The system cannot find the file specified.
anyways.. now will reinstall as suggested 'without' spaces and will let you 
know..
thanks so far
"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your javac command, if you haven't done that yet. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacode>javac HelloWorld.java 

"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
Classification: UNCLASSIFIED
Caveats: NONE
I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)
The same as before.

C:\javacode>javac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {
^
6 errors
-
"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
Classification: UNCLASSIFIED
Caveats: NONE
What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path
Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation
lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;"
I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06

These being the variables I am still getting that error log where the compiler 
cannot locate the servlet pakages.
Hope you can assit further.
Thanks.

Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 

sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
mentioned and yes it shows me the CLASSPATH as listed below
   

".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;"
 

where ";C:\javacode" had the source code.
 

Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
If so surround it with double quotes or move it to a path with no spaces. I 
don't think having servlet.jar and j2ee.jar in the same classpath is a good 
idea either.
Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
 




How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Ikonne, Ike

Hi all,


I am trying to restrict access to directories under webapps/myapp and I have 
the following in my
WEB-INF/web.xml, but users still can browse through all the directories under 
webapps/myapp
What am I doing wrong?  I have the same thing for Jetty webserver and it works. 
 I am running 
tomcat 4.1


 

   general
  /html/*
  /jsp/*
  /help/*
  /images/*
  GET
  HEAD


   specific
  /AdminMain/*
  GET
  HEAD
  POST
  PUT

  

Thanks,

Ike



Re: port number

2005-04-13 Thread Tim Funk
You need let apache "forward" the appropriate requests to tomcat. The 
different ways you can do that can be found here:

http://jakarta.apache.org/tomcat/faq/connectors.html
-Tim
t.n.a. wrote:
Hi everyone,
I host applications on a machine where both apache and tomcat are 
running. I access apache at port 80 and tomcat at 8080. Is it possible 
(using the tomcat apache connection, or some other way) to access both 
at port 80? I ask because of firewall issues: port 80 seems to be the 
"Holy Grail" of accessibility: everything else depends on the local 
firewall configuration.

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


RE: port number

2005-04-13 Thread Peter Crowther
> From: t.n.a. [mailto:[EMAIL PROTECTED] 
> I host applications on a machine where both apache and tomcat are 
> running. I access apache at port 80 and tomcat at 8080. Is it 
> possible 
> (using the tomcat apache connection, or some other way) to 
> access both at port 80?

Yes, but you'll have to decide under which part of your Apache site
you'll show your Tomcat pages.  The trick is to install mod_jk to
connect from Apache to Tomcat (and make sure you've got a JK connector
enabled in Tomcat).  Then you can map part or all of the Tomcat URL
space into a virtual directory under Apache.  JK is independent of
Tomcat's HTTP connector so, if you wish, you can even remove Tomcat's
connector on port 8080 once you've done this - the Apache <=> JK <=>
Tomcat route becomes the only route through which you can access Tomcat.

- Peter

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



Re: port number

2005-04-13 Thread Joe Plautz
Just user the jk connector. The work famously together. Obviously you're 
not running tomcat on port 80, but you don't need to.

Here's the link on setting it up.
http://jakarta.apache.org/tomcat/connectors-doc/index.html
t.n.a. wrote:
Hi everyone,
I host applications on a machine where both apache and tomcat are 
running. I access apache at port 80 and tomcat at 8080. Is it possible 
(using the tomcat apache connection, or some other way) to access both 
at port 80? I ask because of firewall issues: port 80 seems to be the 
"Holy Grail" of accessibility: everything else depends on the local 
firewall configuration.

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


RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

I am pretty sure you need to SPECIFY servlet.jar, not just the directory where 
it resides

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:01 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that too... but it can't identify the path.

C:\javacode>javac -classpath  HellWorld.java

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let you 
know..
thanks so far

"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
Classification: UNCLASSIFIED
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your javac 
command, if you haven't done that yet. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacode>javac HelloWorld.java 

"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
Classification: UNCLASSIFIED
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacode>javac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

-

"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;"

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the compiler 
cannot locate the servlet pakages.

Hope you can assit further.

Thanks.



Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
> sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
>mentioned and yes it shows me the CLASSPATH as listed below
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;"
> > where ";C:\javacode" had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
If so surround it with double quotes or move it to a path with no spaces. I 
don't think having servlet.jar and j2ee.jar in the same classpath is a good 
idea either.

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE


-
To unsubscrib

  1   2   >