application failed to start : Error in dependencyCheck java.util.zip.ZipException: invalid entry CRC

2008-08-08 Thread [EMAIL PROTECTED]
attempting to run application on Tomcat 5.5 server (Fails to load at context path) I see this in the catalina.log Google search suggests a zip file error with the .war - but I have only used an exploded tree and removed previous .war file. Any suggestions? -- James Stanbridge Kellstan IM:

mvn command line failed with archetype....

2008-08-08 Thread Sam Wun
Hi, I am wondering how to fix the following attached error (mvn command run)? I tried to follow the instruction shown in the following website, but got error. http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html === attached mvn command run === Maven

Apache / mod_jk / Jboss-tomcat weirdness

2008-08-08 Thread pthyseba
Hello everyone, I previously asked this on the Apache users mailing list - but it occurred to me that this list may be more appropriate) I'm trying to figure out some weirdness in a fairly large web environment. We're running a web environment using RHEL 4, Apache 2.0.52 with Worker MPM,

mvn failed with archetype....

2008-08-08 Thread Sam Wun
Hi, I am wondering how to fix the following attached error (mvn command run)? I tried to follow the instruction shown in the following website, but got error. http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html === attached mvn command run === Maven

Re: Weird stack trace when reloading a webapp

2008-08-08 Thread Olivier Lamy
Ok I will search and try reordering filters. Thanks for your time ! -- Olivier 2008/8/8 Johnny Kewl [EMAIL PROTECTED]: - Original Message - From: Olivier Lamy [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, August 07, 2008 11:21 PM Subject: Re: Weird

Re: Apache / mod_jk / Jboss-tomcat weirdness

2008-08-08 Thread Mladen Turk
[EMAIL PROTECTED] wrote: A weird thing I see is that sometimes, the apache server status page displays requests/threads in the W (sending reply) state up to Apache timeout, while the Jboss Jk status shows no threads for that client in the Service state. Fix your firewall. It silently closes

Re: JDNI Resource not reusable

2008-08-08 Thread Sebastian Gerdes
Hello, to whom it may concern, I solved this problem in another way. In the ContextFactory I only return an InitialDirContext. The class which wants to connect to the LDAP uses this InitialDirContext, looks up the environment and connects to the LDAP. You can find the source code at:

No available certificate or key corresponds to the SSL cipher suites which are enabled

2008-08-08 Thread paulsnodgrass
I am trying to configure SSL on a tomcat 6.0.13. I began by creating a default keystore (using keytool) in the user's directory where the apache tomcat server is installed. From this keystore I generated a server cert request. Once I received the server cert, I loaded the trusted certs and

My Log4j statements going crazy in catalina.out

2008-08-08 Thread emerson cargnin
Hi Guys My Log4j configuration has all turned to ERROR in my log4j.lcf. In resin this works right, so no INFO or DEBUG in the resin main log file. In tomcat, though, even if my log file has only ERROR statements, catalina.out seems to be getting all INFO, DEBUG from my application. I couldnt'

Re: No available certificate or key corresponds to the SSL cipher suites which are enabled

2008-08-08 Thread Mark Thomas
[EMAIL PROTECTED] wrote: I am trying to configure SSL on a tomcat 6.0.13. I began by creating a default keystore (using keytool) in the user's directory where the apache tomcat server is installed. From this keystore I generated a server cert request. Once I received the server cert, I

Re: Tomcat 6.0.18 startup Permission Denied Error:listen failed initializing endpoint

2008-08-08 Thread Charles Lim
Finally the issue was solved. It was due to the Norman Anti-virus+Firwall. Although I have disable the firewall, stopped all Norman services that can be stopped, i still get the Permission Denied error. Only after I have uninstalled Norman can Tomcat start. After which I 1) installed AVG free

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Warren Killian
Hi, If you can't get past this limitation, you might look into the Apache Commons file upload utility. It is an API specifically for allowing (large) file uploads to a server. It works great, has a simple API and some decent documentation as well. Hope this helps. On Thu, Aug 7, 2008 at 2:18

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Sam Wun
Hi, I am wondering how to fix the following attached error (mvn command run)? I tried to follow the instruction shown in the following website, but got error. http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html === attached mvn command run === Maven

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: | I am a real beginner at Java and Tomcat, and not so good at it. | But maybe that causes my explanation below to be useful. Don't forget to override getDateHeader and getIntHeader in your wrapper class. Also, don't

