tomcat not starting

2010-07-08 Thread Tapas Mishra
I am surprised .I installed Tomcat and when ever I am trying to access
http://192.168.1.5:9090
it is not starting.

Here are the error logs which say port 9090 is already in use where as
I have just rebooted the server.
http://pastebin.com/7t9q9AJv
http://pastebin.com/fUeR1ASj
http://pastebin.com/i7mEubXf
is there any clue as what might have happned.

-- 
Tapas
http://mightydreams.blogspot.com
http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



How to implement a webapp class loader

2010-07-08 Thread Goren Il



I would like to implement my on webapp class loader, that will look for jars in 
specific places (to be defined in the configuration).
I would like to inherit the behavior of the default class loader of the webapp, 
so I can not use a regular ClassLoader.
I considered inheriting from WebappClassLoader.
Is there a simpler way?
Is there some documentation how to create such a class loader?

Thanks
G.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat not starting

2010-07-08 Thread Pid
On 8 Jul 2010, at 08:03, Tapas Mishra mightydre...@gmail.com wrote:

 I am surprised .I installed Tomcat and when ever I am trying to access
 http://192.168.1.5:9090
 it is not starting.
 
 Here are the error logs which say port 9090 is already in use where as
 I have just rebooted the server.
 http://pastebin.com/7t9q9AJv
 http://pastebin.com/fUeR1ASj
 http://pastebin.com/i7mEubXf
 is there any clue as what might have happned.

I can't get pastebin to work on this device.

Which exact version of Tomcat, JVM, OS are you using.

Please post your server.xml with all comments and passwords removed.


p


 
 -- 
 Tapas
 http://mightydreams.blogspot.com
 http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-08 Thread Goren Il


 Thanks Chris for your response.
It seems that you are thinking in the same direction that we had in mind.
About your suggestion to create a new class loader - this is the direction that 
we started checking.
We considered the following:
1. Creating a new class, that extends WebappClassLoader.
2. Create an instance of this class, and copy all the configuration from the 
wepassp's class loader. (Question to the forum - other than the URL's - what 
other properties should we copy)?
3. Add the extra directory to the URLs
4. Load the class by name, using the new class loader.

Will this work?
Is there some example code for that?
(BTW, we are using Tomcat 5.5, in case it matters).

About your last question - the webapp loads an XML from an external directory, 
which includes all configuration parameters.

Thanks
G.



On 07-Jul-10 22:36, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Goren,

On 7/6/2010 10:51 AM, Goren Il wrote:

  There are 2 issues (not in order of priority):
1. The steps are not straight forward, and may cause the system to stop
working (the customer should change the WAR suffix to zip, open it,
add the files and rename it back)

There isn't really a reason why the above shouldn't work.


2. When we provide a new version, we will replace the WAR and all the
changes are gone.

Fair enough, but the customer can re-install their plug-ins.

Another option is to implement your own ClassLoader that scans a
directory (such as /my/great/plugins) for JAR files and will load them
alongside your webapp's classes.

You'll either have to chain that ClassLoader into the standard webapp
ClassLoader provided by Tomcat for transparent class-loading by your
webapp, or write a wrapper for plug-in loading and execution by
explicitly managing and invoking that ClassLoader as necessary.

You should seriously consider how to implement security mechanisms when
loading classes that you do not provide yourself.


I would like my webapp to call an external class, which will be
provided (as a name) in an XML file at run time.

How does your webapp load this XML file if it isn't packaged in the WAR
file?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw011gACgkQ9CaO5/Lv0PAO9QCfRRfexlNsGjxh5pg2pHKlzbWC
XVEAoKaBL2jk5i10EIY2DDQt6wcP4vc/
=VS3H
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to implement a webapp class loader

2010-07-08 Thread Pid
On 8 Jul 2010, at 10:09, Goren Il gore...@hotmail.com wrote:

 
 
 I would like to implement my on webapp class loader, that will look for jars 
 in specific places (to be defined in the configuration).
 I would like to inherit the behavior of the default class loader of the 
 webapp, so I can not use a regular ClassLoader.
 I considered inheriting from WebappClassLoader.
 Is there a simpler way?
 Is there some documentation how to create such a class loader?

Tomcat is open source. The VirtualWebappClassLoader has already been mentioned 
in the other thread, you could just go and look it up.


