Tomcat : Background Process

2006-07-27 Thread Feris Thia

Hi All,

How can I create a new thread after let's say uploading a file and I
want to create indexing process (another class) that is a background thread
process ? How can I achieve that ? Maybe some simple code can help me ?

And if I may... Is that possible that I monitor this thread ??


--
Regards,
Feris
PT. Putera Handal Indotama
JL. KH. Moh. Mansyur No. 11 Blok B.8-12
Telp. +62-21-631 6688 (Hunting)
Fax. +62-21-6330211
Jakarta (10140) - INDONESIA


HTTP Status 500 error

2006-07-27 Thread OOzy Pal

Hello

When I run the program I am using, I get this error. What does it
mean. How can I interpret it?

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException
  org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:290)
  
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
  
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
  org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  java.lang.Thread.run(Thread.java:595)

root cause

java.lang.ExceptionInInitializerError
  org.w3c.css.servlet.CssValidator.init(CssValidator.java:109)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:585)
  org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
  java.security.AccessController.doPrivileged(Native Method)
  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
  org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
  
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
  
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
  org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  java.lang.Thread.run(Thread.java:595)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0 logs.
Apache Tomcat/5.0

--
OOzy
Kubuntu-Dapper

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSP 2.0 tag files slowing development/deployment

2006-07-27 Thread Edmund Urbani
Edmund Urbani wrote:
 John Cherouvim wrote:
 Hello

 I'm building a mid scale web application for use within an intranet. I'm
 using a custom web framework to handle flow, user input, validations,
 persistence with hibernate and views with JSP and JSP 2.0 tag files. I
 use tomcat 5.0.28 and in particular this feature it has where you can
 write you own tag files in the WEB-INF/tags folder, and tomcat will
 compile them and make them available in the JSPs.

 I like this feature because it provides me encapsulation. I can call any
 tag I like with parameters and in addition I also use JSTL and EL which
 allows me to do anything I would ever want on the presentation side of
 the application.

 I've used jsp tag files before, in a much smaller application where I
 had something like 10 tags.
 Right now I am 50% done with this application and I already have 120 tag
 files to render pojos, fields, various html controls etc. Most tags call
 other tags in order to generate the whole page.
 The first (small) problem is that every time I change something on a
 tag, particularly in fine grained tags (which are heavily being used
 from other tags) then tomcat has to recompile everything. It takes
 around 1.5 minutes to do that on my workstation.

 The second (big) problem, is when I try to deploy on the client's web
 server (intel xeon with 4 cpus with tomcat 5.0.28). I deploy and tomcat
 starts up in something like 9 seconds. Then I access the application for
 the first time, using a browser, and it takes more than an hour to build
 the work\Catalina\localhost\MY-APPLICATION\org\apache\jsp folder.
 Looking at the generated sources of those tag files it seems to me that
 its taking so much because tomcat has to calculate all the dependencies
 between tags. As soon as everything has compiled, the application runs
 smothly as expected. There are 118 tag files, and the
 work\Catalina\localhost\MY-APPLICATION\org\apache\jsp folder ends up
 with 238 files (one for .java and one for .class) and takes up 2.7mb. I
 don't know why such a fast machine needs so much time to generate 1.47mb
 of source code, and compile it.

 This situation is really bad for me and I'd like to know what can I do
 to improve the situation.
 1. Would tomcat 5.5.17 improve anything on this issue?
 2. Would precompiling the JSPs and tags improve anything?
 3. Can I upload my work\Catalina\localhost\MY-APPLICATION folder to the
 client's server and force that tomcat not to re-compile? I tried it and
 it did start compiling the jsps/tags again.
 4. Would changing some tags from tag files to proper Java
 javax.servlet.jsp.tagext.Tag classes improve anything?
 5. If I package my tag files into a jar, would then tomcat had to do the
 work thing?
 6. Should I change to another templating engine, such as Velocity?

 thanks,
 Ioannis

 1-5 all sound like good ideas to try to me. 6 seems like a last resort
 kind of choice.
 
 i can't really provide you with a satisfying answer here since I don't
 know tomcat/jasper internals that well myself. and so far i never had to
 deal with that many custom tags.
 
 however i would like to suggest you do some java profiling. that should
 reveal which method(s) use up all the cpu time and may provide a hint to
 the source of the problem.
 
  Edmund


Taken from http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html:
...
Tomcat 5.5 uses the Jasper 2 JSP Engine to implement the JavaServer
Pages 2.0 specification.

Jasper 2 has been redesigned to significantly improve performance over
the orignal Jasper.
...

Looks like option 1 should solve your problem. Please let us know,
whether it actually does. You might also want to check the above URL for
some (minor) performance improvements for production environments.

 Edmund

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Shutdown Problems with Tomcat

2006-07-27 Thread Mark van Wyk

Thanks for that! Makes perfect sense. I'm using Liferay, so it's probably in
their pile of code that the problem arises. I'll ask them for some advice!

On 7/26/06, Shankar Unni [EMAIL PROTECTED] wrote:


Mark van Wyk wrote:

 tcp4   0  0  localhost.8005
*.*LISTEN
 tcp46  0  0  *.8009
*.*LISTEN
 tcp46  0  0  *.http-alt
*.*LISTEN

 Somehow, that feels right, although I don't really know what it means.

Yes, that's correct. It means tomcat is listening on only the localhost
(127.0.0.1) interface on port 8005 (for the shutdown command), and on
all network interfaces on port 8009 (for mod_jk) and whatever your
http-alt port is defined as in /etc/services (probably 8080).

Nothing unusual here.

 14:08:28,983 INFO  [org.apache.coyote.http11.Http11BaseProtocol] Pausing
 Coyote HTTP/1.1 on http-8080
 14:09:43,603 ERROR [org.apache.catalina.connector.Connector] Protocol
 handler pause failed
 java.net.ConnectException: Operation timed out

And

 14:09:47,861 INFO  [org.apache.coyote.http11.Http11BaseProtocol]
Stopping
 Coyote HTTP/1.1 on http-8080
 Failed to shut down: java.lang.NullPointerException
 java.lang.NullPointerException
at org.activemq.broker.BrokerContext.deregisterContainer(
 BrokerContext.java:70)

Looks like you have a Servlet with a destroy() method that tries to make
a call to an MQ server, and that is first timing out, and then the class
gets a NullPointerException.

When a webapp is being undeployed, all the destroy() methods in Servlets
are called *synchronously* by Tomcat.

Doing any heavy-weight work in Servlet destroy()s (e.g. DB calls, MQ or
other remote calls, etc.) is a common source of shutdown hangs.

If you must do something like this:

* Start the work in a thread, and
* do a Thread.join() *with a timeout*, so that the shutdown is not hung
forever if something goes wrong in your cleanup operation.
(perhaps log an error if the thread join timed out..)


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Mark van Wyk
Portal Co-ordinator
www.GondwanaAlive.org

Promoting Biodiversity and Stemming the Sixth Extinction

Cell: 082 831 9227 (ZA +27 )


An exception, would anybody tell me the reason?

2006-07-27 Thread Zhang, Peng
Hi , I deployed a app in tomcat, and monitored this with thread dump.

Now I get an exception as below. Who can tell me the possible reason.

Thanks in advance for your replies.

 

TP-Processor275 daemon prio=5 tid=0x04889210 nid=0xdfa2 runnable
[cbdff000..cbe019c8]
at java.io.UnixFileSystem.canonicalize0(Native Method)
at java.io.UnixFileSystem.canonicalize(UnixFileSystem.java:154)
at java.io.File.getCanonicalPath(File.java:513)
at
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:831)
at
org.apache.naming.resources.FileDirContext.getAttributes(FileDirContext.
java:432)
at
org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.
java:748)
at
org.apache.naming.resources.ProxyDirContext.revalidate(ProxyDirContext.j
ava:1448)
at
org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.
java:1401)
at
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:
279)
at
org.apache.catalina.core.ApplicationContext.getResource(ApplicationConte
xt.java:496)
at
org.apache.catalina.core.ApplicationContextFacade.getResource(Applicatio
nContextFacade.java:176)
at
org.apache.jasper.JspCompilationContext.getResource(JspCompilationContex
t.java:233)
at
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:520)
at
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:501)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:509)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:295)
- locked 0xd9c907a8 (a
org.apache.jasper.servlet.JspServletWrapper)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
com.telenav.common.web.CharacterEncodingFilter.doFilter(CharacterEncodin
gFilter.java:83)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
675)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:534)

 



RE: Some tomcat config questions

2006-07-27 Thread Stuart Fox

Any clues on this? I cant seem to figure it out

Cheers

Stuart 

-Original Message-
From: Stuart Fox [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2006 16:12
To: 'Tomcat Users List'
Subject: RE: Some tomcat config questions


 ciphers=SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA

 You need 4.1.32 for the ciphers parameter to take effect.

Worked a treat, cheers.

 Second it says I have UserDir enabled (like apache mod_userdir I assume) but 
 again I cant find a way to disable it

Remove the UserConfig listener from you host. See User Web
Applications in
http://tomcat.apache.org/tomcat-4.1-doc/config/host.html

Also worked a treat

 Third if I telnet to port 80 and issue GET / HTTP/1.0 the Location 
 header contain the local ip address not the public one, It's sat behind a 
 firewall.
 I tried the server=external ip in each connector but I still get the 
 internal ip address returned, any way to fix it?

Not something I have ever done (or tested) but proxyName on the
connector looks like what you want.

This one didn’t work, I'll try and explain a little better.

I've got a tomcat host listening on port 80, in front of it is a firewall that 
maps through to port 80. The firewall ip is, say, 150.1.1.1 and the tomcat 
internal ip is 192.168.1.1.
There is one connector for port 80 in server.xml. There are approx 20 host 
definitions bound to that port.
The problem comes when you telnet to the public ip(150.1.1.1) and issue GET / 
HTTP/1.0. In the response you get Location: 192.168.1.1 therefore leaking 
the internal ip structure.

If I now put a proxyName=150.1.1.1 in the connector, every correct request to 
the host addresses gets directed to 150.1.1.1 , even proper
GET / HTTP/1.1
Hostname: www.hostedsite.com, ignoring the Hostname bit and showing the first 
listed host 
Obviously not good for the hosted sites :)

Now, if I put a proxyName=www.hostedsite.com in the host bit and 
proxyName=150.1.1.1 in the connector bit, the connector takes pref and 
sites still get directed to 150.1.1.1, again not so good.