Re: application failed to start : Error in dependencyCheck java.util.zip.ZipException: invalid entry CRC

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, [EMAIL PROTECTED] wrote: | attempting to run application on Tomcat 5.5 server (Fails to load at | context path) I see this in the catalina.log | | Google search suggests a zip file error with the .war - but I have | only used an exploded tree

Re: mvn command line failed with archetype....

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sam, This is probably a question best asked on the Maven mailing list. - -chris Sam Wun wrote: | Hi, | | I am wondering how to fix the following attached error (mvn command run)? | I tried to follow the instruction shown in the following website,

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Mark Thomas
Sam Wun wrote: Hi, I am wondering how to fix the following attached error (mvn command run)? I tried to follow the instruction shown in the following website, but got error. http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html 1. Don't hijack threads. 2. Read the FAQ,

Re: mvn failed with archetype....

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sam, Please do not post the same question multiple times. Someone will eventually get back to you. This list is not your on-demand technical support team. - -chris Sam Wun wrote: | Hi, | | I am wondering how to fix the following attached error

Re: My Log4j statements going crazy in catalina.out

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Emerson, emerson cargnin wrote: | In tomcat, though, even if my log file has only ERROR statements, | catalina.out seems to be getting all INFO, DEBUG from my application. | I couldnt' find anything in loggin properties that would set at ROOT |

Re: mvn command line failed with archetype....

2008-08-08 Thread David Smith
Might also want to try putting the whole command on the same line instead of trying to do the continuation '\' operator which may not work on Windows. That last '\' character is being interpreted by mvn as a parameter. --David Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE-

Re: mvn command line failed with archetype....

2008-08-08 Thread Sam Wun
Actually I tried that with what you said, this is the error message getting from that ONE command line. There is no \ at the end. Thanks On Sat, Aug 9, 2008 at 12:04 AM, David Smith [EMAIL PROTECTED] wrote: Might also want to try putting the whole command on the same line instead of trying to

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Michele Fuortes
Hi, thanks for the suggestions; [EMAIL PROTECTED] schrieb: I've had similar problems in various versions of tomcat. Currently the problem seems to exist in 6.0.16 but not in 6.0.14 nor 5.5.17. There was a bug filed, but I don't have the reference handy. I tried 5.5.26 and 5.5.17 and it

[OT] Re: mvn command line failed with archetype....

2008-08-08 Thread David Smith
That's not what I'm seeing in the command run you posted. You might also want to move this very off-topic discussion to a maven user list. --David Sam Wun wrote: Actually I tried that with what you said, this is the error message getting from that ONE command line. There is no \ at the end.

two questions: HTTP 1.1 headers + constantly open connections in TC

2008-08-08 Thread Albretch Mueller
~ 1) Can you achieve such a thing as a registered, dedicated, always open connection to each client in a network from login to logout using tomcat?, and ~ 1.1) How can browsers be configured to take advantage of them? 1.2) What would you suggest if I would like this configuration to be

DefaultServlet doesn't set charset