p


 Thanks
 G.
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat not starting

2010-07-08 Thread Tapas Mishra
Hi thanks for your reply I have removed Tomcat from the server and re
installed it.
It is working now.

On Thu, Jul 8, 2010 at 2:46 PM, Pid p...@pidster.com wrote:
 On 8 Jul 2010, at 08:03, Tapas Mishra mightydre...@gmail.com wrote:

 I am surprised .I installed Tomcat and when ever I am trying to access
 http://192.168.1.5:9090
 it is not starting.

 Here are the error logs which say port 9090 is already in use where as
 I have just rebooted the server.
 http://pastebin.com/7t9q9AJv
 http://pastebin.com/fUeR1ASj
 http://pastebin.com/i7mEubXf
 is there any clue as what might have happned.

 I can't get pastebin to work on this device.

 Which exact version of Tomcat, JVM, OS are you using.

 Please post your server.xml with all comments and passwords removed.


 p



 --
 Tapas
 http://mightydreams.blogspot.com
 http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





-- 
Tapas
http://mightydreams.blogspot.com
http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



log4j

2010-07-08 Thread Kaushal Shriyan
Hi,

Is there a way to run log4j appender at a specified time?

log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/catalina.out
log4j.appender.R.DatePattern='.'-MM-dd
log4j.appender.R.layout=org.apache.log4j.PatternLayout

I have put the log4j.properties under /opt/tomcat0/common/classes

Please suggest.

Thanks and Regards

Kaushal

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: log4j

2010-07-08 Thread Pid
This would be a question for the log4j list, no?


p

On 8 Jul 2010, at 11:25, Kaushal Shriyan kaushalshri...@gmail.com wrote:

 Hi,
 
 Is there a way to run log4j appender at a specified time?
 
 log4j.rootLogger=INFO, R
 log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
 log4j.appender.R.File=${catalina.home}/logs/catalina.out
 log4j.appender.R.DatePattern='.'-MM-dd
 log4j.appender.R.layout=org.apache.log4j.PatternLayout
 
 I have put the log4j.properties under /opt/tomcat0/common/classes
 
 Please suggest.
 
 Thanks and Regards
 
 Kaushal
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



.jar file deploying fail

2010-07-08 Thread allensim

Hi,
I copy the .war file into the webapps directory under Tomcat:
TOMCAT_HOME/webapps/ 
But as I login to the manager page. The Running column shown fail.
How can I make it to become true?
Please advice.
http://old.nabble.com/file/p29108599/manager_undeploy.jpg 

Thanks in advance,
Allen


-- 
View this message in context: 
http://old.nabble.com/.jar-file-deploying-fail-tp29108599p29108599.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .jar file deploying fail

2010-07-08 Thread Mark Thomas
On 08/07/2010 16:49, allensim wrote:
 
 Hi,
 I copy the .war file into the webapps directory under Tomcat:
 TOMCAT_HOME/webapps/ 
 But as I login to the manager page. The Running column shown fail.
 How can I make it to become true?
 Please advice.
 http://old.nabble.com/file/p29108599/manager_undeploy.jpg 

And the logs say what?

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: .jar file deploying fail

2010-07-08 Thread Caldarale, Charles R
 From: allensim [mailto:allensi...@gmail.com]
 Subject: .jar file deploying fail
 
 How can I make it to become true?

As you've been told before, by providing us with useful information.  Start 
with the Tomcat version, the JVM version, the platform you're running on, and 
whatever is in the Tomcat logs related to the deployment of your webapp.

http://www.catb.org/~esr/faqs/smart-questions.html

 - Chuck


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


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .jar file deploying fail

2010-07-08 Thread allensim

Hi,
Where to see the log file. 
Sorry i am new in using tomcat. 
please guide me. 

Thanks in advance,
Allen
-- 
View this message in context: 
http://old.nabble.com/.jar-file-deploying-fail-tp29108599p2910.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .jar file deploying fail

2010-07-08 Thread Mikolaj Rydzewski

On 07/08/2010 06:10 PM, allensim wrote:

Where to see the log file.
Sorry i am new in using tomcat.
please guide me.
   
Probably somewhere in the directory tomcat is installed. Might depend on 
distribution you use. Be creative and look for them.



