Re: cant make tomcat accept https

2007-11-07 Thread Yavuz Kavus
In tomcat documentation says that if your keystore file in your home
directory
there is no need to specify keystoreFile in your configuration file.

i solved problem by deleting tcnative-1.dll.
now it is okey, but when server starts, this time apr is not working.
i should think pros and cons : )

thanks a lot.


no UserTransaction in jndi

2007-11-07 Thread Peter Fischer

Hello,

I try to configure a tomcat 6.0.14 to provide a
javax.transaction.UserTransaction in jndi java:comp/UserTransaction.

For this I added to the GlobalNamingResources in the server.xml

Transaction name=UserTransaction auth=Container
factory=com.atomikos.icatch.jta.UserTransactionFactory
/

and 
ResourceLink global=UserTransaction name=UserTransaction
type=javax.transaction.UserTransaction /
to the global context.

I put the needed jars into the folder $catalina_home$/lib.

Listing all jndi-resources with http://localhost:8080/manager/resources;
shows only the UserDatabase without the UserTransaction.

The log of lambdaprobe contains this error if I list the jndi-resources:

07 Nov 2007 10:16:19 [http-8080-1] INFO 
org.jstripe.tomcat.probe.beans.ContainerWrapperBean  - Using
org.jstripe.tomcat.probe.Tomcat55ContainerAdaptor
07 Nov 2007 10:16:19 [http-8080-1] INFO 
org.jstripe.tomcat.probe.beans.ContainerWrapperBean  - Using DEFAULT
resource resolver
07 Nov 2007 10:16:19 [http-8080-1] INFO 
org.jstripe.tomcat.probe.beans.ResourceResolverBean  - Reading CONTEXT 
07 Nov 2007 10:16:19 [http-8080-1] ERROR
org.jstripe.tomcat.probe.beans.ResourceResolverBean  - Failed to lookup:
UserTransaction
javax.naming.NameNotFoundException: Name UserTransaction is not bound in
this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
org.jstripe.tomcat.probe.beans.ResourceResolverBean.lookupResource(ResourceResolverBean.java:107)
at
org.jstripe.tomcat.probe.beans.ResourceResolverBean.getApplicationResources(ResourceResolverBean.java:89)
at
org.jstripe.tomcat.probe.tools.ApplicationUtils.getApplicationDataSourceUsageScore(ApplicationUtils.java:150)
at
org.jstripe.tomcat.probe.tools.ApplicationUtils.getApplication(ApplicationUtils.java:137)
at
org.jstripe.tomcat.probe.controllers.AppSummaryController.handleContext(AppSummaryController.java:35)
at
org.jstripe.tomcat.probe.controllers.ContextHandlerController.handleRequestInternal(ContextHandlerController.java:39)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
at 
org.jstripe.tomcat.probe.ProbeServlet.doDispatch(ProbeServlet.java:49)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:120)
at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at 

speed up the server

2007-11-07 Thread tbt

Hi

I'm a newbie to tomcat and i'm using it for a web application. But currently
the application is running a bit slow once deployed. Are there any ways to
speed up the request/response time in tomcat.

Thanks
-- 
View this message in context: 
http://www.nabble.com/speed-up-the-server-tf4763782.html#a13624531
Sent from the Tomcat - User mailing list archive 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: cant make tomcat accept https

2007-11-07 Thread Mark Thomas
Yavuz Kavus wrote:
 In tomcat documentation says that if your keystore file in your home
 directory
 there is no need to specify keystoreFile in your configuration file.
 
 i solved problem by deleting tcnative-1.dll.
 now it is okey, but when server starts, this time apr is not working.
 i should think pros and cons : )

That is because SSL configuration for APR is completely different to SSL
configuration for the Java connectors.

I'd give you the docs reference but tomcat.apache.org is down at the minute.

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: speed up the server

2007-11-07 Thread ben short
So your webapp ran pretty fast before it was deployed?

Your going to need to provide much more information. Like OS and
versions of tomcat, java, database etc and maybe some metrics on how
long it takes to process the requests.

Also you will want to use a profiler to figure out what part of the
app is 'taking' so long.

With out knowing such things all we can really say is...

Buy a faster machine.
Code you app so it works faster.

;)

Ben


On Nov 7, 2007 10:21 AM, tbt [EMAIL PROTECTED] wrote:

 Hi

 I'm a newbie to tomcat and i'm using it for a web application. But currently
 the application is running a bit slow once deployed. Are there any ways to
 speed up the request/response time in tomcat.

 Thanks
 --
 View this message in context: 
 http://www.nabble.com/speed-up-the-server-tf4763782.html#a13624531
 Sent from the Tomcat - User mailing list archive 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: speed up the server

2007-11-07 Thread Dirk Weigenand
Hi,

you could use a profiler to find the slow part of your application.

regards
   Dirk

 Original-Nachricht 
 Datum: Wed, 7 Nov 2007 02:21:30 -0800 (PST)
 Von: tbt [EMAIL PROTECTED]
 An: users@tomcat.apache.org
 Betreff: speed up the server

 
 Hi
 
 I'm a newbie to tomcat and i'm using it for a web application. But
 currently
 the application is running a bit slow once deployed. Are there any ways to
 speed up the request/response time in tomcat.
 
 Thanks
 -- 
 View this message in context:
 http://www.nabble.com/speed-up-the-server-tf4763782.html#a13624531
 Sent from the Tomcat - User mailing list archive 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]

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

-
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] webdav client libraries for Java?

2007-11-07 Thread Kristian Rink

Folks;

sorry for the OT: Being into building a WebDAV enabled application
based on tomcat, I am so far trying to find a way how to
programmatically interact with the WebDAV using some kind of Java
webdav library - but which one? As far as I have seen so far, there is
next to no working, up-to-date Java WebDAV client library:

- Jakarta Slide seems to have been retired a while ago, the jackrabbit
implementation doesn't provide a _generic_ webdav client.

- commons-vfs has webdav supported as sandbox component for quite
some aeons by now it seems.

- SkunkDAV just doesn't work, constantly throwing NPEs, and it's rather
old (2001) either.

So... does anyone of the kind, wise people out here know a better way
how to interact with a WebDAV server from within a Java application? Is
there any way how to programmatically access, modify, add, remove files
from/to WebDAV without manually crafting a WebDAV client on my own on
top of some HTTP client lib?

Thanks in advance and best regards,
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality. (Hundertwasser)

-
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] Tomcat causing high CPU load

