AW: AW: Load all JSP pages on startup
It's even better than that: the webapp itself is portable, without the Tomcat libraries. The precompilation process just churns your JSPs into servlets at build time instead of runtime. Let me add somthing here, it's right that the servlets are build at compile time, but they still use Tomcat specific stuff. Look at a generated servlet from a JSP: ... public final class contactForm_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { ... As you see it uses Tomcat sepcific stuff, when running this webapp on a different container you need the Tomcat libraries in your classpath! Bernhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Tomcat for communicating direct TCP/IP?
Hello. You might try quickserver (http://quickserver.org/) - very nice tcp-ip server lib, I've used it in my previous project for the very same purposes you described. It can do db connection pooling AFAIR and is pretty robust. The only problem I faced was sending big chunks of data 2-3 MB so I had to tune tcp-ip connection parameters. HTH, Sergey Pariev Keijo Lehto пишет: Hi Bhaskar, I've understood (please correct me if I'm wrong) that both JavaSpaces and RMI are somewhat Java-specific techniques. My usage scenario doesn't involve Java clients. In fact, the communication between the clients and the server has been limited to a predefined text-based protocol (basically just a very simple request-response model with ASCII text messages). BR, - keke On 6/29/05, Bhaskar [EMAIL PROTECTED] wrote: Have you given any thoughts on using RMI or JavaSpaces? Bhaskar Keijo Lehto wrote: Hi, I'm currently working on implementing a Java server, which (in nutshell) listens to certain TCP ports, reads input, processes the data and sends output back to the client depending on how the input processing went. Now, instead of reinventing the wheel, I was wondering whether I could somehow (easily, if possible) use Tomcat to do just that ie. leave all HTTP stuff away and just simply forward all data to a servlet or something similar. My goal with this approach would be to be able to use the robust connection handling, database pooling etc. of Tomcat. Should this be possible, I'd appreciate any pointers (documentation, tutorials...) on how to continue. BR, Keke PS. I'd very much be interested in hearing about other robust server frameworks, too, if that doesn't go too OT. :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Host Context Configuration
Hi! what happens if u remove the standard root-app ?? i checked this out and realized that deep links work. I guess my problem is not in tomcat, but in my Struts-Configuration. It seems my default-page forward forwards to the wrong host. thanks anoop for the tip! this was exactly the hint i needed. regards chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java processes in tomcat...
Hi, I've posted this question sometimes ago, but did not receive any reply. Am sending it again if ever someone has got an answer meanwhile Am actually using tomcat version 5.0.28 on Red Hat Linux 6.2. What i've notice is that each time i compile my java classes, copy them to /WEB-INF/classes dir. and then redeploy my web application consisting of jsp pages, I saw the number of java process increases when I do a 'ps -aux' That is if before compilation of my java classes there were 30 java processes, then after compilation I saw 30 new java processes when I did a 'ps -aux' The problem is that tomcat does not kill the previous java processes that were associated with my old java classes. Subsequently if I do 5 compilation, I'll get (5 x 40) java processes and finally I got an 'OutOfMemoryError'. Can anyone please tell me what's the cause of the above problem and how to resolve it. thanks in advance -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005
Tomcat in JBoss 4.0.3RC1 and Sun's Java Server Faces
Our application uses Sun's JSF implementation. On JBoss 4.0.2 it deploys fine, but on JBoss 4.0.3RC1 it throws a ClassCastException: at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:711) ... at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669) ... I tried not bundling the Sun faces api in the war and it deploys but it gives problems: - Sun's JSF doesn't work properly any more - The war also needs to be able to deploy on JBoss 4.0.2, Resin etc which don't have a version the faces api. Deleting the myfaces faces api from Tomcat isn't really a good solution either as other applications deployed on the same production instance might depend on it and it complicated the deployment procedure. Any other solutions? Thanks for any and all help, Geoffrey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 2 Tomcat 5.5
Hello, Can somneone point me in the right (any) direction of documentation/resource on how to integrate the above two please? -- thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java processes in tomcat...
Possible reasons (not really sure here): You open a filestream, but you do not close it after use You start a Thread that never finishes (no stop when tomcat runs destroy() on your webapp) You start a ServerSocket listener that doesn't timeout or stop gracefully. Some other reason I do not see. Oyvind Johansen ElectricTimeCar, Norway -Opprinnelig melding- Fra: Gulshan Babajee [mailto:[EMAIL PROTECTED] Sendt: 30. juni 2005 10:35 Til: 'tomcat-user@jakarta.apache.org' Emne: Java processes in tomcat... Hi, I've posted this question sometimes ago, but did not receive any reply. Am sending it again if ever someone has got an answer meanwhile Am actually using tomcat version 5.0.28 on Red Hat Linux 6.2. What i've notice is that each time i compile my java classes, copy them to /WEB-INF/classes dir. and then redeploy my web application consisting of jsp pages, I saw the number of java process increases when I do a 'ps -aux' That is if before compilation of my java classes there were 30 java processes, then after compilation I saw 30 new java processes when I did a 'ps -aux' The problem is that tomcat does not kill the previous java processes that were associated with my old java classes. Subsequently if I do 5 compilation, I'll get (5 x 40) java processes and finally I got an 'OutOfMemoryError'. Can anyone please tell me what's the cause of the above problem and how to resolve it. thanks in advance -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Extra newline characters appenden to taglibs output?
Hello, I use Tomcat 5.0.30. I have problems with taglibs generated from tagfiles. Tomcat appends extra newline character at end of tag output. Example: Tagfile with just one line, rally without newline characters, located in WEB-INF/tags/sample.tag with one word: Sample And test jsp page: !-- --tags:sample /!-- -- Output looks like this: !-- --Sample !-- -- Is there any way to avoid such behaviour? I wanted to use another tagfile to produce URL used in this way a href=tags:url ... //a and that newline is very unwanted. -- Mikolaj Rydzewski [EMAIL PROTECTED] Becomo S.A. tel. (12) 2927104 smime.p7s Description: S/MIME Cryptographic Signature
problem :integration of iis6.0 with tomcat5.0
hi, all I have developed a web application tomcat5 , I want to use IIS to serve my http requests, I followed below procedure downloaded isapi_redirect2.dll and kept it in my catalina_home\bin host name is dotnetserver cretaed workers2.properties file as following # setup windows application log file [logger.win32] level=DEBUG #communication channel settings [channel.socket:dotnetserver:8009] host=dotnetserver p0rt=8009 #shared memory settings [shm] file=C:\Program Files\Apache Software Foundation\Tomcat5.0\conf\jk2.shm size=10 #declare tomcat worker [ajp13:dotnetserver:8009] channel=channel.socket: dotnetserver:8009 #uri mappings for a application context #requests for any web component (indicated by wild card *) are dispatched #to tomcat [uri:/jsp-examples/*] info=mappings for jsp-examples context of tomcat --- and in jk2.properties file added following lines channelSocket.address=dotnetserver channelSocket.port=8009 shm.file=C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\jk2.shm and followed total instructions as creating virtual directory on the name of jakarta added filter to IIS added registry componenets added webservice extensions(isapi_redirect2.dll) to IIS. but i am unable to get it work it properly, it is displaying http://dotnetserver/jsp-examples/dates/date.jsp page cannot displayed error message In event log viewer the following message is shown The description for Event ID ( 4 ) in Source ( Apache Jakarta Connector2 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: [jk_isapi_plugin.c (422)]: HttpFilterProc check if [/jakarta/isapi_redirector2.dll] is pointing to the web-inf directory Iam struggling with this problem for the last 3 days, can anyone please suggest the solution will be appreciated. advance thanks to all. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Tomcat for communicating direct TCP/IP?
Keke, if it is within intranet then you can try Tibco RV (uses udp so it should be faster than tcp). It is robust and proven Bhaskar Keijo Lehto wrote: Hi Bhaskar, I've understood (please correct me if I'm wrong) that both JavaSpaces and RMI are somewhat Java-specific techniques. My usage scenario doesn't involve Java clients. In fact, the communication between the clients and the server has been limited to a predefined text-based protocol (basically just a very simple request-response model with ASCII text messages). BR, - keke On 6/29/05, Bhaskar [EMAIL PROTECTED] wrote: Have you given any thoughts on using RMI or JavaSpaces? Bhaskar Keijo Lehto wrote: Hi, I'm currently working on implementing a Java server, which (in nutshell) listens to certain TCP ports, reads input, processes the data and sends output back to the client depending on how the input processing went. Now, instead of reinventing the wheel, I was wondering whether I could somehow (easily, if possible) use Tomcat to do just that ie. leave all HTTP stuff away and just simply forward all data to a servlet or something similar. My goal with this approach would be to be able to use the robust connection handling, database pooling etc. of Tomcat. Should this be possible, I'd appreciate any pointers (documentation, tutorials...) on how to continue. BR, Keke PS. I'd very much be interested in hearing about other robust server frameworks, too, if that doesn't go too OT. :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Extra newline characters appenden to taglibs output?
Can you send the code of the sampleTag ? -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: 30 June 2005 10:30 To: Tomcat Users List Subject: Extra newline characters appenden to taglibs output? Hello, I use Tomcat 5.0.30. I have problems with taglibs generated from tagfiles. Tomcat appends extra newline character at end of tag output. Example: Tagfile with just one line, rally without newline characters, located in WEB-INF/tags/sample.tag with one word: Sample And test jsp page: !-- --tags:sample /!-- -- Output looks like this: !-- --Sample !-- -- Is there any way to avoid such behaviour? I wanted to use another tagfile to produce URL used in this way a href=tags:url ... //a and that newline is very unwanted. -- Mikolaj Rydzewski [EMAIL PROTECTED] Becomo S.A. tel. (12) 2927104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java processes in tomcat...
Which compiler do you use for compiling JSP pages also have you enabled fork during jsp compiler. I think there are some known issues with this fork option. -Surendra -Original Message- From: Øyvind Johansen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 2:35 PM To: 'Tomcat Users List' Subject: RE: Java processes in tomcat... Possible reasons (not really sure here): You open a filestream, but you do not close it after use You start a Thread that never finishes (no stop when tomcat runs destroy() on your webapp) You start a ServerSocket listener that doesn't timeout or stop gracefully. Some other reason I do not see. Oyvind Johansen ElectricTimeCar, Norway -Opprinnelig melding- Fra: Gulshan Babajee [mailto:[EMAIL PROTECTED] Sendt: 30. juni 2005 10:35 Til: 'tomcat-user@jakarta.apache.org' Emne: Java processes in tomcat... Hi, I've posted this question sometimes ago, but did not receive any reply. Am sending it again if ever someone has got an answer meanwhile Am actually using tomcat version 5.0.28 on Red Hat Linux 6.2. What i've notice is that each time i compile my java classes, copy them to /WEB-INF/classes dir. and then redeploy my web application consisting of jsp pages, I saw the number of java process increases when I do a 'ps -aux' That is if before compilation of my java classes there were 30 java processes, then after compilation I saw 30 new java processes when I did a 'ps -aux' The problem is that tomcat does not kill the previous java processes that were associated with my old java classes. Subsequently if I do 5 compilation, I'll get (5 x 40) java processes and finally I got an 'OutOfMemoryError'. Can anyone please tell me what's the cause of the above problem and how to resolve it. thanks in advance -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Extra newline characters appenden to taglibs output?
Raghupathy,Gurumoorthy wrote: Can you send the code of the sampleTag ? Everything is there: http://bsd.miki.eu.org/~wintermute/web/ -- Mikolaj Rydzewski [EMAIL PROTECTED] Becomo S.A. tel. (12) 2927104 smime.p7s Description: S/MIME Cryptographic Signature
WebSphere SOAP under tomcat
Hi, currently I'm developing an application for Tomcat 5.0.28. Now I want to call a SOAP service but for this service exists only a client implementation for the WebSphere libs. Is there a way to use this client implementation under an standalone Tomcat? The first missing dependency is the file webservices.jar from WebSphere, but when I look in the MANIFEST.MF of webservices.jar I can find a lot of JARs that are required by webservices.jar...and don't want to know how many libs are required by these JARs. Does anybody know how I can use the WebSphere Client implementation of the SOAP service (or ist the only way for me to generate an Axis implementation manually)? One more info: the client implementation works under WAS 5.1.1.4. Regards Markus Weseloh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebSphere SOAP under tomcat
I would create a stub from the WSDL if you have it. Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 Weseloh, Markus To: 'tomcat-user@jakarta.apache.org' tomcat-user@jakarta.apache.org Markus.Weseloh@ cc: gedas.deSubject: WebSphere SOAP under tomcat 30.06.05 13:43 Distribute: Please respond Personal? |---| to Tomcat Users | [ ] x | List|---| Hi, currently I'm developing an application for Tomcat 5.0.28. Now I want to call a SOAP service but for this service exists only a client implementation for the WebSphere libs. Is there a way to use this client implementation under an standalone Tomcat? The first missing dependency is the file webservices.jar from WebSphere, but when I look in the MANIFEST.MF of webservices.jar I can find a lot of JARs that are required by webservices.jar...and don't want to know how many libs are required by these JARs. Does anybody know how I can use the WebSphere Client implementation of the SOAP service (or ist the only way for me to generate an Axis implementation manually)? One more info: the client implementation works under WAS 5.1.1.4. Regards Markus Weseloh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebSphere SOAP under tomcat
If you have the WSDL you can generate clients very easily. For AXIS as wella s PHP, Perl, etc... For Java use tools suchas wsdl2java, then SOAP implementation such as axis will do. Hope this helps. Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 Weseloh, Markus To: 'tomcat-user@jakarta.apache.org' tomcat-user@jakarta.apache.org Markus.Weseloh@ cc: gedas.deSubject: WebSphere SOAP under tomcat 30.06.05 13:43 Distribute: Please respond Personal? |---| to Tomcat Users | [ ] x | List|---| Hi, currently I'm developing an application for Tomcat 5.0.28. Now I want to call a SOAP service but for this service exists only a client implementation for the WebSphere libs. Is there a way to use this client implementation under an standalone Tomcat? The first missing dependency is the file webservices.jar from WebSphere, but when I look in the MANIFEST.MF of webservices.jar I can find a lot of JARs that are required by webservices.jar...and don't want to know how many libs are required by these JARs. Does anybody know how I can use the WebSphere Client implementation of the SOAP service (or ist the only way for me to generate an Axis implementation manually)? One more info: the client implementation works under WAS 5.1.1.4. Regards Markus Weseloh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java processes in tomcat...
By default fork is enabled, but for the compiler, I don't know. How could I know which compiler is being used -Original Message- From: Surendrakumar Viswanathan (suviswan) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 3:10 PM To: Tomcat Users List Subject: RE: Java processes in tomcat... Which compiler do you use for compiling JSP pages also have you enabled fork during jsp compiler. I think there are some known issues with this fork option. -Surendra -Original Message- From: Øyvind Johansen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 2:35 PM To: 'Tomcat Users List' Subject: RE: Java processes in tomcat... Possible reasons (not really sure here): You open a filestream, but you do not close it after use You start a Thread that never finishes (no stop when tomcat runs destroy() on your webapp) You start a ServerSocket listener that doesn't timeout or stop gracefully. Some other reason I do not see. Oyvind Johansen ElectricTimeCar, Norway -Opprinnelig melding- Fra: Gulshan Babajee [mailto:[EMAIL PROTECTED] Sendt: 30. juni 2005 10:35 Til: 'tomcat-user@jakarta.apache.org' Emne: Java processes in tomcat... Hi, I've posted this question sometimes ago, but did not receive any reply. Am sending it again if ever someone has got an answer meanwhile Am actually using tomcat version 5.0.28 on Red Hat Linux 6.2. What i've notice is that each time i compile my java classes, copy them to /WEB-INF/classes dir. and then redeploy my web application consisting of jsp pages, I saw the number of java process increases when I do a 'ps -aux' That is if before compilation of my java classes there were 30 java processes, then after compilation I saw 30 new java processes when I did a 'ps -aux' The problem is that tomcat does not kill the previous java processes that were associated with my old java classes. Subsequently if I do 5 compilation, I'll get (5 x 40) java processes and finally I got an 'OutOfMemoryError'. Can anyone please tell me what's the cause of the above problem and how to resolve it. thanks in advance -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: WebSphere SOAP under tomcat
Hi, I have to confess that I'm an Axis beginner. I've managed to write my own WebService in Axis and generate the corresponding client stub. But the specific service I want to use diverges from the standard. The people who generated the WebSphere client implementation said, that they have to manipulate the generated stub so that it works correctly. Now I have to identitfy this manipulation and try to implement it for Axis. That's an option, but I would prefer to use the existing version...if there is a way to do it. Regards Markus -Ursprüngliche Nachricht- Von: Bruno Georges [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Juni 2005 13:48 An: Tomcat Users List Cc: 'tomcat-user@jakarta.apache.org' Betreff: Re: WebSphere SOAP under tomcat If you have the WSDL you can generate clients very easily. For AXIS as wella s PHP, Perl, etc... For Java use tools suchas wsdl2java, then SOAP implementation such as axis will do. Hope this helps. Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 Weseloh, Markus To: 'tomcat-user@jakarta.apache.org' tomcat-user@jakarta.apache.org Markus.Weseloh@ cc: gedas.deSubject: WebSphere SOAP under tomcat 30.06.05 13:43 Distribute: Please respond Personal? |---| to Tomcat Users | [ ] x | List|---| Hi, currently I'm developing an application for Tomcat 5.0.28. Now I want to call a SOAP service but for this service exists only a client implementation for the WebSphere libs. Is there a way to use this client implementation under an standalone Tomcat? The first missing dependency is the file webservices.jar from WebSphere, but when I look in the MANIFEST.MF of webservices.jar I can find a lot of JARs that are required by webservices.jar...and don't want to know how many libs are required by these JARs. Does anybody know how I can use the WebSphere Client implementation of the SOAP service (or ist the only way for me to generate an Axis implementation manually)? One more info: the client implementation works under WAS 5.1.1.4. Regards Markus Weseloh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to customize mod_jk error messages
Hello all, I'm trying to find a way to customize the following mod_jk error message: OK The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. This message is shown when the underlying tomcat server is down. I tried redefining message for error 500 or 502 in httpd.conf, but it doesn't help. I guess it comes from mod_jk internals... Any idea how to solve this problem? Thank you in advance, Michal. -Original Message- From: Weseloh, Markus [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 2:08 PM To: 'Tomcat Users List' Subject: AW: WebSphere SOAP under tomcat Hi, I have to confess that I'm an Axis beginner. I've managed to write my own WebService in Axis and generate the corresponding client stub. But the specific service I want to use diverges from the standard. The people who generated the WebSphere client implementation said, that they have to manipulate the generated stub so that it works correctly. Now I have to identitfy this manipulation and try to implement it for Axis. That's an option, but I would prefer to use the existing version...if there is a way to do it. Regards Markus -Ursprüngliche Nachricht- Von: Bruno Georges [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Juni 2005 13:48 An: Tomcat Users List Cc: 'tomcat-user@jakarta.apache.org' Betreff: Re: WebSphere SOAP under tomcat If you have the WSDL you can generate clients very easily. For AXIS as wella s PHP, Perl, etc... For Java use tools suchas wsdl2java, then SOAP implementation such as axis will do. Hope this helps. Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 Weseloh, Markus To: 'tomcat-user@jakarta.apache.org' tomcat-user@jakarta.apache.org Markus.Weseloh@ cc: gedas.deSubject: WebSphere SOAP under tomcat 30.06.05 13:43 Distribute: Please respond Personal? |---| to Tomcat Users | [ ] x | List |---| Hi, currently I'm developing an application for Tomcat 5.0.28. Now I want to call a SOAP service but for this service exists only a client implementation for the WebSphere libs. Is there a way to use this client implementation under an standalone Tomcat? The first missing dependency is the file webservices.jar from WebSphere, but when I look in the MANIFEST.MF of webservices.jar I can find a lot of JARs that are required by webservices.jar...and don't want to know how many libs are required by these JARs. Does anybody know how I can use the WebSphere Client implementation of the SOAP service (or ist the only way for me to generate an Axis implementation manually)? One more info: the client implementation works under WAS 5.1.1.4. Regards Markus Weseloh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jsp Pre-compilation
Hi all, I have trouble pre-compiling my jsp-pages. I wrote following ant target: target name=jspc depends=build taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath fileset dir=${tomcat.home}/bin include name=*.jar/ /fileset fileset dir=${tomcat.home}/server/lib include name=*.jar/ /fileset fileset dir=${tomcat.home}/common/lib include name=*.jar/ /fileset /classpath /taskdef jasper2 validateXml=false compile=true verbose=99 listErrors=true uriroot=./hummingbird webXmlFragment=./hummingbird/WEB-INF/generated_web.xml outputDir=./hummingbird/WEB-INF/classes / /target The task executes successful but it does not create a single java file nor its outputs anything? I want execute the task out of my project src folder. The libraries should be at the right place. I am really stuck here... Regards, Nils - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No more than 500 threads on Windows 2003?
Hi, I'm currently integrating a SOAP-based middleware on Tomcat (5.5.9) with Sun JDK 1.5.0_02 and get into problems when using maxThreads with a value greater than 500. Tomcat locks up completely without getting back to normal operations after a while. No exception or error is reported in the logs, it just stops. All connections are refused after the lockup. Tomcat has enough memory (1GB) assigned with the JVM options. If I use maxThreads=500, the server runs fine, but 500 is not enough for my project ;-( I tried to increase the stack size, but this doesn't help.. The connector is defined as: Connector port= maxHttpHeaderSize=8192 maxThreads=500 minSpareThreads=50 maxSpareThreads=150 enableLookups=false redirectPort=8443 acceptCount=200 connectionTimeout=2 disableUploadTimeout=true/ If I change 500 to 700 or more, Tomcat locks up. Is this a Windows problem?? Hardware is not an issue, I think.. (dual Xeon 3,4GHz, 4GB).. Thanks, Michael -- Michael Kleinhenz tarent GmbH . Bahnhofstr. 13 . 53123 Bonn fon +49 (228) / 52 67 5-0 . fax +49 (228) / 52 67 5-25 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Jsp Pre-compilation
Hi Nils, two things: 1. I would use an absolute path instead of the realitive one ./hummingbird I guess jasper just can't pick up your jsps! 2. outputDir: You set it to WEB-INF/classes but what you create are actually java source files, so this is not right, even tohough it doesn't explain the failure of the precompliation Good luck Bernhard -Ursprüngliche Nachricht- Von: Nils Liebelt [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Juni 2005 15:09 An: tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Betreff: Jsp Pre-compilation Hi all, I have trouble pre-compiling my jsp-pages. I wrote following ant target: target name=jspc depends=build taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath fileset dir=${tomcat.home}/bin include name=*.jar/ /fileset fileset dir=${tomcat.home}/server/lib include name=*.jar/ /fileset fileset dir=${tomcat.home}/common/lib include name=*.jar/ /fileset /classpath /taskdef jasper2 validateXml=false compile=true verbose=99 listErrors=true uriroot=./hummingbird webXmlFragment=./hummingbird/WEB-INF/generated_web.xml outputDir=./hummingbird/WEB-INF/classes / /target The task executes successful but it does not create a single java file nor its outputs anything? I want execute the task out of my project src folder. The libraries should be at the right place. I am really stuck here... Regards, Nils - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No more than 500 threads on Windows 2003?
Just by curiosity, does it have something like '511 Threads is ok but 512 fails?' :D Le Jeudi 30 Juin 2005 15:09, Michael Kleinhenz a écrit : Hi, I'm currently integrating a SOAP-based middleware on Tomcat (5.5.9) with Sun JDK 1.5.0_02 and get into problems when using maxThreads with a value greater than 500. Tomcat locks up completely without getting back to normal operations after a while. No exception or error is reported in the logs, it just stops. All connections are refused after the lockup. Tomcat has enough memory (1GB) assigned with the JVM options. If I use maxThreads=500, the server runs fine, but 500 is not enough for my project ;-( I tried to increase the stack size, but this doesn't help.. The connector is defined as: Connector port= maxHttpHeaderSize=8192 maxThreads=500 minSpareThreads=50 maxSpareThreads=150 enableLookups=false redirectPort=8443 acceptCount=200 connectionTimeout=2 disableUploadTimeout=true/ If I change 500 to 700 or more, Tomcat locks up. Is this a Windows problem?? Hardware is not an issue, I think.. (dual Xeon 3,4GHz, 4GB).. Thanks, Michael -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java processes in tomcat...
Check your web.xml (under TOMCAT_ROOT/conf) -Surendra -Original Message- From: Gulshan Babajee [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 5:34 PM To: 'Tomcat Users List' Subject: RE: Java processes in tomcat... By default fork is enabled, but for the compiler, I don't know. How could I know which compiler is being used -Original Message- From: Surendrakumar Viswanathan (suviswan) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 3:10 PM To: Tomcat Users List Subject: RE: Java processes in tomcat... Which compiler do you use for compiling JSP pages also have you enabled fork during jsp compiler. I think there are some known issues with this fork option. -Surendra -Original Message- From: Øyvind Johansen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 2:35 PM To: 'Tomcat Users List' Subject: RE: Java processes in tomcat... Possible reasons (not really sure here): You open a filestream, but you do not close it after use You start a Thread that never finishes (no stop when tomcat runs destroy() on your webapp) You start a ServerSocket listener that doesn't timeout or stop gracefully. Some other reason I do not see. Oyvind Johansen ElectricTimeCar, Norway -Opprinnelig melding- Fra: Gulshan Babajee [mailto:[EMAIL PROTECTED] Sendt: 30. juni 2005 10:35 Til: 'tomcat-user@jakarta.apache.org' Emne: Java processes in tomcat... Hi, I've posted this question sometimes ago, but did not receive any reply. Am sending it again if ever someone has got an answer meanwhile Am actually using tomcat version 5.0.28 on Red Hat Linux 6.2. What i've notice is that each time i compile my java classes, copy them to /WEB-INF/classes dir. and then redeploy my web application consisting of jsp pages, I saw the number of java process increases when I do a 'ps -aux' That is if before compilation of my java classes there were 30 java processes, then after compilation I saw 30 new java processes when I did a 'ps -aux' The problem is that tomcat does not kill the previous java processes that were associated with my old java classes. Subsequently if I do 5 compilation, I'll get (5 x 40) java processes and finally I got an 'OutOfMemoryError'. Can anyone please tell me what's the cause of the above problem and how to resolve it. thanks in advance -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: making clear
Tomcat can be used with any version of apache. -Tim ganesan malairaja wrote: hi guys i already have apache 2, java jdk 1.4.2 .. i need to know can i use tomcat version 5.0.x or must have version 4.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Frames and request
Hello. I am working with frames (I know it's a bad practice... but I cannot do anything about it) well the problem is: I have one jsp file (outter.jsp) which has 2 frames (inner1.jsp and inner2.jsp), when I forward to outter.jsp I can see the request's attribute, but inner1.jsp and inner2.jsp does not have access to the request's attribute, in fact the have a new request and of course that request does not have the attribute I set before. Can I share the request between the frames??? please help me! -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
[OT] wildcard servlet mapping also catching jsps
Hi Guys, Having a real ball ache with a requirement. We want to handle any URL with a Spring controller (servlet for those not into Spring). Therefore http://ourserver/wacky/url http://ourserver/something We want coming to our controller. Why? Because we have fancy page lookup and redirect services that the servlet should use to send out the resultant JSP or redirect. We run IIS - JK - Tomcat. To achieve getting arbitrary URLs into our controller we have 1. Mapping in JK's conf, i.e /*=ajp13 to route everything to the ajp13 tomcat worker. 2. Mapping in application web.xml for the controller servlet with mapping /* (everything!) 3. The Spring controller too needs a mapping itself /* but that's not really important I think. So we make one of those requests. And sure enough it gets to our controller servlet. We're happy. Until what happens next. The controller, sends back a JSP view, probably via request forwarding or whatever. However, the web.xml /* mapping to the controller picks up the JSP request/forward whatever, and so the JSP is never run as we're in a loop. Why oh why can't servlet-mapping elements allow for exclusions I don't know. Perhaps someone out there has an amazing idea that will ease the pain here :) Looking forward to solutions if indeed there are any. All the best, Allistair PS: I tried an ugly hack by adding the Tomcat JSP Servlet to my application web.xml and mapping *.jsp to it - did not work. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Frames and request
On Thu, June 30, 2005 11:32 am, Carlos Bracho said: Hello. I am working with frames (I know it's a bad practice... but I cannot do anything about it) well the problem is: Whoever told you using frames is a bad practice was probably scared of them :) I find a lot of people see that it takes a little extra effort and they run away like their hair was on fire. Using frames is like using any other technology... if you understand it, and know the pros and cons, you can do things you could never do otherwise. But I digress... I have one jsp file (outter.jsp) which has 2 frames (inner1.jsp and inner2.jsp), when I forward to outter.jsp I can see the request's attribute, but inner1.jsp and inner2.jsp does not have access to the request's attribute, in fact the have a new request and of course that request does not have the attribute I set before. That's right... each frame is a separate request. You have to think of them as completely separate browser windows, because thats exactly what they are. They just happen to share a session. There are ways to do what you want... if you are not script-averse, you can grab the attributes you want from the request associated with outter.jsp, put them in some Javascript variables, and then access them from the inner frames using parent.name_of_variable_here (although I've always used window.top.name_of_frame.name_of_variable, they should both work). Alternatively, you can add a query string to the URLs that you populate in the inner frames from the outer frame, something like: frameset rows=100,* frame name=top src=top.jsp%=?+(String)request.getAttribute(attr1)% frame name=bottom src=bottom.jsp%=?+(String)request.getAttribute(attr2)% /frameset In the case of the first approach, the attributes are only accessible to your client-side code, i.e., you can't get at them from within a JSP scriplet. The second will allow you to access them in both client-side code and server-side code. Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
iterate on a value
Hello ! In my form , i ask the number of children. On the next page, i'd like to display as many textboxes as children to get their name. logic:iterate provides iteration on array or collection, how can i iterate on the number of children ? Thanks ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: iterate on a value
If you don't mind mixing Struts and JSTL, use a c:forEach loop, with the end value being the number of children parameters; At 11:00 AM 6/30/2005, Dewitte Rémi wrote: Hello ! In my form , i ask the number of children. On the next page, i'd like to display as many textboxes as children to get their name. logic:iterate provides iteration on array or collection, how can i iterate on the number of children ? Thanks ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Rickard Software Engineer TechBooks/GTS Your Single Source Solution! Los Angeles CA * York, PA * Boston,MA * New Delhi, India Visit us on the World Wide Web http://www.techbooks.comhttp://www.techbooks.com [EMAIL PROTECTED] 5650 Jillson St., Los Angeles, CA 90040 (323) 888-8889 x331 (323) 888-1849 (Fax)
java.util.zip.ZipException: invalid block type
Hi all, I'm having trouble starting tomcat. This happened after I deleted the temp and work directories. I recreated the temp directory because it seemed this was a problem. Now I'm getting this stack trace: Apache Tomcat/4.1.31 java.util.zip.ZipException: invalid block type at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140) at java.io.DataInputStream.readFully(DataInputStream.java:266) at java.util.jar.JarFile.getBytes(JarFile.java:339) at java.util.jar.JarFile.getManifest(JarFile.java:157) at org.apache.catalina.loader.WebappClassLoader.addJar(WebappClassLoader.java:654) at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1020) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:618) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Caused by: java.lang.InternalError: jzentry == 0, jzfile = 118335776, total = 2482, name = tools\tomcat\4.1.31\temp\jar_cache53708.tmp, i = 34, message = invalid LOC header (bad signature) at java.util.zip.ZipFile$2.nextElement(ZipFile.java:320) at java.util.jar.JarFile$1.nextElement(JarFile.java:211) at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:850) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:809) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:587) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:181) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) ... 5 more So, first impulse is to say that there's a bad jar file in there somewhere. Only this isn't the case. I've deleted jars and it just fails on the next one. I'm guessing this has something to do with me deleting the temp and work directories. I did this because we're checking tomcat into our svn repository. Any ideas what's going on here? Thanks, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Remote deployment
I need to use the Ant to do remote deployment on TC, not using war file format if possible. I have done some search on the web and don't find the information I need. My development box is Window XP and the deployment box is Linux. Can any one point out an online documentation in this regard? Thanks. Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote deployment
maybe you just want to ftp the files to the correct location... u can ftp the war file - that would be easier I think. -Anoop On 6/30/05, Vernon [EMAIL PROTECTED] wrote: I need to use the Ant to do remote deployment on TC, not using war file format if possible. I have done some search on the web and don't find the information I need. My development box is Window XP and the deployment box is Linux. Can any one point out an online documentation in this regard? Thanks. Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.util.zip.ZipException: invalid block type
Redeploy your wars i'll say Le Jeudi 30 Juin 2005 18:43, Ben Anderson a écrit : Hi all, I'm having trouble starting tomcat. This happened after I deleted the temp and work directories. I recreated the temp directory because it seemed this was a problem. Now I'm getting this stack trace: Apache Tomcat/4.1.31 java.util.zip.ZipException: invalid block type at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140) at java.io.DataInputStream.readFully(DataInputStream.java:266) at java.util.jar.JarFile.getBytes(JarFile.java:339) at java.util.jar.JarFile.getManifest(JarFile.java:157) at org.apache.catalina.loader.WebappClassLoader.addJar(WebappClassLoader.java: 654) at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1 020) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:618) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Caused by: java.lang.InternalError: jzentry == 0, jzfile = 118335776, total = 2482, name = tools\tomcat\4.1.31\temp\jar_cache53708.tmp, i = 34, message = invalid LOC header (bad signature) at java.util.zip.ZipFile$2.nextElement(ZipFile.java:320) at java.util.jar.JarFile$1.nextElement(JarFile.java:211) at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:850 ) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:809) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:587) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java :181) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) ... 5 more So, first impulse is to say that there's a bad jar file in there somewhere. Only this isn't the case. I've deleted jars and it just fails on the next one. I'm guessing this has something to do with me deleting the temp and work directories. I did this because we're checking tomcat into our svn repository. Any ideas what's going on here? Thanks, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache 2 Tomcat 5.5
I used these in reference to Tomcat 5.0.28 and Apache 2. Maybe they will send you in the right direction. http://httpd.apache.org/docs-2.0/install.html#page-header Build apache, compile, install etc.. http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html?page=1 configuration extras. http://johnturner.com/howto/winxp-howto.html more how tos.. but on Windows. http://www.thebluesmokeband.com/mod_ntlm.php Mod_ntlm http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html#s73 Mod_jk how tos. http://johnturner.com/howto/apache2-tomcat4112-sol8-howto.html build mod_jk From: Paul Wallace [EMAIL PROTECTED] Reply-To: Paul Wallace [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: Apache 2 Tomcat 5.5 Date: Thu, 30 Jun 2005 16:54:02 +0800 Hello, Can somneone point me in the right (any) direction of documentation/resource on how to integrate the above two please? -- thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to catch and fix this error
can you post excerts from the localhost log and catalint.out? From: st946tbf [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: How to catch and fix this error Date: Wed, 29 Jun 2005 14:15:55 -0400 We have a web app running on Tomcat 5.028. When running at our company, it works. However, it crashes (exits) at client site when access certain page (it used to work). When we ask them to sent us the database used and run it at our company, it works fine. There is an Sql query in this page. Records are written out to the page. Some records already came down before it crashes. Please tell me how do I trouble shoot this? What kind of log can I make? This is an urgent problem. Please help. Thank you very much for your time. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.util.zip.ZipException: invalid block type
I'm not deploying wars. I'm just pointing to a directory. I've tried cleaning and redeploying this. The weird thing is that this is happening to the other developer on the project as well. Host name=localhost debug=0 appBase=c:\work\build\cocoon unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- RealNet application context -- Context path= docBase=webapp debug=0 On 6/30/05, David Delbecq [EMAIL PROTECTED] wrote: Redeploy your wars i'll say Le Jeudi 30 Juin 2005 18:43, Ben Anderson a écrit : Hi all, I'm having trouble starting tomcat. This happened after I deleted the temp and work directories. I recreated the temp directory because it seemed this was a problem. Now I'm getting this stack trace: Apache Tomcat/4.1.31 java.util.zip.ZipException: invalid block type at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140) at java.io.DataInputStream.readFully(DataInputStream.java:266) at java.util.jar.JarFile.getBytes(JarFile.java:339) at java.util.jar.JarFile.getManifest(JarFile.java:157) at org.apache.catalina.loader.WebappClassLoader.addJar(WebappClassLoader.java: 654) at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1 020) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:618) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Caused by: java.lang.InternalError: jzentry == 0, jzfile = 118335776, total = 2482, name = tools\tomcat\4.1.31\temp\jar_cache53708.tmp, i = 34, message = invalid LOC header (bad signature) at java.util.zip.ZipFile$2.nextElement(ZipFile.java:320) at java.util.jar.JarFile$1.nextElement(JarFile.java:211) at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:850 ) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:809) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:587) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java :181) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at
Change log level for catalina.out
Can I change the log level for this? -SB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to catch and fix this error
We have a web app running on Tomcat 5.028. When running at our company, it works. However, it crashes (exits) at client site when access certain page (it used to work). When we ask them to sent us the database used and run it at our company, it works fine. There is an Sql query in this page. Records are written out to the page. Some records already came down before it crashes. Second to posting the logs, I think these things can be different between the two places and you might want to check. - database access control and permission setting - jdbc driver - jarred lib files - database version (or validity of sql statement for the version) - You might also want to compare the jsp-converted-to-java files, if relevant. HTH Regards, Ben Kim Developer College of Education Texas AM University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Change log level for catalina.out
Yes - check out server.xml under the TOMCAT_HOME/conf folder. search for debug - if it is 0 I think increasing it to 1 will give u some detailed level logging - u can go on upto 9. ( I have not tried this - purely from documentation) ATB, Anoop On 6/30/05, BATCHELOR, SCOTT (CONTRACTOR) [EMAIL PROTECTED] wrote: Can I change the log level for this? -SB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote deployment
Hi - Have you read the Application Developers Guide? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/ contains a great overview of best practices a very useful build.xml http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/build.xml.txt as for docs of the tasks themselve, I think the only reliable online documentation is the javadocs for catalina-ant, which dictate how to use the various tasks (the tasks translate into classes). for the deploy task: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/ant/DeployTask.html and if you don't want to create a war file, then you'll have to get the files to the server first and then use the localWar, otherwise you can use a local war file:// url which will upload them. (typically localWar is quick and dirty for use on your local development machine, then war it up - very easy with the build.xml above - and use the war style of the deploy task.) -- Tim Vernon wrote: I need to use the Ant to do remote deployment on TC, not using war file format if possible. I have done some search on the web and don't find the information I need. My development box is Window XP and the deployment box is Linux. Can any one point out an online documentation in this regard? Thanks. Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.util.zip.ZipException: invalid block type
I would say if both you and another developer are getting this error, it would mean one of your .jar files is corrupt. Check them by unzipping them into a temp directory or replace them with known working versions. --David Ben Anderson wrote: I'm not deploying wars. I'm just pointing to a directory. I've tried cleaning and redeploying this. The weird thing is that this is happening to the other developer on the project as well. Host name=localhost debug=0 appBase=c:\work\build\cocoon unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- RealNet application context -- Context path= docBase=webapp debug=0 On 6/30/05, David Delbecq [EMAIL PROTECTED] wrote: Redeploy your wars i'll say Le Jeudi 30 Juin 2005 18:43, Ben Anderson a écrit : Hi all, I'm having trouble starting tomcat. This happened after I deleted the temp and work directories. I recreated the temp directory because it seemed this was a problem. Now I'm getting this stack trace: Apache Tomcat/4.1.31 java.util.zip.ZipException: invalid block type at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140) at java.io.DataInputStream.readFully(DataInputStream.java:266) at java.util.jar.JarFile.getBytes(JarFile.java:339) at java.util.jar.JarFile.getManifest(JarFile.java:157) at org.apache.catalina.loader.WebappClassLoader.addJar(WebappClassLoader.java: 654) at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1 020) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:618) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Caused by: java.lang.InternalError: jzentry == 0, jzfile = 118335776, total = 2482, name = tools\tomcat\4.1.31\temp\jar_cache53708.tmp, i = 34, message = invalid LOC header (bad signature) at java.util.zip.ZipFile$2.nextElement(ZipFile.java:320) at java.util.jar.JarFile$1.nextElement(JarFile.java:211) at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:850 ) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:809) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:587) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java :181) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at
shared session question
does anybody knows how can I use the findSession function to retrieve shared sessions from multiples applications ? I have been trying with a local StandardManager class, but it ins't work to me. What I want is to be able of getting some attributes from a session created in another application for security purposes. I will be very appretiate if anobody can help me. -- SAN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Replacing soon- to-expire SSL Certificate
Hi all, My SSL certificate is about to expire in several days. I'm unsure how to go about replacing it once I get a new one from Thawte. Can I just import the new certificate into my existing alias/keystore or do I have to delete the existing alias first? If I delete an alias, does this function also get rid of the chain certificate and the public key. Thank you in advance. Waylim Lee Systems Analyst/DBA, Computer Resources BC Institute of Technology Ph: 604-432-8454 Fax: 604-439-6785 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
confused J2SE or J2EE
hi guys i am confused about using J2SE or J2EE which one i am supposed to use ? if i use J2SE do i have to install JRE also ? please clarify .. i am stuck here .. i already have Borland JBuilder , which comes with jdk 1.4, do i need to install another copy of J2SE or use the one comes with JBuilder.. i am using SUZE 9.3 Profesional.. if u guys got a linux configuration with MySQL + APACEHE + TOMCAT + JAVA... i will be more than willing to follow the configurations.. windows XP sp2 configuration is also welcomed as i have another machine on XP sp2 .. please try to give some guidance .. any help is high appreaciated .. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Change classpath in webapp
Hallo, I've a question about property files in web applications. In my app for Tomcat 5.0.28 I want to use some property files for configuration (e.g. log4j.xml is one of them, but I've app specific property files too). Since these files have to be placed in the class path, so that my app can find them, I've placed them under WEB-INF/classes. This works fine, but I would prefer a special directory named config at the top of the web application (next to WEB-INF). Is it possible to tell Tomcat that this directory is in the classpath? Of course I could manipulate the global classpath but I hope there's a way to place this in the web app configuration? Adding config to Class-Path in META-INF/MANIFEST.MF had no effect. Regards Markus Weseloh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java processes in tomcat...
Hi again, From the web.xml file in tomcat/conf, I found that fork = false and compiler is 'javac'. -Original Message- From: Surendrakumar Viswanathan (suviswan) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 5:55 PM To: Tomcat Users List Subject: RE: Java processes in tomcat... Check your web.xml (under TOMCAT_ROOT/conf) -Surendra -Original Message- From: Gulshan Babajee [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 5:34 PM To: 'Tomcat Users List' Subject: RE: Java processes in tomcat... By default fork is enabled, but for the compiler, I don't know. How could I know which compiler is being used -Original Message- From: Surendrakumar Viswanathan (suviswan) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 3:10 PM To: Tomcat Users List Subject: RE: Java processes in tomcat... Which compiler do you use for compiling JSP pages also have you enabled fork during jsp compiler. I think there are some known issues with this fork option. -Surendra -Original Message- From: Øyvind Johansen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 2:35 PM To: 'Tomcat Users List' Subject: RE: Java processes in tomcat... Possible reasons (not really sure here): You open a filestream, but you do not close it after use You start a Thread that never finishes (no stop when tomcat runs destroy() on your webapp) You start a ServerSocket listener that doesn't timeout or stop gracefully. Some other reason I do not see. Oyvind Johansen ElectricTimeCar, Norway -Opprinnelig melding- Fra: Gulshan Babajee [mailto:[EMAIL PROTECTED] Sendt: 30. juni 2005 10:35 Til: 'tomcat-user@jakarta.apache.org' Emne: Java processes in tomcat... Hi, I've posted this question sometimes ago, but did not receive any reply. Am sending it again if ever someone has got an answer meanwhile Am actually using tomcat version 5.0.28 on Red Hat Linux 6.2. What i've notice is that each time i compile my java classes, copy them to /WEB-INF/classes dir. and then redeploy my web application consisting of jsp pages, I saw the number of java process increases when I do a 'ps -aux' That is if before compilation of my java classes there were 30 java processes, then after compilation I saw 30 new java processes when I did a 'ps -aux' The problem is that tomcat does not kill the previous java processes that were associated with my old java classes. Subsequently if I do 5 compilation, I'll get (5 x 40) java processes and finally I got an 'OutOfMemoryError'. Can anyone please tell me what's the cause of the above problem and how to resolve it. thanks in advance -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.8/35 - Release Date: 30-06-2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.8/35 - Release Date: 30-06-2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JVM in Tomcat
Hi, Can anyone please tell me how could I verify that all my applications running in tomcat are using the same JVM instance. thanks in advance -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.8/35 - Release Date: 30-06-2005