--
Mikolaj Rydzewskim...@ceti.pl


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .jar file deploying fail

2010-07-08 Thread Mark Thomas
On 08/07/2010 17:10, allensim wrote:
 
 Hi,
 Where to see the log file. 
 Sorry i am new in using tomcat. 
 please guide me. 

Try looking in the directory you installed Tomcat. Hint: look at the
names of each of the directories. One of them might just be relevant if
you are looking for logs

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: .jar file deploying fail

2010-07-08 Thread Caldarale, Charles R
 From: allensim [mailto:allensi...@gmail.com]
 Subject: Re: .jar file deploying fail
 
 Where to see the log file.
 Sorry i am new in using tomcat.
 please guide me.

Start by answering the questions you've repeatedly been asked:

1) Tomcat version?

2) JVM version?

3) Platform you're running on?

4) Where did you get the Tomcat you installed?

5) Where did you install it?

 - Chuck


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


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Required Help in tomcat performance optimization.

2010-07-08 Thread Harpreet singh Wadhwa
Hi,

I want to optimize the performance of tomcat.
Can anyone please point to some docs/wiki/direct answer.


Regards
Harpreet

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Required Help in tomcat performance optimization.

2010-07-08 Thread Caldarale, Charles R
 From: Harpreet singh Wadhwa [mailto:harpreetsingh.wad...@gmail.com]
 Subject: Required Help in tomcat performance optimization.
 
 I want to optimize the performance of tomcat.

You probably want to optimize the performance of your webapp first.

 Can anyone please point to some docs/wiki/direct answer.

Let's see what's in the FAQ:
http://wiki.apache.org/tomcat/FAQ/Performance_and_Monitoring

That wasn't too hard to find.

 - Chuck


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


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Connecting Tomcat to a database

2010-07-08 Thread Christian Bruckhoff

 Hi.

I need t connect Tomcat to a database, I want to use with ODE. Therefor, 
I changed the configuration decribed in [1] to



server.xml (inside the Host-Element):
--
Context path=/TestDB docBase=TestDB debug=5 reloadable=true 
crossContext=true

Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource7
 maxActive=100 maxIdle=30 maxWait=1
 username=test_dab password=moep 
driverClassName=com.mysql.jdbc.Driver

 url=jdbc:mysql://mysqlhost.uni-koblenz.de/TestDB/
/Context


ode-axis2.properties:
-
ode-axis2.db.mode=EXTERNAL
ode-axis2.db.ext.dataSource=java:comp/env/jdbc/TestDB

After I did this, Tomcat didn't work anymore. I even can't debug it, 
because the Tomcat window dissapears to fast.


Can you help me?

Greetz
Christian

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: SSL problem

2010-07-08 Thread Caldarale, Charles R
 From: Allen Razdow [mailto:araz...@truenum.com]
 Subject: SSL problem
 
 Using Tomcat 6.0.14 on an amazon EC2 server instance

Don't suppose you'd like to try this on a version that's a bit less than three 
years old?  Pretty pointless to debug on something that ancient.  Also, what 
JVM are you using with Tomcat?

 Running keytool -list on it reveals 3 entries:

Are you sure one of those is your Go Daddy certificate?  (Use the -v option 
with -list to display the details.)

 javax.net.ssl.SSLException: No available certificate or key 
 corresponds to the SSL cipher suites which are enabled.

What signature algorithms does -list -v show for the Go Daddy certificate?

 - Chuck


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


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Connecting Tomcat to a database

2010-07-08 Thread Caldarale, Charles R
 From: Christian Bruckhoff [mailto:christian.bruckh...@gmx.de]
 Subject: Connecting Tomcat to a database
 
 I need t connect Tomcat to a database

What version of Tomcat?  What JVM?  What platform are you running Tomcat on?

 server.xml (inside the Host-Element):
 --
 Context path=/TestDB docBase=TestDB debug=5 reloadable=true

Extremely bad practice to put Context elements in server.xml.  The proper 
location is in the webapp's META-INF/context.xml file.  When you do so, remove 
the path and docBase attributes, since they're not allowed when you have 
Context in a proper location.  Also, the debug attribute hasn't been used in 
years, so get rid of that as well.

 Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource7