2007-11-07 Thread David kerber

Bob Riaz wrote:

Many thanks for all the suggestions. I found a simple tool called StackTrace from 
http://www.adaptj.com/root/main/tracehowtos#ht0 to help me take thread dumps from Tomcat. 
I found when the CPU load was high that there was a thread from the suspect web app 
running. In contrast, thread dumps taken when CPU load was normal showed no such threads. 
The line that the web app thread was running at is a simple - data += \n; - 
this is in a loop collecting form data from hidden vars created by JavaScript code. It's 
been suggested by ny colleagues that the JVM could be running out of memory since a new 
String object is created for each +=. The String data ends up being very long anyway. Any 
thoughts on this would be appreciated.
  
Instead of using a string, use a StringBuffer and .append() to it, then 
when done building, the final string is just StringBuffer.toString();  
It's much faster than appending directly to a string.




Also, would anyone know how to monitor Tomcat's I/O activities? I understand 
that thrashing could be a drain on memory resources.
Thanks again for everybody's help!

bob

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 06, 2007 9:21 AM
To: Tomcat Users List
Subject: Re: [OT] Tomcat causing high CPU load


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charlie,

Charlie Wingate wrote:
  

There is a kill.exe (older version in resource kits) and a newer
taskkill.exe included with XP [onward]



Note that taskkill.exe and UNIX kill are completely different. taskkill
actually kills tasks, while the UNIX kill sends signals to processes.

  

but neither of them will provide a
stack dump/trace.



That is because of the lack of signaling ability of taskkill.exe.

  

Although they are very useful as tools and parts.



Definitely. I had no idea this program existed. My experience with MS
Windows is that programs kill themselves frequently enough that I
probably will continue to never need this tool ;)

- -chris

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

iD8DBQFHMIZp9CaO5/Lv0PARApJmAJ4p55P3qwyLtMmLDVlc6jyPayhQ2wCgh//n
zSjOq8EFoYEqbQz9ZLqq0bE=
=poDw
-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]



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

2007-11-07 Thread Andrew123

I use jdk 1.6.0_02 and linux. Tomcat has permission to read the .jar files.

Exception:
org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name '' defined in class path resource [services.xml]:
Class that bean class [some.class] depends on not found; nested exception is
java.lang.NoClassDefFoundError:
org/codehaus/xfire/service/invoker/ObjectInvoker

org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:489)

org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:392)

org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanDefinitionElement(XBeanXmlBeanDefinitionParser.java:835)

org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseChildExtensionBean(XBeanXmlBeanDefinitionParser.java:645)

org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseNestedPropertyViaIntrospection(XBeanXmlBeanDefinitionParser.java:555)

org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.tryParseNestedPropertyViaIntrospection(XBeanXmlBeanDefinitionParser.java:470)

org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.addNestedPropertyElements(XBeanXmlBeanDefinitionParser.java:436)

org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanFromExtensionElement(XBeanXmlBeanDefinitionParser.java:157)

org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanFromExtensionElement(XBeanXmlBeanDefinitionParser.java:176)

org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanDefinitions(XBeanXmlBeanDefinitionParser.java:807)

org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:191)

org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:78)

org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:223)

org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)

org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)

org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:103)

org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:41)

org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(XFireConfigurableServlet.java:86)

org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(XFireConfigurableServlet.java:54)

org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45)
javax.servlet.GenericServlet.init(GenericServlet.java:212)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Unknown Source)

Some weeks ago all worked fine, so, I think, this is a problem of linux
configuration.  