2008-08-08 Thread Markus Schönhaber
Hi, AFAICT Tomcat's DefaultServlet doesn't add ; charset=... to the Content-Type header when serving static resources of content type text/* and the corresponding resource isn't encoded in ISO-8859-1. As I understand it, this is a violation of the HTTP 1.1 spec, since RFC 2616 says in section

RE: Deploy application from Eclipse (windows) to Tomcat (in linux).

2008-08-08 Thread Talal Rabaa
Check out SCP task for Ant (link below). Incorporate it into your project build script and you can call it in or out of Eclipse to update your Linux deployment. Once perfected, you can have Eclipse deploy updates automatically to the Linux box as a supplemental builder.

Re: DefaultServlet doesn't set charset

2008-08-08 Thread Mark Thomas
Markus Schönhaber wrote: Hi, AFAICT Tomcat's DefaultServlet doesn't add ; charset=... to the Content-Type header when serving static resources of content type text/* and the corresponding resource isn't encoded in ISO-8859-1. Correct. As I understand it, this is a violation of the HTTP 1.1

Re: two questions: HTTP 1.1 headers + constantly open connections in TC

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Albretch, Albretch Mueller wrote: | 1) Can you achieve such a thing as a registered, dedicated, always | open connection to each client in a network from login to logout using | tomcat? Not really. HTTP is designed as a connectionless protocol. You

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michele, Michele Fuortes wrote: | I tried 5.5.26 and 5.5.17 and it changed (for the worse-;). | The file now gets messed up at 7620 bytes At least the application runs faster, now ;) Seriously, though, we use TC 5.5.23 in our demo environment and

Re: My Log4j statements going crazy in catalina.out

2008-08-08 Thread emerson cargnin
Hi there sorry for the lack of information. I'm running tomcat 5.5.26. logging.properties are in the tomcat/conf folder. My log4j file is inside tomcat/bin/resources This is the location where all our resources files are located, to make transparent the migration from resin to tomcat. I can be

Re:constantly open connections in TC

2008-08-08 Thread Ken Bowen
I haven't stepped up to attempting Comet/NIO yet, but I have had some small-scale success with a custom pseudo-push implementation using the RPC in GWT (Google Web Toolkit); obviously we're using GWT for the pages. When the browser starts, it uses rpc to ask for any available data: If data

Re: Would like to monitor memory use offline

2008-08-08 Thread Richard S. Huntrods
Chris, Richard, Richard S. Huntrods wrote: | In my code I was calling resultSet.close(), but not statement.close(). That'll do it. Actually, fixing it did NOT help. See more below... | The problem is, even though I verified (debug statements) that the call | is being made, the memory is

Re: No available certificate or key corresponds to the SSL cipher suites which are enabled

2008-08-08 Thread Bruno Harbulot
Hi, [EMAIL PROTECTED] wrote: I am trying to configure SSL on a tomcat 6.0.13. I began by creating a default keystore (using keytool) in the user's directory where the apache tomcat server is installed. From this keystore I generated a server cert request. Once I received the server cert, I

https j_security_check

2008-08-08 Thread Julio César Chaves Fernández
Hi, I have an issue with both https and j_secutiry_check... i've an application that works fine with only authentication (j_security_check) but when I try to access with https the application redirects the browser to the form-login page that is set in the web.xml file. The curious thing is

Re: DefaultServlet doesn't set charset

2008-08-08 Thread Markus Schönhaber
Mark Thomas wrote: As I understand it, this is a violation of the HTTP 1.1 spec, since RFC 2616 says in section 3.7.1: | The charset parameter is used with some media types to define the | character set (section 3.4) of the data. When no explicit charset | parameter is provided by the

Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Warren Bell
I have found a war file on my server that appeared around July 14. I am the only one that has access to this machine and I did not put it there. It consists of a jsp that downloads a program named init.exe and then executes it. This server is on a private network. Though there are three pc

Two Instances of Tomcat

2008-08-08 Thread dOE
Hello, I am running Tomcat 5.0.16 w.\ JS-Wrapper and I have 2 tomcat instances installed with unique ports, and the tomcat.exe are renamed to be unique as well. (Win32, IIS6.isapi_redir 1.2.8) The 2ndry Tomcat starts, but it is not created the work folder, or generate any logs. I have even set

Re: Two Instances of Tomcat

2008-08-08 Thread dOE
How about where can I setup a unique CATALINA_BASE? On Fri, Aug 8, 2008 at 2:41 PM, dOE [EMAIL PROTECTED] wrote: Hello, I am running Tomcat 5.0.16 w.\ JS-Wrapper and I have 2 tomcat instances installed with unique ports, and the tomcat.exe are renamed to be unique as well. (Win32,

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Mark Thomas
Warren Bell wrote: I have found a war file on my server that appeared around July 14. I am the only one that has access to this machine and I did not put it there. It consists of a jsp that downloads a program named init.exe and then executes it. This server is on a private network. Though

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-08 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: | I am a real beginner at Java and Tomcat, and not so good at it. | But maybe that causes my explanation below to be useful. Don't forget to override getDateHeader and getIntHeader in your

Re: DefaultServlet doesn't set charset

2008-08-08 Thread André Warnier
Markus Schönhaber wrote: Hi, (provided, the browser doesn't do some guessing of the charset based on the content). Not in any way to distract from your main question, which is very interesting, but that is a very big provided, because IE does a lot of second-guessing the server, infamously.

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Warren Bell
Mark Thomas wrote: Warren Bell wrote: I have found a war file on my server that appeared around July 14. I am the only one that has access to this machine and I did not put it there. It consists of a jsp that downloads a program named init.exe and then executes it. This server is on a private

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Mark Thomas
Warren Bell wrote: Mark Thomas wrote: - What other webapps are installed on the Tomcat instance? Several, they are all intranet apps that do not have any download/upload capabilities and there is no possible sql injection vulnerabilities either. And none of the apps execute any programs

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Mark Thomas
And a follow up question - are you using the invoker servlet 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]

Problems with NoClassDefFound Error in tomcat 6

2008-08-08 Thread Tom Cat
Hello, I am trying to run my webapp in tomcat 6 but am having a problem. A servlet I use imports org.w3c.tidy.Tidy and the code compiles fine. When I try to run it in tomcat though, i get this error: java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy I don't understand why it throws this error.

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Warren Bell
Mark Thomas wrote: Warren Bell wrote: Mark Thomas wrote: - What other webapps are installed on the Tomcat instance? Several, they are all intranet apps that do not have any download/upload capabilities and there is no possible sql injection vulnerabilities either. And none of the apps

Re: Problems with NoClassDefFound Error in tomcat 6

2008-08-08 Thread Mark Thomas
Tom Cat wrote: Hello, I am trying to run my webapp in tomcat 6 but am having a problem. A servlet I use imports org.w3c.tidy.Tidy and the code compiles fine. When I try to run it in tomcat though, i get this error: java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy I don't understand why it

Re: Problems with NoClassDefFound Error in tomcat 6

2008-08-08 Thread Hassan Schroeder
On Fri, Aug 8, 2008 at 1:27 PM, Tom Cat [EMAIL PROTECTED] wrote: When I try to run it in tomcat though, i get this error: java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy I don't understand why it throws this error. Tidy is in my classpath and the code compiles fine. That's nice, but is

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Mark Thomas
Warren Bell wrote: Mark Thomas wrote: Warren Bell wrote: Mark Thomas wrote: - What other webapps are installed on the Tomcat instance? Several, they are all intranet apps that do not have any download/upload capabilities and there is no possible sql injection vulnerabilities either. And

Re: DefaultServlet doesn't set charset

2008-08-08 Thread Markus Schönhaber
André Warnier wrote: Markus Schönhaber wrote: (provided, the browser doesn't do some guessing of the charset based on the content). Not in any way to distract from your main question, which is very interesting, but that is a very big provided, because IE does a lot of second-guessing the

Re: Apache / mod_jk / Jboss-tomcat weirdness

2008-08-08 Thread Rainer Jung
[EMAIL PROTECTED] schrieb: We're running a web environment using RHEL 4, Apache 2.0.52 with Worker MPM, mod_jk 1.2.20 and jboss/tomcat application servers (Jboss 4 / tomcat55). There's a firewall between our web and application servers, and I have read about mod_jk and firewalls (i.e.

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Johnny Kewl
- Original Message - From: Michele Fuortes [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, August 08, 2008 4:08 PM Subject: Re: Problem with POST to servlet: 16384 bytes maximum? Hi, thanks for the suggestions; [EMAIL PROTECTED] schrieb: I've had similar problems in

Re: two questions: HTTP 1.1 headers + constantly open connections in TC

2008-08-08 Thread Albretch Mueller
OK, since I am trying to have java-based applications end-to-end and since I own this network, I think I will use TC and Java Web Start instead of applets ~ This would be beneficial if you want to use an internal, local network cache for a number of users you know in a network you own ~

isapi connector.

2008-08-08 Thread dOE
My server is organize as follows c:\webserver \isapi \Website1 \Website2 Now the server.xml are configured differently in both website1 and website2. Website1 AJP13 = 8009 Website2 AJP13 = 8109 worker.list=ajp13w worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Johnny Kewl
- Original Message - From: Michele Fuortes [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, August 08, 2008 4:08 PM Subject: Re: Problem with POST to servlet: 16384 bytes maximum? Hi, thanks for the suggestions; [EMAIL PROTECTED] schrieb: I've had similar problems in

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread André Warnier
Johnny Kewl wrote: - Original Message - From: Michele Fuortes [EMAIL PROTECTED] Hi. Johnny is sometimes a bit hard to read, but he may have a point there. If you are POSTing data with an HTML form, how exactly does the form tag look like ? (of if it is with some client program, what

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread André Warnier
Michele Fuortes wrote: Hi, I have a problem with POSTing an XML file to a servlet which writes the XML to disk. If the XML file is less than 16384 bytes all goes well. If it's bigger the first 16384 bytes are written correctly, the rest all all 00s. The lenght of the file is the correct one

Re: Problems with NoClassDefFound Error in tomcat 6

2008-08-08 Thread Tom Cat
No, I didn't have Tidy.jar in the webapp's classpath. I moved it into the WEB-INF/lib folder and am still getting a NoClassDefFound error. Any help? On Fri, Aug 8, 2008 at 4:30 PM, Hassan Schroeder [EMAIL PROTECTED] wrote: On Fri, Aug 8, 2008 at 1:27 PM, Tom Cat [EMAIL PROTECTED] wrote: When

Re: Problems with NoClassDefFound Error in tomcat 6

2008-08-08 Thread Mark Thomas
Tom Cat wrote: No, I didn't have Tidy.jar in the webapp's classpath. I moved it into the WEB-INF/lib folder and am still getting a NoClassDefFound error. Any help? Did you reload your webapp? Mark - To start a new topic,

Re: Problems with NoClassDefFound Error in tomcat 6

2008-08-08 Thread Tom Cat
well that solves the noClassDef problem. Now the page just loads infinitely with a blank screen. But maybe this isn't a tomcat problem, but rather a code problem. Thanks On Fri, Aug 8, 2008 at 6:04 PM, Mark Thomas [EMAIL PROTECTED] wrote: Tom Cat wrote: No, I didn't have Tidy.jar in the

Re: Would like to monitor memory use offline

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard S. Huntrods wrote: |public static Vector listLookup(String table) { | //Connection connection = null; // connection is managed by a | connection pool So, is 'connection' a local or not? |Statement statement =

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: | After making that filter, I thought that it would have been more | elegant to check if the header requested by getHeader() was one I | added, return it in that case, and otherwise just call the | getHeader() method of

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Warren Bell
Mark Thomas wrote: Warren Bell wrote: Mark Thomas wrote: Warren Bell wrote: Mark Thomas wrote: - What other webapps are installed on the Tomcat instance? Several, they are all intranet apps that do not have any download/upload capabilities and there is no possible sql injection

RE: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Peter Crowther
From: Warren Bell [mailto:[EMAIL PROTECTED] [details of attack elided] The network that the server is on has a Lynksys RV082 small business router with the firewall completely locked down except for port 8080 available only to the networks with the kiosks. The kiosks are on a basic Linksys

configuration resolved

2008-08-08 Thread paulsnodgrass
The solution to my configuration problems was to backtrack a bit. I once again loaded my server cert into the default ${user.home}/.keystore. I then modified my connector to point to the default keystore, provided the connector factory with the alias for the key that was first created to

Re: https j_security_check

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: | The curious thing is that when the password is | wrong the redirection is to the form-error page defined in the | web.xml file. So, I was hoping you could give me some sort of advice | or where could I

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Warren Bell
Peter Crowther wrote: From: Warren Bell [mailto:[EMAIL PROTECTED] [details of attack elided] The network that the server is on has a Lynksys RV082 small business router with the firewall completely locked down except for port 8080 available only to the networks with the kiosks. The

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Crowther wrote: | That's a nice little JSP - once it's on the system, the attacker can | do anything they like that's allowed by the outbound firewall, with | the privilege of the user running Tomcat. Yeah, pretty much. This is one of