What's that 7 hanging on the end?

 After I did this, Tomcat didn't work anymore. I even can't 
 debug it, because the Tomcat window dissapears to fast.

Look in the Tomcat logs.  Also start Tomcat with catalina.bat run (or 
catalina.sh run, depending on the platform - which you didn't tell us); this 
will run Tomcat in the current command window.

 - Chuck


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


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connecting Tomcat to a database

2010-07-08 Thread Christian Bruckhoff

Hi.

Am 08.07.2010 20:50, schrieb Caldarale, Charles R:

From: Christian Bruckhoff [mailto:christian.bruckh...@gmx.de]
Subject: Connecting Tomcat to a database

I need t connect Tomcat to a database


What version of Tomcat?  What JVM?  What platform are you running Tomcat on?


Sorry was in a haste, forgot much more than this. :-/
- Tomcat 7.0.0
- Java 1.6 Update 20
- Windows XP SP3
- Wanted to use DB for Apache ODE 2.0 Beta




server.xml (inside theHost-Element):
--
Context path=/TestDB docBase=TestDB debug=5 reloadable=true


Extremely bad practice to putContext  elements in server.xml.  The proper location 
is in the webapp's META-INF/context.xml file.  When you do so, remove the path and docBase 
attributes, since they're not allowed when you haveContext  in a proper location.  
Also, the debug attribute hasn't been used in years, so get rid of that as well.


That's how it was shown here: http://ode.apache.org/war-deployment.html 
(that was [1] btw). What's the best solution for this?



Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource7


What's that 7 hanging on the end?


May I typed it while pasting it into the message, but in the code 
there's no 7.



After I did this, Tomcat didn't work anymore. I even can't
debug it, because the Tomcat window dissapears to fast.


Look in the Tomcat logs.  Also start Tomcat with catalina.bat run (or catalina.sh 
run, depending on the platform - which you didn't tell us); this will run Tomcat in the 
current command window.


Where can I find them? startup.bat run didn't work. Tomcat is still 
started in another window.


Greeting
Christian

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Connecting Tomcat to a database

2010-07-08 Thread Caldarale, Charles R
 From: Christian Bruckhoff [mailto:christian.bruckh...@gmx.de]
 Subject: Re: Connecting Tomcat to a database
 
 Sorry was in a haste, forgot much more than this. :-/
 - Tomcat 7.0.0
 - Java 1.6 Update 20
 - Windows XP SP3
 - Wanted to use DB for Apache ODE 2.0 Beta

 That's how it was shown here: http://ode.apache.org/war-deployment.html

Most unfortunate that they're suggesting very, very out of date practices.  Put 
the MySQL JDBC driver in Tomcat's lib directory, not common/lib (that was 
changed quite some time ago).  Place the following Context element in 
webapps/ode/META-INF/context.xml:

Context reloadable=true crossContext=true
  Resource name=jdbc/ODEDB auth=Container type=javax.sql.DataSource
maxActive=100 maxIdle=30 maxWait=1
username=root password= driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/ode?autoReconnect=true/
/Context

BTW, it's unlikely you need the crossContext attribute, and reloadable is on by 
default.  Note that the above requires MySQL to be running without a password 
(poor practice), unless you fill in the attribute.

 (that was [1] btw). What's the best solution for this?

See the Tomcat doc for Context:
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

 Where can I find them?

The logs are in the logs directory, oddly enough.

 startup.bat run didn't work

Read what I posted: use catalina.bat, not the startup.bat script.

 - Chuck


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


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: SSL problem

2010-07-08 Thread Allen Razdow
Thanks Charles, I was offline most of today...

I'm using a public machine image from Amazon, and that was the version
given.  Maybe I'll just start from scratch with the latest.

The sigalg seems to be SHA1withRSA.  I gather there is something like a
cipher suite associated with JSEE...not sure how to specify one (the right
one).

JAVA VERSION:

java version 1.6.0_17
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)

I thought versions above 1.4 had JSEE installed, but maybe there are missing
pieces.  I sure wish one of the cert vendors would just sell you a .keystore
file that worked!

-Allen

Verbose keytool -list -v:


#1: ObjectId: 2.5.29.15 Criticality=true
KeyUsage [
  Key_CertSign
  Crl_Sign
]

