AW: Long Startup Time

2005-04-01 Thread Torsten Fohrer

Hi,

is your application using some listeners / load-on-startup?

Fohrer

 -Ursprüngliche Nachricht-
 Von: Mike Cherichetti (Renegade Internet) 
 [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 30. März 2005 22:56
 An: Tomcat Users
 Betreff: Long Startup Time
 
 Hi,
 
 I'm running Tomcat 5.0.28 with JDK 1.5.0_01 on Fedora Core 3.
 
 The problem that I'm having is pretty odd.  It's taking 
 Tomcat about 30 minutes to fully start up and start accepting 
 connections.  Here's where it's getting hung up at from the 
 startup logs:
 
 Mar 30, 2005 10:52:10 AM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Mar 30, 2005 11:21:03 AM org.apache.catalina.core.StandardHost
 getDeployer
 
 You can see that it's about 29 minutes between those two log 
 entries.  So, my question is, what is happening there that 
 could take so long?  There are no errors in the logs and once 
 Tomcat does complete its startup stuff our application works 
 just fine.
 
 Thanks,
 
 Mike
 
 
 
 
 -
 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]



Query on catalina.bat of Tomcat 5.0.28

2005-04-01 Thread Lakshmi Narayanan K.
Hi All,

In the file catalina.bat, the following lines of code are present:
echo Using CATALINA_BASE:   %CATALINA_BASE%
echo Using CATALINA_HOME:   %CATALINA_HOME%
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
echo Using JAVA_HOME:   %JAVA_HOME%

set _EXECJAVA=%_RUNJAVA%

My question here is, who / wherefrom is the value of _RUNJAVA being
set/obtained?

I noticed that shutdown.bat file calls catalina.bat file with stop
option. I am facing a problem with the execution of the same. When I
executed shutdown.bat via the command prompt, the value of _RUNJAVA
gets set to the value of the proper java that is present in JAVA_HOME.
But when I am executed the same shutdown.bat script from within our
product application, the value _RUNJAVA isn't getting set as expected.
Because of this, tomcat shutdown is not getting called, hence tomcat
never stops when I try to stop it via our application.

Any ideas???

- Lakshmi Narayanan K.

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



Re: Query on catalina.bat of Tomcat 5.0.28

2005-04-01 Thread Anto Paul
On Apr 1, 2005 2:11 PM, Lakshmi Narayanan K. [EMAIL PROTECTED] wrote:
 Hi All,
 
 In the file catalina.bat, the following lines of code are present:
 echo Using CATALINA_BASE:   %CATALINA_BASE%
 echo Using CATALINA_HOME:   %CATALINA_HOME%
 echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
 echo Using JAVA_HOME:   %JAVA_HOME%
 
 set _EXECJAVA=%_RUNJAVA%
 
 My question here is, who / wherefrom is the value of _RUNJAVA being
 set/obtained?
 
 I noticed that shutdown.bat file calls catalina.bat file with stop
 option. I am facing a problem with the execution of the same. When I
 executed shutdown.bat via the command prompt, the value of _RUNJAVA
 gets set to the value of the proper java that is present in JAVA_HOME.
 But when I am executed the same shutdown.bat script from within our
 product application, the value _RUNJAVA isn't getting set as expected.
 Because of this, tomcat shutdown is not getting called, hence tomcat
 never stops when I try to stop it via our application.
 
 Any ideas???
 
 - Lakshmi Narayanan K.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

There may be an environment variable set JAVA_HOME that is causing
trouble. Look at setclasspath.bat to what _RUNJAVA points to.


-- 
Benchmark Softech
www.benchmarksoft.com

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



RE: Webdav Webfolder issue when container security enabled

2005-04-01 Thread Fernando Salazar de Paz
I have tried the following:

a)
Apache/2.0.49 (Win32) DAV/2 mod_jk/1.2.3-devsecurity enabled
WWW-Authenticate: Basic realm=ByPassword

Works fine (I can edit open PDFs, ZIPs, etc from webfolder)

b)
Apache Tomcat 4.1.31 / 5.5.7   security disabled

Works fine 

c)
Apache Tomcat 4.1.31 / 5.5.7   security enabled

c.1)
If I try to open a previously uploaded file (when security were disabled)
It works fine. 

c.2)
Fails (with PDFs, ZIPs, etc) if I drag a file into the webfolder and next
I'll try to open the same file double-clicking it into the webfolder. It
works with Office files ¿?¿ (I have tried miss-spain.ppt, for example ;)  ).

Using Explorer I have no problem. Also, I can read the file if I drag it
From the webfolder to another directory.

Disabling security and restarting Tomcat all works fine again.