If I then remove the proxyName=150.1.1.1 from the connector bit and leave 
proxyName=www.hostedsite.com in the host bit I go back to the original 
problem, 192.168.1.1 is shown in the Location header.

Is there a something like proxyName that works on connector but doesn’t hog 
every request.

Hope I explained it clearly!

 Lastly (I think) the version header is always Apache-Coyote/1.1, any way 
 to change it to Coyote easily?

Set the server parameter on each connector.

Again, worked a treat
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify netXtra Ltd. Please note 
that any views or opinions presented in this email are solely those of the 
author and do not necessarily represent those of the company. This email or any 
attachments do not constitute an offer. The contents of this e-mail and any 
attachments may contain viruses that could damage your own computer systems.  
Whilst netXtra Ltd has taken every precaution to minimise this risk, we cannot 
accept liability for any damage that you may sustain as a result of viruses


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Initial configuration problems

2006-07-27 Thread Andy Kanter
I have been monitoring the emails on this list and have tried to
interpret the documentation for Tomcat 5.5.17 on the web, but I am a
total novice with Java and Apache. I am trying to test run an opensource
application on my laptop and have managed to get close, but cannot seem
to make it work. I'm working with the OpenMRS medical record for Africa,
and am running on Windows XP with MySql 5. After installing the various
software elements, adding the environment variables, modifying the
tomcat-users file to include a manager password, and starting the
service, I still cannot access Manager. I do not get prompted for a
username and password... all I get is a 404 message saying the requested
resource is not available.

 

Does anyone know of a simpler, step-by-step, document which will ensure
that I have made the necessary configuration modifications? I am pretty
computer savvy and this has stumped me for a week! (Also, if there is
anyone at the Univ of Cambridge (UK) who is monitoring this list and
might be of help for me at Wolfson, I'd be forever grateful).

 

-

Andrew S. Kanter, MD MPH

[EMAIL PROTECTED]

[EMAIL PROTECTED]



Re: Cannot protect with Valve Tomcat 5.5.17 Manager Application ( Windows Environment - JRE 5.0)

2006-07-27 Thread Raju Balugu

Hi ,

Have u placed the xerecesImple.jar under the endorsed directory.and also
let me know whic jdk or JRE you are using?

Regards
Raju


On 7/26/06, Mark Thomas [EMAIL PROTECTED] wrote:


[EMAIL PROTECTED] wrote:

   Valve className=org.apache.catalina.valves.remoteAddrValve
 allow=127.0.0.1/

You need to read
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html more carefully.

A quick look at your config shows:
- The className attribute is wrong. It should be
org.apache.catalina.valves.RemoteAddrValve
- You are not using regular expressions. The period is reserved in
regular expressions. Your allow should be something like 127\.0\.0\.1

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Problems with IE6, AJP1.3, Apache httpd and tomcat

2006-07-27 Thread Raju Balugu

Hi ,

As for your mail ,it's fine in mozilla and other browser ..can u do one
thing to identify the problem..try to print the port no . and url which you
are getting.
And also put the full url and try it.
put the debug statements in Request.java and Response.java which are there
in catalina.jar.

please let me know your findings.

Regards
Raju



On 7/26/06, Rick G [EMAIL PROTECTED] wrote:


Robert,
Do you have some sample script/servlet that you can reliably reproduce the
issue that I could try?
If not, could you let me know a bit more about the operation, frequency of
the occurrence?

-Rick

-Original Message-
From: Robert [mailto:[EMAIL PROTECTED]
Posted At: Tuesday, July 25, 2006 2:29 PM
Subject: Re: Problems with IE6, AJP1.3, Apache httpd and tomcat


Rick G wrote:
 Hi Robert,
   I just wanted to say that I have been using the XMLHTTP object for
 about 7 years now (since IE 5x),
Strangely enough the problems do not occur when using IE7.



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: apache not talking to tomcat w/ mod_jk

2006-07-27 Thread Nikola Milutinovic
 I set mod_jk to log level debug, and saw it was 
 telling apache 2No.Host.matches.server.name.

This simply means that Apache is accepting a request for one Virtual Host an 
that host is not configured in TC. This issue can be as trivial as not defining 
the actual hostname as a Host element in your TC server.xml

Read TC docs, pay attention to the Host tag. It is used to define as many 
virtual hosts as you like. The thing is, the virtual host in Apache, *which is 
going to forward requests to TC*, MUST exist in TC, as well.

It is as simple as that.

Nix.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.17 logs configuaration

2006-07-27 Thread Raju Balugu

Hi ,

Tomcat 5.5.15 Solaris 2.9 box

I am trying to configure the logging throuth log4j but not able to
success..getting lot of errors.

Can anybody give the steps to configure the tomcat logging.(specific to
Tomcat purpose not the application)

Regards
Raju


Re: JSP 2.0 tag files slowing development/deployment

2006-07-27 Thread John Cherouvim

Thanks for your reply.

I've done some testing and tomcat 5.5 compiled the jsp/tags about 2.5-3 
times faster!

Here is the test with the results:
tag files: 122
size : 154kb
settings : -Xms256m -Xmx256m

|---++---+|
| 5.0.28 |5.5.17  |
|---++---+|
| generate work | precompile | generate work | precompile |
|---++---+|
|  95 sec   |   121 sec  |  35 sec   |40 sec  |
|  87 sec   |   119 sec  |  29 sec   |40 sec  |
|  86 sec   |   122 sec  |  33 sec   |45 sec  |
|---++---+|


I'll keep you posted on further findings.

Thanks,
Johh

Edmund Urbani wrote:

Taken from http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html:
...
Tomcat 5.5 uses the Jasper 2 JSP Engine to implement the JavaServer
Pages 2.0 specification.

Jasper 2 has been redesigned to significantly improve performance over
the orignal Jasper.
...

Looks like option 1 should solve your problem. Please let us know,
whether it actually does. You might also want to check the above URL for
some (minor) performance improvements for production environments.

 Edmund
  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Busy in jkmanager

2006-07-27 Thread Gianto Wijaya

unsubscribe


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Busy in jkmanager

2006-07-27 Thread Mladen Turk

Gianto Wijaya wrote:

unsubscribe



Each mail you receive has a line saying:
To unsubscribe, e-mail: [EMAIL PROTECTED]

Now, is there something you do not understand in that
statement? I suppose you know how to send an email cause
we have received this one.

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Initial configuration problems

2006-07-27 Thread David Smith
There isn't a lot of information to go on here. 

Are there any error messages in the logs regarding the manager webapp?  
Also could you be more specific regarding ...installing the various 
software elements, adding the environment variables 

You should be able to run the manager webapp right out of the box, ONLY 
adding a username, password, and a role of manager to tomcat-users.xml.


--David

Andy Kanter wrote:


I have been monitoring the emails on this list and have tried to
interpret the documentation for Tomcat 5.5.17 on the web, but I am a
total novice with Java and Apache. I am trying to test run an opensource
application on my laptop and have managed to get close, but cannot seem
to make it work. I'm working with the OpenMRS medical record for Africa,
and am running on Windows XP with MySql 5. After installing the various
software elements, adding the environment variables, modifying the
tomcat-users file to include a manager password, and starting the
service, I still cannot access Manager. I do not get prompted for a
username and password... all I get is a 404 message saying the requested
resource is not available.



Does anyone know of a simpler, step-by-step, document which will ensure
that I have made the necessary configuration modifications? I am pretty
computer savvy and this has stumped me for a week! (Also, if there is
anyone at the Univ of Cambridge (UK) who is monitoring this list and
might be of help for me at Wolfson, I'd be forever grateful).



-

Andrew S. Kanter, MD MPH

[EMAIL PROTECTED]

[EMAIL PROTECTED]


 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and MySQL error

2006-07-27 Thread David Smith
The answer depends on how the MySQL connection is made and where.  
Tomcat doesn't offer just one way to handle this or just one place to 
configure it.  The MySQL connection string can be in server.xml or the 
web application itself. 

You might want to do a search to see where www.old-domain.com shows 
up.  Can be done with 'grep -R www.old-domain.com *' in Unix or use the 
Search tool in Windows and search for files containing the string 
'www.old-domain.com'.


--David

DK wrote:


Hello all, I am new to this configuration and working on an exisitng website
with MySQL database.

There is a change in the domain name / IP address and after the change in IP
address I am not able to connect to the database and I get this error when
tomcat is started.

Caused by: java.sql.SQLException: Cannot connect to MySQL server on
www.old-domain.com:3306. Is there a MySQL server running on the machine/port
you are trying to connect to? (java.net.ConnectException)

My MySQL is working fine on port 3306 - I am able to connect to the database
from the command prompt

I do not know which file I should edit and update with the new IP address /
domain name in place of www.old-domain.com, so that tomcat connects to the
database with new domain name, when tomcat is started

Any help is appreciated !
 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache not talking to tomcat w/ mod_jk

2006-07-27 Thread David Smith
I got the impression (and I could be wrong here) early on in this thread 
you may have dropped your jsp in the apache httpd docroot and tried it 
there.  This isn't mod_perl or one of those other modules that allow 
files to sit directly in the apache docroot or one of it's folders.


If this is the case, move your jsp to a location in webapps/ROOT of 
tomcat and try it again.


--David

Ian Caswell wrote:

I set mod_jk to log level debug, and saw it was 
telling apache 2No.Host.matches.server.name.

Did some googling, and some sites say it's a
permissions issue, but my startup script chowns
everything to tomcat
One page i found said it may be there's no default
context in server.xml.
(http://www.palbrattberg.com/?p=69#comments)
I added a Context under my Host section,
and now I see apache and tomcat talking in
netstat -an.  YAY!

However, still having issues, now instead of a blank
page, I get tomcat's 404 page when i try to load the
test HelloWorld.jsp.  I think I'm getting close, I
will turn on debug for tomcat and look for issues.

If anyone has suggestions, pls let me know.

--- John Kojo Ampia - Addison [EMAIL PROTECTED]
wrote:

 


have you added an Include line to the auto folder of
the tomcat conf 
directory?

If so then check your tomcat logs for error
messages...
If there aren't any introduce some intentional
errors and see if 
server.xml and httpd.conf are being loaded at all.

Then check with all the available logs...
   



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat and Sun's Application server

2006-07-27 Thread Jon Hoffman
Hi,
I have been beating my head for the past two days on this problem.
I have a Sun Java Application Server 8.1 with a couple Enterprise Java
Beans.  I want to be able to have a web application running on my Tomcat
cluster access those EJB's.
My servlet keeps throwing up this Exception:
java.lang.NoClassDefFoundError

com.sun.enterprise.iiop.IIOPSSLSocketFactory.init(IIOPSSLSocketFactory
.java:149)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
java.lang.Class.newInstance0(Class.java:350)
java.lang.Class.newInstance(Class.java:303)

com.sun.corba.ee.impl.orb.ParserTable$5.operate(ParserTable.java:650)

com.sun.corba.ee.impl.orb.NormalParserAction.apply(NormalParserAction.ja
va:22)

com.sun.corba.ee.spi.orb.PropertyParser.parse(PropertyParser.java:52)

com.sun.corba.ee.spi.orb.ParserImplBase.init(ParserImplBase.java:55)

com.sun.corba.ee.impl.orb.ORBDataParserImpl.init(ORBDataParserImpl.jav
a:397)
com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:514)

com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:604)
org.omg.CORBA.ORB.init(ORB.java:337)

com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:372)
com.sun.enterprise.util.ORBManager.init(ORBManager.java:236)
com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:248)