#2: ObjectId: 2.5.29.19 Criticality=true
BasicConstraints:[
  CA:true
  PathLen:0
]

#3: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
: FD AC 61 32 93 6C 45 D6   E2 EE 85 5F 9A BA E7 76  ..a2.lE_...v
0010: 99 68 CC E7.h..
]
]

#4: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false
AuthorityInfoAccess [
  [accessMethod: 1.3.6.1.5.5.7.48.1
   accessLocation: URIName: http://ocsp.godaddy.com]
]

#5: ObjectId: 2.5.29.31 Criticality=false
CRLDistributionPoints [
  [DistributionPoint:
 [URIName: http://certificates.godaddy.com/repository/gdroot.crl]
]]

#6: ObjectId: 2.5.29.32 Criticality=false
CertificatePolicies [
  [CertificatePolicyId: [2.5.29.32.0]
[PolicyQualifierInfo: [
  qualifierID: 1.3.6.1.5.5.7.2.1
  qualifier: : 16 2A 68 74 74 70 3A 2F   2F 63 65 72 74 69 66 69
.*http://certifi
0010: 63 61 74 65 73 2E 67 6F   64 61 64 64 79 2E 63 6F  cates.godaddy.co
0020: 6D 2F 72 65 70 6F 73 69   74 6F 72 79  m/repository

]]  ]
]

#7: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
: D2 C4 B0 D2 91 D4 4C 11   71 B3 61 CB 3D A1 FE DD  ..L.q.a.=...
0010: A8 6A D4 E3.j..
]

]



***
***


Alias name: tomcat
Creation date: Jul 8, 2010
Entry type: trustedCertEntry

Owner: CN=*.truenumbers.com, OU=Domain Control Validated,
O=*.truenumbers.com
Issuer: SERIALNUMBER=07969287, CN=Go Daddy Secure Certification Authority,
OU=http://certificates.godaddy.com/repository, O=GoDaddy.com, Inc.,
L=Scottsdale, ST=Arizona, C=US
Serial number: 449ec6f045efd
Valid from: Sun Jun 27 19:22:11 EDT 2010 until: Mon Jun 27 19:22:11 EDT 2011
Certificate fingerprints:
 MD5:  73:B5:1A:91:E5:F5:56:A1:10:8A:95:E1:A5:7A:0D:AF
 SHA1: ED:C0:D5:7D:C1:DB:BF:12:68:F9:87:99:63:1D:59:3C:75:6B:C9:84
 Signature algorithm name: SHA1withRSA
 Version: 3

Extensions:

#1: ObjectId: 2.5.29.15 Criticality=true
KeyUsage [
  DigitalSignature
  Key_Encipherment
]

#2: ObjectId: 2.5.29.19 Criticality=true
BasicConstraints:[
  CA:false
  PathLen:2147483647
]

#3: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
: 22 75 BA 70 0B 1D AB BF   C3 77 64 8B 70 23 35 5E  u.p.wd.p#5^
0010: C9 AB D9 7F
]
]

#4: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false
AuthorityInfoAccess [
  [accessMethod: 1.3.6.1.5.5.7.48.1
   accessLocation: URIName: http://ocsp.godaddy.com/, accessMethod:
1.3.6.1.5.5.7.48.2
   accessLocation: URIName:
http://certificates.godaddy.com/repository/gd_intermediate.crt]
]

#5: ObjectId: 2.5.29.31 Criticality=false
CRLDistributionPoints [
  [DistributionPoint:
 [URIName: http://crl.godaddy.com/gds1-19.crl]
]]

#6: ObjectId: 2.5.29.32 Criticality=false
CertificatePolicies [
  [CertificatePolicyId: [2.16.840.1.114413.1.7.23.1]
[PolicyQualifierInfo: [
  qualifierID: 1.3.6.1.5.5.7.2.1
  qualifier: : 16 2B 68 74 74 70 3A 2F   2F 63 65 72 74 69 66 69
.+http://certifi
0010: 63 61 74 65 73 2E 67 6F   64 61 64 64 79 2E 63 6F  cates.godaddy.co
0020: 6D 2F 72 65 70 6F 73 69   74 6F 72 79 2F   m/repository/

]]  ]
]

#7: ObjectId: 2.5.29.37 Criticality=false
ExtendedKeyUsages [
  serverAuth
  clientAuth
]

#8: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
: FD AC 61 32 93 6C 45 D6   E2 EE 85 5F 9A BA E7 76  ..a2.lE_...v
0010: 99 68 CC E7.h..
]

]

