Re: deploying problem
Hi Dean- The war that netbeans creates is specific to the configuration parameters in netbeans project (most notably project.xml) Can you display or send us the catalina.out or stderr* or stdout* logs from $CATALINA_HOME/logs? Thanks, Martin -- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Deano!! [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, March 20, 2007 9:08 AM Subject: Re: deploying problem to tell the truth i really dont truly know, when in the tomcat manager it says that it is running, but when i go into it i get that error message, i then went into full server status and when i go to my apps part its added a count to the error count in the /faces/ part so i wondered if maybe there is a library/module that netbeans 5.5's bundled tomcat has that tomcat 5.5 used in fedora doesn't http://deansserver.serveftp.com:8080/InterfacesHCI -- View this message in context: http://www.nabble.com/deploying-problem-tf3433368.html#a9572059 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Marking servlet [] as unavailable, again...
Yes, I've read through previous threads on this subject; I haven't found anything which helps me. Recently I've had a spate of unexplained 'Marking servlet [] as unavailable' issues on my development server. It is a development server, and so, of course, all the servlets on it are pretty much in development; but the tomcat version is Debian's packaging of tomcat5, package version 5.0.30-12, and has been installed 'out of the box' with the only special configuration I've done to set JAVA_HOME=/opt/ibm-java2-i386-50 TOMCAT5_SECURITY=no in /etc/default/tomcat5. No change has been made to the install since 2006-05-15, and the 'Marking ... as unavailable' issue has only started recently. what I'm getting in the localhost log is just: 2007-03-24 14:36:51 StandardContext[/pres]Marking servlet news as unavailable What I'm getting in the catalina log is nothing relevant at all. My webapp starts: 24-Mar-2007 14:36:27 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /pres from URL file:/var/lib/tomcat5/webapps/pres Then my servlet starts to initialise itself: 24-Mar-2007 14:36:29 org.apache.catalina.startup.Catalina start INFO: Server startup in 9479 ms Will parse category article from pathinfo Looking for class 'uk.co.weft.exceptionhandler.BugzillaExceptionHandler' Looking for class 'uk.co.weft.pres.server.PrimitiveGenerator' And then - nothing at all. Nothing whatever is printed to catalina.out. I should say this does not affect the majority of my servlets; the majority of the servlets in this webapp work perfectly. It's a minority of servlets that are affected, and I suspect that the problem may be dependency on Xerces; but without more diagnostics it's hard to be certain. What I need to know is how to configure Tomcat so that it will print an exception dump somewhere when it is marking things as unavailable. Thanks Simon -- Simon Brooke:: [EMAIL PROTECTED] :: http://www.weft.co.uk/ Simon Brooke trading as The Web Engineering Factory and Toolworks. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat mod_proxy_ajp and jk exceptions
so would it make sense to assume that since SSL worked without any extra config changes when I added the AJP config that it should work without any changes when using mod_proxy_http? On 3/23/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: AJP doesn't use SSL, never has, so I'm not sure what the problem would be the only way to get SSL between apache and tomcat, is to use mod_proxy Filip c. wrote: Thanks Filip, We've always had the need for SSL, and our config worked without any changes when I put AJP in the mix. It doesn't, however, work with proxy http. On 3/23/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: in my last email I forgot one SSLProxyMachineCertificateFile -- SSLProxyEngine SSLProxyMachineCertificatePath SSLEngine SSLProxyProtocol, SSLProxyCipherSuite c. wrote: Filip, thanks for the info, I'll listen to anyone with good advice. So you recommend mod_proxy_http over mod_jk? Is it the same basic setup as mod_proxy_ajp? Looking at the doc ( http://httpd.apache.org/docs/2.0/mod/mod_proxy_http.html) it doesn't give much info. c. On 3/23/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: I'd recommend moving to mod_proxy_http, it will be easier for you to debug. Bah! :( that sounds knowledgeable :) the error below seems to be more of a problem with apache (mod_proxy_ajp) then with tomcat, tomcat is simply trying to write a message, but the connection is no longer valid. The problem is that the connection has been closed at some point. It's usually because the user hit the STOP button on their browser and closed the connection. You can pretty much ignore these errors. yes, and instead filling up the logs No need to switch connectors. actually, if you are gonna use AJP, use mod_jk, mod_proxy_ajp is not moving in the same pace. however, I'd recommend using HTTP, the HTTP connectors on tomcat are finely tuned, if there ever is a problem in the communication, you'll just put in a sniffer and can see it direct. but hey, don't listen to me :) Filip - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGBA1E9CaO5/Lv0PARAqGMAJ90+P79Kt1Vhhm+a+aeNvdupzhJ4QCcDhzn 58umlhiChNndLXSputpG5rk= =IxYN -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007 7:44 AM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007 7:44 AM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configure ssl support on my tomcat instance number 2
Hi, i install two tomcat intances on my machine; and i modified the server.xml file Connector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystorePass = changeit keystoreFile = ssl\.keystore /Connector And then run the instances, and everything works ok. But when i try use http://localhost:8443 the browser don't show anything, why? With firefox, appears a box for download a file, and with Internet Exporer appears five characters -- Gracias. Atentamente, Carlos Arturo Trujillo Silva Ingeniero de Sistemas
Re: Configure ssl support on my tomcat instance number 2
Cartman wrote: But when i try use http://localhost:8443 the browser don't show anything, why? Because you need to request https://localhost:8443 Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configure ssl support on my tomcat instance number 2
oops, sorry. Thanks On 3/24/07, Mark Thomas [EMAIL PROTECTED] wrote: Cartman wrote: But when i try use http://localhost:8443 the browser don't show anything, why? Because you need to request https://localhost:8443 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] -- Gracias. Atentamente, Carlos Arturo Trujillo Silva Ingeniero de Sistemas
Re: deploying problem
21-Mar-07 4:20:42 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet Faces Servlet threw exception com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: Exception in JSP: /Page1.jsp:7 4: f:view 5: ui:page binding=#{Page1.page1} id=page1 6: ui:html binding=#{Page1.html1} id=html1 7: ui:head binding=#{Page1.head1} id=head1 8: ui:link binding=#{Page1.link1} id=link1 url=/resources/stylesheet.css/ 9: /ui:head 10: ui:body binding=#{Page1.body1} id=body1 style=-rave-layout: grid Stacktrace: at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:559) at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:290) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.17.jar.sovwj9yy.so) at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.17.jar.so) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.17.jar.so) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.17.jar.so) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.17.jar.so) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.17.jar.so) at java.lang.Thread.run(libgcj.so.7rh) Caused by: javax.faces.FacesException: org.apache.jasper.JasperException: Exception in JSP: /Page1.jsp:7 4: f:view 5: ui:page binding=#{Page1.page1} id=page1 6: ui:html binding=#{Page1.html1} id=html1 7: ui:head binding=#{Page1.head1} id=head1 8: ui:link binding=#{Page1.link1} id=link1 url=/resources/stylesheet.css/ 9: /ui:head 10: ui:body binding=#{Page1.body1} id=body1 style=-rave-layout: grid Stacktrace: at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:351) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152) at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285) ...21 more Caused by: org.apache.jasper.JasperException: Exception in JSP: /Page1.jsp:7 4: f:view 5: ui:page binding=#{Page1.page1} id=page1 6: ui:html binding=#{Page1.html1} id=html1 7: ui:head binding=#{Page1.head1} id=head1 8: ui:link binding=#{Page1.link1} id=link1 url=/resources/stylesheet.css/ 9: /ui:head 10: ui:body binding=#{Page1.body1} id=body1 style=-rave-layout: grid Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException(jasper5-compiler-5.5.17.jar.so) at org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.17.jar.so) at org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.17.jar.so) at org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.17.jar.so) at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.core.ApplicationDispatcher.invoke(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.core.ApplicationDispatcher.processRequest(catalina-5.5.17.jar.sovwj9yy.so) at org.apache.catalina.core.ApplicationDispatcher.doForward(catalina-5.5.17.jar.sovwj9yy.so) at
Re: deploying problem
Hi there, I think JSF questions will be appropriate here: http://forum.java.sun.com/forum.jspa?forumID=427 If you are trying to use Unified EL then you need Tomcat 6.0.x because it is built to JSP 2.1 which supports Unified EL. -Rashmi On 3/24/07, Deano!! [EMAIL PROTECTED] wrote: 21-Mar-07 4:20:42 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet Faces Servlet threw exception com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: Exception in JSP: /Page1.jsp:7 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying problem
but netbeans uses tomcat 5.5 aswell? and it works there jsut not on another tomcat 5.5 -- View this message in context: http://www.nabble.com/deploying-problem-tf3433368.html#a9653538 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 2.2 mod_jk Tomcat 5.5 Keeps running
Hi I have set up an Apache webserver to connect to a Tomcat server to process a page and everything works except the Tomcat starts to run at 100 percent after processing the page. If I access the page directly thouugh the Tomcat server(before trying with Apache/mod_jk) the page is fetched and the tomcat goes back to a low amount of cpu activity. If I get additional pages from the Tomcat via the Apache connection they work but at a slower rate (I would guess because of the Tomcat is doing something else too). The only way I can get the Tomcat back to normal operation is to stop the server and restart it. I would like to understand how to figure out what keeps the Tomcat running Thanks Scott I have a pc with the following software on it Windows XP Service Pack 2 Apache 2.2.3(Win32)mod_jk/1.2.21 Apache Tomcat/5.5.23 my setup with mod_jk is as follows. From httpd.conf: LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log # log level can be debug, info, request, error, or emerg JkLogLevel debug JkMountFile conf/uriworkermap.properties From workers.properties: # define the worker list worker.list=tomcat1 # configure each worker worker.tomcat1.type=ajp13 worker.tomcat1.host=localhost worker.tomcat1.port=8009 From uriworkermap.properties /Library/*=tomcat1 /Library=tomcat1 /servlets-examples/*=tomcat1 /servlets-examples=tomcat1 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I handle failure in contextInitialized()?
Hi, I have a class that implements ServletContextListener. When I receive a contextInitialized() call, I need to load some data from a database and add it to the application scope for subsequent use by various servlets and pages. There is a chance that the database request made in contextInitialized() either fails to connect to the database or does not find the relevant data. If that's the case, I'd like the context to not load, preferably gracefully, but ungracefully if need be. Is that possible? Thanks, Emerson -- View this message in context: http://www.nabble.com/How-do-I-handle-failure-in-contextInitialized%28%29--tf3459960.html#a9653570 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying problem
I have manually (independent of an IDE) configured Tomcat 6.0.x , JSF 1.2 and have tried a simple JSF example and the example works on Tomcat 6.0.x. I haven't tested on Tomcat 5.5, but I'm sure if everything is configured correctly things should work. Check your log files for additional information on the error, and post the stack trace if it is different. I recommend closing the IDE , and manually starting tomcat from the command line to test your JSF app. 1) The other Tomcat 5.5 needs to be configured correctly , set CATALINA_HOME to the other Tomcat 5.5 and JAVA_HOME correctly. 2) If you have explicitly set a CLASSPATH system variable , then un-set it, Tomcat 5.5 doesn't require a CLASSPATH 3) Your project's web.xml should have web-app exactly as follows for Tomcat 5.5 , but this was for JSTL EL, might apply for your case also: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; /web-app 4) Check if the other Tomcat and JDK are installed on a path that has no spaces in it. On 3/24/07, Deano!! [EMAIL PROTECTED] wrote: but netbeans uses tomcat 5.5 aswell? and it works there jsut not on another tomcat 5.5 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying problem
yeah, well how its all set up is i produce the projects on netbeans 5.5 on my desktop, cause it is quite a demanding ide, and then i wanna run them on my home server which is much less powerful. if i say gave u a link to download my .war could u see it if works on yours? the first page is a long on page any1s but just to see if its the server or the .war file to blame? Rashmi Rubdi-2 wrote: I have manually (independent of an IDE) configured Tomcat 6.0.x , JSF 1.2 and have tried a simple JSF example and the example works on Tomcat 6.0.x. I haven't tested on Tomcat 5.5, but I'm sure if everything is configured correctly things should work. Check your log files for additional information on the error, and post the stack trace if it is different. I recommend closing the IDE , and manually starting tomcat from the command line to test your JSF app. 1) The other Tomcat 5.5 needs to be configured correctly , set CATALINA_HOME to the other Tomcat 5.5 and JAVA_HOME correctly. 2) If you have explicitly set a CLASSPATH system variable , then un-set it, Tomcat 5.5 doesn't require a CLASSPATH 3) Your project's web.xml should have web-app exactly as follows for Tomcat 5.5 , but this was for JSTL EL, might apply for your case also: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; /web-app 4) Check if the other Tomcat and JDK are installed on a path that has no spaces in it. On 3/24/07, Deano!! [EMAIL PROTECTED] wrote: but netbeans uses tomcat 5.5 aswell? and it works there jsut not on another tomcat 5.5 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/deploying-problem-tf3433368.html#a9653736 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying problem
Sure, post the link to your WAR file, we will take a look at it. I'm heading out so it might take a while for me to respond. -Rashmi On 3/24/07, Deano!! [EMAIL PROTECTED] wrote: if i say gave u a link to download my .war could u see it if works on yours? the first page is a long on page any1s but just to see if its the server or the .war file to blame? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying problem
http://deansserver.serveftp/InterfacesHCI.war but when u get prompt make sure u change the extension from zip to war, though i have actually uploaded the .war file windows seems to think its a .zip file. thanks Deano!! Rashmi Rubdi-2 wrote: Sure, post the link to your WAR file, we will take a look at it. I'm heading out so it might take a while for me to respond. -Rashmi On 3/24/07, Deano!! [EMAIL PROTECTED] wrote: if i say gave u a link to download my .war could u see it if works on yours? the first page is a long on page any1s but just to see if its the server or the .war file to blame? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/deploying-problem-tf3433368.html#a9653832 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying problem
I also have Tomcat 5.5 in addition to 6.0, I dropped your WAR file to: C:\dev\apache-tomcat-5.5.12\webapps\InterfacesHCI.war Tomcat unpacked the war, and I was able to successfully access your app on http://localhost:9090/InterfacesHCI/ It shows a login page with yellow text boxes. Then I tried a few pages: http://localhost:9090/InterfacesHCI/faces/Page2.jsp - shows a Welcome message Add Student, Logout buttons. It also gave a login error message, when I tried to login with some random credentials http://localhost:9090/InterfacesHCI/faces/Page1.jsp In some cases when I tried to directly access http://localhost:9090/InterfacesHCI/faces/pageStudent.jsp I get HTTP Status 500 - , probably because those pages are supposed to be accessed in sequence after logging in. Please note that I've used port 9090 , the default port on Tomcat is 8080 unless you change it. -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying problem
Although the JSF app worked on Tomcat 5.5, I saw some errors relating to JDBC connection on the console: Cannot load JDBC driver class 'org.apache.derby.jdbc.ClientDriver' java.lang.ClassNotFoundException: org.apache.derby.jdbc.ClientDriver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) Some additional errors were found in the log files, but I think they are related to the JSF code: Mar 24, 2007 5:07:59 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet Faces Servlet threw exception com.sun.faces.el.impl.ElException: Encountered }, expected one of [INTEGER_LITERAL, FLOATING_POINT_LITERAL, STRING_LITERAL, true, false, null, (, -, not, !, empty, IDENTIFIER] at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:309) at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:219) at com.sun.faces.application.ApplicationImpl.checkSyntax(ApplicationImpl.java:805) at com.sun.faces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:311) at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.pageBean(ViewHandlerImpl.java:662) at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.pageBean(ViewHandlerImpl.java:641) at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:249) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) Caused by: com.sun.faces.el.impl.parser.ParseException: Encountered } at line 1, column 3. Was expecting one of: INTEGER_LITERAL ... FLOATING_POINT_LITERAL ... STRING_LITERAL ... true ... false ... null ... ( ... - ... not ... ! ... empty ... IDENTIFIER ... - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat mod_proxy_ajp and jk exceptions
c. wrote: so would it make sense to assume that since SSL worked without any extra config changes when I added the AJP config that it should work without any changes when using mod_proxy_http? correct, the info I gave you is for when you want SSL between apache and tomcat, you are obviously talking about SSL between the browser and the apache httpd server. if you don't need SSL between apache and tomcat (which you obviously don't need since you ran AJP before) then don't bother with SSL for mod_proxy either Filip On 3/23/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: AJP doesn't use SSL, never has, so I'm not sure what the problem would be the only way to get SSL between apache and tomcat, is to use mod_proxy Filip c. wrote: Thanks Filip, We've always had the need for SSL, and our config worked without any changes when I put AJP in the mix. It doesn't, however, work with proxy http. On 3/23/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: in my last email I forgot one SSLProxyMachineCertificateFile -- SSLProxyEngine SSLProxyMachineCertificatePath SSLEngine SSLProxyProtocol, SSLProxyCipherSuite c. wrote: Filip, thanks for the info, I'll listen to anyone with good advice. So you recommend mod_proxy_http over mod_jk? Is it the same basic setup as mod_proxy_ajp? Looking at the doc ( http://httpd.apache.org/docs/2.0/mod/mod_proxy_http.html) it doesn't give much info. c. On 3/23/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: I'd recommend moving to mod_proxy_http, it will be easier for you to debug. Bah! :( that sounds knowledgeable :) the error below seems to be more of a problem with apache (mod_proxy_ajp) then with tomcat, tomcat is simply trying to write a message, but the connection is no longer valid. The problem is that the connection has been closed at some point. It's usually because the user hit the STOP button on their browser and closed the connection. You can pretty much ignore these errors. yes, and instead filling up the logs No need to switch connectors. actually, if you are gonna use AJP, use mod_jk, mod_proxy_ajp is not moving in the same pace. however, I'd recommend using HTTP, the HTTP connectors on tomcat are finely tuned, if there ever is a problem in the communication, you'll just put in a sniffer and can see it direct. but hey, don't listen to me :) Filip - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGBA1E9CaO5/Lv0PARAqGMAJ90+P79Kt1Vhhm+a+aeNvdupzhJ4QCcDhzn 58umlhiChNndLXSputpG5rk= =IxYN -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007 7:44 AM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007 7:44 AM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007 3:27 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configure ssl support on my tomcat instance number 2
try to specify a full path for keystoreFile, not a relative one. my guess is that it is trying to read TOMCAT_HOME/bin/ssl/.keystore Filip Cartman wrote: Hi, i install two tomcat intances on my machine; and i modified the server.xml file Connector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystorePass = changeit keystoreFile = ssl\.keystore /Connector And then run the instances, and everything works ok. But when i try use http://localhost:8443 the browser don't show anything, why? With firefox, appears a box for download a file, and with Internet Exporer appears five characters No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007 3:27 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I handle failure in contextInitialized()?
mers wrote: There is a chance that the database request made in contextInitialized() either fails to connect to the database or does not find the relevant data. If that's the case, I'd like the context to not load, preferably gracefully, but ungracefully if need be. If you throw an exception application will not be available. -- Mikolaj Rydzewski [EMAIL PROTECTED]http://ceti.pl/~miki/ PGP KeyID: 8b12ab02 There are three kinds of people: men, women and unix. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Marking servlet [] as unavailable, again...
Simon- something is happening to interfere with the successful completion of init() method of your Servlet such as cannot find classes such as 'uk.co.weft.exceptionhandler.BugzillaExceptionHandler' or one of the init-param in web.xml could be incorrectly spelled or not there put in log.debug or System,out.println() statements every other statement in your init method so you can see each line being executed in your init() HTH, M-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Simon Brooke [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Saturday, March 24, 2007 11:28 AM Subject: Marking servlet [] as unavailable, again... Yes, I've read through previous threads on this subject; I haven't found anything which helps me. Recently I've had a spate of unexplained 'Marking servlet [] as unavailable' issues on my development server. It is a development server, and so, of course, all the servlets on it are pretty much in development; but the tomcat version is Debian's packaging of tomcat5, package version 5.0.30-12, and has been installed 'out of the box' with the only special configuration I've done to set JAVA_HOME=/opt/ibm-java2-i386-50 TOMCAT5_SECURITY=no in /etc/default/tomcat5. No change has been made to the install since 2006-05-15, and the 'Marking ... as unavailable' issue has only started recently. what I'm getting in the localhost log is just: 2007-03-24 14:36:51 StandardContext[/pres]Marking servlet news as unavailable What I'm getting in the catalina log is nothing relevant at all. My webapp starts: 24-Mar-2007 14:36:27 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /pres from URL file:/var/lib/tomcat5/webapps/pres Then my servlet starts to initialise itself: 24-Mar-2007 14:36:29 org.apache.catalina.startup.Catalina start INFO: Server startup in 9479 ms Will parse category article from pathinfo Looking for class 'uk.co.weft.exceptionhandler.BugzillaExceptionHandler' Looking for class 'uk.co.weft.pres.server.PrimitiveGenerator' And then - nothing at all. Nothing whatever is printed to catalina.out. I should say this does not affect the majority of my servlets; the majority of the servlets in this webapp work perfectly. It's a minority of servlets that are affected, and I suspect that the problem may be dependency on Xerces; but without more diagnostics it's hard to be certain. What I need to know is how to configure Tomcat so that it will print an exception dump somewhere when it is marking things as unavailable. Thanks Simon -- Simon Brooke :: [EMAIL PROTECTED] :: http://www.weft.co.uk/ Simon Brooke trading as The Web Engineering Factory and Toolworks. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where is \common\endorsed in Tomcat 6.0? build.xml error
Hello, Where is \common\endorsed in Tomcat 6.0? I am using Tomcat 6.0 on Windows XP. In the Application Guide http://tomcat.apache.org/tomcat-6.0-doc/appdev/processes.html There is a build.xml file http://tomcat.apache.org/tomcat-6.0-doc/appdev/build.xml.txt However, I get C:\Documents and Settings\aphilip\My Documents\LearnJsp3ant Buildfile: build.xml prepare: compile: [javac] Compiling 1 source file to C:\Documents and Settings\aphilip\My Documents\LearnJsp3\build\WEB-INF\classes BUILD FAILED C:\Documents and Settings\aphilip\My Documents\LearnJsp3\build.xml:288: C:\Tomcat 6.0\common\endorsed not found. in build.xml property name=catalina.home value=C:\\Tomcat 6.0/ My build.properties is - # Context path to install this application on app.path=/hello # Tomcat 5 installation directory catalina.home=C:/Tomcat 6.0 # Manager webapp username and password manager.username=great manager.password=fasdgvf thanks, Anil TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A newbie question
Hi, I am very new to Tomcat, and something I don't understand why is not working. After I installed Tomcat, I can access a webpage locally at this address: http://localhost:8080/ I configured my reouter for NAT and I have port 8080 forwarded to my desktop in my LAN and when I access http://my router WAN IP:8080, it should come up the same webpage from before. It doesn't work. I also tried to access the webpage from my laptop, accessing the internal LAN IP of my desktop but doesn't work (like http://192.168.10.100:8080) I had another webserver, a mambo stand-alone-server (MSAS) with wich I tried the same thing, I accessed http://my router WAN IP and my webpage came up. So I thinkg something is wrong with my Tomcat settings. What am I missing? And which file contains the server port settings (to change from port 8080 to 80)? Thanks, Steven TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A newbie question
Most likely your router is blocking port 8080, or not forwarding it. to change tomcat to run on port 80 TOMCAT_HOME/conf/server.xml, just search for 8080 Filip S wrote: Hi, I am very new to Tomcat, and something I don't understand why is not working. After I installed Tomcat, I can access a webpage locally at this address: http://localhost:8080/ I configured my reouter for NAT and I have port 8080 forwarded to my desktop in my LAN and when I access http://my router WAN IP:8080, it should come up the same webpage from before. It doesn't work. I also tried to access the webpage from my laptop, accessing the internal LAN IP of my desktop but doesn't work (like http://192.168.10.100:8080) I had another webserver, a mambo stand-alone-server (MSAS) with wich I tried the same thing, I accessed http://my router WAN IP and my webpage came up. So I thinkg something is wrong with my Tomcat settings. What am I missing? And which file contains the server port settings (to change from port 8080 to 80)? Thanks, Steven TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Applet not initiated
Hello When I am trying to open a very simple applet on my browser it returns applet not initiated or failed to load applet. class file is located in tomcat WEB_INF/classes and I am calling it from ROOT directory and through index.html file. thanks for help Adam - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]