I am very confused. Do you think it could be a problem when I post ¿? (the
file is not corrupted) ¿? Some type of locking ¿?  (Restarting tomcat
service doesn't seem to correct the problem).




-Mensaje original-
De: Mark Thomas [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 01 de abril de 2005 0:50
Para: Tomcat Users List
Asunto: Re: Webdav Webfolder issue when container security enabled

I have done some testing with the latest TC4.1.x source from CVS, WinXP 
SP2,  and tcpmon from the Axis project so I can look at the request and 
responses.

I have a web folder and IE open on http://localhost:8080/webdav

As a result of my tests I noted the following:
1. If I drag a .pdf to the web folder, I can then view it in IE.
2. If I drag the .pdf from the web folder to my desktop I can then open
it using Acrobat.
3. I can't open the .pdf using Acrobat directly from the web folder.
4. Authentication seems to make no difference to behaviour.

Given 1  2, I don't believe Tomcat is corrupting the file.
Given 4, I think authentication is a red herring.

3. The MS webdav client seems to be copying the file to the temp 
internet files directory and then opening it. Maybe Acrobat doesn't like 
something about this. Notepad, Paint and OpenOffice don't seem to mind 
even with similar sized documents to the .pdf I was using.

The webdav servlet hasn't changed significantly since 4.1.31 so I 
suggest trying 4.1.31 and seeing what results you get.

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: Webdav Webfolder issue when container security enabled

2005-04-01 Thread Fernando Salazar de Paz
Another thing

I have problems using tcpmon from Axis. Index Out of Bounds exceptions
when I put the files, and so on.

I have used ethereal to sniff network traffic.


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



Compiling JK under Solaris

2005-04-01 Thread Steven Pannell
Hi,

Has anyone ever managed to get the JK sources to compile with Solaris 7??

I have tried many times using every version from 1.2.5 - 1.2.10 any always
get compile errors of one sort or another.  Just like to know if anyone ever
managed this awful task??

cheers,
steve.

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



tomcat 5 not deploying my war

2005-04-01 Thread teknokrat
I place my war in the webapps directory. tomcat 5.5.7 creates the 
directory and maybe a few others but it does not complete the job. 
Reloading etc does not fix this. there are no error messages given. 
Anyone have a clue what could be going on here?

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


Re: session management

2005-04-01 Thread Lionel Farbos
On Thu, 31 Mar 2005 11:41:55 -0800 (PST)
Jagadeesha T [EMAIL PROTECTED] wrote:

 Hi all,
 I want to set session in httpservletresponse object, Is there 
 any way to do it.
  Otherthan response.addCookie(), or 
 response.encodeURL();
 Is there any way to set the Jsession In headers, So that it gets that 
 in the next Jsp by request object, 
 If I use addCookie of response object, It fails if any where encodeURL 
 is used. 
 If i user encodeURL, every JSP needs to updated with that method.
 Please if anybody knows tell the way that can be done. 

You don't have to create yourself the cookie.
You create the HttpSession with HttpServletRequest.getSession() or 
HttpServletRequest.getSession(boolean)
Then, the session is created and the cookie JSESSIONID is added to the 
HttpServletResponse.
So, the next time you'll invoke a servlet or JSP in the same Context (with the 
same browser),
the Cookie JSESSIONID will be attached to your request.

If you have clustered your Tomcat, the JSESSIONID will have a suffix 
.jvmRoute,
so, if you use the mod_jk to load-balance your tomcat clustered servers, 
your request will be sent to the same tomcat (as the precedent).

Enjoy

 Thanks,
 Jagadeesha T
 
 
   
 -
 Do you Yahoo!?
  Better first dates. More second dates. Yahoo! Personals 

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



annoying popup in manager app

2005-04-01 Thread teknokrat
Whenever i need to reload a webapp in the manager in tomcat 5.5.7 I get 
an annoying popup asking me if i am sure Is there any way to turn 
off this annoying thing.

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


Re: [OT] Proper way to open threads in a servlet

2005-04-01 Thread Lionel Farbos
Your question is not really Tomcat so I put it Off Topic.

On Fri, 1 Apr 2005 15:24:10 +1000
Steve Vanspall [EMAIL PROTECTED] wrote:

 Hi there,
 
 I am concerned that opening a thread in my serlvet using new Thread(Runnable) 
 style code, is causing a massive hang in my system.
 

I don't understand why this hang your system !?...
You can't do like this but don't forget to daemonize your thread.

If you don't want your thread to run in the same JVM as Tomcat,
you can send a message to a daemon; then the daemon (in another JVM and/or 
another server) will receive the messages and treat them (in new Threads).
To send messages, you can use JMS (so, you need a JMS server) or sockets TCP or 
UDP (see java.net).



 Basically what the thread does is email people to notify them of a change in 
 an order on the system.
 
 I want the emails to be sent in a separate thread so that the user doesn't 
 have to wait for this to complete to return to the system.
 
 Basically the email is a non crucial part, the action has already been 
 performed. I know this isn't specifically a Tomcat question, but I thought I 
 would ask it anyway.
 
 The two ways this could work is that the email is placed in a queue, that is 
 checked periodically, or just somehow the email(s) are sent in the 
 background, but without opening a new thread using code.
 
 Can anyone give me some pointers on how to do this. Yes I have been searching 
 around, but haven't found much information.
 
 Tahnks in advance
 
 Steve
 
 
 
 
 -
 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: [OT] Proper way to open threads in a servlet

2005-04-01 Thread Mark Benussi
I would place your e-mail in a MailManager that queues the messages and
sends them out on a TimerTask (Every 10 seconds???).

Secondly from a pernickety perspective I would not have a Servlet doing any
of what you described. At least place this code a level down in a Manager
class that can coordinate with the MailManager.

-Original Message-
From: Lionel Farbos [mailto:[EMAIL PROTECTED] 
Sent: 01 April 2005 11:39
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: [OT] Proper way to open threads in a servlet

Your question is not really Tomcat so I put it Off Topic.

On Fri, 1 Apr 2005 15:24:10 +1000
Steve Vanspall [EMAIL PROTECTED] wrote:

 Hi there,
 
 I am concerned that opening a thread in my serlvet using new
Thread(Runnable) style code, is causing a massive hang in my system.
 

I don't understand why this hang your system !?...
You can't do like this but don't forget to daemonize your thread.

If you don't want your thread to run in the same JVM as Tomcat,
you can send a message to a daemon; then the daemon (in another JVM and/or
another server) will receive the messages and treat them (in new Threads).
To send messages, you can use JMS (so, you need a JMS server) or sockets TCP
or UDP (see java.net).



 Basically what the thread does is email people to notify them of a change
in an order on the system.
 
 I want the emails to be sent in a separate thread so that the user doesn't
have to wait for this to complete to return to the system.
 
 Basically the email is a non crucial part, the action has already been
performed. I know this isn't specifically a Tomcat question, but I thought I
would ask it anyway.
 
 The two ways this could work is that the email is placed in a queue, that
is checked periodically, or just somehow the email(s) are sent in the
background, but without opening a new thread using code.
 
 Can anyone give me some pointers on how to do this. Yes I have been
searching around, but haven't found much information.
 
 Tahnks in advance
 
 Steve
 
 
 
 
 -
 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: [OT] Proper way to open threads in a servlet

2005-04-01 Thread Lionel Farbos
On Fri, 1 Apr 2005 11:45:40 +0100
Mark Benussi [EMAIL PROTECTED] wrote:

 I would place your e-mail in a MailManager that queues the messages and
 sends them out on a TimerTask (Every 10 seconds???).
 
 Secondly from a pernickety perspective I would not have a Servlet doing any
 of what you described. At least place this code a level down in a Manager
 class that can coordinate with the MailManager.
 
But the MailManager you speak about, doesn't exist in Tomcat.
So, it runs in the Tomcat's jvm (I understood Steve didn't want this) or in 
other jvm ?
And, if it is in another jvm, how your servlet communicate with the MailManager 
?

Rather than TimerTasks, a good issue for these needs could be Quartz 
(http://www.opensymphony.com/quartz/)

 -Original Message-
 From: Lionel Farbos [mailto:[EMAIL PROTECTED] 
 Sent: 01 April 2005 11:39
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Re: [OT] Proper way to open threads in a servlet
 
 Your question is not really Tomcat so I put it Off Topic.
 
 On Fri, 1 Apr 2005 15:24:10 +1000
 Steve Vanspall [EMAIL PROTECTED] wrote:
 
  Hi there,
  
  I am concerned that opening a thread in my serlvet using new
 Thread(Runnable) style code, is causing a massive hang in my system.
  
 
 I don't understand why this hang your system !?...
 You can't do like this but don't forget to daemonize your thread.
 
 If you don't want your thread to run in the same JVM as Tomcat,
 you can send a message to a daemon; then the daemon (in another JVM and/or
 another server) will receive the messages and treat them (in new Threads).
 To send messages, you can use JMS (so, you need a JMS server) or sockets TCP
 or UDP (see java.net).
 
 
 
  Basically what the thread does is email people to notify them of a change
 in an order on the system.
  
  I want the emails to be sent in a separate thread so that the user doesn't
 have to wait for this to complete to return to the system.
  
  Basically the email is a non crucial part, the action has already been
 performed. I know this isn't specifically a Tomcat question, but I thought I
 would ask it anyway.
  
  The two ways this could work is that the email is placed in a queue, that
 is checked periodically, or just somehow the email(s) are sent in the
 background, but without opening a new thread using code.
  
  Can anyone give me some pointers on how to do this. Yes I have been
 searching around, but haven't found much information.
  
  Tahnks in advance
  
  Steve
  
  
  
  
  -
  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]



Clustering question

2005-04-01 Thread Steven Pannell
Hi,

I have setup two tomcat 5.5.7 servers which are clustered.  Everything is
working and  the basic session is replication.  However, when I add my own
custom java object to the session this is not replicated.  I have made it
Serializable but this object also contains other java objects which are not
serializable. Is this a problem?  Is there anything special I need to
consider to get my custom session objects to replicate??

Thanks,
Steve.



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



RE: Clustering question

2005-04-01 Thread Dale, Matt
Yes this is a problem. All objects contained within a serializable object must 
in turn be serializable themselves.

-Original Message-
From: Steven Pannell [mailto:[EMAIL PROTECTED]
Sent: 01 April 2005 12:33
To: 'tomcat-user@jakarta.apache.org'
Subject: Clustering question


Hi,

I have setup two tomcat 5.5.7 servers which are clustered.  Everything is
working and  the basic session is replication.  However, when I add my own
custom java object to the session this is not replicated.  I have made it
Serializable but this object also contains other java objects which are not
serializable. Is this a problem?  Is there anything special I need to
consider to get my custom session objects to replicate??

Thanks,
Steve.



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



[OT] Serialization (was RE: Clustering question)

2005-04-01 Thread Peter Crowther
 From: Dale, Matt [mailto:[EMAIL PROTECTED] 
 Yes this is a problem. All objects contained within a 
 serializable object must in turn be serializable themselves.

Or marked as 'transient'.  This omits them from serialization.

- Peter

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



Re: Clustering question

2005-04-01 Thread Viorel Dragomir

Not all the objects inside your class must be serializable.
Set all the objects you don't want to persist as transient.

[ For instance, I don't want to persist a data connection [in this way] or a 
logger ]



Viorel Dragomir

.
..
---



- Original Message - 
From: Dale, Matt 
To: Tomcat Users List 
Sent: Friday, April 01, 2005 13:38
Subject: RE: Clustering question


Yes this is a problem. All objects contained within a serializable object must 
in turn be serializable themselves.

-Original Message-
From: Steven Pannell [mailto:[EMAIL PROTECTED]
Sent: 01 April 2005 12:33
To: 'tomcat-user@jakarta.apache.org'
Subject: Clustering question


Hi,

I have setup two tomcat 5.5.7 servers which are clustered.  Everything is
working and  the basic session is replication.  However, when I add my own
custom java object to the session this is not replicated.  I have made it
Serializable but this object also contains other java objects which are not
serializable. Is this a problem?  Is there anything special I need to
consider to get my custom session objects to replicate??

Thanks,
Steve.



-
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: Apply single login (NTLM) on Tomcat

2005-04-01 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/windows.html#ntlm
-Tim
Marcus Nugroho wrote:
Hi All,
We intend to use single user login using Windows NT for the Tomcat.
so that the user can use the same user-id with his NT user to login into 
our web application.
Does anyone have experiences on how to apply it ? 

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


Re: Proper way to open threads in a servlet

2005-04-01 Thread Tim Funk
Ya, you can open a new thread which has the sole job of sending the email 
then dying. The only drawback is if sending the email hangs, then tomcat 
could hang unless you make the thread a daemon thread.


-Tim
Steve Vanspall wrote:
Hi there,
I am concerned that opening a thread in my serlvet using new Thread(Runnable) 
style code, is causing a massive hang in my system.
Basically what the thread does is email people to notify them of a change in an 
order on the system.
I want the emails to be sent in a separate thread so that the user doesn't have 
to wait for this to complete to return to the system.
Basically the email is a non crucial part, the action has already been 
performed. I know this isn't specifically a Tomcat question, but I thought I 
would ask it anyway.
The two ways this could work is that the email is placed in a queue, that is 
checked periodically, or just somehow the email(s) are sent in the background, 
but without opening a new thread using code.
Can anyone give me some pointers on how to do this. Yes I have been searching around, but haven't found much information.
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: annoying popup in manager app

2005-04-01 Thread Tim Funk
sorry if I find this funny, but I just saw a bugzilla complaint requesting 
another confirmation screen.

As to your question, i don't know.
-Tim
teknokrat wrote:
Whenever i need to reload a webapp in the manager in tomcat 5.5.7 I get 
an annoying popup asking me if i am sure Is there any way to turn 
off this annoying thing.

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


Re: Closed Input Stream across firewall

2005-04-01 Thread Tim Funk
My only guess is the firewall times the connection out on inactivity. So if 
the servlet needs to do additional processing before the response is sent and 
the time is too long - the firewall might drop the connection.

-Tim
Vineet Chopra wrote:
I am not calling getParameter method, instead request.getInputStream()
to read the incoming XML is the first line of code after a few logging
statements.
Code for the sender servlet is as follows - 

URL url = new URL(destinationURL);
URLConnection conn = url.openConnection();  
conn.setDoInput(true);
conn.setDoOutput(true);
PrintWriter writer = new PrintWriter(conn.getOutputStream());
writer.println(data.toString());
writer.flush();
writer.close();

BufferedReader reader = new BufferedReader(new
InputStreamReader(conn.getInputStream()));
String aLine;
StringBuffer strBuf = null;
if(reader!=null){
  strBuf = new StringBuffer();
  while( (aLine = reader.readLine() )!= null){
   strBuf.append(readline);
  }
  reader.close();
}
Code for the receiver servlet - 

protected void doGet(HttpServletRequest request,HttpServletResponse
response) throws ServletException, IOException {
StringBuffer xmlData = new StringBuffer();
try{
BufferedReader reader=new BufferedReader(new
InputStreamReader(request.getInputStream()));
String aLine = ;
while((aLine=reader.readLine())!=null){
 xmlData.append(aLine);
}
//exception thrown here.
reader.close();

PrintWriter writer = null;
String rmessage = null;

//build responseXML and assigned to rmessage

if(rmessage!=null){
writer = new PrintWriter(response.getOutputStream());
writer.println(rmessage);
writer.flush();
writer.close();
}
}catch(Exception exp){
exp.printStackTrace();  
}
}
---
It all started with getting an IOException: Cannot close the same
input stream twice at line statement : reader.close(). This was raised
because we were using Tomcat 4.0 which uses the deprecated http
connector.
But the root of the problem is that the ServletInputStream itself is
closed, even before building a InputStreamReader object.
Dilemma is that alls working well in the development environment and
only production is giving the problem, thus suspected the firewall.

On Mar 31, 2005 5:02 PM, Tim Funk [EMAIL PROTECTED] wrote:
The firewall is not the problem. If you are using
ServletRequest.getInputStream() - you cannot use
ServletRequest.getParameter(). Odds are something is calling getParameter()
which in turn getParameter() reads the input stream and makes it unavailable.
-Tim
Vineet Chopra wrote:
I am using a web application deployed on Tomcat 4.0 to receive and
route incoming XML messages to destination web application
also deployed on Tomcat 4.0. A firewall exists between these servers.
All firewall policies are enabled for incoming and outgoing traffic.
The ServletInputStream is already closed before I use it to create an
object of InputStreamReader. Thus I am not able to read the stream.
I did a snoop on the ports of these server which displayed the relay
of request XML reaching the destination port and invoking the servlet
in the
destination web application but failing to read the XML since the
input stream has been closed.
Can you give me any leads as to how to debug the problem.
-
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]


ssl configuration on tomcat

2005-04-01 Thread Mustafa BLKBA
Hi, 

Is there anyone who can help me how to configure ssl on tomcat 5.0.28. my j2se 
version is 1.4.02. my keystore file type is JKS. 

I try to configure it reading the ssl configuration how-to document on this 
link. 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html

I did all the steps but it's not working. Also I install my certificate using 
this document http://www.globalsign.com.tr/destek/ss_tomcat_50.asp .

By the way what is the meaning of -1 in redirection port field ?

 



configuring ssl on tomcat 5.0.28

2005-04-01 Thread Mustafa BLKBA
Hi, 

Is there anyone who can help me how to configure ssl on tomcat 5.0.28. my j2se 
version is 1.4.02. my keystore file type is JKS. 

I try to configure it reading the ssl configuration how-to document on this 
link. 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html

I did all the steps but it's not working. Also I install my certificate using 
this document http://www.globalsign.com.tr/destek/ss_tomcat_50.asp .

By the way what is the meaning of -1 in redirection port field ?

 

Thanks,

Mustafa.

 

 



Re: [OT] Proper way to open threads in a servlet

2005-04-01 Thread QM
On Fri, Apr 01, 2005 at 11:45:40AM +0100, Mark Benussi wrote:
: I would place your e-mail in a MailManager that queues the messages and
: sends them out on a TimerTask (Every 10 seconds???).

Why not just use JMS?  The servlet puts messages in a queue and returns
to the user. In turn, a queue listener turns those messages into
e-mails.  [solves the problem of delaying the user response while
e-mails are sent]

If you don't have a separate server/service to run the queue listener,
do that inside a single Tomcat thread that is created/destroyed by a
ServletContextListener. [solves the thread hanging problem, as well as
the too-many-threads problem.]

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Tomcat aborts

2005-04-01 Thread Dirk . Sklarek
Hi,

we are running tomcat 5.0.24 on solaris with Java 1.4.2_05.
Sometimes tomcat aborts with following informations:

Unexpected Signal : 11 occurred at PC=0xFE4B4590
Function=[Unknown. Nearest: sysThreadAvailableStackWithSlack+0x176F0]
Library=/usr/j2sdk1.4.2_05/jre/lib/sparc/server/libjvm.so


Dynamic libraries:
--some libs---

Heap at VM Abort:
Heap
 PSYoungGen  total 284096K, used 17313K [0xb540, 0xca95,
0xca95)
  eden space 8192K, 211% used [0xb540,0xb64e86f8,0xb5c0)
  from space 275904K, 0% used [0xb5c0,0xb5c0,0xc697)
  to   space 65408K, 0% used [0xc697,0xc697,0xca95)
  PSOldGentotal 699072K, used 693432K [0xca95, 0xf540,
0xf540)
  object space 699072K, 99% used [0xca95,0xf4e7e1a0,0xf540)
 PSPermGen   total 16896K, used 16311K [0xf540, 0xf648,
0xf940)
  object space 16896K, 96% used [0xf540,0xf63edca0,0xf648)

Im not familiar with that memory stuff.
Any ideas?

Cheers Dirk


Tomcat Connection refused :-(

2005-04-01 Thread gaurav
Hi list,
 My tomcat server is not working !! no matter what I do 
every thing I going till I day installed oracle 9i :-(
Now Tomcat just does responds to its port .i have changed the 8090 
but no effect !!
when I run ./startup.sh   it shows no problem but nothing comes at at 
port (connection) refused during ./shutdown.sh I always get
org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused

I tried following
   * Rebooted the server
   * |ps axf | grep [j]ava.endorsed.dir - no output|
   * |rm /var/lock/subsys/tomcat - no lock file|
   * tried other port no that 8080 like 8900 - still doesnt work :-(
pl help me !!
|
|
[EMAIL PROTECTED] ~]# service tomcat stop
Tomcat Shutdown: Using CATALINA_BASE:   /home/tomcat/tomcat
Using CATALINA_HOME:   /home/tomcat/tomcat
Using CATALINA_TMPDIR: /home/tomcat/tomcat/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_02
Apr 1, 2005 5:41:50 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
   at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
   at java.net.Socket.connect(Socket.java:507)
   at java.net.Socket.connect(Socket.java:457)
   at java.net.Socket.init(Socket.java:365)
   at java.net.Socket.init(Socket.java:178)
   at 
org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411)
OK

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


RE : Clustering question

2005-04-01 Thread Sébastien Letélié
Or they can be transient i.e. not serialized in a serialization process

Sébastien Letélié 

 -Message d'origine-
 De : [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 De la part de Dale, Matt
 Envoyé : vendredi 1 avril 2005 13:38
 À : Tomcat Users List
 Objet : RE: Clustering question
 
 Yes this is a problem. All objects contained within a serializable object
 must in turn be serializable themselves.
 
 -Original Message-
 From: Steven Pannell [mailto:[EMAIL PROTECTED]
 Sent: 01 April 2005 12:33
 To: 'tomcat-user@jakarta.apache.org'
 Subject: Clustering question
 
 
 Hi,
 
 I have setup two tomcat 5.5.7 servers which are clustered.  Everything is
 working and  the basic session is replication.  However, when I add my own
 custom java object to the session this is not replicated.  I have made it
 Serializable but this object also contains other java objects which are
 not
 serializable. Is this a problem?  Is there anything special I need to
 consider to get my custom session objects to replicate??
 
 Thanks,
 Steve.
 
 
 
 -
 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 Connection refused :-(

2005-04-01 Thread gaurav
Hi list,
My tomcat server is not working !! no matter what I do 
every thing I going till I day installed oracle 9i :-(
Now Tomcat just does responds to its port .i have changed the 8090 
but no effect !!
when I run ./startup.sh   it shows no problem but nothing comes at at 
port (connection) refused during ./shutdown.sh I always get
org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused

I tried following
  * Rebooted the server
  * ps axf | grep [j]ava.endorsed.dir - no output|
  * rm /var/lock/subsys/tomcat - no lock file|
  * tried other port no that 8080 like 8900 - still doesnt work :-(
pl help me !!
I am using tomcat 5.7 on Fedora Core 3
[EMAIL PROTECTED] ~]# service tomcat stop
Tomcat Shutdown: Using CATALINA_BASE:   /home/tomcat/tomcat
Using CATALINA_HOME:   /home/tomcat/tomcat
Using CATALINA_TMPDIR: /home/tomcat/tomcat/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_02
Apr 1, 2005 5:41:50 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
  at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
  at java.net.Socket.connect(Socket.java:507)
  at java.net.Socket.connect(Socket.java:457)
  at java.net.Socket.init(Socket.java:365)
  at java.net.Socket.init(Socket.java:178)
  at 
org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at 
org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411)
OK


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


RE: Tomcat Connection refused :-(

2005-04-01 Thread Peter Crowther
 From: gaurav [mailto:[EMAIL PROTECTED] 
   My tomcat server is not working !! no matter what I do 
 every thing I going till I day installed oracle 9i :-(

What Tomcat version?

What operating system?  I assume some UNIX variant given the trace.

Did you install anything else on the machine at the same time as Oracle
9i?  Any operating system changes?  Any firewall changes?  Any reboot
that could have brought into operation a pending change that someone had
made at some earlier time?

What does 'netstat -a' show?  With Tomcat shut down, it should show
nothing on Tomcat's ports; with Tomcat running, it should show Tomcat's
ports as LISTENING.

- Peter

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



Re: annoying popup in manager app

2005-04-01 Thread Lionel Farbos
On Fri, 01 Apr 2005 06:47:15 -0500
Tim Funk [EMAIL PROTECTED] wrote:

 sorry if I find this funny, but I just saw a bugzilla complaint requesting 
 another confirmation screen.
 
 As to your question, i don't know.
 
 -Tim
 
 teknokrat wrote:
 
  Whenever i need to reload a webapp in the manager in tomcat 5.5.7 I get 
  an annoying popup asking me if i am sure Is there any way to turn 
  off this annoying thing.
  
I think you can configure your browser to not activate javaScript..
But you'll have perhaps other problems...

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




Re: Tomcat aborts

2005-04-01 Thread Anto Paul
On Apr 1, 2005 5:56 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi,
 
 we are running tomcat 5.0.24 on solaris with Java 1.4.2_05.
 Sometimes tomcat aborts with following informations:
 
 Unexpected Signal : 11 occurred at PC=0xFE4B4590
 Function=[Unknown. Nearest: sysThreadAvailableStackWithSlack+0x176F0]
 Library=/usr/j2sdk1.4.2_05/jre/lib/sparc/server/libjvm.so
 
 Dynamic libraries:
 --some libs---
 
 Heap at VM Abort:
 Heap
  PSYoungGen  total 284096K, used 17313K [0xb540, 0xca95,
 0xca95)
   eden space 8192K, 211% used [0xb540,0xb64e86f8,0xb5c0)
   from space 275904K, 0% used [0xb5c0,0xb5c0,0xc697)
   to   space 65408K, 0% used [0xc697,0xc697,0xca95)
   PSOldGentotal 699072K, used 693432K [0xca95, 0xf540,
 0xf540)
   object space 699072K, 99% used [0xca95,0xf4e7e1a0,0xf540)
  PSPermGen   total 16896K, used 16311K [0xf540, 0xf648,
 0xf940)
   object space 16896K, 96% used [0xf540,0xf63edca0,0xf648)
 
 Im not familiar with that memory stuff.
 Any ideas?
 
 Cheers Dirk
 
 

You tried any other versions/vendor of JRE ?. This is problem with JRE.
-- 
Anto Paul
Benchmark Softech
www.benchmarksoft.com

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



Tomcat / Broswer interaction question

2005-04-01 Thread James Sherwood
Hello,

Is there a way to have tomcat monitor a port or socket for incomming events,
then from those events, talk to a currently open broswer in javascript
events?

Thanks in advance,
James



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



Session replication : classcastexception on principal

2005-04-01 Thread Sébastien Letélié
Hi,

I use a JAASRealm in my context with mys own LoginModule to
authenticate in mys webapp. When I use the cluster for session replication,
I have a ClassCastExecption when the cluster try to serialize the Principal
object. 
When I look in the source code
(org.apache.catalina.cluster.session.DeltaRequest.setPrincipal(), I see that
they are a cast for the specific catalina principal object :
GenericPrincipal.
With a JAASRealm you don't use this object for principal, you
precise your own class (userClassName attribute).

Is it a bug or is my authentication technic is not ok ?

   +
  / \ 
improve Sébastien Letélié
/-\ 
 Consultant
-
Tel : 00 420 257 317 435
skype : sebmadecz
AOL : sebmade
ICQ : #336508634
MSN : [EMAIL PROTECTED]
-
http://blogs.application-servers.com/blogs/page/sebmade mon weblog,
articles et informations sur les nouvelles technologies 
http://www.resurgences.com solution pour les Services d'Accès aux Urgences
hospitalières
http://www.improve-institute.com toutes vos formations J2EE et WebSphere 
http://www.application-servers.com les brèves technologiques 
http://www.improve.technologies.com votre index thématique sur les
nouvelles technologies




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



Re: Tomcat Connection refused :-(

2005-04-01 Thread gaurav
Hi Peter ,
Peter Crowther wrote:
From: gaurav [mailto:[EMAIL PROTECTED] 
 My tomcat server is not working !! no matter what I do 
every thing I going till I day installed oracle 9i :-(
   

What Tomcat version?
What operating system?  I assume some UNIX variant given the trace.
 

I am using tomcat 5.5.7 on Fedora 3 with jdk1.5.0_02
Did you install anything else on the machine at the same time as Oracle
9i?  Any operating system changes?  Any firewall changes?  Any reboot
 

my i have disable firewal and stopped Iptables !!
that could have brought into operation a pending change that someone had
made at some earlier time?
What does 'netstat -a' show?  With Tomcat shut down, it should show
 

netstat -a | grep tomcat or 8080- nothing , zero , blank
nothing on Tomcat's ports; with Tomcat running, it should show Tomcat's
ports as LISTENING.
 

what to do !!
Regards,
Gaurav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] Server / Broswer interaction question

2005-04-01 Thread QM

I've renamed your subject as [OT] because it's not specifically about
Tomcat.


On Fri, Apr 01, 2005 at 08:47:59AM -0400, James Sherwood wrote:
: Is there a way to have tomcat monitor a port or socket for incomming events,
: then from those events, talk to a currently open broswer in javascript
: events?

This is not directly possible, based on the stateless notion of HTTP
requests: a browser hits a site, fetches data (some resource based on the
URL and other params), and disconnects.

I say directly because there's usually some indirect workaround.

Your best bet is to find some way for the data to be there when the browser
makes its request.  One such way would be to have a self-refreshing iframe
(or whatever) that keeps contacting the server.  That would be quite
chatty, however, so it may or may not be suitable for your situation.

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Re: annoying popup in manager app

2005-04-01 Thread teknokrat
Lionel Farbos wrote:
On Fri, 01 Apr 2005 06:47:15 -0500
Tim Funk [EMAIL PROTECTED] wrote:

sorry if I find this funny, but I just saw a bugzilla complaint requesting 
another confirmation screen.

As to your question, i don't know.
-Tim
teknokrat wrote:

Whenever i need to reload a webapp in the manager in tomcat 5.5.7 I get 
an annoying popup asking me if i am sure Is there any way to turn 
off this annoying thing.

I think you can configure your browser to not activate javaScript..
But you'll have perhaps other problems...
I was really suprised by this feature. Its the kindo of crap you expect form
microsoft:)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Connection refused :-(

2005-04-01 Thread Hassan Schroeder
gaurav wrote:
what to do !!
Basic troubleshooting.
1) look in your logs (and if this problem seems associated with the
   Oracle install, look in its log(s) and the syslogs, too).
2)
prompt export JAVA_OPTS=-verbose
prompt $CATALINA_HOME/bin/catalina.sh run
   watch the console and see where and why Tomcat stops initializing
HTH!
--
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]


WAR files and web.xml

2005-04-01 Thread Mark
I have a question concerning the generation of a war file and my
web.xml file.  I want to create a WAR file for my web application
using Ant, and place my web.xml file into the WAR file.  The problem I
have is that once the web.xml file is placed into the web.xml file,
users/admins will not be able to make changes to the configuration
parameters in the web.xml file.
For instance, I have a servlet that I load at tomcatstartup and it
reads configuration information from the web.xml.  Now if the web.xml
file has to be placed into the WAR file, a customer will not be able
to customize the values contained in the web.xml file.

So, am I missing something, or is this how everything is supposed to work?  

Thank you.

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



Problems with timestamps in logfiles

2005-04-01 Thread Bengt Lassen
Hello
I´m having rather strange things (for me at last :-) going on.
This is the basic environment
tomcat4.1.31
java1.4.2 IBM build  for Power5
osSLES9.0 for Power
We have configured special logfiles for our webapps using the logger
Logger
  className=org.apache.catalina.logger.FileLogger
  debug=9
  directory=/var/log/tomcat
  prefix=vapplive1_mvpzv.
  suffix=.log
  timestamp=true
  verbosity=9 /
This works fine, most of the time. Sometimes it happens, that the
timestamp gets gets out of sync with the real world
It´s creating entries like this
  vi vapplive1_mvpzv.1970-01-01.log
  
  1970-01-01 01:00:00 StandardContext[/mvpzv]:   Trying exact match
  1970-01-01 01:00:00 StandardContext[/mvpzv]:   Trying prefix match
  1970-01-01 01:00:00 StandardContext[/mvpzv]:   Trying extension match
  ...
This happens once in a while. I usally restart the tomcat and then it
works well for a while.
It seems to me that the tomcat is somehow getting the wrong time.
The time on the server is syncronized using ntp so the systemtime is
right.
Has anybody seen somethng like this ?
Furthermore I´m looking for a way to get timestamps in the
catalina.out logfile. Does anyone know where to configure this ?
TIA
Bengt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SSL configuration question

2005-04-01 Thread Mikhail Kruk
 I thought the two are not related my key is stored in the java keystore. I
 did everything with keytool, part of java.
 
 Tomcat only needs the password and name.
 
 The SSL certificate is not generated for or by tomcat.

Getting a valid certificate is a four step process.
1) Generate private key (keytool -genkey)
this puts a private key into your keystore. It's secret, hide it.
2) Generate certificate request (keytool -certreq)
creates a file which contains information about you (common name, 
city, state etc) and the public key which corresponds to private 
key from step 1 
3) submit the request from step 2 to the authority (Thawte, Verisign...)
4) get signed certificate from the authority and import it into the 
keystore (keytool -import)

For step 4 to work correctly the keystore must contain the private key 
from step 1.  You can't generate private key in a Apache and then import 
corresponding certificate into Tomcat -- you must first move the private 
key from Apache to Tomcat.

 
 - Original Message - 
 From: Mikhail Kruk [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Thursday, March 31, 2005 11:42 PM
 Subject: RE: SSL configuration question
 
 
   The certificate I imported was not self-signed (or should not be).  It
 is
   what I received back from Entrust after submitting a CSR. It was already
 in
   use on Apache before I decided not to use Apache anymore.  It worked
 before
   on Apache. I shut down apache and was intending to use the cert on only
   Tomcat.
 
  You can't easily import the certificate that was generated for Apache into
  Tomcat -- you need to have the prvite key part in your keystore and your
  private key is in your Apache.  There must be a way to get the key from
  Apache and move it to Tomcat, but I'm not sure what it is.
  This might help:
  http://kb.thawte.com/thawte/thawte/esupport.asp?id=vs24694
 
  
  
   Thanks,
   -Mark
  
  
   -Original Message-
   From: Sasisekar S Sundaram [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 31, 2005 2:43 PM
   To: Tomcat Users List
   Subject: Re: SSL configuration question
  
   It shows both issued to and issue by because it is a self signed
   certificate. when you get you certificate authorized by some one like
   verisign, and then import that certificate into your keystore, you'll
 get
   issued by as that certifying authority's name.
   - Original Message -
   From: Faine, Mark [EMAIL PROTECTED]
   To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
   Sent: Thursday, March 31, 2005 1:13 PM
   Subject: RE: SSL configuration question
  
  
Thanks, I tried that before and got a permission error, but it works
 now.
   
-Mark
   
   
-Original Message-
From: Hein Behrens [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 12:41 PM
To: Tomcat Users List
Subject: Re: SSL configuration question
   
Answer to number 2 is edit your server.xml change 8443 to 443 in the
 ssl
section also check that the the normal port redirects to 443.
   
Where you see 8443 change to 443.
   
2 changes in your server.xml.
   
   
- Original Message -
From: Faine, Mark [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, March 31, 2005 7:44 PM
Subject: SSL configuration question
   
   
 Solaris 8, Tomcat 5.0.28

 I've configured my tomcat installation with my SSL key from Entrust
 and
   it
 is working (sort of).

 1.  It is not correctly configured.  It shows my organization as
 both
 issued to and issue by when I view the certificate information.
   Could
 someone explain what I have done wrong and how to correct it.

 2.  It must be run on port 8443 because I need to run it as a user
 other
 than root.  How can I bypass this limitation and run it on the
 standard
443
 port?

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

RE: Tomcat Connection refused :-(

2005-04-01 Thread Peter Crowther
 From: gaurav [mailto:[EMAIL PROTECTED] 
 I am using tomcat 5.5.7 on Fedora 3 with jdk1.5.0_02

Thanks.

 my i have disable firewal and stopped Iptables !!

OK.

 netstat -a | grep tomcat or 8080- nothing , zero , blank

You already said that you had moved the Tomcat port from 8080, though?
If so, I wouldn't expect anything on 8080.  And I would expect something
on Tomcat's shutdown port as well (check your server.xml for its port
number) - is that not starting either?

- Peter

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



Re: Apply single login (NTLM) on Tomcat

2005-04-01 Thread Jimmy Ray
We have been experimenting with JCIFS filters.  It
seems to be working fairly well.

http://jcifs.samba.org/

Regards,

Jimmy Ray


--- Marcus Nugroho [EMAIL PROTECTED] wrote:
 Hi All,
 
 We intend to use single user login using Windows NT
 for the Tomcat.
 so that the user can use the same user-id with his
 NT user to login into 
 our web application.
 Does anyone have experiences on how to apply it ? 
 
 TIA
 



__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com


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



RE: tomcat 5 not deploying my war

2005-04-01 Thread David Owens
If you had a webapp there before, the problem may be that it cannot
undeploy the previous one because one of the jar or resource files is
locked.  If this is the case, you can turn on anti jar locking.

Hope this helps.

|)ave

-Original Message-
From: teknokrat [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 3:24 AM
To: tomcat-user@jakarta.apache.org
Subject: tomcat 5 not deploying my war

I place my war in the webapps directory. tomcat 5.5.7 creates the 
directory and maybe a few others but it does not complete the job. 
Reloading etc does not fix this. there are no error messages given. 
Anyone have a clue what could be going on here?

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: WAR files and web.xml

2005-04-01 Thread David Owens
I'm not sure what kind of information you are trying to change but I
have a few suggestions which might get you started:

1) If the changes are something like database/realm passwords or logging
information, you can put those in a context file called yourapp.xml
and put it in $CATALINA_HOME/conf/Catalina/localhost before you
drop your war in place.  (For that matter I guess you could put any sort
of resource or resource reference in there) So the user can modify the
xml file before they run ant install and the install target drops the
context file in that dir, and then the war in the webapps dir.  (Or
better yet, the user could modify the build.properties before doing the
install and ant could do the configuration/substitution in the context
file as described below.)

2) You could setup tokens like @REPLACE_HERE@ in your web.xml and
then have something like user1.information=A and user2.information=B
etc in your build.properties.  You could use ant's replace target
to replace the tokens during the war target.  The user (or you) could
then specify the deploy environment like this:
ant -Ddeploy.env=user1 war
which would create a war file using the user1. properties.
We do this where I work to create wars for dev, test, uat, and 
production.

If #2 looks like something you want to do, and you want the
ant snippet, email me and I'll send it your way. :)

|)ave

-Original Message-
From: Mark [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 6:27 AM
To: Tomcat Users List
Subject: WAR files and web.xml

I have a question concerning the generation of a war file and my
web.xml file.  I want to create a WAR file for my web application
using Ant, and place my web.xml file into the WAR file.  The problem I
have is that once the web.xml file is placed into the web.xml file,
users/admins will not be able to make changes to the configuration
parameters in the web.xml file.
For instance, I have a servlet that I load at tomcatstartup and it
reads configuration information from the web.xml.  Now if the web.xml
file has to be placed into the WAR file, a customer will not be able
to customize the values contained in the web.xml file.

So, am I missing something, or is this how everything is supposed to
work?  

Thank you.

-
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: Compiling JK under Solaris

2005-04-01 Thread Faine, Mark
 
I've compiled it for Solaris 8.  You could try mine if you think it might
work.

-Mark

-Original Message-
From: Steven Pannell [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 4:24 AM
To: 'Tomcat Users List'
Subject: Compiling JK under Solaris

Hi,

Has anyone ever managed to get the JK sources to compile with Solaris 7??

I have tried many times using every version from 1.2.5 - 1.2.10 any always
get compile errors of one sort or another.  Just like to know if anyone ever
managed this awful task??

cheers,
steve.

-
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: WAR files and web.xml

2005-04-01 Thread Lionel Farbos
For the same needs,
I use the Context.xml outside the war.
use the tags Parameter .../ to pass your admin parameters.
Regards.

On Fri, 1 Apr 2005 08:26:37 -0500
Mark [EMAIL PROTECTED] wrote:

 I have a question concerning the generation of a war file and my
 web.xml file.  I want to create a WAR file for my web application
 using Ant, and place my web.xml file into the WAR file.  The problem I
 have is that once the web.xml file is placed into the web.xml file,
 users/admins will not be able to make changes to the configuration
 parameters in the web.xml file.
 For instance, I have a servlet that I load at tomcatstartup and it
 reads configuration information from the web.xml.  Now if the web.xml
 file has to be placed into the WAR file, a customer will not be able
 to customize the values contained in the web.xml file.
 
 So, am I missing something, or is this how everything is supposed to work?  
 
 Thank you.
 
 -
 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: SSL configuration question

2005-04-01 Thread Faine, Mark
Could you elaborate a bit more on how to move the private key from Apache to
Tomcat?  You would think if I have a cert from a CA then I should be able to
import it into any server that uses SSL.  I already have the cert all the
other parts are only things that allowed me to obtain the cert.

Thanks,
-Mark 

-Original Message-
From: Mikhail Kruk [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 7:45 AM
To: Tomcat Users List; Hein Behrens
Subject: Re: SSL configuration question

 I thought the two are not related my key is stored in the java 
 keystore. I did everything with keytool, part of java.
 
 Tomcat only needs the password and name.
 
 The SSL certificate is not generated for or by tomcat.

Getting a valid certificate is a four step process.
1) Generate private key (keytool -genkey)
this puts a private key into your keystore. It's secret, hide it.
2) Generate certificate request (keytool -certreq)
creates a file which contains information about you (common name, 
city, state etc) and the public key which corresponds to private 
key from step 1
3) submit the request from step 2 to the authority (Thawte, Verisign...)
4) get signed certificate from the authority and import it into the keystore
(keytool -import)

For step 4 to work correctly the keystore must contain the private key from
step 1.  You can't generate private key in a Apache and then import
corresponding certificate into Tomcat -- you must first move the private key
from Apache to Tomcat.

 
 - Original Message - 
 From: Mikhail Kruk [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Thursday, March 31, 2005 11:42 PM
 Subject: RE: SSL configuration question
 
 
   The certificate I imported was not self-signed (or should not be).  It
 is
   what I received back from Entrust after submitting a CSR. It was
already
 in
   use on Apache before I decided not to use Apache anymore.  It worked
 before
   on Apache. I shut down apache and was intending to use the cert on
only
   Tomcat.
 
  You can't easily import the certificate that was generated for Apache
into
  Tomcat -- you need to have the prvite key part in your keystore and your
  private key is in your Apache.  There must be a way to get the key from
  Apache and move it to Tomcat, but I'm not sure what it is.
  This might help:
  http://kb.thawte.com/thawte/thawte/esupport.asp?id=vs24694
 
  
  
   Thanks,
   -Mark
  
  
   -Original Message-
   From: Sasisekar S Sundaram [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 31, 2005 2:43 PM
   To: Tomcat Users List
   Subject: Re: SSL configuration question
  
   It shows both issued to and issue by because it is a self signed
   certificate. when you get you certificate authorized by some one like
   verisign, and then import that certificate into your keystore, you'll
 get
   issued by as that certifying authority's name.
   - Original Message -
   From: Faine, Mark [EMAIL PROTECTED]
   To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
   Sent: Thursday, March 31, 2005 1:13 PM
   Subject: RE: SSL configuration question
  
  
Thanks, I tried that before and got a permission error, but it works
 now.
   
-Mark
   
   
-Original Message-
From: Hein Behrens [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 12:41 PM
To: Tomcat Users List
Subject: Re: SSL configuration question
   
Answer to number 2 is edit your server.xml change 8443 to 443 in the
 ssl
section also check that the the normal port redirects to 443.
   
Where you see 8443 change to 443.
   
2 changes in your server.xml.
   
   
- Original Message -
From: Faine, Mark [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, March 31, 2005 7:44 PM
Subject: SSL configuration question
   
   
 Solaris 8, Tomcat 5.0.28

 I've configured my tomcat installation with my SSL key from
Entrust
 and
   it
 is working (sort of).

 1.  It is not correctly configured.  It shows my organization as
 both
 issued to and issue by when I view the certificate
information.
   Could
 someone explain what I have done wrong and how to correct it.

 2.  It must be run on port 8443 because I need to run it as a user
 other
 than root.  How can I bypass this limitation and run it on the
 standard
443
 port?

 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]
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, 

RE: build problem

2005-04-01 Thread Fay, Michael
I downloaded the latest version of ant. 1.6.2.

-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 8:29 PM
To: Tomcat Users List
Subject: Re: build problem

What version of Ant you are using ?. It seems that Ant is not
supporting the attribute compression

On Apr 1, 2005 3:48 AM, Fay, Michael [EMAIL PROTECTED] wrote:
 I'm sure it's something simple, but I'm getting the following error when I
 try to build tomcat:
 
 BUILD FAILED
 
 /home/mfay/jakarta-tomcat-5.5.7-src/build.xml:94: The cvs task doesn't
 support the compression attribute.
 
 I've searched the Jakarta website to see if there was something on this,
but
 I haven't found anything. Do I need to make some change to the
 build.properties or something?
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

-
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: SSL configuration question

2005-04-01 Thread Faine, Mark
Thanks, the link you provided allowed me to get it imported correctly.  This
should go on a FAQ.

Thanks again,
-Mark
 

-Original Message-
From: Mikhail Kruk [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 3:42 PM
To: Tomcat Users List
Subject: RE: SSL configuration question

 The certificate I imported was not self-signed (or should not be).  It 
 is what I received back from Entrust after submitting a CSR. It was 
 already in use on Apache before I decided not to use Apache anymore.  
 It worked before on Apache. I shut down apache and was intending to 
 use the cert on only Tomcat.

You can't easily import the certificate that was generated for Apache into
Tomcat -- you need to have the prvite key part in your keystore and your
private key is in your Apache.  There must be a way to get the key from
Apache and move it to Tomcat, but I'm not sure what it is.
This might help:
http://kb.thawte.com/thawte/thawte/esupport.asp?id=vs24694

 
 
 Thanks,
 -Mark
  
 
 -Original Message-
 From: Sasisekar S Sundaram [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 31, 2005 2:43 PM
 To: Tomcat Users List
 Subject: Re: SSL configuration question
 
 It shows both issued to and issue by because it is a self signed
 certificate. when you get you certificate authorized by some one like
 verisign, and then import that certificate into your keystore, you'll get
 issued by as that certifying authority's name.
 - Original Message -
 From: Faine, Mark [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, March 31, 2005 1:13 PM
 Subject: RE: SSL configuration question
 
 
  Thanks, I tried that before and got a permission error, but it works
now.
 
  -Mark
 
 
  -Original Message-
  From: Hein Behrens [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 31, 2005 12:41 PM
  To: Tomcat Users List
  Subject: Re: SSL configuration question
 
  Answer to number 2 is edit your server.xml change 8443 to 443 in the ssl
  section also check that the the normal port redirects to 443.
 
  Where you see 8443 change to 443.
 
  2 changes in your server.xml.
 
 
  - Original Message -
  From: Faine, Mark [EMAIL PROTECTED]
  To: tomcat-user@jakarta.apache.org
  Sent: Thursday, March 31, 2005 7:44 PM
  Subject: SSL configuration question
 
 
   Solaris 8, Tomcat 5.0.28
  
   I've configured my tomcat installation with my SSL key from Entrust
and
 it
   is working (sort of).
  
   1.  It is not correctly configured.  It shows my organization as both
   issued to and issue by when I view the certificate information.
 Could
   someone explain what I have done wrong and how to correct it.
  
   2.  It must be run on port 8443 because I need to run it as a user
other
   than root.  How can I bypass this limitation and run it on the
standard
  443
   port?
  
   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]
 
  -
  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: SSL configuration question

2005-04-01 Thread Mikhail Kruk
 Could you elaborate a bit more on how to move the private key from Apache to
 Tomcat?  

As I said: I never did it myself, but the following link seems relevant:
http://kb.thawte.com/thawte/thawte/esupport.asp?id=vs24694

 You would think if I have a cert from a CA then I should be able to
 import it into any server that uses SSL.  I already have the cert all the
 other parts are only things that allowed me to obtain the cert.

The cert from CA only contains the public key signed by the CA's private 
key.  Showing public key to someone who connects to your web server is 
cool and everything, but it's not enough to establish a secure 
communication: you need to give your web server the secret key for that.
http://www.ourshop.com/resources/ssl.html

 Thanks,
 -Mark 
 
 -Original Message-
 From: Mikhail Kruk [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 01, 2005 7:45 AM
 To: Tomcat Users List; Hein Behrens
 Subject: Re: SSL configuration question
 
  I thought the two are not related my key is stored in the java 
  keystore. I did everything with keytool, part of java.
  
  Tomcat only needs the password and name.
  
  The SSL certificate is not generated for or by tomcat.
 
 Getting a valid certificate is a four step process.
 1) Generate private key (keytool -genkey)
   this puts a private key into your keystore. It's secret, hide it.
 2) Generate certificate request (keytool -certreq)
   creates a file which contains information about you (common name, 
   city, state etc) and the public key which corresponds to private 
   key from step 1
 3) submit the request from step 2 to the authority (Thawte, Verisign...)
 4) get signed certificate from the authority and import it into the keystore
 (keytool -import)
 
 For step 4 to work correctly the keystore must contain the private key from
 step 1.  You can't generate private key in a Apache and then import
 corresponding certificate into Tomcat -- you must first move the private key
 from Apache to Tomcat.
 
  
  - Original Message - 
  From: Mikhail Kruk [EMAIL PROTECTED]
  To: Tomcat Users List tomcat-user@jakarta.apache.org
  Sent: Thursday, March 31, 2005 11:42 PM
  Subject: RE: SSL configuration question
  
  
The certificate I imported was not self-signed (or should not be).  It
  is
what I received back from Entrust after submitting a CSR. It was
 already
  in
use on Apache before I decided not to use Apache anymore.  It worked
  before
on Apache. I shut down apache and was intending to use the cert on
 only
Tomcat.
  
   You can't easily import the certificate that was generated for Apache
 into
   Tomcat -- you need to have the prvite key part in your keystore and your
   private key is in your Apache.  There must be a way to get the key from
   Apache and move it to Tomcat, but I'm not sure what it is.
   This might help:
   http://kb.thawte.com/thawte/thawte/esupport.asp?id=vs24694
  
   
   
Thanks,
-Mark
   
   
-Original Message-
From: Sasisekar S Sundaram [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 2:43 PM
To: Tomcat Users List
Subject: Re: SSL configuration question
   
It shows both issued to and issue by because it is a self signed
certificate. when you get you certificate authorized by some one like
verisign, and then import that certificate into your keystore, you'll
  get
issued by as that certifying authority's name.
- Original Message -
From: Faine, Mark [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Thursday, March 31, 2005 1:13 PM
Subject: RE: SSL configuration question
   
   
 Thanks, I tried that before and got a permission error, but it works
  now.

 -Mark


 -Original Message-
 From: Hein Behrens [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 31, 2005 12:41 PM
 To: Tomcat Users List
 Subject: Re: SSL configuration question

 Answer to number 2 is edit your server.xml change 8443 to 443 in the
  ssl
 section also check that the the normal port redirects to 443.

 Where you see 8443 change to 443.

 2 changes in your server.xml.


 - Original Message -
 From: Faine, Mark [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Thursday, March 31, 2005 7:44 PM
 Subject: SSL configuration question


  Solaris 8, Tomcat 5.0.28
 
  I've configured my tomcat installation with my SSL key from
 Entrust
  and
it
  is working (sort of).
 
  1.  It is not correctly configured.  It shows my organization as
  both
  issued to and issue by when I view the certificate
 information.
Could
  someone explain what I have done wrong and how to correct it.
 
  2.  It must be run on port 8443 because I need to run it as a user
  other
  than root.  How can I bypass this limitation and run it on the
  

RE: SSL configuration question

2005-04-01 Thread Mikhail Kruk
Fortunately it's not that Frequent that people end up where you did :)
You should first finalize your config and decide whether you will run 
Tomcat standalone or with Apache/IIS, test it with a self-signed cert and 
only actually go ahead and buy the real cert before going live.

 Thanks, the link you provided allowed me to get it imported correctly.  This
 should go on a FAQ.
 
 Thanks again,
 -Mark
  
 
 -Original Message-
 From: Mikhail Kruk [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 31, 2005 3:42 PM
 To: Tomcat Users List
 Subject: RE: SSL configuration question
 
  The certificate I imported was not self-signed (or should not be).  It 
  is what I received back from Entrust after submitting a CSR. It was 
  already in use on Apache before I decided not to use Apache anymore.  
  It worked before on Apache. I shut down apache and was intending to 
  use the cert on only Tomcat.
 
 You can't easily import the certificate that was generated for Apache into
 Tomcat -- you need to have the prvite key part in your keystore and your
 private key is in your Apache.  There must be a way to get the key from
 Apache and move it to Tomcat, but I'm not sure what it is.
 This might help:
 http://kb.thawte.com/thawte/thawte/esupport.asp?id=vs24694
 
  
  
  Thanks,
  -Mark
   
  
  -Original Message-
  From: Sasisekar S Sundaram [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, March 31, 2005 2:43 PM
  To: Tomcat Users List
  Subject: Re: SSL configuration question
  
  It shows both issued to and issue by because it is a self signed
  certificate. when you get you certificate authorized by some one like
  verisign, and then import that certificate into your keystore, you'll get
  issued by as that certifying authority's name.
  - Original Message -
  From: Faine, Mark [EMAIL PROTECTED]
  To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
  Sent: Thursday, March 31, 2005 1:13 PM
  Subject: RE: SSL configuration question
  
  
   Thanks, I tried that before and got a permission error, but it works
 now.
  
   -Mark
  
  
   -Original Message-
   From: Hein Behrens [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 31, 2005 12:41 PM
   To: Tomcat Users List
   Subject: Re: SSL configuration question
  
   Answer to number 2 is edit your server.xml change 8443 to 443 in the ssl
   section also check that the the normal port redirects to 443.
  
   Where you see 8443 change to 443.
  
   2 changes in your server.xml.
  
  
   - Original Message -
   From: Faine, Mark [EMAIL PROTECTED]
   To: tomcat-user@jakarta.apache.org
   Sent: Thursday, March 31, 2005 7:44 PM
   Subject: SSL configuration question
  
  
Solaris 8, Tomcat 5.0.28
   
I've configured my tomcat installation with my SSL key from Entrust
 and
  it
is working (sort of).
   
1.  It is not correctly configured.  It shows my organization as both
issued to and issue by when I view the certificate information.
  Could
someone explain what I have done wrong and how to correct it.
   
2.  It must be run on port 8443 because I need to run it as a user
 other
than root.  How can I bypass this limitation and run it on the
 standard
   443
port?
   
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]
  
   -
   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]
 
 

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



RE: [OT] Serialization (was RE: Clustering question)

2005-04-01 Thread Richard Mixon (qwest)
Peter Crowther wrote:
 From: Dale, Matt [mailto:[EMAIL PROTECTED]
 Yes this is a problem. All objects contained within a
 serializable object must in turn be serializable themselves.

 Or marked as 'transient'.  This omits them from serialization.

If you mark them as transient, you may need need to implement a method
(ReadObject I believe) that properly initializes the transient
variables/objects.

There is an earlier post on this list where I describe how to do this. I
had a similar problem in that many of my classes had a Commons Logger
object stored in them. This had to be re-instatiated correctly when the
object was replicated.

HTH - Richard


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



RE: SSL configuration question

2005-04-01 Thread Faine, Mark
We've been running with Tomcat 4 and Apache 2 for a very long time.
Recently another department was put in charge of all of our static pages.
This means we will have nothing on our servers but dynamic pages (java web
apps) and this is good.  The other department specializes in static HTML
pages.  We are now playing more to our strengths.  I've removing
Apache/mod_jk from the mix and we are now running exclusively on Tomcat 5,
on our development server.  Previously we couldn't get our apps to run on
Tomcat 5 but I've figured it out recently and was hoping that perhaps we
might see a little bit of a performance increase.

If the testing works out and our apps benchmark well under Tomcat we will
move our production servers to Tomcat 5 exclusively.  This is why I needed
to be sure I could move the SSL certs between the two servers.

Thanks,
-Mark


-Original Message-
From: Mikhail Kruk [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 9:31 AM
To: Tomcat Users List
Subject: RE: SSL configuration question

Fortunately it's not that Frequent that people end up where you did :) You
should first finalize your config and decide whether you will run Tomcat
standalone or with Apache/IIS, test it with a self-signed cert and only
actually go ahead and buy the real cert before going live.

 Thanks, the link you provided allowed me to get it imported correctly.  
 This should go on a FAQ.
 
 Thanks again,
 -Mark
  
 
 -Original Message-
 From: Mikhail Kruk [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 31, 2005 3:42 PM
 To: Tomcat Users List
 Subject: RE: SSL configuration question
 
  The certificate I imported was not self-signed (or should not be).  
  It is what I received back from Entrust after submitting a CSR. It 
  was already in use on Apache before I decided not to use Apache anymore.
  It worked before on Apache. I shut down apache and was intending to 
  use the cert on only Tomcat.
 
 You can't easily import the certificate that was generated for Apache 
 into Tomcat -- you need to have the prvite key part in your keystore 
 and your private key is in your Apache.  There must be a way to get 
 the key from Apache and move it to Tomcat, but I'm not sure what it is.
 This might help:
 http://kb.thawte.com/thawte/thawte/esupport.asp?id=vs24694
 
  
  
  Thanks,
  -Mark
   
  
  -Original Message-
  From: Sasisekar S Sundaram [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 31, 2005 2:43 PM
  To: Tomcat Users List
  Subject: Re: SSL configuration question
  
  It shows both issued to and issue by because it is a self signed 
  certificate. when you get you certificate authorized by some one 
  like verisign, and then import that certificate into your keystore, 
  you'll get issued by as that certifying authority's name.
  - Original Message -
  From: Faine, Mark [EMAIL PROTECTED]
  To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
  Sent: Thursday, March 31, 2005 1:13 PM
  Subject: RE: SSL configuration question
  
  
   Thanks, I tried that before and got a permission error, but it 
   works
 now.
  
   -Mark
  
  
   -Original Message-
   From: Hein Behrens [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 31, 2005 12:41 PM
   To: Tomcat Users List
   Subject: Re: SSL configuration question
  
   Answer to number 2 is edit your server.xml change 8443 to 443 in 
   the ssl section also check that the the normal port redirects to 443.
  
   Where you see 8443 change to 443.
  
   2 changes in your server.xml.
  
  
   - Original Message -
   From: Faine, Mark [EMAIL PROTECTED]
   To: tomcat-user@jakarta.apache.org
   Sent: Thursday, March 31, 2005 7:44 PM
   Subject: SSL configuration question
  
  
Solaris 8, Tomcat 5.0.28
   
I've configured my tomcat installation with my SSL key from 
Entrust
 and
  it
is working (sort of).
   
1.  It is not correctly configured.  It shows my organization as 
both issued to and issue by when I view the certificate
information.
  Could
someone explain what I have done wrong and how to correct it.
   
2.  It must be run on port 8443 because I need to run it as a 
user
 other
than root.  How can I bypass this limitation and run it on the
 standard
   443
port?
   
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]
  
   --
   --- To unsubscribe, e-mail: 
   [EMAIL PROTECTED]
   For additional commands, e-mail: 
   [EMAIL PROTECTED]
  
  
  
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For 

Apache 2.0.53 , Tomcat 5.0.28 on AIX 5.1 segmentation fault at apachectl start when trying to use either mod_jk or mod_jk2

2005-04-01 Thread Bruce . Lightsey
I'm a new user of this stuff - except AIX.  With the default installs , I
can get to both Apache (port 80) and to Tomcat (port 8080).
 But, after compiling/making mod_jk, stopping both apache and tomcat,
modifying httpd.conf to load the modules/mod_jk.so:  ( LoadModule jk_module
modules/mod_jk.so ) ,
issuing apachectl start results in :
apachectl[80]: 565328 Segmentation fault(coredump)

I'm trying to set up this machine so that I can run ArcIMS ( from ESRI ).

The ArcIMS doc claims to want the mod_jk2 installed - same result as with
mod_jk on the apache start

If it helps, the machine/software config:
2-way p630 with 4G memory, sufficient disk space
AIX 5.1 latest fixpack, latest JDK 1.4 from IBM, Apache 2.0.53 built from
downloaded source, Tomcat 5.0.28 also built from source, jk2-2.0.4 from
source, jk-1.2.10 from source

Ideas/advice/etc welcome

thanks,
Bruce


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



Re: Apache 2.0.53 , Tomcat 5.0.28 on AIX 5.1 segmentation fault at apachectl start when trying to use either mod_jk or mod_jk2

2005-04-01 Thread gotti
Probably there is a problem in source, perheps try use transparent porxy to get 
apache and tomcat working together and check result


On Fri, 1 Apr 2005 10:38:27 -0600
[EMAIL PROTECTED] wrote:

 I'm a new user of this stuff - except AIX.  With the default installs , I
 can get to both Apache (port 80) and to Tomcat (port 8080).
  But, after compiling/making mod_jk, stopping both apache and tomcat,
 modifying httpd.conf to load the modules/mod_jk.so:  ( LoadModule jk_module
 modules/mod_jk.so ) ,
 issuing apachectl start results in :
 apachectl[80]: 565328 Segmentation fault(coredump)
 
 I'm trying to set up this machine so that I can run ArcIMS ( from ESRI ).
 
 The ArcIMS doc claims to want the mod_jk2 installed - same result as with
 mod_jk on the apache start
 
 If it helps, the machine/software config:
 2-way p630 with 4G memory, sufficient disk space
 AIX 5.1 latest fixpack, latest JDK 1.4 from IBM, Apache 2.0.53 built from
 downloaded source, Tomcat 5.0.28 also built from source, jk2-2.0.4 from
 source, jk-1.2.10 from source
 
 Ideas/advice/etc welcome
 
 thanks,
 Bruce
 
 
 -
 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]



Jasper throws ExceptionInInitializerError?!

2005-04-01 Thread Ruth, Brice
Good morning,
 
I am migrating an automated build process from a Windows 2K system to a
RedHat EL 3 system, with some trouble. When I run a particular build via
Ant, that uses the JSP precompiling task (jasper2), it fails, but
somehow, not immediately. When I go into the output or destination
directory for the jasper task, the first .java file is created ... it
bombs out, though, at the place in the JSP where the Struts html:html
tag is first encountered.
 
What's more frustrating, is that on the RHEL3 system, I have tomcat4 and
tomcat5 installed (4.1.31 and 5.0.30). When I provide a tomcat.home
property that points to Tomcat4 (so the common/lib JARs from tomcat4 are
used), it builds fine. When I specify a tomcat.home pointing to tomcat5,
it fails. 
 
The Tomcat packages were installed from the JPackage project and are
running against IBM's 1.4.2 JDK (Intel/x86).
 
I've spent many hours on this, tried a variety of things, all with no
success. It seems that either (a) something is missing from a CLASSPATH
or (b) there is a conflict somehow. Note, the project (with the same
build.xml file) runs just fine on our local systems ... my local
development platform is a dual G5 (Mac) w/ Tomcat 5.0.28 - no problems
here. We also use the MyEclipse plug-in to Eclipse which pre-compiles
JSPs in the background for syntax checking, and it doesn't have any
problem with the project configuration. Moreover, on the Win 2K box,
this was all working fine, albeit compiling for a Tomcat4 target, not
Tomcat5.
 
I am at my wits end here. Any help or pointers would be most
appreciated.
 
Here's the error from the Ant build:
 
jspc:
 [copy] Copying 1 file to
/opt/build/checkout/Imagebank/WebRoot/WEB-INF
  [jasper2] log4j:WARN No appenders could be found for logger
(org.apache.jasper.compiler.JspRuntimeContext).
  [jasper2] log4j:WARN Please initialize the log4j system properly.
 
BUILD FAILED
/opt/build/build-Imagebank.xml:9: The following error occurred while
executing this line:
/opt/build/checkout/Imagebank/build.xml:201:
java.lang.ExceptionInInitializerError
 
I can turn on the debugging output for Ant if more verbosity is
necessary.
 
p.s. Another project builds just fine on this platform, against tomcat5,
using the same frameworks (Struts, etc.).
 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
 
 


RE: Jasper throws ExceptionInInitializerError?!

2005-04-01 Thread Ruth, Brice
One thing I forgot to mention - when I do turn on debug for Ant, the
root cause that's shown is a NullPointerException. 

java.lang.ExceptionInInitializerError
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at
org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.class$(ELHtmlTagBeanIn
fo.java:88)
at
org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.getPropertyDescriptors
(ELHtmlTagBeanInfo.java:88)
at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:477)
at java.beans.Introspector.getBeanInfo(Introspector.java:390)
at java.beans.Introspector.getBeanInfo(Introspector.java:159)
at
org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.jav
a:3684)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(G
enerator.java:2102)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav
a:1583)
at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
...
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResou
rces.java:577)
at
org.apache.struts.taglib.html.HtmlTag.clinit(HtmlTag.java:96)

Googling on getMessageResources and NullPointerException gets me a bunch
of hits about Struts not being configured right, etc. Basically, that
Struts can't find the Resources bundle configured in struts-config.xml.

Yet, if that were truly a config problem, then it wouldn't work when
compiling against Tomcat4, right? And it wouldn't compile correctly on
my G5 w/ Tomcat 5.0.28, right? That's my train of thought, at least ...

I've gone through the source now, starting with ELHtmlTagBeanInfo as
well as MessageResources.getMessageResources - stepping back through
other source as needed, and I haven't come across anything that would
appear to be a smoking gun.

Please advise!

Best,
Brice Ruth

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 11:21 AM
To: tomcat-user@jakarta.apache.org
Subject: Jasper throws ExceptionInInitializerError?!

Good morning,
 
I am migrating an automated build process from a Windows 2K system to a
RedHat EL 3 system, with some trouble. When I run a particular build via
Ant, that uses the JSP precompiling task (jasper2), it fails, but
somehow, not immediately. When I go into the output or destination
directory for the jasper task, the first .java file is created ... it
bombs out, though, at the place in the JSP where the Struts html:html
tag is first encountered.
 
What's more frustrating, is that on the RHEL3 system, I have tomcat4 and
tomcat5 installed (4.1.31 and 5.0.30). When I provide a tomcat.home
property that points to Tomcat4 (so the common/lib JARs from tomcat4 are
used), it builds fine. When I specify a tomcat.home pointing to tomcat5,
it fails. 
 
The Tomcat packages were installed from the JPackage project and are
running against IBM's 1.4.2 JDK (Intel/x86).
 
I've spent many hours on this, tried a variety of things, all with no
success. It seems that either (a) something is missing from a CLASSPATH
or (b) there is a conflict somehow. Note, the project (with the same
build.xml file) runs just fine on our local systems ... my local
development platform is a dual G5 (Mac) w/ Tomcat 5.0.28 - no problems
here. We also use the MyEclipse plug-in to Eclipse which pre-compiles
JSPs in the background for syntax checking, and it doesn't have any
problem with the project configuration. Moreover, on the Win 2K box,
this was all working fine, albeit compiling for a Tomcat4 target, not
Tomcat5.
 
I am at my wits end here. Any help or pointers would be most
appreciated.
 
Here's the error from the Ant build:
 
jspc:
 [copy] Copying 1 file to
/opt/build/checkout/Imagebank/WebRoot/WEB-INF
  [jasper2] log4j:WARN No appenders could be found for logger
(org.apache.jasper.compiler.JspRuntimeContext).
  [jasper2] log4j:WARN Please initialize the log4j system properly.
 
BUILD FAILED
/opt/build/build-Imagebank.xml:9: The following error occurred while
executing this line:
/opt/build/checkout/Imagebank/build.xml:201:
java.lang.ExceptionInInitializerError
 
I can turn on the debugging output for Ant if more verbosity is
necessary.
 
p.s. Another project builds just fine on this platform, against tomcat5,
using the same frameworks (Struts, etc.).
 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
 
 

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



Configuring Manager for different Virtual Hosts

2005-04-01 Thread John B. Moore
I know I saw the info on this topic somewhere, but for the life of me, I 
can not relocate it.. (can not come up with the magic search strings... 
I spent hours trying different searches...)  

Task: I am trying to configure the Manager tool to manage different 
virtual hosts on a webserver  (Apache - Tomcat 4.1.29) so that I can 
restart a single webapplication when I make changes.

I have various subdirectories under webapps that are configured as 
separate hosts and contexts

i.e. /webapps/someapp/
In that directory I have a web application and I want the setup  the 
Manager for stopping and starting this app..

Using the example for the localhost context I saw the alias
Alias /usr/local/tomcat/webapps/../server/webapps/manager
..along with all the related settings...
Since my webapp is in  /usr/local/tomcat/webapps/someapp/
I tried..
Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager
.. along with related settings...  No joy.. it dropped the first ../ 
and still can not track to that alias directory..

So am I chasing my tail..G   And/or can someone point me to that 
phantom discusson on setting up the manager for other host/context/ 
subdirectories...

Thanks...
John...


Re: Webdav Webfolder issue when container security enabled

2005-04-01 Thread Mark Thomas
Put together some full step-by-step instructions (from a clean install 
of 4.1.x or 5.5.x) and I'll take another look.

Mark
Fernando Salazar de Paz wrote:
Another thing
I have problems using tcpmon from Axis. Index Out of Bounds exceptions
when I put the files, and so on.
I have used ethereal to sniff network traffic.
-
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]


Masking JSP URL

2005-04-01 Thread John Lindley
Hi all, I have what seems to be a straighforward need, but I have not yet been 
able to accomplish
it. I am running Apache 2.0.52, Tomcat 5.0.28, mod_jk2, on Windows Server 2003. 
 Everything seems
to be running fine, but I want to be able to hide, mask, map, whatever, the URL 
to the jsp pages.
Here is my workers2.properties file: 

Code: 

[shm] 
info=Scoreboard. Requried for reconfiguration and status with multiprocess 
servers. 
file=anon 

# Defines a load balancer named lb. Use even if you only have one machine. 
[lb:lb] 

# Example socket channel, override port and host. 
[channel.socket:localhost:8009] 
port=8009 
host=127.0.0.1 

# define the worker 
[ajp13:localhost:8009] 
channel=channel.socket:localhost:8009 
group=lb 

# Map the Tomcat webapp to the Web server uri space 
[uri:/appname/*] 
group=lb 

[status:] 
info=Status worker, displays runtime information 

[uri:/jkstatus/*] 
info=The Tomcat /jkstatus handler 
group=status: 
 


I setup an alias in the httpd.conf file: 

Code: 

Alias /standalone/ D:/Program Files/Apache
Group/Tomcat5.0.28/webapps/appname/jsp/usr/standalone/ 

Directory D:/Program Files/Apache 
Group/Tomcat5.0.28/webapps/appname/jsp/usr/standalone 
Options Indexes MultiViews 
AllowOverride None 
Order allow,deny 
Allow from all 
/Directory 
 


So, if I enter http: //ipaddress/appname/jsp/usr/standalone/file.jsp, the file 
loads and is
properly passed to Tomcat. 

If I enter http: //ipaddress/standalone/file.jsp, the file loads but is not 
passed to Tomcat. 

I don't want my users seeing the long, ugly URL. What is the best/easiest way 
to accomplish this?
Any help is greatly appreciated! 

John



__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com


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



RE: Jasper throws ExceptionInInitializerError?!

2005-04-01 Thread Ruth, Brice
More info.

Finally got Eclipse to attach to the Ant build process. Now, I find that
the root problem (after stepping through a few levels) is a
ClassNotFoundException for
org.apache.struts.util.PropertyMessageResourcesFactory.

How odd ... yet against tomcat4, this works fine, but tomcat5, it fails.

What the heck?! Is this a classloader issue?! 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 11:57 AM
To: Tomcat Users List
Subject: RE: Jasper throws ExceptionInInitializerError?!

One thing I forgot to mention - when I do turn on debug for Ant, the
root cause that's shown is a NullPointerException. 

java.lang.ExceptionInInitializerError
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at
org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.class$(ELHtmlTagBeanIn
fo.java:88)
at
org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.getPropertyDescriptors
(ELHtmlTagBeanInfo.java:88)
at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:477)
at java.beans.Introspector.getBeanInfo(Introspector.java:390)
at java.beans.Introspector.getBeanInfo(Introspector.java:159)
at
org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.jav
a:3684)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(G
enerator.java:2102)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav
a:1583)
at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
...
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResou
rces.java:577)
at
org.apache.struts.taglib.html.HtmlTag.clinit(HtmlTag.java:96)

Googling on getMessageResources and NullPointerException gets me a bunch
of hits about Struts not being configured right, etc. Basically, that
Struts can't find the Resources bundle configured in struts-config.xml.

Yet, if that were truly a config problem, then it wouldn't work when
compiling against Tomcat4, right? And it wouldn't compile correctly on
my G5 w/ Tomcat 5.0.28, right? That's my train of thought, at least ...

I've gone through the source now, starting with ELHtmlTagBeanInfo as
well as MessageResources.getMessageResources - stepping back through
other source as needed, and I haven't come across anything that would
appear to be a smoking gun.

Please advise!

Best,
Brice Ruth

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Friday, April 01, 2005 11:21 AM
To: tomcat-user@jakarta.apache.org
Subject: Jasper throws ExceptionInInitializerError?!

Good morning,
 
I am migrating an automated build process from a Windows 2K system to a
RedHat EL 3 system, with some trouble. When I run a particular build via
Ant, that uses the JSP precompiling task (jasper2), it fails, but
somehow, not immediately. When I go into the output or destination
directory for the jasper task, the first .java file is created ... it
bombs out, though, at the place in the JSP where the Struts html:html
tag is first encountered.
 
What's more frustrating, is that on the RHEL3 system, I have tomcat4 and
tomcat5 installed (4.1.31 and 5.0.30). When I provide a tomcat.home
property that points to Tomcat4 (so the common/lib JARs from tomcat4 are
used), it builds fine. When I specify a tomcat.home pointing to tomcat5,
it fails. 
 
The Tomcat packages were installed from the JPackage project and are
running against IBM's 1.4.2 JDK (Intel/x86).
 
I've spent many hours on this, tried a variety of things, all with no
success. It seems that either (a) something is missing from a CLASSPATH
or (b) there is a conflict somehow. Note, the project (with the same
build.xml file) runs just fine on our local systems ... my local
development platform is a dual G5 (Mac) w/ Tomcat 5.0.28 - no problems
here. We also use the MyEclipse plug-in to Eclipse which pre-compiles
JSPs in the background for syntax checking, and it doesn't have any
problem with the project configuration. Moreover, on the Win 2K box,
this was all working fine, albeit compiling for a Tomcat4 target, not
Tomcat5.
 
I am at my wits end here. Any help or pointers would be most
appreciated.
 
Here's the error from the Ant build:
 
jspc:
 [copy] Copying 1 file to
/opt/build/checkout/Imagebank/WebRoot/WEB-INF
  [jasper2] log4j:WARN No appenders could be found for logger
(org.apache.jasper.compiler.JspRuntimeContext).
  [jasper2] log4j:WARN Please initialize the log4j system properly.
 
BUILD FAILED
/opt/build/build-Imagebank.xml:9: The following error occurred while
executing this line:
/opt/build/checkout/Imagebank/build.xml:201:
java.lang.ExceptionInInitializerError
 
I can turn on the debugging output for Ant if more verbosity is
necessary.
 
p.s. Another project builds just fine on this platform, against tomcat5,
using the same frameworks (Struts, etc.).
 
Brice D. Ruth

Re: Jasper throws ExceptionInInitializerError?!

2005-04-01 Thread Tim Funk
It could be conflicting versions of struts.
-Tim
Ruth, Brice wrote:
More info.
Finally got Eclipse to attach to the Ant build process. Now, I find that
the root problem (after stepping through a few levels) is a
ClassNotFoundException for
org.apache.struts.util.PropertyMessageResourcesFactory.
How odd ... yet against tomcat4, this works fine, but tomcat5, it fails.
What the heck?! Is this a classloader issue?! 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 11:57 AM
To: Tomcat Users List
Subject: RE: Jasper throws ExceptionInInitializerError?!

One thing I forgot to mention - when I do turn on debug for Ant, the
root cause that's shown is a NullPointerException. 

java.lang.ExceptionInInitializerError
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at
org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.class$(ELHtmlTagBeanIn
fo.java:88)
at
org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.getPropertyDescriptors
(ELHtmlTagBeanInfo.java:88)
at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:477)
at java.beans.Introspector.getBeanInfo(Introspector.java:390)
at java.beans.Introspector.getBeanInfo(Introspector.java:159)
at
org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.jav
a:3684)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(G
enerator.java:2102)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav
a:1583)
at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
...
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResou
rces.java:577)
at
org.apache.struts.taglib.html.HtmlTag.clinit(HtmlTag.java:96)
Googling on getMessageResources and NullPointerException gets me a bunch
of hits about Struts not being configured right, etc. Basically, that
Struts can't find the Resources bundle configured in struts-config.xml.
Yet, if that were truly a config problem, then it wouldn't work when
compiling against Tomcat4, right? And it wouldn't compile correctly on
my G5 w/ Tomcat 5.0.28, right? That's my train of thought, at least ...
I've gone through the source now, starting with ELHtmlTagBeanInfo as
well as MessageResources.getMessageResources - stepping back through
other source as needed, and I haven't come across anything that would
appear to be a smoking gun.
Please advise!
Best,
Brice Ruth
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Friday, April 01, 2005 11:21 AM
To: tomcat-user@jakarta.apache.org
Subject: Jasper throws ExceptionInInitializerError?!
Good morning,
 
I am migrating an automated build process from a Windows 2K system to a
RedHat EL 3 system, with some trouble. When I run a particular build via
Ant, that uses the JSP precompiling task (jasper2), it fails, but
somehow, not immediately. When I go into the output or destination
directory for the jasper task, the first .java file is created ... it
bombs out, though, at the place in the JSP where the Struts html:html
tag is first encountered.
 
What's more frustrating, is that on the RHEL3 system, I have tomcat4 and
tomcat5 installed (4.1.31 and 5.0.30). When I provide a tomcat.home
property that points to Tomcat4 (so the common/lib JARs from tomcat4 are
used), it builds fine. When I specify a tomcat.home pointing to tomcat5,
it fails. 
 
The Tomcat packages were installed from the JPackage project and are
running against IBM's 1.4.2 JDK (Intel/x86).
 
I've spent many hours on this, tried a variety of things, all with no
success. It seems that either (a) something is missing from a CLASSPATH
or (b) there is a conflict somehow. Note, the project (with the same
build.xml file) runs just fine on our local systems ... my local
development platform is a dual G5 (Mac) w/ Tomcat 5.0.28 - no problems
here. We also use the MyEclipse plug-in to Eclipse which pre-compiles
JSPs in the background for syntax checking, and it doesn't have any
problem with the project configuration. Moreover, on the Win 2K box,
this was all working fine, albeit compiling for a Tomcat4 target, not
Tomcat5.
 
I am at my wits end here. Any help or pointers would be most
appreciated.
 
Here's the error from the Ant build:
 
jspc:
 [copy] Copying 1 file to
/opt/build/checkout/Imagebank/WebRoot/WEB-INF
  [jasper2] log4j:WARN No appenders could be found for logger
(org.apache.jasper.compiler.JspRuntimeContext).
  [jasper2] log4j:WARN Please initialize the log4j system properly.
 
BUILD FAILED
/opt/build/build-Imagebank.xml:9: The following error occurred while
executing this line:
/opt/build/checkout/Imagebank/build.xml:201:
java.lang.ExceptionInInitializerError
 
I can turn on the debugging output for Ant if more verbosity is
necessary.
 
p.s. Another project builds just fine on this platform, against tomcat5,

Cannot get a connection, pool exhausted

2005-04-01 Thread Koller Krisztian
Hi All!

I'm using Tomcat 5.5 and Mysql 4.1 for an online survey web-application. (on
Fedora Core 3)
After some user outfilled the survey, Tomcat hangs with
org.apache.tomcat.dbcp.dbcp.SQLNestedException:  Cannot get a connection,
pool exhausted message. 
I'm always close the all rs, stmt and conn components (How described in
doc).

What may be the problem?

Can I query the connection pool of Tomcat? (how many active connection has
it?)

Thanx,
Chris

-- 
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.3 - Release Date: 2004.12.21.
 


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



Tomcat SSL Issues

2005-04-01 Thread LGM
Hello List,

I am trying to configure tomcat for SSL on Red Hat 8.0 and I run the
keytool script
to obtain a CSR for my Certificate Authority. I am getting the
following error:

#$JAVA_HOME/bin/keytool -certreq -keyalg RSA -alias tomcat -file
/root/certreq.csr

keytool error: java.security.cert.CertificateException: Error decoding
X.509 certificate: com.baltimore.jcrypto.coders.CoderException:
com.baltimore.jcrypto.asn1.ASN1Integer;
com.baltimore.jcrypto.asn1.ASN1Exception:
com.baltimore.jcrypto.asn1.ASN1Integer; java.lang.ClassCastException:
com.baltimore.jcrypto.asn1.ASN1Integer

Does anyone have any ideas what's going on here? Thanks in advance!!

Luciano M.

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



RE: Jasper throws ExceptionInInitializerError?!

2005-04-01 Thread Ruth, Brice
OK, I searched the entire system for struts JAR files. The only
difference I found betw. this project and the one that works is that
WEB-INF/lib contained struts-legacy.jar. So, I moved that out, tried
again, same problem. I checked the struts.jar and struts-el.jar files
for an instance of PropertyMessageResourcesFactory and found that
struts.jar did in fact contain this.

I'm at a loss. The class is there, the JAR files in WEB-INF/lib are
included in the jspc.classpath for the jasper taskdef. And I keep coming
back to the fact that this works against the tomcat4 libs and not
against the tomcat5 libs! Here's my taskdef:

taskdef classname=org.apache.jasper.JspC
name=jasper2
classpath id=jspc.classpath
fileset
dir=${tomcat.home}/common/lib
include name=*jasper*.jar/
include name=*jsp*.jar/
include name=*servlet*.jar/
include
name=*commons-el*.jar/
/fileset
fileset dir=${webroot}/WEB-INF/lib
include name=*.jar/
/fileset
pathelement path=${build.dir}/
pathelement
location=${env.JAVA_HOME}/lib/tools.jar/
/classpath
/taskdef

In the fileset for /common/lib, I was including *.jar, but I thought
that something in there may be conflicting, so I enumerated just the
ones I figured it needed. You can see, *.jar from WEB-INF/lib is
included in the CLASSPATH. As mentioned previously, the JDK is IBM's,
1.4.2 - so JAVA_HOME is /usr/lib/jvm/java-1.4.2-ibm.

Help?!

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 12:36 PM
To: Tomcat Users List
Subject: Re: Jasper throws ExceptionInInitializerError?!

It could be conflicting versions of struts.

-Tim

Ruth, Brice wrote:

 More info.
 
 Finally got Eclipse to attach to the Ant build process. Now, I find 
 that the root problem (after stepping through a few levels) is a 
 ClassNotFoundException for 
 org.apache.struts.util.PropertyMessageResourcesFactory.
 
 How odd ... yet against tomcat4, this works fine, but tomcat5, it
fails.
 
 What the heck?! Is this a classloader issue?! 
 
 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 01, 2005 11:57 AM
 To: Tomcat Users List
 Subject: RE: Jasper throws ExceptionInInitializerError?!
 
 One thing I forgot to mention - when I do turn on debug for Ant, the 
 root cause that's shown is a NullPointerException.
 
 java.lang.ExceptionInInitializerError
 at java.lang.Class.forName1(Native Method)
 at java.lang.Class.forName(Class.java:180)
 at
 org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.class$(ELHtmlTagBean
 In
 fo.java:88)
 at
 org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.getPropertyDescripto
 rs
 (ELHtmlTagBeanInfo.java:88)
 at
 java.beans.Introspector.getTargetPropertyInfo(Introspector.java:477)
 at java.beans.Introspector.getBeanInfo(Introspector.java:390)
 at java.beans.Introspector.getBeanInfo(Introspector.java:159)
 at
 org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.j
 av
 a:3684)
 at
 org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo
 (G
 enerator.java:2102)
 at
 org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.j
 av
 a:1583)
 at
 org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
 ...
 Caused by: java.lang.NullPointerException
 at
 org.apache.struts.util.MessageResources.getMessageResources(MessageRes
 ou
 rces.java:577)
 at
 org.apache.struts.taglib.html.HtmlTag.clinit(HtmlTag.java:96)
 
 Googling on getMessageResources and NullPointerException gets me a 
 bunch of hits about Struts not being configured right, etc. Basically,

 that Struts can't find the Resources bundle configured in
struts-config.xml.
 
 Yet, if that were truly a config problem, then it wouldn't work when 
 compiling against Tomcat4, right? And it wouldn't compile correctly on

 my G5 w/ Tomcat 5.0.28, right? That's my train of thought, at least
...
 
 I've gone through the source now, starting with ELHtmlTagBeanInfo as 
 well as MessageResources.getMessageResources - stepping back through 
 other source as needed, and I haven't come across anything that would 
 appear to be a smoking gun.
 
 Please advise!
 
 Best,
 Brice Ruth
 
 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 01, 2005 11:21 AM
 To: tomcat-user@jakarta.apache.org
 Subject: Jasper throws ExceptionInInitializerError?!
 
 Good morning,
  
 I am migrating an automated build process from a Windows 2K system to 

Debugging tomcat startup

2005-04-01 Thread Sasha Borodin
I'd like to solicit suggestions for debugging Tomcat startup - specifically
various class initializations.

I've written a custom Realm implementation; in it, I use some data access
classes which use iBatis; these classes work great when used in a web
application (all jars residing in the apps WEB-INF/lib); but I'm getting
errors when these classes are initialized from jars in the server/lib
directory at startup.

If you have suggestions for how to debug the startup, especially from an IDE
like Idea, please post.  Also, if there are guidelines for where to place
certain types of jars (common vs. server), please post a link.  Right now
I've got my jdbc jars in common/lib, and my custom Realm and data access
classes (including ibatis related jars) in server/lib.

Thanks for your help,

-Sasha Borodin



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



Upgrading Tomcat from 4.1.24 to 5.0.18 on Solaris 9 Platform

2005-04-01 Thread Linnabary, Paul
I'm a new user to the tomcat-user group. I installed Tomcat 4.1.24 on a
Solaris 9 platform last January.  I am doing an Arbortext application
upgrade on Monday.  I am being asked to upgrade my Tomcat to version
5.0.18.  I have downloaded the package from the Apache archives, but I
don't have a clue as how to properly upgrade Tomcat to the newer version
as I can't find any documentation.  Thanks!  Paul

Paul E. Linnabary
Systems Design and Integration Specialist
The Boeing Company
Wichita, KS  67210
316-526-7367

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



RE: Masking JSP URL

2005-04-01 Thread Ruth, Brice
I don't think this will work. Apache passes the URI to Tomcat via JK2,
and unless JK2 can mungle the actual URI, Tomcat won't be able to figure
out what JSP you're looking for if you use a shortened path.

We use the Struts framework, which nicely hides the location of JSP
files, or any particular file structure at all, from the URI that is
used.

Cheers,
Brice 

-Original Message-
From: John Lindley [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 12:26 PM
To: tomcat-user@jakarta.apache.org
Subject: Masking JSP URL

Hi all, I have what seems to be a straighforward need, but I have not
yet been able to accomplish it. I am running Apache 2.0.52, Tomcat
5.0.28, mod_jk2, on Windows Server 2003.  Everything seems to be running
fine, but I want to be able to hide, mask, map, whatever, the URL to the
jsp pages.
Here is my workers2.properties file: 

Code: 

[shm]
info=Scoreboard. Requried for reconfiguration and status with
multiprocess servers. 
file=anon 

# Defines a load balancer named lb. Use even if you only have one
machine. 
[lb:lb] 

# Example socket channel, override port and host. 
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1 

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb 

# Map the Tomcat webapp to the Web server uri space [uri:/appname/*]
group=lb 

[status:]
info=Status worker, displays runtime information 

[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status: 
 


I setup an alias in the httpd.conf file: 

Code: 

Alias /standalone/ D:/Program Files/Apache
Group/Tomcat5.0.28/webapps/appname/jsp/usr/standalone/ 

Directory D:/Program Files/Apache
Group/Tomcat5.0.28/webapps/appname/jsp/usr/standalone 
Options Indexes MultiViews 
AllowOverride None 
Order allow,deny 
Allow from all
/Directory 
 


So, if I enter http: //ipaddress/appname/jsp/usr/standalone/file.jsp,
the file loads and is
properly passed to Tomcat. 

If I enter http: //ipaddress/standalone/file.jsp, the file loads but is
not passed to Tomcat. 

I don't want my users seeing the long, ugly URL. What is the
best/easiest way to accomplish this?
Any help is greatly appreciated! 

John



__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.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]



Installation problem

2005-04-01 Thread Panagiotis Karvounis
Hi!

I am trying to install Tomcat latest version but I have a problem.
During installation a problem about jvm.dll occurs!
Can you help me?

Thanks

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



Re: Installation problem

2005-04-01 Thread edencane
Hi,

01Apr2005 @ 22:24 Panagiotis Karvounis thusly spake
 I am trying to install Tomcat latest version but I have a problem.
 During installation a problem about jvm.dll occurs!
 Can you help me?

Try uninstalling tomcat first.
If you already have a tomcat installed, you will get this message.
Remove the other tomcats, or remove the existing 'jvm.dll' file.

hth,
Luke

--
   /  /  _
  /_ /_/ / /=
  0421 276 282

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



Tomcat 3 and Tomcat 5 on JDK 1.3 and JDK 1.5 respectively

2005-04-01 Thread Fredrik Liden
Does anyone know if this configuration is possible on one computer?

The reason for the two different JDKs is that I'm guessing that Tomcat
3.23 isn't compatible with jdk 1.5 or even 1.4 or is it? So I guess the
question is if it's in Catalinas startup config files it's possible to
specify different JAVA_HOMEs.

Anyone have any experience with running different versions like this?
Any input would be appreciated.

Fredrik

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



tomcat 5.5/win loading external image files

2005-04-01 Thread edwardeguard-cosita
i need to load a bunch of image files located outside my exploded war
file.  for example, say that the images live here 
 
|---c:\myimages
|---\app
|-\promotions
|-\images
 
 my app is under 
 
|---c:\tomcat5.5
|--\webapps
|\myapp.  
 
the img links are written out dynamically based on an init-param in the
web.xml  javabeans.   the result is that i can get a valid path to the
image resouce looking at the html, but cannot actually load the image. 
 
does anyone know if that's possible on the windows platform (win2k
server)?  
 
 
thanks


Re: tomcat 5.5/win loading external image files

2005-04-01 Thread Parsons Technical Services
Tomcat cannot serve up files outside the root of the app. To do what you 
want requires a work around that has been discussed and debated on this list 
several times. If this is what you have to have, then write a servlet that 
responds to a pattern setup for the images 
(http://www.yoursite.com/yourapp/imagefiles/mypic.jpg). Map the servlet to 
answer for any /imagefiles/* request. Then have the servlet parse the file 
name, read from disk (the directory you want) and serve the file out in 
response to the request.

Other options include using a database to store the images or putting the 
images in the app. One other suggestion was to have an app just for images.

It really is just what fits your needs the best and the pros and cons of 
each. IE You can't move this app to a Linux box without a rewrite.

Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 01, 2005 10:23 PM
Subject: tomcat 5.5/win  loading external image files


i need to load a bunch of image files located outside my exploded war
file.  for example, say that the images live here
|---c:\myimages
|---\app
|-\promotions
|-\images
 my app is under
|---c:\tomcat5.5
|--\webapps
|\myapp.
the img links are written out dynamically based on an init-param in the
web.xml  javabeans.   the result is that i can get a valid path to the
image resouce looking at the html, but cannot actually load the image.
does anyone know if that's possible on the windows platform (win2k
server)?
thanks

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


Re: Cannot get a connection, pool exhausted

2005-04-01 Thread Parsons Technical Services
Try adding the abandoned connection recovery settings and have it log them. 
If they show in your log as abandoned, then they are not getting closed. 
Even if you wrote the code as recommended, I have found that it does not 
always work. I am still chasing the exact details of this and when I get a 
handle on it I will weigh in on it. I think it has to do with the exact 
ordering in the try catches. For now add these and see what you get. The 
other questions is if you are getting more request than you have connections 
to handle, and how long the code holds the connection. If you are grabbing 
the connection and holding it for a long time in the code, it will not be 
considered to be abandoned.

Doug
- Original Message - 
From: Koller Krisztian [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 01, 2005 1:39 PM
Subject: Cannot get a connection, pool exhausted


Hi All!
I'm using Tomcat 5.5 and Mysql 4.1 for an online survey web-application. 
(on
Fedora Core 3)
After some user outfilled the survey, Tomcat hangs with
org.apache.tomcat.dbcp.dbcp.SQLNestedException:  Cannot get a connection,
pool exhausted message.
I'm always close the all rs, stmt and conn components (How described in
doc).

What may be the problem?
Can I query the connection pool of Tomcat? (how many active connection has
it?)
Thanx,
Chris
--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.3 - Release Date: 2004.12.21.

-
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 5.5/win loading external image files

2005-04-01 Thread Anto Paul
On Apr 2, 2005 8:53 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 i need to load a bunch of image files located outside my exploded war
 file.  for example, say that the images live here
 
 |---c:\myimages
 |---\app
 |-\promotions
 |-\images
 
  my app is under
 
 |---c:\tomcat5.5
 |--\webapps
 |\myapp.
 
 the img links are written out dynamically based on an init-param in the
 web.xml  javabeans.   the result is that i can get a valid path to the
 image resouce looking at the html, but cannot actually load the image.
 
 does anyone know if that's possible on the windows platform (win2k
 server)?
 
 thanks
 
 

A relative link will work if it is inside the web application root. 
If you want to load external images write a Servlet to which the
path or name of the image file is passed as an argument and the
Servlet reads the file using ServletContext.getResourceAsStream() and
write it to the OutputStream returned by the
response.getOutputStream(). Dont forget to set the appropriate MIME
type for content type.

-- 
Anto Paul
Benchmark Softech
www.benchmarksoft.com

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



Re: Debugging tomcat startup

2005-04-01 Thread Anto Paul
On Apr 2, 2005 1:27 AM, Sasha Borodin [EMAIL PROTECTED] wrote:
 I'd like to solicit suggestions for debugging Tomcat startup - specifically
 various class initializations.
 
 I've written a custom Realm implementation; in it, I use some data access
 classes which use iBatis; these classes work great when used in a web
 application (all jars residing in the apps WEB-INF/lib); but I'm getting
 errors when these classes are initialized from jars in the server/lib
 directory at startup.
 
 If you have suggestions for how to debug the startup, especially from an IDE
 like Idea, please post.  Also, if there are guidelines for where to place
 certain types of jars (common vs. server), please post a link.  Right now
 I've got my jdbc jars in common/lib, and my custom Realm and data access
 classes (including ibatis related jars) in server/lib.
 
 Thanks for your help,
 
 -Sasha Borodin
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Read the classloader docs.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html

What is the motive to place jars in server/lib. These jars are not
visible to applications.

-- 
Anto Paul
Benchmark Softech
www.benchmarksoft.com

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



Re: Configuring Manager for different Virtual Hosts

2005-04-01 Thread Anto Paul
On Apr 1, 2005 11:38 PM, John B. Moore [EMAIL PROTECTED] wrote:
 I know I saw the info on this topic somewhere, but for the life of me, I
 can not relocate it.. (can not come up with the magic search strings...
 I spent hours trying different searches...)
 
 Task: I am trying to configure the Manager tool to manage different
 virtual hosts on a webserver  (Apache - Tomcat 4.1.29) so that I can
 restart a single webapplication when I make changes.
 
 I have various subdirectories under webapps that are configured as
 separate hosts and contexts
 
 i.e. /webapps/someapp/
 
 In that directory I have a web application and I want the setup  the
 Manager for stopping and starting this app..
 
 Using the example for the localhost context I saw the alias
 
 Alias /usr/local/tomcat/webapps/../server/webapps/manager
 
 ..along with all the related settings...
 
 Since my webapp is in  /usr/local/tomcat/webapps/someapp/
 
 I tried..
 
 Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager
 
 .. along with related settings...  No joy.. it dropped the first ../
 and still can not track to that alias directory..
 
 So am I chasing my tail..G   And/or can someone point me to that
 phantom discusson on setting up the manager for other host/context/
 subdirectories...
 
 Thanks...
 
 John...
 
 

I have a single line to do it in the VirtualHost
JkMount /manager/* a9
First configure manager application as specified in the Manager how to.
There are some config steps in Tomcat if you have different
CATALINA_BASE for each web application.

-- 
Anto Paul
Benchmark Softech
www.benchmarksoft.com

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