#9: ObjectId: 2.5.29.17 Criticality=false
SubjectAlternativeName [
  DNSName: *.truenumbers.com
  DNSName: truenumbers.com
]



***
***


Alias name: cross
Creation date: Jul 8, 2010
Entry type: trustedCertEntry

Owner: OU=Go Daddy Class 2 Certification Authority, O=The Go Daddy Group,
Inc., C=US
Issuer: emailaddress=i...@valicert.com, CN=http://www.valicert.com/,
OU=ValiCert Class 2 Policy Validation Authority, O=ValiCert, Inc.,
L=ValiCert Validation Network
Serial number: 10d
Valid from: Tue Jun 29 13:06:20 EDT 2004 until: Sat Jun 29 13:06:20 EDT 2024
Certificate fingerprints:
 MD5:  

Re: How to implement a webapp class loader

2010-07-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Goren,

On 7/8/2010 5:09 AM, Goren Il wrote:
 I would like to implement my on webapp class loader, that will look for
 jars in specific places (to be defined in the configuration).
 I would like to inherit the behavior of the default class loader of the
 webapp, so I can not use a regular ClassLoader.

What behavior do you want to inherit? The ability to load classes from
the plug-in before loading classes specified by the webapp? That sounds
like a recipe for disaster to me: the plug-ins can override classes in
your webapp. :(

 I considered inheriting from WebappClassLoader.
 Is there a simpler way?
 Is there some documentation how to create such a class loader?

Try using URLClassLoader directly and see what happens: it's not
difficult to give it a try.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw2cvoACgkQ9CaO5/Lv0PA2fgCgprL+HoUD7qRPzppXj3R4u+SC
20sAoK/sZT2fmW7cYB3hzp5QebMbxV5D
=rsVx
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Updating webapps classes

2010-07-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gabriele,

On 7/7/2010 8:11 AM, Gabriele Bulfon wrote:
 I get back to this discussion beacuse I was brainstorming again on it,
 and found
 that the already present class loader may actually be able to do this alone.
 
 My thought was: if Tomcat is capable of managing different application
 contexts under
 its work folder, and have them run different applications with
 different class versions
 inside their classes/lib, probably it may implement automatic
 application updates
 by createing different application contexts behind the scene.

Uh, what?

 I see this scenario:
 - Tomcat is running my webapp
 - People have sessions on it, and Tomcat has its application context on
 my webapp
 - I place new jar files/classes
 - Tomcat detects, and instead of reloading and invalidating current
 sessions, it will
 keep current sessions on the old application context, until they reach 0
 sessions
 - Meanwhile it may create a new application context to run new sessions

That's not how it works.

 How hard would it be to make this true in Tomcat?

Probably not too difficult, but the Tomcat team is unlikely to implement
this because the spec (at least as of 2.5) is silent on the subject of
auto-deployment (other than to mention that the container is free to
implement it).

Such a system would be quite chaotic in a clustered environment, because
some cluster members would update before others, and, depending upon the
configuration of the cluster, information sharing and/or member
selection could fail and the whole site could become unstable from a
user perspective.

I highly recommend performing deliberate application updates by bleeding
users off of one server and on to another.

 Is there any other Java WebApp Container capable of doing this?

Dunno. You could probably search the web for something like that.


- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw2dPEACgkQ9CaO5/Lv0PBTXwCgpTZ9b5rEYImtsRV0cGfbKaN+
4AMAoIjrUIaVDlw+0Xu1c/BJHd5cAjvW
=eeFX
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .jar file deploying fail

2010-07-08 Thread The Logs
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 7/8/2010 12:02 PM, Mark Thomas wrote:
 On 08/07/2010 16:49, allensim wrote:

 Hi,
 I copy the .war file into the webapps directory under Tomcat:
 TOMCAT_HOME/webapps/ 
 But as I login to the manager page. The Running column shown fail.
 How can I make it to become true?
 Please advice.
 http://old.nabble.com/file/p29108599/manager_undeploy.jpg 
 
 And the logs say what?

What

Sorry. Couldn't help myself.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw2eMoACgkQ9CaO5/Lv0PDIOQCgpoqeep3sDZEwnM+iWy3ESEJT
zhsAn1suVFEZ2OpEkXAtiCY691vUgqC+
=UPa7
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: the welcome file index.jsp returns an 302 redirection

2010-07-08 Thread Bill Barker



lei jiang jianglei...@gmail.com wrote in message 
news:aanlktin0dhodp9brzlx589xkvuz4dar0dnklry637...@mail.gmail.com...

Hi, guys:

I am using the Tomcat 5.0.28.0, and I put the my website into webapps 
directory.


The welcome-file-list section likes this:

welcome-file-list
   welcome-fileindex.jsp/welcome-file
/welcome-file-list

In the index.jsp, I use the jsp:forward tag to forward the request to
a struts action:
jsp:forward page=welcome.do/

When I input http://localhost:8080/mysite; into the address bar of
firefox and hit go button, the browser shows the correct page but the
url in address bar changed to
http://localhost:8080/mysite/welcome.do;

I find that the tomcat returns a 302 redirection and then the tomcat
returns the page generated by welcome.do action

So what can we do to aviod the 302 redirection and let the address bar
just show http://localhost:8080/mysite;.



What Pid said:  Later versions than 5.0.x do an internal forward to the 
welcome-file, so the browser doesn't get to see the actual path to the 
welcome-file.  There are a couple of other sordid hacks using 
servlet-mapping that I'll admit to using on currently unsupported versions 
of Tomcat.



Thanks
Regards
--
Lei Jiang
Member of SeedClass in the Department of Electronics and Information 
Engineering

Member of Overseas group in Dian team
Room 507, Building D7,1037 Luoyu Road, Wuhan 430074,P.R.China
Mobile:+86-15926351274
Email: jianglei...@gmail.com 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat crashed after servicing too many HTTPS connection

2010-07-08 Thread Goo Sam Kong
Hi Chuck,

I do not have a choice on my server because I can not upgrade the Tomcat and
JVM. The server is a proprietary security hardware, no way to upgrade except
the hardware vendor release new patch for that.

Thank you for your reply, :-).