com.sun.appserv.naming.S1ASCtxFactory.getInitialContext(S1ASCtxFactory.j
ava:208)

javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)

javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
javax.naming.InitialContext.init(InitialContext.java:223)
javax.naming.InitialContext.init(InitialContext.java:197)
com..model.xx.xxx(.java:52)
com..web.x.processRequest(xx.java:36)
com..web.x.doPost(xx.java:75)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
The problem seems to come from Sun's J2EE.jar file.  This jar is needed
by the EJB client but it also conflicts with the servlet.jar file that
comes with tomcat therefore I get this warning in my Tomcat log file:
INFO:
validateJarFile(/usr/local/src/apache-tomcat-5.5.17/webapps/firewallrule
s/WEB-INF/lib/j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section
9.7.2. Offending class: javax/servlet/Servlet.class
Can anyone give me any suggestions on how to get this to work?
Thanks in advance for any help you can provide.
 
Jon Hoffman


What are the advantages on tomcat5.5.17 over the tomcat4.1.29

2006-07-27 Thread Raju Balugu

Hi All,

I subscribed to this list recently...and hopes somebody may asked this
question..also but i am in need of information on this.

We are planing to migrate from tomcat 4.1.29 to tomcat 5.5.17 for that i
would like to know you people what are the advantages and  disadvantages on
tomcat 5.5.17?(I mean performance and managing ,monitoring..)

Please this is very urgent for me .I googled but didn't find the useful info
..

Thanks in advance..

Regards
Raju


How to configure the logs for Tomcat 5.5.17

2006-07-27 Thread Raju Balugu

Hi ,

Tomcat 5.5.15 Solaris 2.9 box

I am trying to configure the logging throuth log4j but not able to
success..getting lot of errors.

Can anybody give the steps to configure the tomcat logging.(specific to
Tomcat purpose not the application)

Regards
Raju


Re: What are the advantages on tomcat5.5.17 over the tomcat4.1.29

2006-07-27 Thread David Smith
Then you need to google again.  This subject has been covered in various 
ways on the list:


1. 5.0.x and 5.5.x both support servlet spec 2.4 (4.1.x supports servlet 
spec 2.3)

2. 5.5 no longer requires a JDK.  A JRE is sufficient
3. There have been HUGE performance improvements in 5.5 (comparable to 
apache httpd these days)



I'm sure there are other advantages not listed here.  Google again and 
take a read through the tomcat docs.


--David

Raju Balugu wrote:


Hi All,

I subscribed to this list recently...and hopes somebody may asked this
question..also but i am in need of information on this.

We are planing to migrate from tomcat 4.1.29 to tomcat 5.5.17 for that i
would like to know you people what are the advantages and  
disadvantages on

tomcat 5.5.17?(I mean performance and managing ,monitoring..)

Please this is very urgent for me .I googled but didn't find the 
useful info

..

Thanks in advance..

Regards
Raju




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANN] Apache Tomcat mod_jk 1.2.18 Web Server Connector released

2006-07-27 Thread Rainer Jung
The Apache Tomcat team is pleased to announce the immediate availability
of version 1.2.18 of the Apache Tomcat mod_jk web server connector.

mod_jk is a connector which allows a web server such as Apache HTTPD
to act as a front end to the Tomcat web application server.
This version contains several enhancements and fixes a number of minor
bugs of the previous version 1.2.15.

See http://tomcat.apache.org/connectors-doc/changelog.html
for a complete list of changes.

Source distribtions can be downloaded from an
Apache Software Foundation mirror at:

http://tomcat.apache.org/download-connectors.cgi

Binary distributions for a number of different operating systems and
web servers can be downloaded from an
Apache Software Foundation mirror at:

http://tomcat.apache.org/download-connectors.cgi

Documentation for using mod_jk with Tomcat 3.3, 4.1, 5.0 and 5.5
can be found at:

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

Thank you,

-- The Apache Tomcat Team

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT?] is there a way to map an application URL on tomcat like: http://a.com/app1 to http://app1.a.com/

2006-07-27 Thread David Gagnon

Hi all!

 Sorry for the repost the 1st email wasn't following the rules.  Sorry 
for the mess.


Here is the original message posted correctly this time :-):





I have seen this on the website of a Saas supplier yesterday and I was 
wondering if it was possible to do it with Tomcat.  When you go on their 
website and they assign you an application to the url: 
http://yourcompany.saassupplier.com.


I was wondering if this could be used with tomcat application?  For sure 
it means using a kind of proxy to convert  
http://saassupplier.com/yourcomagny to 
http://yourcomagny.saassupplier.com  but I have no Idea how this can be 
done.


Any idea ?
Thanksfor your help ! 


/David



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT?] is there a way to map an application URL on tomcat like: http://a.com/app1 to http://app1.a.com/

2006-07-27 Thread Hassan Schroeder

On 7/27/06, David Gagnon [EMAIL PROTECTED] wrote:


 I have seen this on the website of a Saas supplier yesterday and I was
wondering if it was possible to do it with Tomcat.  When you go on their
website and they assign you an application to the url:
http://yourcompany.saassupplier.com.


This is called a virtual host; it requires DNS entries to point that URL
to your server, that's all.

Setting up virtual hosting in Tomcat is documented. :-)

--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



file type and name

2006-07-27 Thread Zohar



Hello list,
I have a servlet that generates a CSV file. What I 
do is:

response.setContentType("application/csv");
PrintWriter out = 
response.getWriter();
out.write(csvContent);
out.flush();

What I get is 
attached.
How do I fix this? I also want the 
filename to be something else...

Thanks,
Zohar




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT?] is there a way to map an application URL on tomcat like: http://a.com/app1 to http://app1.a.com/

2006-07-27 Thread Peter Crowther
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
  http://yourcompany.saassupplier.com.
 
 This is called a virtual host; it requires DNS entries to 
 point that URL to your server, that's all.

The simplest way of doing this on BIND servers is to use a wildcard
mapping - so you map a name called * to your app server.  Then any
name that doesn't resolve to any other address will resolve to your app
server address.  Saves a lot of tedious mucking about with zone files
:-).

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



newbie installation problems

2006-07-27 Thread D. Salemink Klikstudio

IM going crazy with my tomcat installation.

Previosly i installed the tomcat 4 version which was working fine but
because I want to use mmbase preferably with tomcat 5. I removed de 4
folder, placed the 5 folder and updated my environment paths in
/etc/profile.

Each time i start up startup.sh i get

[EMAIL PROTECTED] apache-tomcat-5.5.17]# /usr/local/tomcat/bin/startup.sh
Cannot find /usr/local/jakarta-tomcat-4.1.31/bin/setclasspath.sh
This file is needed to run this program
[EMAIL PROTECTED] apache-tomcat-5.5.17]#

As far as i know i have no files whatsoever going to 4.1.31 and
somehow i most still have the environment set up wrong, can anybody
help me with this??


--
D. Salemink
Zomerdijkstraat 1-11079WX Amsterdam
+31207726869 +31651611510

Nieuwe media cursussen http://www.klikstudio.net
Webdesign en hosting http://www.klikstudio.nl

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with IE6, AJP1.3, Apache httpd and tomcat

2006-07-27 Thread Robert

Rick G wrote:

Robert,
 Do you have some sample script/servlet that you can reliably reproduce the
issue that I could try?
If not, could you let me know a bit more about the operation, frequency of
the occurrence?


I don't have it, because I cannot reproduce the problem here on a 
windows configuration. It only happens at one of our customers that uses 
linux and AJP.


The unusual part of the script might be the synchronous nature. It uses 
synchronous XMLHTTP/AJAX calls. Maybe that makes the problem apparent, 
while in other cases it would have gone unnoticed. I currently have no 
choice to make the calls asynchronous, because it was designed to be 
synchronous. It would take too much work now.


When trying it on windows I used
Apache HTTP Server 2.2.2
Jakarta Tomcat 5.5.7

First I also tried to use mod_jk 1.2.14.1, but I never was able to start 
the HTTP Server with that version of the connector.
Finally I found mod_jk-apache-2.2.2 at 
http://tomcat.apache.org/dev/dist/win32/ and then everything worked 
fine. Of course kinda sad that I could not reproduce the problem.


What I am curious about is the compatibility between Apache HTTP Server 
2.2.0 and mod_jk 1.2.14.1 on linux. Is there a compatibility problem 
between those version that manifest itself in my problems. What is the 
recommended mod_jk version for Apache HTTP Server 2.2.0 on linux?


Robert