Caldarale, Charles R wrote:
 
 From: Andrew123 [mailto:[EMAIL PROTECTED] 
 Subject: tomcat trouble
 
 Tomcat doesn't want to extract .jar archives from
 /WEB-INF/lib directory.
 
 So the error message displayed is something like don't want to?
 Perhaps you could be a bit more precise in the description of the
 problem.  Also include pertinent information such as JRE/JDK version and
 the OS you're running on.  Check the logs for anything that might be
 related, and insure that Tomcat has permission to read the .jar files.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/tomcat-trouble-tf4765489.html#a13633699
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, 

Re: Comet: response.sendRedirect() Problem

2007-11-07 Thread Filip Hanik - Dev Lists
there is a bug in 6.0.14 regarding pipelining HTTP events on a comet 
connection, your code is correct, try with our current release candidate

http://people.apache.org/~remm/tomcat-6/v6.0.15/bin/

Filip

Jens Hagel wrote:

Hello,

I'm trying to use the sendRedirect() function in the begin event of a
simple CometServlet,
but nothing happens. Does anyone has an idea what's going wrong?

kind regards,
jens hagel

--
import org.apache.catalina.CometProcessor;
import org.apache.catalina.CometEvent;

import javax.servlet.http.*;
import javax.servlet.ServletException;
import java.io.IOException;

public class CometServlet extends HttpServlet implements CometProcessor {

public void event(CometEvent cometEvent) throws IOException,
ServletException {

HttpServletResponse response = cometEvent.getHttpServletResponse();

// don't want timeout events
cometEvent.setTimeout(100);

if (cometEvent.getEventType() == CometEvent.EventType.BEGIN) {

log(Begin for session);
response.sendRedirect(http://www.heise.de;);
cometEvent.close();

} else if (cometEvent.getEventType() == CometEvent.EventType.ERROR) {
log(Error for session:  + cometEvent.getEventSubType());
cometEvent.close();
} else if (cometEvent.getEventType() == CometEvent.EventType.END) {
log(End for session);
cometEvent.close();
} else if (cometEvent.getEventType() == CometEvent.EventType.READ) {
log(Read for session);
}
}
}
-

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

2007-11-07 Thread Caldarale, Charles R
 From: Andrew123 [mailto:[EMAIL PROTECTED] 
 Subject: tomcat trouble
 
 Tomcat doesn't want to extract .jar archives from
 /WEB-INF/lib directory.

So the error message displayed is something like don't want to?
Perhaps you could be a bit more precise in the description of the
problem.  Also include pertinent information such as JRE/JDK version and
the OS you're running on.  Check the logs for anything that might be
related, and insure that Tomcat has permission to read the .jar files.

 - Chuck


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

-
To 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] Tomcat causing high CPU load

2007-11-07 Thread Caldarale, Charles R
 From: David kerber [mailto:[EMAIL PROTECTED] 
 Subject: Re: [OT] Tomcat causing high CPU load
 
 Instead of using a string, use a StringBuffer and
 .append() to it

Or, if you're on Java 1.5 or 1.6, use a StringBuilder object; it's the
same as StringBuffer but without the synchronization overhead.

 - Chuck


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

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



tomcat trouble

2007-11-07 Thread Andrew123

Hi all

I use tomcat 5.5.25 and xfire 1.2.6. Tomcat doesn't want to extract .jar
archives from /WEB-INF/lib directory. When I extract .jar and copy classes
to /WEB-INF/classes, all works fine. Can you help me with this trouble?
-- 
View this message in context: 
http://www.nabble.com/tomcat-trouble-tf4765489.html#a13629644
Sent from the Tomcat - User mailing list archive 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]



Comet: response.sendRedirect() Problem

2007-11-07 Thread Jens Hagel
Hello,

I'm trying to use the sendRedirect() function in the begin event of a
simple CometServlet,
but nothing happens. Does anyone has an idea what's going wrong?

kind regards,
jens hagel

--
import org.apache.catalina.CometProcessor;
import org.apache.catalina.CometEvent;

import javax.servlet.http.*;
import javax.servlet.ServletException;
import java.io.IOException;

public class CometServlet extends HttpServlet implements CometProcessor {

public void event(CometEvent cometEvent) throws IOException,
ServletException {

HttpServletResponse response = cometEvent.getHttpServletResponse();

// don't want timeout events
cometEvent.setTimeout(100);

if (cometEvent.getEventType() == CometEvent.EventType.BEGIN) {

log(Begin for session);
response.sendRedirect(http://www.heise.de;);
cometEvent.close();

} else if (cometEvent.getEventType() == CometEvent.EventType.ERROR) {
log(Error for session:  + cometEvent.getEventSubType());
cometEvent.close();
} else if (cometEvent.getEventType() == CometEvent.EventType.END) {
log(End for session);
cometEvent.close();
} else if (cometEvent.getEventType() == CometEvent.EventType.READ) {
log(Read for session);
}
}
}
-

-
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: serving files through SSL

2007-11-07 Thread Roger Parkinson

In both cases the URL is invoke with some javascript that looks like this:
function downloadpdf(url)
{
   var pdfWindow = window.open( url 
,'pdf','top=0,left=0,width=1000,height=700,toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=no');

}
The application invokes a mix of html and servlet requests beforehand.
But the response to the static PDF always works regardless of when it is 
called

Regards
Roger


Gabe Wong wrote:

Roger Parkinson wrote:
I am trying to deliver some PDFs to the browser using my tomcat 
application. It works, but not always under SSL and IE.
One file is a static PDF and it lives inside my war file. That works 
just fine. The file is accessed using a url like 
/myapp/web/myfile.pdf and that always delivers the file.
Other files are generated by the app and live in a configured 
directory. They are delivered through a servlet that looks like this:


   String mimeType = sc.getMimeType(filename);
   FileHelper helper = new FileHelper();
   InputStream in = helper.fetch(filename, m_dir);
   response.setContentType(mimeType);
 response.setContentLength(10115);
 response.addHeader(ETag,W/\963288-1194247031062);
   OutputStream out = response.getOutputStream();
   byte[] buf = new byte[1024];
   int count = 0;
   while ((count = in.read(buf)) = 0)
   {
   out.write(buf, 0, count);
   }
   in.close();
   out.close();

So apart from some minor fiddling with the contentType etc I don't do 
very much. This works fine outside of SSL and it also works fine with 
SSL and Firefox, but not SSL+IE.
Thinking it was a problem with headers I did some research and found 
a lot of stuff about setting no cache etc. Tried it and it nothing 
made any difference (except that I managed to break it). I have taken 
all those out because the static file, the one I mentioned at first, 
is delivering okay to IE over SSL so I don't believe there is a 
problem at the IE end, or not one that cannot be overcome by getting 
my response right at the server end.


I used TCPMonitor to sniff the headers using non-SSL and found that 
the static file has this response:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
ETag: W/963288-1194247031062
Last-Modified: Mon, 05 Nov 2007 07:17:11 GMT
Content-Type: application/pdf
Content-Length: 963288
Date: Wed, 07 Nov 2007 04:54:39 GMT
... pdf file follows

So there doesn't seem to be too much going on there.

When I respond to the request for the dynamic file it looks like this:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 12:00:00 NZST
ETag: W/963288-1194247031062
Content-Type: application/pdf
Content-Length: 10115
Date: Wed, 07 Nov 2007 05:32:02 GMT

...pdf file follows.

I am getting some cache headers added for free otherwise there is no 
difference in the request.
Of course those headers may be making all the difference because IE's 
message is 'cannot write the file to cache' which is a bit odd 
because we've explicitly told it not to here.
Searching the web on this has a number of answers that suggest adding 
those no-cache headers anyway.


So, does anyone know what I need to do to make the two responses 
enough the same to stop IE complaining?
I am aware that I have faked the ETag and the length of the file and 
that I need to do something smarter there, but I'll do that when it 
starts working.


Version info: Tomcat 5.5, Java 1.5, WinXP SP2

Are you calling the dynamic PDF URL directly? For instance typing in 
the URL directly in the browser?
The reason I am asking, is that for mixed responses from SSL requests, 
IE puts up a warning, whereas FF does not.






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



Running a Script in a web application

2007-11-07 Thread Rocco Scappatura
Hello,

I'm tring to run a script inside a web application using JSR223Script class.

I get an error and I get to do so that JSR223Script is visible to Tomcat,
but I'm not experienced with Java.

Here the relative Tomcat log I get:

7-nov-2007 20.41.27 org.apache.catalina.core.ApplicationContext log INFO:
Marking servlet JSR223Script as unavailable
7-nov-2007 20.41.27 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Allocate exception for servlet JSR223Script
java.lang.NoSuchMethodError:
javax.script.ScriptEngineManager.getEngineFactories()[Ljavax/script/ScriptEngineFactory;
at
com.sun.script.http.ScriptServlet$EngineRepository.init(ScriptServlet.java:106)
at com.sun.script.http.ScriptServlet.init(ScriptServlet.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)


Could somebody help me?

rocsca


-
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: no UserTransaction in jndi

2007-11-07 Thread Martin Gainty
took a quick gander at
http://twiki.atomikos-support.com/bin/view.pl/Main/Tomcat55SelfContainedWar
and dont see any auth or name attributes specified

Perhaps you are interacting with an EJB server???
M--
- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, November 07, 2007 8:49 AM
Subject: RE: no UserTransaction in jndi


 From: Peter Fischer [mailto:[EMAIL PROTECTED] 
 Subject: no UserTransaction in jndi
 
 For this I added to the GlobalNamingResources in the server.xml
 Transaction name=UserTransaction auth=Container
 factory=com.atomikos.icatch.jta.UserTransactionFactory
 /

According to the Tomcat doc, the only valid attribute is factory; I'm
only speculating, but the presence of the name and auth attributes may
be causing the element to be rejected.

Is there anything shown in the logs about this at Tomcat startup?

 - Chuck


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

-
To 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: mod_jk - answers from appsrv often changes 'content-type' from text/xml to text/plain

2007-11-07 Thread Rainer Jung
Hi David,

Thanks for testing and your feedback.

We are going to include some changes in the next about 2 weeks. But
those are unrelated to your problem. I think that we understand clearly
enough, that the cause for the problems was early flushing, which we now
ignore in mod_jk.

Yes, I'm always interested in test feedback. I expect, that we'll have a
final release candidate in about 14 days.

Regards,

Rainer

MUDA(David Murko) schrieb:
 Hi rainer,
 
 I made a quick test now ... it looks fine (see attached files)
 I use for this test the 'mod_jk.so_1.2.26-591812' from your archive.
 I will made some further test with more realistic data input with our QA
 department and keep you inform about this, ok?
 
 Thx  greetz, david

 
 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, November 03, 2007 7:22 PM
 To: Tomcat Users List
 Subject: Re: mod_jk - answers from appsrv often changes 
 'content-type' from text/xml to text/plain

 We updated the dev snapshot at

 http://people.apache.org/~rjung/mod_jk-dev/

 yesterday/today. Please use the most recent tarball found 
 there. If you report back your findings, please include the 
 name of the tarball used.

 Regards,

 Rainer

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

2007-11-07 Thread Caldarale, Charles R
 From: Andrew123 [mailto:[EMAIL PROTECTED] 
 Subject: RE: tomcat trouble
 
 Exception:
 org.springframework.beans.factory.BeanDefinitionStoreException: Error
 registering bean with name '' defined in class path resource 
 [services.xml]:
 Class that bean class [some.class] depends on not found; 
 nested exception is
 java.lang.NoClassDefFoundError:
 org/codehaus/xfire/service/invoker/ObjectInvoker
 
 org.springframework.beans.factory.xml.DefaultXmlBeanDefinition
 Parser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionPars
 er.java:489)

I'm not familiar with xfire; does it have its own classloader?  Have you
by chance set CLASSPATH (you shouldn't)?

 - Chuck


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

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



RE: serving files through SSL

2007-11-07 Thread Caldarale, Charles R
 From: Roger Parkinson [mailto:[EMAIL PROTECTED] 
 Subject: serving files through SSL
 
 I am trying to deliver some PDFs to the browser using my tomcat 
 application. It works, but not always under SSL and IE.

This is a known problem with IE.  A search of the archives
(http://marc.info/?l=tomcat-user) for pdf cache turns up numerous
hits, including this one:

http://marc.info/?l=tomcat-userm=108431336725309w=2

 - Chuck


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

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



RE: no UserTransaction in jndi

2007-11-07 Thread Caldarale, Charles R
 From: Peter Fischer [mailto:[EMAIL PROTECTED] 
 Subject: no UserTransaction in jndi
 
 For this I added to the GlobalNamingResources in the server.xml
 Transaction name=UserTransaction auth=Container
 factory=com.atomikos.icatch.jta.UserTransactionFactory
 /

According to the Tomcat doc, the only valid attribute is factory; I'm
only speculating, but the presence of the name and auth attributes may
be causing the element to be rejected.

Is there anything shown in the logs about this at Tomcat startup?

 - Chuck


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

-
To 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] Tomcat causing high CPU load

2007-11-07 Thread alvaro tovar
the application qhere i work, also have a big charge for the memory, the
server have this parametres, and never this crased, i think that this force
to free memory, the memory no colapse, but some errors to extrange, i think
that free memory that is in use, and this cause problems, kill a sesion, or
remove a backing bean of sesion, i don.t know, this is the parametrer

JAVA_OPTS=$JAVA_OPTS -Xms1500M -Xmx2000m -XX:MaxPermSize=1500m
-XX:+UseParallel
GC -XX:+AggressiveHeap -XX:+DisableExplicitGC -XX:NewRatio=2 -server



On Nov 6, 2007 10:21 AM, Christopher Schultz [EMAIL PROTECTED]
wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Charlie,

 Charlie Wingate wrote:
  There is a kill.exe (older version in resource kits) and a newer
  taskkill.exe included with XP [onward]

 Note that taskkill.exe and UNIX kill are completely different. taskkill
 actually kills tasks, while the UNIX kill sends signals to processes.

  but neither of them will provide a
  stack dump/trace.

 That is because of the lack of signaling ability of taskkill.exe.

  Although they are very useful as tools and parts.

 Definitely. I had no idea this program existed. My experience with MS
 Windows is that programs kill themselves frequently enough that I
 probably will continue to never need this tool ;)

 - -chris

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

 iD8DBQFHMIZp9CaO5/Lv0PARApJmAJ4p55P3qwyLtMmLDVlc6jyPayhQ2wCgh//n
 zSjOq8EFoYEqbQz9ZLqq0bE=
 =poDw
 -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]




RE: [OT] Tomcat causing high CPU load

2007-11-07 Thread Bob Riaz
Many thanks for all the suggestions. I found a simple tool called StackTrace 
from http://www.adaptj.com/root/main/tracehowtos#ht0 to help me take thread 
dumps from Tomcat. I found when the CPU load was high that there was a thread 
from the suspect web app running. In contrast, thread dumps taken when CPU load 
was normal showed no such threads. The line that the web app thread was running 
at is a simple - data += \n; - this is in a loop collecting form data from 
hidden vars created by JavaScript code. It's been suggested by ny colleagues 
that the JVM could be running out of memory since a new String object is 
created for each +=. The String data ends up being very long anyway. Any 
thoughts on this would be appreciated.
Also, would anyone know how to monitor Tomcat's I/O activities? I understand 
that thrashing could be a drain on memory resources.
Thanks again for everybody's help!

bob

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 06, 2007 9:21 AM
To: Tomcat Users List
Subject: Re: [OT] Tomcat causing high CPU load


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charlie,

Charlie Wingate wrote:
 There is a kill.exe (older version in resource kits) and a newer
 taskkill.exe included with XP [onward]

Note that taskkill.exe and UNIX kill are completely different. taskkill
actually kills tasks, while the UNIX kill sends signals to processes.

 but neither of them will provide a
 stack dump/trace.

That is because of the lack of signaling ability of taskkill.exe.

 Although they are very useful as tools and parts.

Definitely. I had no idea this program existed. My experience with MS
Windows is that programs kill themselves frequently enough that I
probably will continue to never need this tool ;)

- -chris

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

iD8DBQFHMIZp9CaO5/Lv0PARApJmAJ4p55P3qwyLtMmLDVlc6jyPayhQ2wCgh//n
zSjOq8EFoYEqbQz9ZLqq0bE=
=poDw
-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]



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



Error: filterStart

2007-11-07 Thread Erica Zhang
Hi,

I did not know why but when I restart the tomcat, it report the error
message: Error FilterStart.

I am using apache-tomcat-5.5.25 on Solaris 10 and I never used filter in
the config file. There was a sudden power off and after that this kind
of things happend.

Could you help me about it ?

thanks,

Erica

-
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 Http Server and Tomcat

2007-11-07 Thread Filip Hanik - Dev Lists
yes, if you have tons of static content, or if you want to run PHP, Perl 
or other scripts as well.


Filip

bajistaman wrote:

Are there good reasons to use an Apache Http Server in front of a Tomcat even
if I'm using a HW Load Balancer?

Thanks,

Johann
  



-
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 Http Server and Tomcat

2007-11-07 Thread bajistaman

Are there good reasons to use an Apache Http Server in front of a Tomcat even
if I'm using a HW Load Balancer?

Thanks,

Johann
-- 
View this message in context: 
http://www.nabble.com/Apache-Http-Server-and-Tomcat-tf4767546.html#a13636658
Sent from the Tomcat - User mailing list archive 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: Problems with a web application running a PHP script

2007-11-07 Thread Rocco Scappatura

 Thanks for you hints. I will disinstall all JDK/JRE versions from my PC.
 I'm dowloading JDK 6 Update 3 and I will install it.

 No problem, you got me curious about scripting...
 I Tested with this
 ==
 protected void processRequest(HttpServletRequest request,
 HttpServletResponse response)
 throws ServletException, IOException {
 response.setContentType(text/html;charset=UTF-8);
 PrintWriter out = response.getWriter();


 out.println(html);
 out.println(head);
 out.println(titleServlet NewServlet/title);
 out.println(/head);
 out.println(body);
 out.println();
 out.println(pStand Back... Script running/p);

   ScriptEngineManager scriptMgr = new ScriptEngineManager();
   ScriptEngine jsEngine = scriptMgr.getEngineByName(JavaScript);
   try {
 jsEngine.eval(var meJavaScript = 'Me-Java Script!';);
 out.println(p + jsEngine.get(meJavaScript) + /p);
   }
   catch (ScriptException ex) {
 out.println(pOh Damn! Script Crashed  + ex.getMessage() +
 /p);
 ex.printStackTrace();
   }

 out.println(/body);
 out.println(/html);
 out.close();
 }


Hello Chunk,

I have a big news.

After I have installed:

java version 1.6.0_03
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

and set this new platform for my web appl, I get that the web app does not
works under NB bundled Tomcat too (other than unnder Tomcat 5.5.25
installed by hand).

At this point, I think that is almost clear that scripting (JSR223Script
class) working depends on JDK version (I can't figure out if there is a
particular class releases with JDK that is guilty of this
incompatibility).

If someone has a more technical explanationis welcomed! :-)

rocsca



-
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: serving files through SSL

2007-11-07 Thread Gabe Wong

Roger Parkinson wrote:
In both cases the URL is invoke with some javascript that looks like 
this:

function downloadpdf(url)
{
   var pdfWindow = window.open( url 
,'pdf','top=0,left=0,width=1000,height=700,toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=no'); 


}
The application invokes a mix of html and servlet requests beforehand.
But the response to the static PDF always works regardless of when it 
is called

Regards
Roger
For further clarification, what exactly is the result when the dynamic 
PDF over SSL fails to work? blank page? Error? etc.



--
Regards

Gabe Wong
NGASI AppServer Manager
Application server installation and configuration AUTOMATION
http://www.ngasi.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: Apache Http Server and Tomcat

2007-11-07 Thread Leon Rosenberg
if you are using a hardware loadbalancer - a clear no.
For static content and other stuff lighttpd is a far better choice
than apache httpd.

regards
Leon

On Nov 7, 2007 10:39 PM, bajistaman [EMAIL PROTECTED] wrote:

 Are there good reasons to use an Apache Http Server in front of a Tomcat even
 if I'm using a HW Load Balancer?

 Thanks,

 Johann
 --
 View this message in context: 
 http://www.nabble.com/Apache-Http-Server-and-Tomcat-tf4767546.html#a13636658
 Sent from the Tomcat - User mailing list archive 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]



Issue finding Worker using mod_jk ...

2007-11-07 Thread Kim Albee
We are having an issue when setting up integration between Apache 2.0.52 and
Tomcat 6.0.14...

Here are the mod_jk.log entries:

[Wed Nov 07 14:31:25 2007]  [jk_uri_worker_map.c (445)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Wed Nov 07 14:31:25 2007]  [jk_uri_worker_map.c (459)]: Attempting to map
URI '/'
[Wed Nov 07 14:31:25 2007]  [jk_uri_worker_map.c (473)]:
jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ein1 - /
[Wed Nov 07 14:31:25 2007]  [mod_jk.c (1689)]: Into handler r-proxyreq=0
r-handler=jakarta-servlet r-notes=158639048 worker=ein1
[Wed Nov 07 14:31:25 2007]  [jk_worker.c (90)]: Into wc_get_worker_for_name
ein1
[Wed Nov 07 14:31:25 2007]  [jk_worker.c (94)]: wc_get_worker_for_name, done
did not find a worker

The workers.properties file looks like this:

workers.tomcat_home=/usr/local/tomcat6
workers.java_home=$JAVA_HOME
ps=/
worker.list=ein1


worker.ein1.port=8109
worker.ein1.host=localhost
worker.ein1.type=ajp13
worker.ein1.info=Ajp13 forwarding
worker.ein1.debug=2
worker.ein1.tomcatId=ein1

We have the jvmRoute set in the Engine parameter for the server.xml in
tomcat as well...

Any suggestions on how to get this working?

thanks,
Kim :-)


Re: tomcat trouble

2007-11-07 Thread Konstantin Kolinko
When class cannot be loaded, it usually is a classloader issue.

Are you familiar with Tomcat classloaders hierarchy?
See here:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

Note that although Webapp classloader is a child of all the others,
but it is being asked first, as if it were the parent to all of them.


Do you use single all modules xfire jar, or separate jars for
separate modules of it? Are all those jars in the same place?

Note that loading ObjectInvoker class fails, but
XFireConfigurableServlet etc. classes were successfully loaded.


Does your web-inf/lib contain any jars that are already available
through tomcat's common/lib or shared/lib? Those should be removed
from web-inf/lib.



2007/11/7, Andrew123 [EMAIL PROTECTED]:

 I use jdk 1.6.0_02 and linux. Tomcat has permission to read the .jar files.

 Exception:
 org.springframework.beans.factory.BeanDefinitionStoreException: Error
 registering bean with name '' defined in class path resource [services.xml]:
 Class that bean class [some.class] depends on not found; nested exception is
 java.lang.NoClassDefFoundError:
 org/codehaus/xfire/service/invoker/ObjectInvoker

 org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:489)

 org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:392)

 org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanDefinitionElement(XBeanXmlBeanDefinitionParser.java:835)

 org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseChildExtensionBean(XBeanXmlBeanDefinitionParser.java:645)

 org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseNestedPropertyViaIntrospection(XBeanXmlBeanDefinitionParser.java:555)

 org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.tryParseNestedPropertyViaIntrospection(XBeanXmlBeanDefinitionParser.java:470)

 org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.addNestedPropertyElements(XBeanXmlBeanDefinitionParser.java:436)

 org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanFromExtensionElement(XBeanXmlBeanDefinitionParser.java:157)

 org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanFromExtensionElement(XBeanXmlBeanDefinitionParser.java:176)

 org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanDefinitions(XBeanXmlBeanDefinitionParser.java:807)

 org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:191)

 org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:78)

 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:223)

 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)

 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)

 org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:103)

 org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:41)

 org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(XFireConfigurableServlet.java:86)

 org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(XFireConfigurableServlet.java:54)
 
 org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45)
 javax.servlet.GenericServlet.init(GenericServlet.java:212)

 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)

 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
 java.lang.Thread.run(Unknown Source)

 Some weeks ago all worked fine, so, I think, this is a problem of linux
 configuration.

 Caldarale, Charles R wrote:
 
  From: Andrew123 [mailto:[EMAIL PROTECTED]
  Subject: tomcat trouble
 
  Tomcat doesn't want to extract .jar archives from
  /WEB-INF/lib directory.
 
  So the error message displayed is something like don't want to?
  Perhaps you could be a bit more precise in the description of the
  problem.  Also include pertinent information such as JRE/JDK version and
  the OS you're running on.  Check the logs for anything that might be
  related, and insure that Tomcat has permission to read the .jar 

LDAP Security

2007-11-07 Thread Shelley
I have a stand-alone webapp which requires authentication against an
existing LDAP directory.  The tomcat security realm configuration
(JNDIRealm) seems to be working correctly, but I'd like to be able to
define only one security-role in the deployment descriptor for all
authenticated users.  (I do not have access to modify the LDAP
directory.)  Is there a way to accomplish this?

-
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: LDAP Security

2007-11-07 Thread Martin Gainty
Random

This is dependent on the provider you will be implementing with
as an example if you want to use the Sybase Provider I invite you to look at
configuration parameters available at
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc00457_0700/h
tml/uaiglpow/BABGJDDF.htm

HTH/
M-
- Original Message -
From: Shelley [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, November 07, 2007 6:37 PM
Subject: LDAP Security


 I have a stand-alone webapp which requires authentication against an
 existing LDAP directory.  The tomcat security realm configuration
 (JNDIRealm) seems to be working correctly, but I'd like to be able to
 define only one security-role in the deployment descriptor for all
 authenticated users.  (I do not have access to modify the LDAP
 directory.)  Is there a way to accomplish this?

 -
 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 6.0.14 and UTF-8 POST form problem

2007-11-07 Thread Yigal Lazarev
Hi,

I'm deploying a JSF WAR onto Tomcat 6.0.14 under Windows 2003 with JVM
version 1.6.0_03-b05, and using MySQL db.
When I submit a form using POST method, and in the server side take the
fields and send them as an email using JavaMail- i lose the UTF-8 encoded
characters sent in the form.

I suspect it's something with the Tomcat configuration because it does not
happen when I deploy to Sun Application Server 8.2
And another thing, UTF-8 characters hardcoded in the sending email method
are sent just fine.

After a week of web search and reading documentation, what I tried so far:

* * Converting from ISO to UTF: *
String subj = קורות חיים של +new
String(((String)nameTextField.getValue()).getBytes(ISO-8859-1), UTF-8);
message.setSubject(subj, utf-8);
Also doesn't work with ISO-8859-8 which is for hebrew, what I'm trying to
type..
*
* Inserting URIEncoding=UTF-8 in the HTTP connector in server.xml. *
*
* Making a filter that will change the request encoding to utf-8:
*

The filter class:

public class ReqEncodingFilter implements Filter {
public void destroy() { }

/** Preform the filtering. */
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
request.setCharacterEncoding(UTF-8);
chain.doFilter(request, response);
}

public void init(FilterConfig config) throws ServletException { }
}

Also tried with the example encoding filter that comes with Tomcat. The
web.xml part:

  filter
filter-nameSet Character Encoding Filter/filter-name
filter-classyarivmt.ReqEncodingFilter/filter-class
init-param
  param-nameencoding/param-name
  param-valueUTF-8/param-value
/init-param
  /filter
  filter-mapping
filter-nameUploadFilter/filter-name
servlet-nameFaces Servlet/servlet-name
  /filter-mapping
  filter-mapping
filter-nameSet Character Encoding Filter/filter-name
url-pattern/*/url-pattern
  /filter-mapping

Also tried with servlet-nameFaces Servlet/servlet-name instead of the
url-pattern tag.

* * Making a locale-encoding-mapping-list in web.xml: *
locale-encoding-mapping-list
locale-encoding-mapping
localeen/locale
encodingUTF-8/encoding
/locale-encoding-mapping
locale-encoding-mapping
localehe/locale
encodingUTF-8/encoding
/locale-encoding-mapping
locale-encoding-mapping
localeru/locale
encodingUTF-8/encoding
/locale-encoding-mapping
locale-encoding-mapping
localeiw/locale
encodingUTF-8/encoding
/locale-encoding-mapping
locale-encoding-mapping
localeru_RU/locale
encodingUTF-8/encoding
/locale-encoding-mapping
/locale-encoding-mapping-list

Any suggestions where to look highly appreciated!


Re: serving files through SSL

2007-11-07 Thread Roger Parkinson
I'm opening the PDF in a new window (as the javascript shows) so what I 
see for the dynamic pdf is:

1) the new window (empty)
2) the download progress dialog
3) an error dialog referring the file name with the message 'cannot 
write the file to the cache'


On the static PDF I don't see 2 or 3 and the new window has the PDF 
displayed.
(I' using the terms dynamic and static as referred to in my initial 
question, ie static is the PDF in the war file that always works and 
dynamic is the one fetched from outside the war file by a servlet and 
this is the one with the problem).


I did search on that cache message and all the solutions told me to 
either upgrade my browser from 5.5 (I'm using 6), change the browser 
config, or set the cache headers that seem to be already set. It was 
when I realised that the static PDF was always just fine that I 
concluded that the problem did not need to be solved at the browser end.


Thanks for your help
Roger

Gabe Wong wrote:

Roger Parkinson wrote:
In both cases the URL is invoke with some javascript that looks like 
this:

function downloadpdf(url)
{
   var pdfWindow = window.open( url 
,'pdf','top=0,left=0,width=1000,height=700,toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=no'); 


}
The application invokes a mix of html and servlet requests beforehand.
But the response to the static PDF always works regardless of when it 
is called

Regards
Roger
For further clarification, what exactly is the result when the dynamic 
PDF over SSL fails to work? blank page? Error? etc.





-
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] Tomcat causing high CPU load

2007-11-07 Thread Kev Jackson

Hi,
From a programmatic point of view



Many thanks for all the suggestions. I found a simple tool called StackTrace from 
http://www.adaptj.com/root/main/tracehowtos#ht0 to help me take thread dumps from Tomcat. 
I found when the CPU load was high that there was a thread from the suspect web app 
running. In contrast, thread dumps taken when CPU load was normal showed no such threads. 
The line that the web app thread was running at is a simple - data += \n; - 
this is in a loop collecting form data from hidden vars created by JavaScript code. It's 
been suggested by ny colleagues that the JVM could be running out of memory since a new 
String object is created for each +=. The String data ends up being very long anyway. Any 
thoughts on this would be appreciated.
Also, would anyone know how to monitor Tomcat's I/O activities? I understand 
that thrashing could be a drain on memory resources.
Thanks again for everybody's help!


You could replace the data += \n code with a StringBuilder (Java6) or 
a StringBuffer - this would reduce the number of intermediate objects 
being created quite significantly


Kev

-
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: WindowsXP, jre1.6.0_03, Tomcat 5.5 - Tomcat Service won't start

2007-11-07 Thread Caldarale, Charles R
 From: Ferindo Middleton [mailto:[EMAIL PROTECTED] 
 Subject: WindowsXP, jre1.6.0_03, Tomcat 5.5 - Tomcat Service 
 won't start
 
 When I try to start the service I get an error message
 that Windows was unable to start the service.

IIRC, this may be due to msvcr71.dll not being available to the service.
Try copying the one in your JRE bin directory to Tomcat's bin directory
or to C:\WINDOWS\system32 and see if that helps.

 - Chuck


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

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



WindowsXP, jre1.6.0_03, Tomcat 5.5 - Tomcat Service won't start

2007-11-07 Thread Ferindo Middleton
I've installed the Java Software (jre1.6.0_03) and Tomcat 5.5 on my Windows
XP computer. When I try to start the service I get an error message that
Windows was unable to start the service. Looking at the log file (located at
C:\Program Files\Apache Software Foundation\Tomcat
5.5\logs\jakarta_service_20071107.log) I can't figure out why it won't
start. The log file contains the following:

[2007-11-07 22:53:00] [986  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
[2007-11-07 22:53:00] [1260 prunsrv.c] [error] ServiceStart returned 1
[2007-11-07 22:53:00] [info] Run service finished.
[2007-11-07 22:53:00] [info] Procrun finished.
[2007-11-07 22:53:49] [info] Procrun ( 2.0.3.0) started
[2007-11-07 22:53:49] [info] Running Service...
[2007-11-07 22:53:49] [info] Starting service...
[2007-11-07 22:53:49] [174  javajni.c] [error] The specified module could
not be found.
[2007-11-07 22:53:49] [986  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
[2007-11-07 22:53:49] [1260 prunsrv.c] [error] ServiceStart returned 1
[2007-11-07 22:53:49] [info] Run service finished.
[2007-11-07 22:53:49] [info] Procrun finished.

Any ideas what's wrong?
-- 
Ferindo


RE: LDAP Security

2007-11-07 Thread Caldarale, Charles R
 From: Shelley [mailto:[EMAIL PROTECTED] 
 Subject: LDAP Security
 
 I have a stand-alone webapp which requires authentication against an
 existing LDAP directory.  The tomcat security realm configuration
 (JNDIRealm) seems to be working correctly, but I'd like to be able to
 define only one security-role in the deployment descriptor for all
 authenticated users.

Is there some common attribute that all users in the database share?  If
so, it looks like you could utilize that as the role name via the
userRoleName declaration.  (I haven't tried it.)

 - Chuck


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

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



Re: serving files through SSL

2007-11-07 Thread Gabe Wong

Roger Parkinson wrote:
I'm opening the PDF in a new window (as the javascript shows) so what 
I see for the dynamic pdf is:

1) the new window (empty)
2) the download progress dialog
3) an error dialog referring the file name with the message 'cannot 
write the file to the cache'


On the static PDF I don't see 2 or 3 and the new window has the PDF 
displayed.
(I' using the terms dynamic and static as referred to in my initial 
question, ie static is the PDF in the war file that always works and 
dynamic is the one fetched from outside the war file by a servlet and 
this is the one with the problem).


I did search on that cache message and all the solutions told me to 
either upgrade my browser from 5.5 (I'm using 6), change the browser 
config, or set the cache headers that seem to be already set. It was 
when I realised that the static PDF was always just fine that I 
concluded that the problem did not need to be solved at the browser end.

1)response.setContentLength(10115);
Is 10115 a hard coded number or just there as an illustration. If it is 
hard coded then the content length should be set to the

correct value.
2)   response.addHeader(ETag,W/\963288-1194247031062);
Perhaps the missing \ at the end could be a problem?



--
Regards

Gabe Wong
NGASI AppServer Manager
Application server installation and configuration AUTOMATION
http://www.ngasi.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: Error HTTP STATUS 404

2007-11-07 Thread Caldarale, Charles R
 From: Prashant [mailto:[EMAIL PROTECTED] 
 Subject: Error HTTP STATUS 404
 
 polglass.com.au.tmp.anchor.net.au ( Temp server )
 Username : vipul
 password : vipul

It's difficult to help when you provide so little information.  At least
include the version of Tomcat you're using.

Your login redirects to this URL:
http://polglass.com.au.tmp.anchor.net.au/apps/Products.jsp

It appears that it should really be:
http://polglass.com.au.tmp.anchor.net.au/Products.jsp
although that doesn't appear to recognize that your're already logged
in.

Without seeing your server.xml, your default webapp's Context entry,
and your deployment location, there's not much more that can be said.

 - Chuck


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

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



Virtual hosts

2007-11-07 Thread Rocco Scappatura
Hello,

I would like to know if is there a similar concept to the 'VirtualHost'
directive of Apache, in Tomcat.

I have set up a web app that respond at the URL http://hostname/path

I'ld like to masquarade ti url with another one of the form
http://anotherhostname. It is possible to do so in Tomcat?

Suppose then that I would like to give full access to the URL:

http://hostname/path/subpath

and deny access to

http://hostname/path

How could I do? If I apply protection with password I will restrict access
also to the 'long' url. Other wise I give full access to the 'short' URL
to the world!!!

Thanks,

rocsca


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



Error HTTP STATUS 404

2007-11-07 Thread Prashant
Hello

I am totally new here ,this is my first project and i am trying to learn a
lot of new things so pls be patience .

Would really appreciate if some one assist me with this issue

polglass.com.au.tmp.anchor.net.au ( Temp server )

Username : vipul
password : vipul

as soon as I put this username and password on the log in page and hit Go ,
i get an error HTTP STATUS 404.Same error comes in the when i submit the
registration page.

Thanking you

Kind Regards

Prashu

-- 
Regards
Prashant Doshi
B.E(Computers),MIS,DBA


Re: Error HTTP STATUS 404

2007-11-07 Thread Martin Gainty
http://polglass.com.au.tmp.anchor.net.au/apps/default.jsp?posted=Login%20is%
20Incorrect
polglass.com.au.tmp.anchor.net.au  is the webserver
apps is the name of the webapp you are requesting
default.jsp is the name of the jsp to access located at
$CATALINA_HOME%/webapps/apps/default.jsp

M--

From: Prashant [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, November 07, 2007 7:50 PM
Subject: Error HTTP STATUS 404


 Hello

 I am totally new here ,this is my first project and i am trying to learn a
 lot of new things so pls be patience .

 Would really appreciate if some one assist me with this issue

 polglass.com.au.tmp.anchor.net.au ( Temp server )

 Username : vipul
 password : vipul

 as soon as I put this username and password on the log in page and hit Go
,
 i get an error HTTP STATUS 404.Same error comes in the when i submit the
 registration page.

 Thanking you

 Kind Regards

 Prashu

 --
 Regards
 Prashant Doshi
 B.E(Computers),MIS,DBA



-
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: WindowsXP, jre1.6.0_03, Tomcat 5.5 - Tomcat Service won't start

2007-11-07 Thread Johnny Kewl


---
HARBOR: http://coolharbor.100free.com/index.htm
Now Tomcat is also a cool pojo application server
---

When I change my JRE to a location one that is wrong, I get the same error.
Shouldnt this
C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
be this
C:\Program Files\Java\jre1.6.0_03\jre\bin\server\jvm.dll

Then another tip... I never ever install Java stuff in Program Files
Why MS made a location with a space in the path... is stupid.


From the tomcat bin, start tomcat5w.exe

Go to the java tab, fix that you referencing the client

Just to make sure a space in the path is also not an issue
put quotes around tha path... browsing will probably do that.

C:\Program Files\Java\jre1.6.0_03\jre\bin\server\jvm.dll

Have Fun...


- Original Message - 
From: Ferindo Middleton [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, November 08, 2007 6:20 AM
Subject: WindowsXP, jre1.6.0_03, Tomcat 5.5 - Tomcat Service won't start


I've installed the Java Software (jre1.6.0_03) and Tomcat 5.5 on my 
Windows

XP computer. When I try to start the service I get an error message that
Windows was unable to start the service. Looking at the log file (located 
at

C:\Program Files\Apache Software Foundation\Tomcat
5.5\logs\jakarta_service_20071107.log) I can't figure out why it won't
start. The log file contains the following:

[2007-11-07 22:53:00] [986  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
[2007-11-07 22:53:00] [1260 prunsrv.c] [error] ServiceStart returned 1
[2007-11-07 22:53:00] [info] Run service finished.
[2007-11-07 22:53:00] [info] Procrun finished.
[2007-11-07 22:53:49] [info] Procrun ( 2.0.3.0) started
[2007-11-07 22:53:49] [info] Running Service...
[2007-11-07 22:53:49] [info] Starting service...
[2007-11-07 22:53:49] [174  javajni.c] [error] The specified module could
not be found.
[2007-11-07 22:53:49] [986  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
[2007-11-07 22:53:49] [1260 prunsrv.c] [error] ServiceStart returned 1
[2007-11-07 22:53:49] [info] Run service finished.
[2007-11-07 22:53:49] [info] Procrun finished.

Any ideas what's wrong?
--
Ferindo




-
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 6.0.14 and UTF-8 POST form problem

2007-11-07 Thread Caldarale, Charles R
 From: Yigal Lazarev [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 6.0.14 and UTF-8 POST form problem
 
 * * Converting from ISO to UTF: *
 String subj = קורות חיים של +new
 String(((String)nameTextField.getValue()).
 getBytes(ISO-8859-1), UTF-8);

I'm confused: if the text is already in UTF-8, why are you taking an apparent 
text field (already a String, perhaps?), doing a getValue() - a NOP for a 
String, then casting it to a String (another NOP), converting the String to a 
set of Latin-1 (or Hebrew) bytes, and then lying to a String constructor by 
telling it the byte array is in UTF-8?

Even if nameTextField is not a String, there's an awful lot of conflicting 
machinations going on here.

Perhaps I'm missing something...

 - Chuck


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

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