On 6 July 2010 20:44, Caldarale, Charles R chuck.caldar...@unisys.comwrote:

  From: Goo Sam Kong [mailto:skgo...@gmail.com]
  Subject: Re: Tomcat crashed after servicing too many HTTPS connection
 
  I did the same test on Tomcat 5.5.16 with JDK 1.5.0
  update 7 on Windows XP

 Why are you mucking around with versions of Tomcat that are over four years
 old?  Many, many serious fixes - some critical - have gone in since then.
  Move up.

 You might want to upgrade your JVM as well - it's pretty ancient.

  - Chuck


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


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




RE: SSL problem

2010-07-08 Thread Caldarale, Charles R
 From: Allen Razdow [mailto:araz...@truenum.com]
 Subject: RE: SSL problem
 
 Maybe I'll just start from scratch with the latest.

Strongly recommended.

 The sigalg seems to be SHA1withRSA.  I gather there is 
 something like a cipher suite associated with JSEE...

It's JSSE, not JSEE.  Yes, the 1.5 and 1.6 JVMs come with basic cipher 
capabilities.  The certificates I'm using on stock 1.5 and 1.6 JVMs use 
SHA1withRSA without problem.

Hmmm...

Try running this program on your JVM to see all the JSSE stuff that's available.

import java.security.Provider;
import java.security.Security;
import java.util.Map;
import java.util.Set;

public class SecList {
  public static void main(String args[]) {
Provider[] providers = Security.getProviders();

for (Provider p : providers) {
  System.out.print(p.getName() + , version  + p.getVersion());
  System.out.println(:  + p.getInfo());

  SetProvider.Service services = p.getServices();
  for (Provider.Service s : services) {
System.out.println(  service  + s.getType() + :  + s.getAlgorithm() 
+  ( + s.getClassName() + ));
  }

  SetMap.EntryObject, Object entries = p.entrySet();
  for (Map.EntryObject, Object e : entries) {
System.out.println(  property  + e.toString());
  }
}
  }
}

 - Chuck


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


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org