-Original Message-
From: Robert [mailto:[EMAIL PROTECTED] 
Posted At: Tuesday, July 25, 2006 2:29 PM

Subject: Re: Problems with IE6, AJP1.3, Apache httpd and tomcat


Rick G wrote:


Hi Robert,
 I just wanted to say that I have been using the XMLHTTP object for 
about 7 years now (since IE 5x),


Strangely enough the problems do not occur when using IE7.



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie installation problems

2006-07-27 Thread Antonio Petrelli

D. Salemink Klikstudio ha scritto:

As far as i know i have no files whatsoever going to 4.1.31 and
somehow i most still have the environment set up wrong, can anybody
help me with this??


What's your distribution? Not all Linux distributions use /etc/profile 
for environment variables. For example Ubuntu uses /etc/environment


Ciao
Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie installation problems

2006-07-27 Thread D. Salemink Klikstudio

I have redhat enterprise (3?)
It worked with the tomcat 4 version in the /etc/profile
but it doesnt seem to want to loose this configuration anymore
This is whats in my my /etc/profile now

JAVA_HOME=/usr/java/j2sdk1.4.2_12
CATALINA_HOME=/usr/local/apache-tomcat-5.5.17



On 7/27/06, Antonio Petrelli [EMAIL PROTECTED] wrote:

D. Salemink Klikstudio ha scritto:
 As far as i know i have no files whatsoever going to 4.1.31 and
 somehow i most still have the environment set up wrong, can anybody
 help me with this??

What's your distribution? Not all Linux distributions use /etc/profile
for environment variables. For example Ubuntu uses /etc/environment

Ciao
Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
D. Salemink
Zomerdijkstraat 1-11079WX Amsterdam
+31207726869 +31651611510

Nieuwe media cursussen http://www.klikstudio.net
Webdesign en hosting http://www.klikstudio.nl

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie installation problems

2006-07-27 Thread Antonio Petrelli

D. Salemink Klikstudio ha scritto:

I have redhat enterprise (3?)
It worked with the tomcat 4 version in the /etc/profile
but it doesnt seem to want to loose this configuration anymore
This is whats in my my /etc/profile now

JAVA_HOME=/usr/java/j2sdk1.4.2_12
CATALINA_HOME=/usr/local/apache-tomcat-5.5.17



And what does:
env | grep CATALINA_HOME
say?
Did you exit the session before trying to run Tomcat?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie installation problems

2006-07-27 Thread Raju Balugu

Have u placed the compatability jar files in tomcat5 environment?
jmx.jar --tomcat5/bin/
xerecesImpl.jar --tomcat5\common\endorsed\
xml-api.jar.jar --tomcat5\common\endorsed\

Regards
Raju


On 7/27/06, D. Salemink Klikstudio [EMAIL PROTECTED] wrote:


I have redhat enterprise (3?)
It worked with the tomcat 4 version in the /etc/profile
but it doesnt seem to want to loose this configuration anymore
This is whats in my my /etc/profile now

JAVA_HOME=/usr/java/j2sdk1.4.2_12
CATALINA_HOME=/usr/local/apache-tomcat-5.5.17



On 7/27/06, Antonio Petrelli [EMAIL PROTECTED] wrote:
 D. Salemink Klikstudio ha scritto:
  As far as i know i have no files whatsoever going to 4.1.31 and
  somehow i most still have the environment set up wrong, can anybody
  help me with this??

 What's your distribution? Not all Linux distributions use /etc/profile
 for environment variables. For example Ubuntu uses /etc/environment

 Ciao
 Antonio

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
D. Salemink
Zomerdijkstraat 1-11079WX Amsterdam
+31207726869 +31651611510

Nieuwe media cursussen http://www.klikstudio.net
Webdesign en hosting http://www.klikstudio.nl

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: newbie installation problems

2006-07-27 Thread D. Salemink Klikstudio

[EMAIL PROTECTED] apache-tomcat-5.5.17]# env | grep CATALINA_HOME
CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.31


On 7/27/06, Antonio Petrelli [EMAIL PROTECTED] wrote:

D. Salemink Klikstudio ha scritto:
 I have redhat enterprise (3?)
 It worked with the tomcat 4 version in the /etc/profile
 but it doesnt seem to want to loose this configuration anymore
 This is whats in my my /etc/profile now

 JAVA_HOME=/usr/java/j2sdk1.4.2_12
 CATALINA_HOME=/usr/local/apache-tomcat-5.5.17


And what does:
env | grep CATALINA_HOME
say?
Did you exit the session before trying to run Tomcat?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
D. Salemink
Zomerdijkstraat 1-11079WX Amsterdam
+31207726869 +31651611510

Nieuwe media cursussen http://www.klikstudio.net
Webdesign en hosting http://www.klikstudio.nl

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie installation problems

2006-07-27 Thread D. Salemink Klikstudio

no i havent,

From where should i take these files?


Regards
Debbie

On 7/27/06, Raju Balugu [EMAIL PROTECTED] wrote:

Have u placed the compatability jar files in tomcat5 environment?
jmx.jar --tomcat5/bin/
xerecesImpl.jar --tomcat5\common\endorsed\
xml-api.jar.jar --tomcat5\common\endorsed\

Regards
Raju


On 7/27/06, D. Salemink Klikstudio [EMAIL PROTECTED] wrote:

 I have redhat enterprise (3?)
 It worked with the tomcat 4 version in the /etc/profile
 but it doesnt seem to want to loose this configuration anymore
 This is whats in my my /etc/profile now

 JAVA_HOME=/usr/java/j2sdk1.4.2_12
 CATALINA_HOME=/usr/local/apache-tomcat-5.5.17



 On 7/27/06, Antonio Petrelli [EMAIL PROTECTED] wrote:
  D. Salemink Klikstudio ha scritto:
   As far as i know i have no files whatsoever going to 4.1.31 and
   somehow i most still have the environment set up wrong, can anybody
   help me with this??
 
  What's your distribution? Not all Linux distributions use /etc/profile
  for environment variables. For example Ubuntu uses /etc/environment
 
  Ciao
  Antonio
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 D. Salemink
 Zomerdijkstraat 1-11079WX Amsterdam
 +31207726869 +31651611510

 Nieuwe media cursussen http://www.klikstudio.net
 Webdesign en hosting http://www.klikstudio.nl

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







--
D. Salemink
Zomerdijkstraat 1-11079WX Amsterdam
+31207726869 +31651611510

Nieuwe media cursussen http://www.klikstudio.net
Webdesign en hosting http://www.klikstudio.nl

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie installation problems

2006-07-27 Thread Timothy Collett

On Jul 27, 2006, at 10:55 AM, D. Salemink Klikstudio wrote:


[EMAIL PROTECTED] apache-tomcat-5.5.17]# env | grep CATALINA_HOME
CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.31


That looks like your environment is simply not getting set properly-- 
or is getting reset after your /etc/profile is set (you might check  
for a ~/.bashrc or ~/.cshrc, depending on your shell).


It may take some digging to find, but somewhere in your profile  
scripts, it is setting CATALINA_HOME to that.


Timothy Collett

--

Nobody can make you feel inferior without your permission.
-Eleanor Roosevelt


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie installation problems

2006-07-27 Thread Raju Balugu

http://tomcat.apache.org/download-55.cgi#5.5.17

check for the compatability jars.


On 7/27/06, D. Salemink Klikstudio [EMAIL PROTECTED] wrote:


no i havent,
From where should i take these files?

Regards
Debbie

On 7/27/06, Raju Balugu [EMAIL PROTECTED] wrote:
 Have u placed the compatability jar files in tomcat5 environment?
 jmx.jar --tomcat5/bin/
 xerecesImpl.jar --tomcat5\common\endorsed\
 xml-api.jar.jar --tomcat5\common\endorsed\

 Regards
 Raju


 On 7/27/06, D. Salemink Klikstudio [EMAIL PROTECTED] wrote:
 
  I have redhat enterprise (3?)
  It worked with the tomcat 4 version in the /etc/profile
  but it doesnt seem to want to loose this configuration anymore
  This is whats in my my /etc/profile now
 
  JAVA_HOME=/usr/java/j2sdk1.4.2_12
  CATALINA_HOME=/usr/local/apache-tomcat-5.5.17
 
 
 
  On 7/27/06, Antonio Petrelli [EMAIL PROTECTED] wrote:
   D. Salemink Klikstudio ha scritto:
As far as i know i have no files whatsoever going to 4.1.31 and
somehow i most still have the environment set up wrong, can
anybody
help me with this??
  
   What's your distribution? Not all Linux distributions use
/etc/profile
   for environment variables. For example Ubuntu uses /etc/environment
  
   Ciao
   Antonio
  
  
-
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  D. Salemink
  Zomerdijkstraat 1-11079WX Amsterdam
  +31207726869 +31651611510
 
  Nieuwe media cursussen http://www.klikstudio.net
  Webdesign en hosting http://www.klikstudio.nl
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




--
D. Salemink
Zomerdijkstraat 1-11079WX Amsterdam
+31207726869 +31651611510

Nieuwe media cursussen http://www.klikstudio.net
Webdesign en hosting http://www.klikstudio.nl

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat and MySQL error

2006-07-27 Thread Propes, Barry L
somewhere, likely server.xml, you've got an ODBC setting pointing to the IP 
address or domain name of the old box. 

Do a global search -- find file or with contents of your old box IP 
address/name to find the file(s) that contain said string.

-Original Message-
From: DK [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 26, 2006 11:06 PM
To: users@tomcat.apache.org
Subject: Tomcat and MySQL error



Hello all, I am new to this configuration and working on an exisitng website
with MySQL database.

There is a change in the domain name / IP address and after the change in IP
address I am not able to connect to the database and I get this error when
tomcat is started.

Caused by: java.sql.SQLException: Cannot connect to MySQL server on
www.old-domain.com:3306. Is there a MySQL server running on the machine/port
you are trying to connect to? (java.net.ConnectException)

My MySQL is working fine on port 3306 - I am able to connect to the database
from the command prompt

I do not know which file I should edit and update with the new IP address /
domain name in place of www.old-domain.com, so that tomcat connects to the
database with new domain name, when tomcat is started

Any help is appreciated !
-- 
View this message in context: 
http://www.nabble.com/Tomcat-and-MySQL-error-tf2007556.html#a5514999
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie installation problems

2006-07-27 Thread D. Salemink Klikstudio

Thanks Raju,
ive placed the jars but i still have the same problem, I've checked
all bash_profile files doesnt seem to be a double entry anywhere and
the default the server uses is /etc/profile
according to the bashrc.
Could there be a double entry anywhere else?

Regards,
On 7/27/06, Raju Balugu [EMAIL PROTECTED] wrote:

http://tomcat.apache.org/download-55.cgi#5.5.17

check for the compatability jars.


On 7/27/06, D. Salemink Klikstudio [EMAIL PROTECTED] wrote:

 no i havent,
 From where should i take these files?

 Regards
 Debbie

 On 7/27/06, Raju Balugu [EMAIL PROTECTED] wrote:
  Have u placed the compatability jar files in tomcat5 environment?
  jmx.jar --tomcat5/bin/
  xerecesImpl.jar --tomcat5\common\endorsed\
  xml-api.jar.jar --tomcat5\common\endorsed\
 
  Regards
  Raju
 
 
  On 7/27/06, D. Salemink Klikstudio [EMAIL PROTECTED] wrote:
  
   I have redhat enterprise (3?)
   It worked with the tomcat 4 version in the /etc/profile
   but it doesnt seem to want to loose this configuration anymore
   This is whats in my my /etc/profile now
  
   JAVA_HOME=/usr/java/j2sdk1.4.2_12
   CATALINA_HOME=/usr/local/apache-tomcat-5.5.17
  
  
  
   On 7/27/06, Antonio Petrelli [EMAIL PROTECTED] wrote:
D. Salemink Klikstudio ha scritto:
 As far as i know i have no files whatsoever going to 4.1.31 and
 somehow i most still have the environment set up wrong, can
 anybody
 help me with this??
   
What's your distribution? Not all Linux distributions use
 /etc/profile
for environment variables. For example Ubuntu uses /etc/environment
   
Ciao
Antonio
   
   
 -
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   D. Salemink
   Zomerdijkstraat 1-11079WX Amsterdam
   +31207726869 +31651611510
  
   Nieuwe media cursussen http://www.klikstudio.net
   Webdesign en hosting http://www.klikstudio.nl
  
   -
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 


 --
 D. Salemink
 Zomerdijkstraat 1-11079WX Amsterdam
 +31207726869 +31651611510

 Nieuwe media cursussen http://www.klikstudio.net
 Webdesign en hosting http://www.klikstudio.nl

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







--
D. Salemink
Zomerdijkstraat 1-11079WX Amsterdam
+31207726869 +31651611510

Nieuwe media cursussen http://www.klikstudio.net
Webdesign en hosting http://www.klikstudio.nl

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



servlet and HTTP authentication

2006-07-27 Thread Kristian Rink
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Hi all;

gotta solve a very special authentication situation: Users need to have
access to certain file packages using an URL like

http://.../packages/package-id


with package-id referring to an identifier stored in a local document
management system. User information (id, password) are stored in the DMS
database as well. To provide access to a certain package, I need to ensure

(a) the user is valid (thus, has authenticated)
(b) the user is owner of the package (which I can find out using the DMS
database as well)


However, following this approach I cannot use container-based
authentication as the DBMS user management repository is not easily
accessible via such a configuration but there are Java classes to
authenticate the user using an API which to be called from another Java
class, a servlet, ...


So, my question: Is there a way to configure Tomcat that, for a given
servlet or resource, a HTTP authentication window will appear and, then,
 the data entered there (username, password) is given to the servlet in
order to do anything useful with it? I _suppose_ those parameters should
be available as part of the Request, but I don't know how to make tomcat
demand HTTP authentication _without_ automatically validating these
parameters.


Any hints on that?
TIA and bye,
Kristian


- --
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771
Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam
träumen, ist das der Anfang einer neuen Wirklichkeit. (Hundertwasser)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEyNnIcxBAPOA1m6wRAiUDAJ0dye/TauPE+I6aN/zozzGbIDWA1gCfWaV5
GP9iBHbOOjIsMPA1TLIq+/s=
=1z5/
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unavailabe to retrieve the list of portlets

2006-07-27 Thread keyur sheth
Hi Everybody,
   
  I wanted to make the tomcat container secure. So I 
converted the http to https by generating self signed certificate. There is an 
application running under the tomcat server called gridsphere. So in the 
gridsphere portal it was unable to show the list of portlets running which it 
was previously showing before making the tomcat container secure. The error you 
get on the Portal interface when u log in, Portlet Manager service portlet 
shows:-
   
 Unable to retrieve list of portlets. Make sure tomcat-users.xml 
has been edited according to the UserGuide
   
  I also went through the documentation of gridsphere and 
made some changes in tomcat-users.xml file as per that documentation. But still 
Portlet Manager Service does not show the list of portlets. The documentation 
is at http://www.gridsphere.org/gridsphere/docs/UsersGuide/UsersGuide.pdf. 
   
 Kindly suggest me the solution for that.
   
  Keyur


-
See the all-new, redesigned Yahoo.com.  Check it out.

RE: HTTP Status 500 error

2006-07-27 Thread Propes, Barry L
I'd pay close attention to these:

   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

and see what the doAsPriveleged methods are calling.

-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 1:38 AM
To: Tomcat Users List
Subject: HTTP Status 500 error


Hello

When I run the program I am using, I get this error. What does it
mean. How can I interpret it?

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException
   org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:290)
   
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
   
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
   
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
   
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
   
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   java.lang.Thread.run(Thread.java:595)

root cause

java.lang.ExceptionInInitializerError
   org.w3c.css.servlet.CssValidator.init(CssValidator.java:109)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
   org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
   
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
   
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
   
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
   
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
   
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   java.lang.Thread.run(Thread.java:595)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0 logs.
Apache Tomcat/5.0

-- 
OOzy
Kubuntu-Dapper

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet and HTTP authentication

2006-07-27 Thread DJohnson
Sorry for top post:  Notes e-mail client restriction
If you configure Tomcat to NOT require authentication for this particular 
servlet, then your servlet can examine the credentials, and if they are 
absent or insufficient, send a 401 - Not Authorized response, which causes 
the browser to prompt for id/pass.  You can also manipulate the realm 
identified in that prompt by adding a WWW-Authenticate header to the 401 
response:
WWW-Authenticate: Basic realm=My Document Management System

I'm not sure if tomcat will interpret the resulting Authorization header 
in the next request, given that you asked him not to authenticate, but you 
can always ask for the contents of that header, strip off the Basic  
from the front, and Base64.decode the rest, yielding userid:password. 
Split on the : and you have your id and password.



Please respond to Tomcat Users List users@tomcat.apache.org

To: Tomcat Users List users@tomcat.apache.org
cc:  
Subject:servlet and HTTP authentication



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Hi all;

gotta solve a very special authentication situation: Users need to have
access to certain file packages using an URL like

http://.../packages/package-id


with package-id referring to an identifier stored in a local document
management system. User information (id, password) are stored in the DMS
database as well. To provide access to a certain package, I need to ensure

(a) the user is valid (thus, has authenticated)
(b) the user is owner of the package (which I can find out using the DMS
database as well)


However, following this approach I cannot use container-based
authentication as the DBMS user management repository is not easily
accessible via such a configuration but there are Java classes to
authenticate the user using an API which to be called from another Java
class, a servlet, ...


So, my question: Is there a way to configure Tomcat that, for a given
servlet or resource, a HTTP authentication window will appear and, then,
the data entered there (username, password) is given to the servlet in
order to do anything useful with it? I _suppose_ those parameters should
be available as part of the Request, but I don't know how to make tomcat
demand HTTP authentication _without_ automatically validating these
parameters.


Any hints on that?
TIA and bye,
Kristian


- --
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771
Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam
träumen, ist das der Anfang einer neuen Wirklichkeit. (Hundertwasser)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEyNnIcxBAPOA1m6wRAiUDAJ0dye/TauPE+I6aN/zozzGbIDWA1gCfWaV5
GP9iBHbOOjIsMPA1TLIq+/s=
=1z5/
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




.tld files without web.xml

2006-07-27 Thread Marten Lehmann

Hello,

I have a directory /META-INF which contains different .tld files (taglib 
definitions). Usually, the webapp should notice these files and make 
them available to the single .jsp files.


But I always get:

500 Servlet Exception

/tools/internet/whois.jsp:10: `http://dev.test.de/test' has no matching
taglib-uri.  The taglib uri must match a taglib-uri for a taglib 
specified in the web.xml or implicitly in a taglib.tld in the tag jar.


The taglib contains the definition:

urihttp://dev.test.de/test/uri

so it should be fine. web.xml is defined with

web-app version=2.4 ...

so the webapp should be able to parse /META-INF.

What else could be wrong?

Regards
Marten

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.17 won't Start

2006-07-27 Thread KuArZo
This is the error:

java.net.BindException: Can't assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.init(ServerSocket.java:185)
at 
org.apache.catalina.core.StandardServer.await(StandardServer.java:372)
at org.apache.catalina.startup.Catalina.await(Catalina.java:615)
at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
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.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Jul 27, 2006 12:10:03 PM org.apache.coyote.http11.Http11BaseProtocol pause

And only change on my System is IPv6 Activate!

Someone Idea?

KuArZo


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP Status 500 error

2006-07-27 Thread Martin Gainty
More specifically..

wrap your code in a try 
with a catch on PrivilegedActionException
http://java.sun.com/j2se/1.3/docs/api/java/security/AccessController.html

check out your $TOMCAT_HOME/conf/catalina.policy for correct grants

M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Propes, Barry L [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, July 27, 2006 12:13 PM
Subject: RE: HTTP Status 500 error


I'd pay close attention to these:

   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

and see what the doAsPriveleged methods are calling.

-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 1:38 AM
To: Tomcat Users List
Subject: HTTP Status 500 error


Hello

When I run the program I am using, I get this error. What does it
mean. How can I interpret it?

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException
   org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:290)
   
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
   
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
   
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
   
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
   
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   java.lang.Thread.run(Thread.java:595)

root cause

java.lang.ExceptionInInitializerError
   org.w3c.css.servlet.CssValidator.init(CssValidator.java:109)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
   org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
   
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
   
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
   
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
   
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
   
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   java.lang.Thread.run(Thread.java:595)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0 logs.
Apache Tomcat/5.0

-- 
OOzy
Kubuntu-Dapper

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie installation problems

2006-07-27 Thread D. Salemink Klikstudio

I did a reboot and now everything works, so it must have been still
running in the background? Thanks for all your help.

regards
Debbie Salemink


On 7/27/06, D. Salemink Klikstudio [EMAIL PROTECTED] wrote:

Thanks Raju,
ive placed the jars but i still have the same problem, I've checked
all bash_profile files doesnt seem to be a double entry anywhere and
the default the server uses is /etc/profile
according to the bashrc.
Could there be a double entry anywhere else?

Regards,
On 7/27/06, Raju Balugu [EMAIL PROTECTED] wrote:
 http://tomcat.apache.org/download-55.cgi#5.5.17

 check for the compatability jars.


 On 7/27/06, D. Salemink Klikstudio [EMAIL PROTECTED] wrote:
 
  no i havent,
  From where should i take these files?
 
  Regards
  Debbie
 
  On 7/27/06, Raju Balugu [EMAIL PROTECTED] wrote:
   Have u placed the compatability jar files in tomcat5 environment?
   jmx.jar --tomcat5/bin/
   xerecesImpl.jar --tomcat5\common\endorsed\
   xml-api.jar.jar --tomcat5\common\endorsed\
  
   Regards
   Raju
  
  
   On 7/27/06, D. Salemink Klikstudio [EMAIL PROTECTED] wrote:
   
I have redhat enterprise (3?)
It worked with the tomcat 4 version in the /etc/profile
but it doesnt seem to want to loose this configuration anymore
This is whats in my my /etc/profile now
   
JAVA_HOME=/usr/java/j2sdk1.4.2_12
CATALINA_HOME=/usr/local/apache-tomcat-5.5.17
   
   
   
On 7/27/06, Antonio Petrelli [EMAIL PROTECTED] wrote:
 D. Salemink Klikstudio ha scritto:
  As far as i know i have no files whatsoever going to 4.1.31 and
  somehow i most still have the environment set up wrong, can
  anybody
  help me with this??

 What's your distribution? Not all Linux distributions use
  /etc/profile
 for environment variables. For example Ubuntu uses /etc/environment

 Ciao
 Antonio


  -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   
   
--
D. Salemink
Zomerdijkstraat 1-11079WX Amsterdam
+31207726869 +31651611510
   
Nieuwe media cursussen http://www.klikstudio.net
Webdesign en hosting http://www.klikstudio.nl
   
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
 
 
  --
  D. Salemink
  Zomerdijkstraat 1-11079WX Amsterdam
  +31207726869 +31651611510
 
  Nieuwe media cursussen http://www.klikstudio.net
  Webdesign en hosting http://www.klikstudio.nl
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




--
D. Salemink
Zomerdijkstraat 1-11079WX Amsterdam
+31207726869 +31651611510

Nieuwe media cursussen http://www.klikstudio.net
Webdesign en hosting http://www.klikstudio.nl




--
D. Salemink
Zomerdijkstraat 1-11079WX Amsterdam
+31207726869 +31651611510

Nieuwe media cursussen http://www.klikstudio.net
Webdesign en hosting http://www.klikstudio.nl

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with IE6, AJP1.3, Apache httpd and tomcat

2006-07-27 Thread Martin Gainty
Following the Tomcat doc -
Apache2 seems to go either with AJP 1.2 or 1.3 connectors
after 2.0 you'll need AJP1.3X connector(s)
before 2.0 you'll need ASP1.2X connector(s)
http://tomcat.apache.org/connectors-doc/howto/apache.html
HTH,
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Robert [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Thursday, July 27, 2006 3:37 AM
Subject: Re: Problems with IE6, AJP1.3, Apache httpd and tomcat


 Rick G wrote:
 Robert,
  Do you have some sample script/servlet that you can reliably reproduce the
 issue that I could try?
 If not, could you let me know a bit more about the operation, frequency of
 the occurrence?
 
 I don't have it, because I cannot reproduce the problem here on a 
 windows configuration. It only happens at one of our customers that uses 
 linux and AJP.
 
 The unusual part of the script might be the synchronous nature. It uses 
 synchronous XMLHTTP/AJAX calls. Maybe that makes the problem apparent, 
 while in other cases it would have gone unnoticed. I currently have no 
 choice to make the calls asynchronous, because it was designed to be 
 synchronous. It would take too much work now.
 
 When trying it on windows I used
 Apache HTTP Server 2.2.2
 Jakarta Tomcat 5.5.7
 
 First I also tried to use mod_jk 1.2.14.1, but I never was able to start 
 the HTTP Server with that version of the connector.
 Finally I found mod_jk-apache-2.2.2 at 
 http://tomcat.apache.org/dev/dist/win32/ and then everything worked 
 fine. Of course kinda sad that I could not reproduce the problem.
 
 What I am curious about is the compatibility between Apache HTTP Server 
 2.2.0 and mod_jk 1.2.14.1 on linux. Is there a compatibility problem 
 between those version that manifest itself in my problems. What is the 
 recommended mod_jk version for Apache HTTP Server 2.2.0 on linux?
 
 Robert
 
 -Original Message-
 From: Robert [mailto:[EMAIL PROTECTED] 
 Posted At: Tuesday, July 25, 2006 2:29 PM
 Subject: Re: Problems with IE6, AJP1.3, Apache httpd and tomcat
 
 
 Rick G wrote:
 
Hi Robert,
  I just wanted to say that I have been using the XMLHTTP object for 
about 7 years now (since IE 5x),
 
 Strangely enough the problems do not occur when using IE7.
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Tomcat and MySQL error

2006-07-27 Thread DK

Thanks to all of you !

I did a search (grep -R) under the /usr/local/jakarta and /etc folder for
this string but found no results. I am still wondering as which file carries
this value.

Thanks again,
DK
-- 
View this message in context: 
http://www.nabble.com/Tomcat-and-MySQL-error-tf2007556.html#a5525925
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat and MySQL error

2006-07-27 Thread Propes, Barry L
try the base of usr/local

-Original Message-
From: DK [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 12:48 PM
To: users@tomcat.apache.org
Subject: RE: Tomcat and MySQL error



Thanks to all of you !

I did a search (grep -R) under the /usr/local/jakarta and /etc folder for
this string but found no results. I am still wondering as which file carries
this value.

Thanks again,
DK
-- 
View this message in context: 
http://www.nabble.com/Tomcat-and-MySQL-error-tf2007556.html#a5525925
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat , wondoze , Unable to find a javac compiler;

2006-07-27 Thread Randy Paries

unfortuntaly i have to setup tomcat on windoze.
i have it working on tons of linux boxs, and this has been a royle
pain. Ok enough whinning.

so when i try to display a jsp is get the error
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


in the tomcat monitor i have Use default selected

in the XP env vars i have
CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_04

so what have i missed

Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat , wondoze , Unable to find a javac compiler;

2006-07-27 Thread David Smith
Are the env vars User variables for your account or system variables?  
Take a look at this:


1. Click Start, then RIGHT click on My Computer.
2. Choose Properties from the pop-up menu
3. Click the Advanced tab in the System Properties window.
4. Click on the Environment Variables button
5. The resulting window has two halves.  The top is the user's 
environment, the bottom is the system.


The System variables should include JAVA_HOME.  CLASSPATH need not be 
set or can be set to something unrelated to tomcat.


--David

Randy Paries wrote:


unfortuntaly i have to setup tomcat on windoze.
i have it working on tons of linux boxs, and this has been a royle
pain. Ok enough whinning.

so when i try to display a jsp is get the error
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


in the tomcat monitor i have Use default selected

in the XP env vars i have
CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_04

so what have i missed

Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat , wondoze , Unable to find a javac compiler;

2006-07-27 Thread Larry Meadors

Might be the space...

Larry


On 7/27/06, Randy Paries [EMAIL PROTECTED] wrote:

unfortuntaly i have to setup tomcat on windoze.
i have it working on tons of linux boxs, and this has been a royle
pain. Ok enough whinning.

so when i try to display a jsp is get the error
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


in the tomcat monitor i have Use default selected

in the XP env vars i have
CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_04

so what have i missed

Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat , wondoze , Unable to find a javac compiler;

2006-07-27 Thread Martin Gainty
to check the configuration..what does the servlet specification say (jsp) 
entry from $CATALINA_BASE/conf/web.xml?

M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Randy Paries [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Thursday, July 27, 2006 2:18 PM
Subject: tomcat , wondoze , Unable to find a javac compiler;


 unfortuntaly i have to setup tomcat on windoze.
 i have it working on tons of linux boxs, and this has been a royle
 pain. Ok enough whinning.
 
 so when i try to display a jsp is get the error
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 
 
 in the tomcat monitor i have Use default selected
 
 in the XP env vars i have
 CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib
 JAVA_HOME = C:\Program Files\Java\jdk1.5.0_04
 
 so what have i missed
 
 Thanks
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: tomcat , wondoze , Unable to find a javac compiler;

2006-07-27 Thread Propes, Barry L
make the PATH (not classpath) point to:

C:\Program Files\Java\jdk1.5.0_04\bin

-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 1:19 PM
To: users@tomcat.apache.org
Subject: tomcat , wondoze , Unable to find a javac compiler;


unfortuntaly i have to setup tomcat on windoze.
i have it working on tons of linux boxs, and this has been a royle
pain. Ok enough whinning.

so when i try to display a jsp is get the error
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


in the tomcat monitor i have Use default selected

in the XP env vars i have
CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_04

so what have i missed

Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache - Tomcat connector

2006-07-27 Thread Atul Govande








Hi ,

I am new to
tomcat as well as Apache. I got both thing working independently and now I am
trying to connect two together. I was looking different documentation and was
wondering which is better way JK2 or Mod_JK . What is the difference?

Any input
is appreciated! I am using Tomcat 5.0.0.30 and Apache 2.0.xx and Java 1.4.2.







Best Regards,

Atul Govande

818 717 5621

NOTE: Please note that Delta Tau no
longer allows the sending or receiving of attachments with the extension .ZIP
or .EXE. Please rename all .ZIP attachments to .ZZZ. Please zip all .EXE
attachments and then rename them to .ZZZ. If you receive an attachment named
.ZZZ please rename it to .ZIP. Sorry for the inconvenience.













Re: Apache - Tomcat connector

2006-07-27 Thread David Smith

Easy answer: mod_jk

Mod-jk2 lost all support and its features have been back-ported to mod_jk .

--David

Atul Govande wrote:


Hi ,

I am new to tomcat as well as Apache. I got both thing working 
independently and now I am trying to connect two together. I was 
looking different documentation and was wondering which is better way 
JK2 or Mod_JK . What is the difference?


Any input is appreciated! I am using Tomcat 5.0.0.30 and Apache 2.0.xx 
and Java 1.4.2.


 

 


Best Regards,

Atul Govande

818 717 5621

NOTE: Please note that Delta Tau no longer allows the sending or 
receiving of attachments with the extension .ZIP or .EXE. Please 
rename all .ZIP attachments to .ZZZ. Please zip all .EXE attachments 
and then rename them to .ZZZ. If you receive an attachment named .ZZZ 
please rename it to .ZIP. Sorry for the inconvenience. 

 




--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache - Tomcat connector

2006-07-27 Thread Steve Ochani
On 27 Jul 2006 at 13:03, Atul Govande wrote:

 
 Hi ,
 I am new to tomcat as well as Apache. I got both thing working
 independently and now I am trying to connect two together. I was
 looking different documentation and was wondering which is better way
 JK2 or Mod_JK . What is the difference? Any input is appreciated! I am
 using Tomcat 5.0.0.30 and Apache 2.0.xx and Java 1.4.2.

jk2 is no longer supported so use mod_jk

Also, for the future, send e-mails in plain-text to mailing lists.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: forward SSL-Certificate to ActionContext with Tomcat Native

2006-07-27 Thread Florian Rock
Hello,

the answer is very simple:
this is a bug in APR components (the https connector)
http://issues.apache.org/bugzilla/show_bug.cgi?id=37869

thats the reason why i don't able to use apr :(

greets
Florian

Florian Rock schrieb:
 Hello guys,

 I verify clients by Certificate in my Application.
 X509Certificate[] certs =
 (X509Certificate[])context.getRequest().getAttribute(javax.servlet.request.X509Certificate);

 this works fine with connector like:
 Connector port=8443 maxHttpHeaderSize=8192
keystoreFile=conf/keystore.jks keystorePass=pw
truststoreFile=conf/truststore.jks truststorePass=pw
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
clientAuth=want sslProtocol=TLS /

 but i want to use Apache Portable Runtime with Tomcat (libtcnative).
 because APR comes with OpenSSL specific Connector attributes i have to
 change connector to:

 Connector port=8443 maxHttpHeaderSize=8192
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
SSLEngine=on
   
 SSLCertificateFile=${catalina.base}/conf/ssl.server/server.crt  
  

   
 SSLCertificateKeyFile=${catalina.base}/conf/ssl.server/server.key
SSLVerifyClient=optional
SSLCACertificatePath=${catalina.base}/conf/ssl.client
SSLOptions=+StdEnvVars +ExportCertData
 /

 ClientAuth works fine with Tomcat but Certificate got not forwarded to
 ActionContext:
 so X509Certificate[] certs =
 (X509Certificate[])context.getRequest().getAttribute(javax.servlet.request.X509Certificate);
 returns null.

 i use:
 Apache Tomcat 5.5.17
 OpenSSL 0.9.7e
 Tomcat Native 1.1.3

 greets
 Florian





 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat using only 1 cpu

2006-07-27 Thread Landon Fabbricino
Hello,

We have been experiencing an issue where tomcat (jsvc) is only
utilizing one CPU rather then the four available.  I happened to notice
that it was only using 1 CPU when the server was slowed to a crawl and
only 25% of the server CPU's (4 of them) was being used.

We have been experiencing this problem on a Sun-Fire-480R Solaris 10
server, 16gb of ram and 4 CPU's.  The server is also using the 64 bit
version of java

Does anyone have any suggestions of what might be causing this problem
? 

Thanks in advance.

Landon Fabbricino
IT Applications

Phone: 403.225.7515
Fax: 403.225.7606
[EMAIL PROTECTED]


IMPORTANT NOTICE !
This E-Mail transmission and any accompanying attachments may contain
confidential information intended only for the use of the individual or
entity named above. Any dissemination, distribution, copying or action taken
in reliance on the contents of this E-Mail by anyone other than the intended
recipient is strictly prohibited and is not intended to, in anyway, waive
privilege or confidentiality. If you have received this E-Mail in error please
immediately delete it and notify sender at the above E-Mail address.

Agrium uses state of the art anti-virus technology on all incoming and
outgoing E-Mail. We encourage and promote the use of safe E-Mail management
practices and recommend you check this, and all other E-Mail and attachments
you receive for the presence of viruses. The sender and Agrium accept no 
liability
for any damage caused by a virus or otherwise by the transmittal of this E-Mail.
IMPORTANT NOTICE 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Back to 404 problem: The requested resource (/Sisc/servlet/servle ts/PesquisaTabPeriferica) is not available

2006-07-27 Thread Siomara
Dear All,

I implemented the suggestions from the list but the 404 problem still
persists.
I have an application called Sisc
Under Sisc there are package1 package2 package3... and a new package called
servlets with all my servlets (note that the name has a S at the end).
I included 'package servlets;' as first line of all servlets
The web.xml file looks like this:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  display-namePresidencia da Republica/display-name
  descriptionSISC by Siomara Pantarotto/description
  servlet
  servlet-nameincluiMarcaPropriedade/servlet-name
  servlet-classservlets.IncluiMarcaPropriedade/servlet-class

  servlet-namepesquisaTabPeriferica/servlet-name
  servlet-classservlets.PesquisaTabPeriferica/servlet-class
  
  servlet-nameregistraMarcaPropriedade/servlet-name
  servlet-classservlets.RegistraMarcaPropriedade/servlet-class
  /servlet
  servlet-mapping
  servlet-nameincluiMarcaPropriedade/servlet-name
  url-pattern/servlet/servlets/IncluiMarcaPropriedade/url-pattern
 
  servlet-namepesquisaTabPeriferica/servlet-name
  url-pattern/servlet/servlets/PesquisaTabPeriferica/url-pattern
  
  servlet-nameregistraMarcaPropriedade/servlet-name
  url-pattern/servlet/servlets/RegistraMarcaPropriedade/url-pattern
  /servlet-mapping
/web-app

Am I missing something
The weird thing I noticed is that sometimes the servlet
'PesquisaTabPeriferica' works fine, sometimes it does not and I get 404
message (specially when I clean browser history, delete files and off line
files). When the servlet 'PesquisaTabPeriferica' works the other one
'RegistraMarcaPropriedade' does not.
I have no clue of what is going on. This never happened to me before. I am
losing confidence regarding TOMCAT and don't know what to do. 
Can someone help me please. I do appreciate your feed back.
These are my calls from the application:

from index.htm:
...
td width=50% height=20a
href=servlet/servlets/PesquisaTabPeriferica?idTabela=1
Consultar/Manutenção Marca de Propriedade/a/td
...


from incluiMarcaPropriedade.htm:
...

///
// Validate fields and submit form elements to servlet
RegistraMarcaPropriedade
//
function doFormSubmit()
{
objfrm=document.incluiAlteraMarcaPropriedade;
//Store the file path of the next servlet/jsp to be called
strFilePath = servlet/servlets/RegistraMarcaPropriedade
  
strDescricao=objfrm.txtDescricao.value;
if(isSpecialChar(strDescricao) || !isChar(strDescricao))
{
alert(Favor entrar com uma descrição válida.);
objfrm.txtDescricao.focus();
return false;
}

if(isEmpty(strDescricao))
{
alert(Campo obrigatório);
objfrm.TxtNumber.focus();
return false;
}

objfrm.method=post;
objfrm.action=strFilePath;
return true;
objfrm.submit();

}
...
Thanks a lot


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat and MySQL error

2006-07-27 Thread DK

Thanks again to all !

Did a grep -R on /usr/local and got the file. It is
/usr/local/jakarta/webapps/website/WEB-INF/struts-config.xml and the line
that I had to modify was 
set-property property =url value =
jdbc:mysql://New-IP-Address/inteplan?autoReconnect=true /

Everything works fine now and Thanks again to all of you !!
DK
-- 
View this message in context: 
http://www.nabble.com/Tomcat-and-MySQL-error-tf2007556.html#a5529626
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Contexts Hosts

2006-07-27 Thread Lundgren, Scott
I have been trying to figure this out for a full day now and I need some
help please. I have server.uncc.edu with a vendor's web application on
it that is using Tomcat 5.0.28. There are 2 hostnames DNS aliased to
this server. One hostname will have a reverse proxy in front and the
other hostname will be accessible by only a IP range so I can't use an
alias in a host element. 
 
Both hostnames are serving out the default if you're seeing this page
ROOT context from / and all the other default web applications (docs,
jsp-examples, etc) 
I'm trying to have both hostnames serve out the same web application as
their default and only context.
 
Can you see what I am doing wrong?
 
server.xml:
 
Engine debug=9 defaultHost=localhost name=Catalina
  Host appBase=webapps debug=9 name=localhost
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_ timestamp=true/
Valve className=org.apache.catalina.valves.AccessLogValve
fileDateFormat=-MM-dd pattern=%h %l %u %t quot;%rquot; %s %b
quot;%{Referer}iquot; quot;%{User-Ag
ent}iquot; prefix=localhost_access_ suffix=.log/
  /Host
  Host appBase=webapps debug=9 name=idmuser.uncc.edu
Logger className=org.apache.catalina.logger.FileLogger
debug=9 prefix=idmuser_ timestamp=true verbosity=4/
Valve className=org.apache.catalina.valves.AccessLogValve
fileDateFormat=-MM-dd pattern=%h %l %u %t quot;%rquot; %s %b
quot;%{Referer}iquot; quot;%{User-Ag
ent}iquot; prefix=idmuser_access_ suffix=.log/
  /Host
  Host appBase=webapps debug=9 name=idmmanager.uncc.edu
Logger className=org.apache.catalina.logger.FileLogger
debug=9 prefix=idmmanager_ timestamp=true verbosity=4/
Valve className=org.apache.catalina.valves.RemoteAddrValve
allow=152.15.4*.* deny=/
  /Host
  Realm className=org.apache.catalina.realm.UserDatabaseRealm/
/Engine

/opt/idm/jakarta-tomcat-5.0.28/conf/Catalina/idmmanager.uncc.edu/ROOT.xm
l 
?xml version='1.0' encoding='utf-8'?
Context debug=9 docBase=idm path= reloadable=true
useNaming=false workDir=work/Catalina/idmmanager.uncc.edu/_
/Context
 
/opt/idm/jakarta-tomcat-5.0.28/conf/Catalina/idmuser.uncc.edu/ROOT.xml 
?xml version='1.0' encoding='utf-8'?
Context debug=9 docBase=idm path=/ reloadable=true
useNaming=false workDir=work/Catalina/idmuser.uncc.edu/_
/Context

Scott Lundgren
ITS - Web Services
UNC at Charlotte
http://www.uncc.edu http://www.uncc.edu/ 
 
 


Re: Back to 404 problem: The requested resource (/Sisc/servlet/servle ts/PesquisaTabPeriferica) is not available

2006-07-27 Thread Guilherme Silveira

Oi Siomara,



  servlet
  servlet-nameincluiMarcaPropriedade/servlet-name
  servlet-classservlets.IncluiMarcaPropriedade/servlet-class

  servlet-namepesquisaTabPeriferica/servlet-name
  servlet-classservlets.PesquisaTabPeriferica/servlet-class

  servlet-nameregistraMarcaPropriedade/servlet-name
  servlet-classservlets.RegistraMarcaPropriedade/servlet-class
  /servlet

The servlet specification doesnt mention allowing two servlets
configured in one servlet tag (take a look at the dtd file)

For the 2.3 specs you should put 8 lines of code for each
servlet+servlet mapping

This might be your prob

Att

Guilherme Silveira

This never happened to me before. I am

losing confidence regarding TOMCAT and don't know what to do.
Can someone help me please. I do appreciate your feed back.
These are my calls from the application:

from index.htm:
...
td width=50% height=20a
href=servlet/servlets/PesquisaTabPeriferica?idTabela=1
Consultar/Manutenção Marca de Propriedade/a/td
...


from incluiMarcaPropriedade.htm:
...

///
// Validate fields and submit form elements to servlet
RegistraMarcaPropriedade
//
function doFormSubmit()
{
objfrm=document.incluiAlteraMarcaPropriedade;
//Store the file path of the next servlet/jsp to be called
strFilePath = servlet/servlets/RegistraMarcaPropriedade

strDescricao=objfrm.txtDescricao.value;
if(isSpecialChar(strDescricao) || !isChar(strDescricao))
{
alert(Favor entrar com uma descrição válida.);
objfrm.txtDescricao.focus();
return false;
}

if(isEmpty(strDescricao))
{
alert(Campo obrigatório);
objfrm.TxtNumber.focus();
return false;
}

objfrm.method=post;
objfrm.action=strFilePath;
return true;
objfrm.submit();

}
...
Thanks a lot


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Guilherme Silveira
--
[EMAIL PROTECTED]
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Upgrade

2006-07-27 Thread Ibrahim . Siddiqui
Hello.
Would anyone know where I could find good /detailed resources on how to go 
about upgrading from
Tomcat 4.0.6 to Tomcat 4.1.12 or is it Tomcat 4.1.2?
We have a content management application which integrates Vignette 
Platform, Vignette Multisite Content Manager,
Tomcat and IHS 1.3.26 webserver and I need to upgrade all of these 
components.

Thanks,
Ibrahim 
**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

Thank you.



error-page problem

2006-07-27 Thread Guilherme Silveira

It seems like a bug in (exact version) tomcat 5.5.17:

As defined per spec 2.4... I have stripped the problem to three files.
The servlet conteiner is not unwrapping the ServletException as
defined in the spec.

Result: error 500.

Expected result: server side redirect to error.jsp

Important test case:

a.jsp:
%
java.sql.DriverManager.getConnection();
%

web.xml:
?xml version=1.0 encoding=ISO-8859-1?

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

error-page
exception-typejava.sql.SQLException/exception-type
location/error.jsp/location
/error-page

/web-app

error.jsp:
html
error
/html

Should I send it to bugreport/jira tracker? I don't know how to create
a test case for such web app test using tomcat, so I simplified the
test as much as I could.

Att

Guilherme





--
Guilherme Silveira
--
[EMAIL PROTECTED]
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Upgrade

2006-07-27 Thread Guilherme Silveira

4.1.12...

Cant really help on such resource just be careful with session timeout
setup on web.xml as it seems to not work properly on 4.1.12...
setMaxInactiveInterval works as expected...

Att

Guilherme Silveira

On 7/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hello.
Would anyone know where I could find good /detailed resources on how to go
about upgrading from
Tomcat 4.0.6 to Tomcat 4.1.12 or is it Tomcat 4.1.2?
We have a content management application which integrates Vignette
Platform, Vignette Multisite Content Manager,
Tomcat and IHS 1.3.26 webserver and I need to upgrade all of these
components.

Thanks,
Ibrahim
**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose,
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

Thank you.






--
Guilherme Silveira
--
[EMAIL PROTECTED]
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat using only 1 cpu

2006-07-27 Thread Guilherme Silveira

You can probably check if its tomcat's fault or some OS or virtual
machine problem by creating an intensive program to check for 100% cpu
usage:

public class CpuTest {
 public static void main(String[] args) {
   for(int i=0;i4;i++) new Thread(new Loader()).start();
 }
}
class Loader implements Runnable {
 public void run() {
   while(true);
}
}

If running CpuTest once gives you 25% its a OS/java problem.
If it gives you 100%... its tomcat's fault...

Guilherme

On 7/27/06, Landon Fabbricino [EMAIL PROTECTED] wrote:

Hello,

We have been experiencing an issue where tomcat (jsvc) is only
utilizing one CPU rather then the four available.  I happened to notice
that it was only using 1 CPU when the server was slowed to a crawl and
only 25% of the server CPU's (4 of them) was being used.

We have been experiencing this problem on a Sun-Fire-480R Solaris 10
server, 16gb of ram and 4 CPU's.  The server is also using the 64 bit
version of java

Does anyone have any suggestions of what might be causing this problem
?

Thanks in advance.

Landon Fabbricino
IT Applications

Phone: 403.225.7515
Fax: 403.225.7606
[EMAIL PROTECTED]


IMPORTANT NOTICE !
This E-Mail transmission and any accompanying attachments may contain
confidential information intended only for the use of the individual or
entity named above. Any dissemination, distribution, copying or action taken
in reliance on the contents of this E-Mail by anyone other than the intended
recipient is strictly prohibited and is not intended to, in anyway, waive
privilege or confidentiality. If you have received this E-Mail in error please
immediately delete it and notify sender at the above E-Mail address.

Agrium uses state of the art anti-virus technology on all incoming and
outgoing E-Mail. We encourage and promote the use of safe E-Mail management
practices and recommend you check this, and all other E-Mail and attachments
you receive for the presence of viruses. The sender and Agrium accept no 
liability
for any damage caused by a virus or otherwise by the transmittal of this E-Mail.
IMPORTANT NOTICE




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Guilherme Silveira
--
[EMAIL PROTECTED]
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and Sun's Application server

2006-07-27 Thread Mark Thomas
Jon Hoffman wrote:

 The problem seems to come from Sun's J2EE.jar file.  This jar is needed
 by the EJB client but it also conflicts with the servlet.jar file that
 comes with tomcat therefore I get this warning in my Tomcat log file:
 INFO:
 validateJarFile(/usr/local/src/apache-tomcat-5.5.17/webapps/firewallrule
 s/WEB-INF/lib/j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section
 9.7.2. Offending class: javax/servlet/Servlet.class
 Can anyone give me any suggestions on how to get this to work?
 Thanks in advance for any help you can provide.

Just an idea. Try removing the servlet-api.jar and jsp-api.jar files
from common/lib and replacing them with the j2ee.jar

Warning: I haven't tested this at all.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-07-27 Thread Leo Donahue - PLANDEVX
 
From the Tomcat 5.0 setup page:
http://tomcat.apache.org/tomcat-5.0-doc/setup.html


Java location: The installer will use the registry or the JAVA_HOME
environment variable to determine the base path of the JDK or a JRE. If
only a JRE (or an incorrect path) is specified, Tomcat will run but will
be unable to compile JSP pages at runtime. Either all webapps will need
to be precompiled (this can be easily done using the Tomcat deployer),
or the lib\tools.jar file from a JDK installation must be copied to the
common\lib path of the Tomcat installation.

Using the JAVA_HOME on my windoze box didn't work and I ultimately
copied the tools.jar file, which worked.  Now I just have to remember I
did that in the future.

Leo D

-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 11:19 AM
To: users@tomcat.apache.org
Subject: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; -
Email has different SMTP TO: and MIME TO: fields in the email addresses

unfortuntaly i have to setup tomcat on windoze.
i have it working on tons of linux boxs, and this has been a royle pain.
Ok enough whinning.

so when i try to display a jsp is get the error Unable to find a javac
compiler; com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


in the tomcat monitor i have Use default selected

in the XP env vars i have
CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib JAVA_HOME = C:\Program
Files\Java\jdk1.5.0_04

so what have i missed

Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JAASReam in Tomcat-5.5

2006-07-27 Thread Eric Chow

Hello,

JAASRealm is no longer used in Tomcat-5.5, right ?

What can I do if I want to use JAAS as my login mechanism in web
appplication and define the security in web.xml ?


Best regards,
Eric

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JAASReam in Tomcat-5.5

2006-07-27 Thread Wendy Smoak

On 7/27/06, Eric Chow [EMAIL PROTECTED] wrote:


JAASRealm is no longer used in Tomcat-5.5, right ?

What can I do if I want to use JAAS as my login mechanism in web
appplication and define the security in web.xml ?


JAASRealm is right there in the Tomcat 5.5 docs:
   http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JAASRealm

I have some notes from various experiments with Tomcat and Kerberos.
The third one is a JAAS example.
   http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatJspExamples

HTH,
--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Password retries

2006-07-27 Thread Simon O'Malley

Hi List

Has anyone done anything with tomcat authorisation to configure in a maximum
number of retries before an address/account is blocked.

I have setup a secure site and want to only give the user a maximum number
of 3 tries at logging in before denying them the login ability for a
specified period of time.

I.e. let them try 3 times then disable the account for 20 minutes.

Interested in hearing from anyone who has done something along those lines.

I have done a google search and read the doco but couldn't find any mention
to something like this.

Cheers
Simon


Re: tomcat , wondoze , Unable to find a javac compiler;

2006-07-27 Thread Randy Paries

Barry

Adding to the path did not make a difference

but here is where i am confused.

the java_home is set in the system env vars as well as the path and
classpath(although i guess that is not needed

but here is what i do not understand and may be causing my problems.
Notice the version diffs between java -version and set paths

C:\Documents and Settings\pariesjava -version
java version 1.5.0_06
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

===
C:\Documents and Settings\pariesset
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\paries\Application Data
CLASSPATH=C:\Program Files\Java\jdk1.5.0_04\lib
ComSpec=C:\WINDOWS\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\paries
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_04
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Intel\Wireless\Bin\;C:\Program Files\Sony\AppMonUtil\;C:\Program
Files\Microsoft S
QL Server\80\Tools\Binn\;C:\Program Files\Common Files\Adobe\AGL;C:\Program File
s\Java\jdk1.5.0_04\bin;C:\Program Files\SSH Communications Security\SSH Secure S
hell
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 14 Stepping 8, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0e08
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\paries\LOCALS~1\Temp
TMP=C:\DOCUME~1\paries\LOCALS~1\Temp
USERPROFILE=C:\Documents and Settings\paries
windir=C:\WINDOWS


On 7/27/06, Propes, Barry L [EMAIL PROTECTED] wrote:

make the PATH (not classpath) point to:

C:\Program Files\Java\jdk1.5.0_04\bin

-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 1:19 PM
To: users@tomcat.apache.org
Subject: tomcat , wondoze , Unable to find a javac compiler;


unfortuntaly i have to setup tomcat on windoze.
i have it working on tons of linux boxs, and this has been a royle
pain. Ok enough whinning.

so when i try to display a jsp is get the error
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


in the tomcat monitor i have Use default selected

in the XP env vars i have
CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_04

so what have i missed

Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]