RE : RE : Tomcat 5 and Realm problem
I did not remember of this point of the specification. I'll try to do another way. Thanks a lot for your answer. Fred. -Message d'origine- De : Ben Souther [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 décembre 2004 17:45 À : Tomcat Users List Objet : Re: RE : Tomcat 5 and Realm problem On Wed, 2004-12-15 at 10:44, VAN DER MARLIERE FREDERIC wrote: Not far. I do use IE and htpts. And I turned off cookies but in server.xml file. I meet to many problems when I use session cookies and none with encoded URL. Any idea of the way to use realm authentication (FORM method) with cookies turned off? If there is, it probably won't be very portable. Here's a quote from the serlet specs: SRV.12.5.3.1 Login Form Notes Form based login and URL based session tracking can be problematic to implement. Form based login should be used only when sessions are being maintained by cookies or by SSL session information. Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The admin package for Tomcat 5.5
Hi All, I know this is a silly question, but I'm a newbie to Tomcat. I'm reading a book from Wrox press called, 'Professional Apache Tomcat 5.' It states there is an admin system, but I get the following message from Tomcat, 'Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it.' I can't find it on the Apache / Tomcat web site, any suggestions would be nice. Thanks Marco.
Re: TOMCAT adds /servlet to URL - program doesn`t work
Sorry, it`s version 5.5.4! Greets, Kay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
integrated login between servers
Hi, I'm using a cluster with two machines each one running 4 identical war files. But I'll need to keep another application isolated in a third machine...The point is that I'd like to keep my integrated login when users jump from the cluster to this app (I'm using Tomcat 5.0.28 single signon feature and my dispatcher just redirects to one of the cluster's servers...so single signon is working ok in the cluster environment). I'm thinking about to use commons-httpclient to connect from one of the clusters apps to the isolated one (giving it the user credentials) and trying to get the session cookie and send it to the user in the url using redirect...but it's just a first idea. Is there any other (maybe more elegant) way? Anyone has already tried this before? Will it work? Thanks in advance! Paulo Alvim Powerlogic - Brazil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The admin package for Tomcat 5.5
it's certainly there. check out the binaries page at http://jakarta.apache.org/site/binindex.cgi e.g 5.5.6-alpha Admin zip PGP MD5 5.5.6-alpha Admin tar.gz PGP MD5 5.5.4 Admin zip PGP MD5 5.5.4 Admin tar.gz PGP MD5 Cheers, Allistair. -Original Message- From: Marco Mastrocinque [mailto:[EMAIL PROTECTED] Sent: 16 December 2004 09:12 To: [EMAIL PROTECTED] Subject: The admin package for Tomcat 5.5 Hi All, I know this is a silly question, but I'm a newbie to Tomcat. I'm reading a book from Wrox press called, 'Professional Apache Tomcat 5.' It states there is an admin system, but I get the following message from Tomcat, 'Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it.' I can't find it on the Apache / Tomcat web site, any suggestions would be nice. Thanks Marco. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a 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: axis, realms and classloaders
On Thu, 9 Dec 2004 08:41:40 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote: I think we had a recent discussion on this exact NPE: you might want to search this list's archives (or a comparable mirror like MARC, GMANE, etc.) Thanks for the reply, been busy so it has been a while now, but I tested as the other mails suggested: moving axis jars from common/lib to webapps/webappname/WEB-INF/lib. Btw, I didn't find any mails about this NPE, only this thread, and one other without any replies. The problem is that I have a jaas login module and this must be reached somewhere else (not WEB-INF/lib). And if I move only the security module to common/lib it complaints about not finding the axis classes. As for the other thread concerning log4j, and axis - I have no problems with thread death in this case. Does flag useContextClassLoader in the realm definition work? This is the exception I get when I put all my axis jars and login module in WEB-INF/lib: [bite] DEBUG [http-8080-Processor25] LoginServlet.execute(240) | Authenticating user 'olve' [bite] DEBUG [http-8080-Processor25] LoginServlet.execute(255) | req: /bite/j_security_check?j_username=olvej_password=secretj_uri= Dec 16, 2004 11:14:58 AM org.apache.catalina.realm.JAASRealm authenticate WARNING: Login exception authenticating username olve javax.security.auth.login.LoginException: unable to find LoginModule class: no.imb.bite.security.BiteLoginModule at javax.security.auth.login.LoginContext.invoke(LoginContext.java:808) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) at javax.security.auth.login.LoginContext.login(LoginContext.java:579) at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:373) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:230) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:391) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) 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:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526) 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:595) -- \ Olve S. Hansen \ mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Myth or Best practice : %@ page session=false %
The implicit scripting variable called session is unavailable. If you still want access to the session - a JSP scriptlet *must* explicilty ask for it. HttpSession mySession = request.getSession(); -Tim Razi Ansari wrote: Thnx for the reply people, one thing that Andreas pointed out to me from the spec : Indicates that the page requires participation in an (HTTP)session. If true then the implicit script language variable named session of type javax.servlet.http.HttpSession references the current/new session for the page. If false then the page does not participate in a session; the session implicit variable is unavailable, and any reference to it within the body of the JSP page is illegal and shall result in a fatal translation error. efault is true. it says that the session is unavailabe, now is it for that page and that page cannot participate in the session or the session is not created at all for that page and hence saving the session object instantiation. Razi From: Allistair Crossley [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Myth or Best practice : %@ page session=false % Date: Wed, 15 Dec 2004 14:53:04 - In terms of Jasper, Tomcat's JSP engine, it appears that a HttpSession is set to null if session=false therefore no instance is made. In terms of the JSP Spec, session=true by default. In terms of whether it is best practice to set session=false when yuo know you don't need a session I have no idea. I suppose it makes sense if it saves an instantiation of HttpSession, I've never done it. Perhaps a Jasper dev/others can comment. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT adds /servlet to URL - program doesn`t work
http://jakarta.apache.org/tomcat/faq/misc.html#invoker -Tim Kay Farin wrote: Hello. This is my first post at this list... I`am currently trying to set up some webapps on a TOMCAT 5.5.6 installation. There is a HTML page index.html containing an applet. Let`s call this app ball. When I hit a certain image button within this applet, it sends some data to a server. Then the server generates some output, sends it back and the applet then visualizes this output data just received. The files index.html and the whole JAVA package structure are starting at the same directory level. Everything works fine when I don`t create a WAR file out of this. The path to index.html on the TOMCAT server is http://host:port/ball/index.html. The page index.html loads the applet successfully and starts it as well. But when I try to send the data, there`s an FileNotFoundException showing a wrong calling path of a JAVA class within the package structure! Let`s say, the class file is placed in the package test.servlets.DServlet. So the calling path that one should expect would be http://host:port/ball/test.servlets.DServlet;, wouldn`t it? But the error message on the JAVA console states: http://host:port/ball//servlet/test.servlets.DServlet; not to be found! The string /servlet is added, so the app can`t find the correct class. I have been searching all config files for a while now but I can`t find this string. I could have added the string in some path variables or so, but haven`t found anything like that until now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: integrated login between servers
You may want to look at a 3rd party SSO solution. They do exist for java and there are some open source ones. -Tim Paulo Alvim wrote: Hi, I'm using a cluster with two machines each one running 4 identical war files. But I'll need to keep another application isolated in a third machine...The point is that I'd like to keep my integrated login when users jump from the cluster to this app (I'm using Tomcat 5.0.28 single signon feature and my dispatcher just redirects to one of the cluster's servers...so single signon is working ok in the cluster environment). I'm thinking about to use commons-httpclient to connect from one of the clusters apps to the isolated one (giving it the user credentials) and trying to get the session cookie and send it to the user in the url using redirect...but it's just a first idea. Is there any other (maybe more elegant) way? Anyone has already tried this before? Will it work? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of Static Resources
form method=POST action=com.client.BizDispatcher Take the package name out of the action attribute. form method=POST action=BizDispatcher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authentication isn't working with mod_jk 1.7.3 beta.
That's quite possible but not helpful. The configuration is identical in essence to a working version on apache 1.3. Can anyone tell me what the differences are between the two are? Jim. Mladen Turk wrote: Jim Lynch wrote: I finally got mod_jk to comple on RH 9 for Apache 2, but the authentication doesn't work through the connector. This simply is not true. It works very fine, and the authentication window is showed to the user. Check your config. Mladen. - 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: [OT] HTTP Sniffers
thanks, were having some interesting issues coming up that are intermitten, and they dont show much so I wanted to see what the browser was getting back. From: Derrick Koes [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: [OT] HTTP Sniffers Date: Wed, 15 Dec 2004 15:23:51 -0500 I used to use naviscope. -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 3:18 PM To: [EMAIL PROTECTED] Subject: [OT] HTTP Sniffers Considering this is a pretty knowledgable group is there a good free HTTP Sniffer application I can use, I need to see what the HTTP headers are returning on my site. - 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]
cannot connect a sqlserver
I have a problem building a testserver with a webapp using sqlserver2000. We got a productionserver running, so I installed java SDK (j2sdk-1_4_2_04-windows-i586-p.exe),tomcat (jakarta-tomcat-4.1.30.exe) and SQLserver2000 (restored a backup) and took the .war file from the productionserver and placed it under the webapps directory. I changed the .properties file started Tomcat again. Are ther more changes to do??? This is the SQLException I get: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'LogonUser'. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unkn own Source) at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegatin gPreparedStatement.java:205) at com.quinity.standard.business.StdEntity.retrieve(StdEntity.java) at nl.terrafilius.lms.business.LogonUser.retrieveWithLogonData(LogonUser.java ) at nl.terrafilius.lms.servlet.HandlerLogon.handleActionLogon(HandlerLogon.jav a) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.quinity.standard.servlet.StdHandler.handle(StdHandler.java) at com.quinity.standard.servlet.StdHandler.handle(StdHandler.java) at com.quinity.standard.servlet.StdController.doPost(StdController.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 63) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at
Re: 4.1.31: NullPointerException
This is the entire stack trace --- Ben Souther [EMAIL PROTECTED] wrote: Post the whole stackTrace On Wed, 2004-12-15 at 15:10, T K wrote: Any ideas about the following? 2004-12-06 11:29:26 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:117) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Authentication isn't working with mod_jk 1.7.3 beta.
Are you sure Apache is not blocking your request? Enable the AccessLogValve on tomcat and see if your request is getting through. Charlie -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 8:28 AM To: Tomcat Users List Subject: Re: Authentication isn't working with mod_jk 1.7.3 beta. That's quite possible but not helpful. The configuration is identical in essence to a working version on apache 1.3. Can anyone tell me what the differences are between the two are? Jim. Mladen Turk wrote: Jim Lynch wrote: I finally got mod_jk to comple on RH 9 for Apache 2, but the authentication doesn't work through the connector. This simply is not true. It works very fine, and the authentication window is showed to the user. Check your config. Mladen. - 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: Reloading JSP's and other resources
There is a FAQ: http://jakarta.apache.org/tomcat/faq/windows.html#lock Awesome. The faq indicates that when: Context ... antiResourceLocking=false /Context the project files are copied to the temp directory and ran from there. Does Tomcat still pick up changes to the original deployment directory and copy those to temp? So far, it appears the answer is no, but wouldn't that be the preferred behavior considering this feature seems mostly developmental in application? - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot connect a sqlserver
When you restore a backup using SQLServer, you must delete and re-add the database users for that database. It's deceiving, because when you restore the database, and look at the users in Enterprise Manager, they are still there and you have no problem querying the database using Query Analyzer. Try deleting the users, then adding them back and don't forget to re-run your permissions once you've added the users back. /robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 8:56 AM To: [EMAIL PROTECTED] Subject: cannot connect a sqlserver I have a problem building a testserver with a webapp using sqlserver2000. We got a productionserver running, so I installed java SDK (j2sdk-1_4_2_04-windows-i586-p.exe),tomcat (jakarta-tomcat-4.1.30.exe) and SQLserver2000 (restored a backup) and took the .war file from the productionserver and placed it under the webapps directory. I changed the .properties file started Tomcat again. Are ther more changes to do??? This is the SQLException I get: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'LogonUser'. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unkn own Source) at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegatin gPreparedStatement.java:205) at com.quinity.standard.business.StdEntity.retrieve(StdEntity.java) at nl.terrafilius.lms.business.LogonUser.retrieveWithLogonData(LogonUser.java ) at nl.terrafilius.lms.servlet.HandlerLogon.handleActionLogon(HandlerLogon.jav a) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.quinity.standard.servlet.StdHandler.handle(StdHandler.java) at com.quinity.standard.servlet.StdHandler.handle(StdHandler.java) at com.quinity.standard.servlet.StdController.doPost(StdController.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at
Re: Reloading JSP's and other resources
I am not really an expert but I think it is beter if you modify your application at another location and then redeploy it on the server. On Thu, 16 Dec 2004 09:16:41 -0600, Durham David R Jr Contr 805 CSPTS/SCE [EMAIL PROTECTED] wrote: There is a FAQ: http://jakarta.apache.org/tomcat/faq/windows.html#lock Awesome. The faq indicates that when: Context ... antiResourceLocking=false /Context the project files are copied to the temp directory and ran from there. Does Tomcat still pick up changes to the original deployment directory and copy those to temp? So far, it appears the answer is no, but wouldn't that be the preferred behavior considering this feature seems mostly developmental in application? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] cannot connect a sqlserver
For the sake of clarifcation, this is only necessary when restoring to an instance of SQL server that is different from the one on which the backup was created. On your production server, you can use SQL Enterprise Manager to generate the necessary SQL script to create the users and roles specific to that database, and to apply the object-level permissions. That way, you just restore the database to the test server, run the SQL script, and you should be ready to go. [EMAIL PROTECTED] 12/16/2004 8:41:40 AM When you restore a backup using SQLServer, you must delete and re-add the database users for that database. It's deceiving, because when you restore the database, and look at the users in Enterprise Manager, they are still there and you have no problem querying the database using Query Analyzer. Try deleting the users, then adding them back and don't forget to re-run your permissions once you've added the users back. /robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 8:56 AM To: [EMAIL PROTECTED] Subject: cannot connect a sqlserver I have a problem building a testserver with a webapp using sqlserver2000. We got a productionserver running, so I installed java SDK (j2sdk-1_4_2_04-windows-i586-p.exe),tomcat (jakarta-tomcat-4.1.30.exe) and SQLserver2000 (restored a backup) and took the .war file from the productionserver and placed it under the webapps directory. I changed the .properties file started Tomcat again. Are ther more changes to do??? This is the SQLException I get: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'LogonUser'. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unkn own Source) at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegatin gPreparedStatement.java:205) at com.quinity.standard.business.StdEntity.retrieve(StdEntity.java) at nl.terrafilius.lms.business.LogonUser.retrieveWithLogonData(LogonUser.java ) at nl.terrafilius.lms.servlet.HandlerLogon.handleActionLogon(HandlerLogon.jav a) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.quinity.standard.servlet.StdHandler.handle(StdHandler.java) at com.quinity.standard.servlet.StdHandler.handle(StdHandler.java) at com.quinity.standard.servlet.StdController.doPost(StdController.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
Re: Currency Problem with Tomcat on Windows
Giuseppe The application is a browser based app, therefore it is the server that dictates which currency symbol is displayed. Surely it doesn't matter what currency symbol the client is set to? John -- John Gardner - Senior Information Engineer Tagish Ltd. T: 01665 604 895 F: 01665 510 624 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 4.1.31: NullPointerException
Where did you get this, the logs, or off the web screen? On Thu, 2004-12-16 at 09:06, T K wrote: This is the entire stack trace --- Ben Souther [EMAIL PROTECTED] wrote: Post the whole stackTrace On Wed, 2004-12-15 at 15:10, T K wrote: Any ideas about the following? 2004-12-06 11:29:26 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:117) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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: [OT] cannot connect a sqlserver
In Enterprise Manager: Right-click on the database, select All Tasks, and Generate SQL Script This will let you script various portions of the database for later recreation. It may take a couple tries until you find the combination of objects and options for the specific situation. [EMAIL PROTECTED] 12/16/2004 10:03:14 AM David, Thanks for the clarification. Can you elaborate on how you can use SQL Enterprise Manager to generate necessary SQL script to create the users and roles specific to that database, and to apply the object-level permissions or point me to the docs? I have a script which I use for permisions, but I had to create it and maintain it manually. I have been using Enterprise Manager UI to manage users when restoring from a backup. It would be great to place all of this into a single script for execution. /robert -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 10:45 AM To: [EMAIL PROTECTED] Subject: RE: [OT] cannot connect a sqlserver For the sake of clarifcation, this is only necessary when restoring to an instance of SQL server that is different from the one on which the backup was created. On your production server, you can use SQL Enterprise Manager to generate the necessary SQL script to create the users and roles specific to that database, and to apply the object-level permissions. That way, you just restore the database to the test server, run the SQL script, and you should be ready to go. [EMAIL PROTECTED] 12/16/2004 8:41:40 AM When you restore a backup using SQLServer, you must delete and re-add the database users for that database. It's deceiving, because when you restore the database, and look at the users in Enterprise Manager, they are still there and you have no problem querying the database using Query Analyzer. Try deleting the users, then adding them back and don't forget to re-run your permissions once you've added the users back. /robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 8:56 AM To: [EMAIL PROTECTED] Subject: cannot connect a sqlserver I have a problem building a testserver with a webapp using sqlserver2000. We got a productionserver running, so I installed java SDK (j2sdk-1_4_2_04-windows-i586-p.exe),tomcat (jakarta-tomcat-4.1.30.exe) and SQLserver2000 (restored a backup) and took the .war file from the productionserver and placed it under the webapps directory. I changed the .properties file started Tomcat again. Are ther more changes to do??? This is the SQLException I get: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'LogonUser'. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unkn own Source) at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegatin gPreparedStatement.java:205) at com.quinity.standard.business.StdEntity.retrieve(StdEntity.java) at nl.terrafilius.lms.business.LogonUser.retrieveWithLogonData(LogonUser.java ) at nl.terrafilius.lms.servlet.HandlerLogon.handleActionLogon(HandlerLogon.jav a) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.quinity.standard.servlet.StdHandler.handle(StdHandler.java) at com.quinity.standard.servlet.StdHandler.handle(StdHandler.java) at com.quinity.standard.servlet.StdController.doPost(StdController.java) at
JK2 logging with IIS
The documentation for setting up a logger for JK2 is below. I've tried using logger.file and logger.win32 for my IIS configuration, but no luck. Can someone please send the right configuration steps to configure JK2 logging with IIS? I'm trying to locate a bug in JK (not present in JK2) by comparing logs as a first step. Maybe I have a registry setting missing. Registry: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\jk2-connector extensionUri=/jakarta/isapi_redirector2.dll workersFile=C:\\jk2-connector\\conf\\workers2.properties logLevel=INFO Thanks, Derrick loggers Any connector based on jk2, at least has a default logger, that can be reached using the logger alias, the logger used is the more appropiate for the plataform/server combination, Apache2 under in any platform has logger.apache2 as default, IIS on his only platform uses logger.win32, and Any apache 1 install uses logger.file as default.., the config file lets you change that defaults, you can end using logger.file in IIs i.e The properties shared by all loggers are: Property name Default Description level INFO Text of the log level. Strings supported: EMERG, ERROR, INFO, DEBUG logger.file Property name Default Description file ${serverRoot}/logs/jk2.log Log file. XXX you may be able to change this at runtime, to implement rolling. logger.win32 logger used in the IIS server by default, it ends at native Application Event Log. logger.apache2 Logger used in Apache2 servers, it normally in ends in error.log
Re: setting up tomcat/JBOSS with apache
nobody??? Hello, I'm confused on something basic. I understand how to set up mod_jk2 and configure an app something like http://localhost/myApp/test.jsp such that the app myApp is sitting in the java container but can I have myApp sitting on apache i.e. /var/www/htdocs/myApp and configure a handler in httpd.conf that just forwards .jsp,servlets to the java container? All I see online and in every example is how mod_Jk helps you knock out the :8080 but the apps have to be sitting in webapps. The reason I'm asking is I was hosting a site on a resin server and that server seems to have the setup I was describing, you can keep your apps on apache and just configure the http.conf. Thanks for anything, correct me please if I'm confused , i sure am confused - 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: JK2 logging with IIS
[logger] level=ERROR [logger.file:0] level=ERROR file=d:\\jakarta-tomcat-jk2\\jk2.log [workerEnv:] info=Global server options timing=1 debug=0 logger=logger.file:0 [shm] file=d:\\jakarta-tomcat-jk2\\jk2.shm size=1048576 [channel.socket:localhost:8009] info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:intranet/*.do] info=do context=/ worker=ajp13:localhost:8009 [uri:intranet/*.jsp] info=jsp context=/ -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: 16 December 2004 17:24 To: Tomcat Users List Cc: Tomcat Developers List Subject: JK2 logging with IIS The documentation for setting up a logger for JK2 is below. I've tried using logger.file and logger.win32 for my IIS configuration, but no luck. Can someone please send the right configuration steps to configure JK2 logging with IIS? I'm trying to locate a bug in JK (not present in JK2) by comparing logs as a first step. Maybe I have a registry setting missing. Registry: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\jk2-connector extensionUri=/jakarta/isapi_redirector2.dll workersFile=C:\\jk2-connector\\conf\\workers2.properties logLevel=INFO Thanks, Derrick loggers Any connector based on jk2, at least has a default logger, that can be reached using the logger alias, the logger used is the more appropiate for the plataform/server combination, Apache2 under in any platform has logger.apache2 as default, IIS on his only platform uses logger.win32, and Any apache 1 install uses logger.file as default.., the config file lets you change that defaults, you can end using logger.file in IIs i.e The properties shared by all loggers are: Property name Default Description level INFO Text of the log level. Strings supported: EMERG, ERROR, INFO, DEBUG logger.file Property name Default Description file ${serverRoot}/logs/jk2.log Log file. XXX you may be able to change this at runtime, to implement rolling. logger.win32 logger used in the IIS server by default, it ends at native Application Event Log. logger.apache2 Logger used in Apache2 servers, it normally in ends in error.log FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT
RE: sending a JSP page by email
I had tried doing the same thing and failed. But after I gained more knowledge I had a new idea that I did not tried yet. I will be happy if you let me know if it works. The basic Idea is that if we used a servelet we had no problem taking the StringBuffer created and coping it into the mail message and not back to the browser. The problem with JSP, it's actually a servlet but we can not control it. In the Java Server Page (O'reilly page 315) book I found some directive element. %@ page buffer=12kb autoFlash=false % When autoFlash=false the JSP container will not flush the buffer until the following script % out.flash() % is used. Maybe there is a way to redirect this output writer to a buffer and email it. What do you think? Haim -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 12:15 AM To: [EMAIL PROTECTED] Subject: sending a JSP page by email Hi, How can I take advantage of Tomcat's JSP processing engine to use a JSP page as a template for an email? That is, I want to do something like a page forwarding from a servlet, but this forwarding process the JSP page and, instead of send it to the browser, it send it by email to somebody. Thanks in advance, Gabriel - 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: setting up tomcat/JBOSS with apache
From: B Wiley [EMAIL PROTECTED] All I see online and in every example is how mod_Jk helps you knock out the :8080 but the apps have to be sitting in webapps. No, they don't. For example the 'manager' webapp that ships with Tomcat does not live under 'webapps'. The reason I'm asking is I was hosting a site on a resin server and that server seems to have the setup I was describing, you can keep your apps on apache and just configure the http.conf. Seems like it's more trouble than it's worth, to me. But if you can come up with URL patterns that need to be handed off to Tomcat, plus convince Apache not to serve anything under WEB-INF directly, then I'm sure you could get it to work. What problem are you trying to solve by doing this? (And what does it have to do with JBOSS? I skipped it initially because I don't use JBOSS, but your question only seems to deal with Tomcat/Apache/JK configuration.) -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sending a JSP page by email
I *believe*, but don't hold me to it, that you can implement a filter AFTER the JSP renders, in the latest servlet spec. With that, you shouldn't have much trouble taking the output stream and sending it as an eMail. I'd also assume, although I don't know for sure, that you could basically kill the response at that point, so it's not trying to send back to the client or anything. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, December 16, 2004 1:38 pm, haimra said: I had tried doing the same thing and failed. But after I gained more knowledge I had a new idea that I did not tried yet. I will be happy if you let me know if it works. The basic Idea is that if we used a servelet we had no problem taking the StringBuffer created and coping it into the mail message and not back to the browser. The problem with JSP, it's actually a servlet but we can not control it. In the Java Server Page (O'reilly page 315) book I found some directive element. %@ page buffer=12kb autoFlash=false % When autoFlash=false the JSP container will not flush the buffer until the following script % out.flash() % is used. Maybe there is a way to redirect this output writer to a buffer and email it. What do you think? Haim -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 12:15 AM To: [EMAIL PROTECTED] Subject: sending a JSP page by email Hi, How can I take advantage of Tomcat's JSP processing engine to use a JSP page as a template for an email? That is, I want to do something like a page forwarding from a servlet, but this forwarding process the JSP page and, instead of send it to the browser, it send it by email to somebody. Thanks in advance, Gabriel - 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: WAR files and Eclipse
I did as suggested but it didn't work . The ironic thing now is that scence I tried that the user accounts /home/username/public_html no longer works to compile jsp pages. I figure this is weird becasue I see the compilation .class files in the $CATALINAHOME/work/Catalina/localhost/~username/classname.class, but when I try to go to http://localhost/~username/index.jsp I just see a pure white page. No matter how many time I reboot the server I get the same result Does anyone else want to take a shoot at this or am I to give up. sven morales wrote: I think there is another attribute to Listener which is home.Base. Set this where you normally put user/public_html directory. For example on mine, its set as homeBase=/home and user home is /home/sergio. Once this is working, any war files on your /home/user/public_html should get expanded. --- Dwayne Ghant [EMAIL PROTECTED] wrote: Anybody won't to take a shoot at this? Dwayne Ghant wrote: Intresting question associated with this subject. If I have public_html enabled for developers on local machine ex: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ Can I have a setting for tomcat to unwar there personal test applications in there public_html directories I'm assuming it would look something like this (listed below): Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host I'm probably incorrect, but I do need to know, to finish setting up JSP enviornment for java developers like myself. . Rhino wrote: It's actually very easy to do what you want to do. Assuming you have correctly installed and configured Sysdeo, you will need to tell Eclipse where the War file for your Tomcat project should be generated. This is done on a *project* basis, i.e. you have to repeat this step once for each Tomcat project you create but you will never have to do this again for a given project unless you change the location where you want the War file. 1. Select the Tomcat project in the Package Explorer perspective. 2. Right click for a context menu. Choose 'Properties'. 3. Within Properties, choose 'Tomcat' from the tree on the left. 4. Click on the 'Export to WAR settings' tab within the Tomcat properties. 5. Enter the path that tells Tomcat where to generate your War file. The path name should include the file name of the War file. I normally put my War files in a folder called 'war' directly beneath the project so my WAR file for export looks like this: D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to organize your files differently. 6. Click on OK to close the Properties dialog. Then, every time you want to regenerate your War file, all you need to do is this: 1. Select the Tomcat project in the Package Explorer perspective. 2. Right-click for a context menu. Choose 'Tomcat project'. 3. Choose 'Export to the war file sets in project properties'. 4. You should get a brief message that tells you the operation worked. Now, if you don't find Tomcat in the Properties tree or if you don't see the 'Tomcat project' option in the context menu, it means you probably didn't configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let us know and we'll try to help. Rhino - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 13, 2004 3:43 PM Subject: WAR files and Eclipse Hello All, I am new to WAR files and eclipse. Many searches on google bring me to the sysdeo tomcat plugin, which I have installed. I want to know if there is some standard way to generate a WAR file for deployment. I have found that I can export a JAR file and change its name, but in the process the directory structure is altered. Maybe you even know about a better IDE than eclipse for working with web-based projects. THANKS in advance. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
Re: setting up tomcat/JBOSS with apache
Hello Wendy, tomcat sits inside jboss and handles the jsps and servlets. I guess this could just be a tomcat/apache question. The reason I'm asking is because I know for a fact when you use RESIN (another j2ee container) . You can have your jsps and servlets sitting ANYWHERE on the server, like in the same place your static content is and setup apache to send those requests to resin and setup resin to listen for them ANYWHERE. But when I use JBOSS with tomcat I have to have my jsp's and servlets sitting in the webapps folder specifically and map to them there. Okay let me rephrase everything. I have a file in my /var/www/htdocs/index.jsp and I want tomcat to see it there directly not in webapps under tomcat. I don't want the index.jsp in webapps/root/index.jsp then map it to apache2 with mod_jk - I don't think it can be done by just adding a handler to httpd.conf... Thanks for giving this some thought, I'm probably in the wrong mailing list and not making any sense thanks At 10:47 AM 12/16/2004, you wrote: From: B Wiley [EMAIL PROTECTED] All I see online and in every example is how mod_Jk helps you knock out the :8080 but the apps have to be sitting in webapps. No, they don't. For example the 'manager' webapp that ships with Tomcat does not live under 'webapps'. The reason I'm asking is I was hosting a site on a resin server and that server seems to have the setup I was describing, you can keep your apps on apache and just configure the http.conf. Seems like it's more trouble than it's worth, to me. But if you can come up with URL patterns that need to be handed off to Tomcat, plus convince Apache not to serve anything under WEB-INF directly, then I'm sure you could get it to work. What problem are you trying to solve by doing this? (And what does it have to do with JBOSS? I skipped it initially because I don't use JBOSS, but your question only seems to deal with Tomcat/Apache/JK configuration.) -- Wendy Smoak - 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: sending a JSP page by email
Sorry about the double ... this got lost in the lower message response: http://bijou.dyndns.org/weblog/computer/software/SendingMailFromJavaServlets .html or http://tinyurl.com/5lukz Enjoy. -Original Message- From: Graff, David [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 2:22 PM To: 'Tomcat Users List' Subject: RE: sending a JSP page by email Hey kids, I had run into this a while back. I've got a link here to what I did. It's rough and ready so don't expect too much out of it, but it should be enough to get you runnning. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 1:52 PM To: [EMAIL PROTECTED] Subject: RE: sending a JSP page by email I *believe*, but don't hold me to it, that you can implement a filter AFTER the JSP renders, in the latest servlet spec. With that, you shouldn't have much trouble taking the output stream and sending it as an eMail. I'd also assume, although I don't know for sure, that you could basically kill the response at that point, so it's not trying to send back to the client or anything. http://bijou.dyndns.org/weblog/computer/software/SendingMailFromJavaServlets .html Enjoy. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, December 16, 2004 1:38 pm, haimra said: I had tried doing the same thing and failed. But after I gained more knowledge I had a new idea that I did not tried yet. I will be happy if you let me know if it works. The basic Idea is that if we used a servelet we had no problem taking the StringBuffer created and coping it into the mail message and not back to the browser. The problem with JSP, it's actually a servlet but we can not control it. In the Java Server Page (O'reilly page 315) book I found some directive element. %@ page buffer=12kb autoFlash=false % When autoFlash=false the JSP container will not flush the buffer until the following script % out.flash() % is used. Maybe there is a way to redirect this output writer to a buffer and email it. What do you think? Haim -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 12:15 AM To: [EMAIL PROTECTED] Subject: sending a JSP page by email Hi, How can I take advantage of Tomcat's JSP processing engine to use a JSP page as a template for an email? That is, I want to do something like a page forwarding from a servlet, but this forwarding process the JSP page and, instead of send it to the browser, it send it by email to somebody. Thanks in advance, Gabriel - 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: JNDI object not shared among TC instances
On Tue, Dec 14, 2004 at 08:52:17AM -0500, Shapira, Yoav wrote: Thanks Joav and for the other people stumbling on the same rock You're welcome -- and it's Yoav with a Y ;) and by the way why don't they use a search box at http://jakarta.apache.org/tomcat/faq/ ? Because we'll all Googleheads who routinely do inurl: searches. The search box is a decent idea, thanks for bringing it up. It's fairly straightforward (and I've seen it in use several other sites) to just put a form in the page that submits to google with an inurl: parameter. Probably the quickest easiest way to add search to the page. Ah... a little poking around shows it's documented at: See http://news.google.com/searchcode.html However, they don't explain how to do an inurl: search. A little experimenting shows you can submit both a q and as_q parameter, and put the inurl: in a q input. I just whipped up a quick example, it's at http://darksleep.com/notablog/google.html -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: log4j and tomcat 5.5
On Thu, Dec 09, 2004 at 04:33:33PM -0600, Jacob Kjome wrote: For your own app, do you use actually use the commons-logging api or just the Log4j api? If the latter, don't bother with commons-logging. In fact, try to avoid it like the plague. Could you expand on this? I've wondered in the past about this very question (whether I should code my app to use commons-logging for logging, or directly use log4j) and I'm interested in hearing what the downsides are. I've said it before, I'll say it again, I wish there was some sort of tomcat production hosting best practices repository. Maybe a wiki page or something. Or maybe I'll just invite people to send me suggestions for such a page. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR files and Eclipse
Yes you are correct. Thus far I have correctly configured Apache2.x/Tomcat5.x/mod.jk2 . And it works pretty seamlessly. My attemps to get the the useraccounts working resulted in me doing this: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html homeBase=/home/ userClass=org.apache.catalina.startup.PasswdUserDatabase/ Which did work!!! The only objective I was trying to achive after that was working; was too make sure tomcat would unzip all .jar file in /home/useraccounts/public_html/ . I thought this would be preatty simple. If I am correct I do believe that the unziping funtionality is bound to the Host tag. Allowing only the appBase attribute to be used once per Host tag. ex: Host name=localhost debug=0 appBase=/var/www/html/ unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false So with that said I belive that I would have to set up another host. Everyone out there: If I stand corrected please tell me ??? I LOVE IT WHEN I'M CORRECTED; it simply means I'm learning something new. sven morales wrote: Wait a minute, you didnt say you were using Apache to front the Tomcat did you? At least thats the impression I gathered since you were hitting it as http://localhost/~userjoe/index.jsp. I am not overly familiar with having Apache fronting Tomcat. With that kind of URI, I think its going to the apache side and not to Tomcat. You must set your mapping in http.conf or worker.properties(?) to make this work. Or your set-up has Tomcat serving off port 80 and you are running this as root right? --- Dwayne Ghant [EMAIL PROTECTED] wrote: I did as suggested but it didn't work . The ironic thing now is that scence I tried that the user accounts /home/username/public_html no longer works to compile jsp pages. I figure this is weird becasue I see the compilation .class files in the $CATALINAHOME/work/Catalina/localhost/~username/classname.class, but when I try to go to http://localhost/~username/index.jsp I just see a pure white page. No matter how many time I reboot the server I get the same result Does anyone else want to take a shoot at this or am I to give up. sven morales wrote: I think there is another attribute to Listener which is home.Base. Set this where you normally put user/public_html directory. For example on mine, its set as homeBase=/home and user home is /home/sergio. Once this is working, any war files on your /home/user/public_html should get expanded. --- Dwayne Ghant [EMAIL PROTECTED] wrote: Anybody won't to take a shoot at this? Dwayne Ghant wrote: Intresting question associated with this subject. If I have public_html enabled for developers on local machine ex: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ Can I have a setting for tomcat to unwar there personal test applications in there public_html directories I'm assuming it would look something like this (listed below): Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host I'm probably incorrect, but I do need to know, to finish setting up JSP enviornment for java developers like myself. . Rhino wrote: It's actually very easy to do what you want to do. Assuming you have correctly installed and configured Sysdeo, you will need to tell Eclipse where the War file for your Tomcat project should be generated. This is done on a *project* basis, i.e. you have to repeat this step once for each Tomcat project you create but you will never have to do this again for a given project unless you change the location where you want the War file. 1. Select the Tomcat project in the Package Explorer perspective. 2. Right click for a context menu. Choose 'Properties'. 3. Within Properties, choose 'Tomcat' from the tree on the left. 4. Click on the 'Export to WAR settings' tab within the Tomcat properties. 5. Enter the path that tells Tomcat where to generate your War file. The path name should include the file name of the War file. I normally put my War files in a
JspC to use jikes for speed improvement?
We're using JspC to precompile our webapp to speed up application deployment and reduce memory on the server. Right now it takes FOREVER to compile. Currently the entire build of our app takes 30 seconds but JspC takes 1.5 hours.! Its not like we have that many JSPs either. So I have a few questions. 1. Is there anything obvious I can do to speed it up. 2. Is it possible to get JspC to use jikes? Looking at the source I'm pretty much not sure. Its possible but I can find no way to set the Compiler to use AntCompiler and thus jikes support. It just insists on using JDTool.. (which I haven't benchmarked but am pretty sure its not faster than jikes. Kevin -- Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an invite! Also see irc.freenode.net #rojo if you want to chat. Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html If you're interested in RSS, Weblogs, Social Networking, etc... then you should work for Rojo! If you recommend someone and we hire them you'll get a free iPod! Kevin A. Burton, Location - San Francisco, CA AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error
Guys, I have Tomcat 5 running with IIS. But the jakarta Connector is spitting a sort of warnings and i can't seem to fix it. Can any one point out some pointers, it will so great to fix this warning. Thanks Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 11:54:43 AM Description: Error: [jk_service_iis.c (247)]: jk_ws_service_t::write, WriteClient failed Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_worker_ajp13.c (512)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_handler_response.c (178)]: handler.response() Error sending response Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_service_iis.c (157)]: jk_ws_service_t::head, ServerSupportFunction failed Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable error 3 Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_handler_response.c (178)]: handler.response() Error sending response Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_service_iis.c (157)]: jk_ws_service_t::head, ServerSupportFunction failed _ 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]
Apache Jakarta Connector warning
Hi Guys, Any Idea how solve the following errors? I am using Tomcat 5 and IIS. It will be great to solve these warnings it is causing problems. Thanks Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 11:54:43 AM Description: Error: [jk_service_iis.c (247)]: jk_ws_service_t::write, WriteClient failed Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_worker_ajp13.c (512)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_handler_response.c (178)]: handler.response() Error sending response Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_service_iis.c (157)]: jk_ws_service_t::head, ServerSupportFunction failed Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable error 3 Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_handler_response.c (178)]: handler.response() Error sending response Event Type: Warning Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 2 Date: 12/16/2004 Time: 2:50:45 PM Description: Error: [jk_service_iis.c (157)]: jk_ws_service_t::head, ServerSupportFunction failed _ Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of Static Resources
Thanks guys for the help. The issue got resolved once I changed the POST action value to be the same as the value in the pattern. Just to make sure I understand the web.xml config better and to make sure I do the right thing in the future when I have to add additional servlets or such: * servlet name tag in the servlet tag and servlet-mapping tag should be the same. * The value of the url-pattern, welcome-file and the action value in the form tag should be all the same * I should have one set of servlet, servlet-mapping and welcome file for every servlet I use * I should never use / as a pattern because that is what Tomcat uses for static resources. * Can I have a url-pattern /foobar/foo2bar? Please correct me if any of the above is wrong. Thanks...Ram --- Mike Curwen wrote: but it's more than just take away the package. If you map your servlet to this: url-pattern/foobar/url-pattern then your form should say : form method=POST action=foobar (I just didn't want anyone to think that you invoke a servlet by calling it's class name). so in fact, you want bizDispathcer (no capital b). -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 5:57 AM To: Tomcat Users List Subject: Re: Display of Static Resources form method=POST action=com.client.BizDispatcher Take the package name out of the action attribute. form method=POST action=BizDispatcher - 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]
Tomcat 5.5.4 not running stable (= pausing abruptly)
Hi folks, i am working with : - Redhat Linux 9.0 Kernel : 2.4.20-31.9smp - Java 1.5.0 (build 1.5.0-b64) - Tomcat 5.5.4 running on port 8008 and after launching the Tomcat webserver via the startup.sh script the server is quitting prematurely without any reason (no exceptions,..). logs/Catalina.out always says the following Dec 16, 2004 10:17:07 PM org.apache.coyote.http11.Http11Protocol pause after starting the server. Sometimes directly after launching the server, sometimes Tomcat is up for 9 hours or so. But not for any longer period of time. Why is Tomcat pausing and shutting down the server, or what am I getting wrong ? I've also already tried setting export LD_ASSUME_KERNEL=2.4.1 as described in the release-notes of Tomcat, before starting tomcat. Thanks in advance for your help, best regards Marc more detailed Info from logs/catalina.out Dec 16, 2004 10:16:12 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 3884 ms Dec 16, 2004 10:17:07 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8008 Dec 16, 2004 10:17:08 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Dec 16, 2004 10:17:08 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', ' Ljava.lang.String;@c3e9e9') Dec 16, 2004 10:17:08 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', ' Ljava.lang.String;@31f2a7') Dec 16, 2004 10:17:08 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', ' Ljava.lang.String;@131c89c') Dec 16, 2004 10:17:08 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Dec 16, 2004 10:17:08 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Dec 16, 2004 10:17:08 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', ' Ljava.lang.String;@1554d32') Dec 16, 2004 10:17:08 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', ' Ljava.lang.String;@13f136e') Dec 16, 2004 10:17:08 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', ' Ljava.lang.String;@14a18d') Dec 16, 2004 10:17:08 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Dec 16, 2004 10:17:08 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Dec 16, 2004 10:17:08 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8008 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of Static Resources
* servlet name tag in the servlet tag and servlet-mapping tag should be the same. Yes the servlet tag in web.xml is where you define the servlet's name. * The value of the url-pattern, welcome-file and the action value in the form tag should be all the same Yes, the url-pattern in the mapping tag of your web.xml file defines the string that a browser would need to send in order to invoke your servlet. * I should have one set of servlet, servlet-mapping and welcome file for every servlet I use NO. The welcome file is the default file. (ex: index.html, or index.jsp) If you want your servlet to be the default servlet for your app, this is where to set it up. * I should never use / as a pattern because that is what Tomcat uses for static resources. Yes. (unless you want to handle all the default behavior..) * Can I have a url-pattern /foobar/foo2bar? Yes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 4.1.31: NullPointerException
this was in the logs --- Ben Souther [EMAIL PROTECTED] wrote: Where did you get this, the logs, or off the web screen? On Thu, 2004-12-16 at 09:06, T K wrote: This is the entire stack trace --- Ben Souther [EMAIL PROTECTED] wrote: Post the whole stackTrace On Wed, 2004-12-15 at 15:10, T K wrote: Any ideas about the following? 2004-12-06 11:29:26 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:117) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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] __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI Environment context question
I'm using tomcat 5.0.30, and trying to learn a bit more about JNDI. The sample config comes with a simpleValue variable set to 30, using an Environment tag in conf/server.xml. According to the docs I've found, this should make it available to all web apps via InitialContext().listBindings(bindpath). What I am wondering is what bindpath is used to see Environment tag values? I've tried various things from sample docs, and java:comp exists, but I have yet to figure out any bindpath which does not result in a not bound in this Context error. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: connection pooling
depends on what connection pool you use. but in almost all causes, its a pretty trivial thing (unless your code is funky of course) in our system, all we did was to switch the driver name (to the pooled driver), and it would pick up our connection pool. so it was a one line change. Filip - Original Message - From: Didier McGillis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 16, 2004 3:49 PM Subject: connection pooling I'm about to the point where I'm going to switch to db connection pooling. however before I undertake this seemly easy task I have a question, which will make this a huge project or a simple one. The current site uses typical MySQL connection, where a connection is opened and so on, if I do connection pooling will I have to go in and do mass code changes? aka will I have to rewrite any servlets or jsps that make database calls. - 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: Reloading JSP's and other resources
There are special ant tasks for deployment and undeployment. I guess you should use those and not just put stuff where tomcat should pick them up for you. On Thu, 16 Dec 2004 10:56:22 -0600, Durham David R Jr Contr 805 CSPTS/SCE [EMAIL PROTECTED] wrote: I am not really an expert but I think it is beter if you modify your application at another location and then redeploy it on the server. Heh, I think I know what you're saying. Yes, I modify the application at a different location than deployment. Just for example, code that I'm working on might go here: E:\projects\application\src Then an Ant build script would put the compiled/configured stuff here: E:\projects\application\latest-build Tomcat, for development purposes would be configured to look at code in the latest-build directory. However, if: antiResourceLocking=true in the Context (I made an error in my previous message and had this set to false), then changes that are deployed to latest-build are not picked up by Tomcat. Considering that antiResourceLocking, to me, is a developmental feature (as opposed to production), then changes should be picked up. Perhaps I should post a feature request? I'm really only posting here to make sure that I'm not doing something wrong, before something is sent to dev. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
precompile JSP - _jspx_dependants.add unchecked warning
When I precompile my JSPs on Tomcat 5.5 with JDK 1.5 and I use the javac option -Xlint:unchecked, I get this warning for those files which include another: [javac] C:\tomcat\webapps\XXX\WEB-INF\jsprc\org\apache\jsp\admintool\edit_jsp.java:25: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector [javac] _jspx_dependants.add(/admintool/inc_status.jsp); The vector that stores all the JSP dependencies is a raw type. I know 5.5 is compatible with jdk1.5 but they didn't take care of all the warnings. Is there a patch for Tomcat or a way around this without waiting for (and somehow integrating manually) the @SupressWarnings tag? I'd still like to view the other warnings for my JSPs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: log4j and tomcat 5.5
At 03:17 PM 12/16/2004 -0500, you wrote: On Thu, Dec 09, 2004 at 04:33:33PM -0600, Jacob Kjome wrote: For your own app, do you use actually use the commons-logging api or just the Log4j api? If the latter, don't bother with commons-logging. In fact, try to avoid it like the plague. Could you expand on this? I've wondered in the past about this very question (whether I should code my app to use commons-logging for logging, or directly use log4j) and I'm interested in hearing what the downsides are. This has been covered many times. Here are some good references... http://marc.theaimsgroup.com/?l=log4j-userm=102640868804904 http://marc.theaimsgroup.com/?l=log4j-userm=103864746403401w=2 http://www.qos.ch/logging/thinkAgain.jsp Commons Logging was my fault http://radio.weblogs.com/0122027/2003/08/15.html I've said it before, I'll say it again, I wish there was some sort of tomcat production hosting best practices repository. Maybe a wiki page or something. Or maybe I'll just invite people to send me suggestions for such a page. Try the docs or the apache wiki http://wiki.apache.org/jakarta-tomcat/FrontPage Jake -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - 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]
TOMCAT adds /servlet to URL - program doesn`t work
Hello. This is my first post at this list... I`am currently trying to set up some webapps on a TOMCAT 5.5.6 installation. There is a HTML page index.html containing an applet. Let`s call this app ball. When I hit a certain image button within this applet, it sends some data to a server. Then the server generates some output, sends it back and the applet then visualizes this output data just received. The files index.html and the whole JAVA package structure are starting at the same directory level. Everything works fine when I don`t create a WAR file out of this. The path to index.html on the TOMCAT server is http://host:port/ball/index.html. The page index.html loads the applet successfully and starts it as well. But when I try to send the data, there`s an FileNotFoundException showing a wrong calling path of a JAVA class within the package structure! Let`s say, the class file is placed in the package test.servlets.DServlet. So the calling path that one should expect would be http://host:port/ball/test.servlets.DServlet;, wouldn`t it? But the error message on the JAVA console states: http://host:port/ball//servlet/test.servlets.DServlet; not to be found! The string /servlet is added, so the app can`t find the correct class. I have been searching all config files for a while now but I can`t find this string. I could have added the string in some path variables or so, but haven`t found anything like that until now. Does anyone have an idea of what is going on here? Thanks, Kay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] HTTP Sniffers
On Wed, 2004-12-15 at 15:17, Didier McGillis wrote: Considering this is a pretty knowledgable group is there a good free HTTP Sniffer application I can use, I need to see what the HTTP headers are returning on my site. On Wed, Dec 15, 2004 at 05:48:53PM -0800, Bob Feretich wrote: I use Ethereal on my Windows client. It works well, but only for communication across a real port. It does not work if your accessing a site that is running on the client computer. The Follow TCP Stream tool assembles the entire request/response communication for easy viewing or saving to disk. I think monitoring the actual http traffic of your application is an essential step in both debugging and in learning about HTTP and how your browser and server are behaving. You basically have three options here, which are: - setting up a proxy server - sniffing the network traffic - plugging into your browser or server When I first started doing this, I was using a freeware HTTP proxy called HttpSpy at the time (1997 I think). Later I found it had become shareware. I just googled for it now and found: http://rwtemple.com:81/software/HttpSpy/ Which says it's free. I'm not sure if this is the same developer, though it's clearly not the same exact package (different GUI and it's written in .NET). The nice thing about the version of HttpSpy that I used was that it was fairly smart about the http protocol, compared to tcpdump or tcpflow or a simple port-forwarding proxy server. For example, HttpSpy wouldn't dump the binary data for a graphic to your screen, it'd just say something like binary data file foo.jpg. One slight downside of HttpSpy, IMHO, is that the GUI is *too* nice, it kind of hides the essential underlying simplicity of the HTTP protocol from you. I think it's really a good thing to get a strong sense that you could literally type all of these HTTP requests and responses out yourself, fairly easily with a good reference work in front of you. This demystifies the process, and you lose that with HttpSpy. But once you've acquired that feel for what's going on, something like HttpSpy will probably be more convenient than paging through a raw text screen. For a while I used tcpdump, which is a little bit arcane to use and has some political issues. On the political level, some organizations get upset if you fire up a packet sniffer on their network - and almost all modern ethernet cards are hardwired to broadcast an announcement when you put them into promiscuous mode, where they start paying attentiont o all of the packets that come across the wire and report them up to the software level. Also, security-conscious sysadmins will often not install tcpdump, or remove the tcpdump installation that is normally there. Finally, on unix systems, if tcpdump is there, you normally nneed to have root access to use it. On the technical level, you have to puzzle out the command line arguments, which isn't that hard, and you also have to do some post-processing on the data to make it intelligible. Unfortunately, I no longer have my notes from whenI puzzled this out for myself. The man pages for tcpdump have a fair amount of example recipes for the arguments. Some googling should turn up examples and explanations of how to do this. There is a port of tcpdump to Windows, named WinDump. Here's the main site and a mirror: http://windump.polito.it/ http://windump.mirror.ethereal.com/docs/default.htm I limped along with tcpdump for a while, but I wanted something that made life a little bit easier, so tried out tcpflow. Tcpflow is basically a specialized packet sniffer, geared towards troubleshooting session-oriented network protocols, like IMAP. It's also effective for http. The one thing I didn't like about tcpflow is that it creates a separate file for each request and for each response, naming the files with system names and timestamps, instead of in a series like HttpSpy does. I emailed the creator, asking him if there was a way to get it to present the data in a more sequential format, but in his reply he explained that the apparent request/response sequentiality of http is really an illusion. At the network level, they're all just packets flying back and forth. He also highly recommended TCP/IP Illustrated, by Richard Stevens, more formally known as: TCP/IP Illustrated, Volume 1: The Protocols Addison-Wesley Publishing Company ISBN 0201633469 You can find it at Amazon, but I'd prefer you to spend your money at tatteredcover.com, and support business owners like Joyce Meskis, who are defending our rights: http://fact.trib.com/1st.lev.tatteredcoverrec.html http://www.google.com/search?num=100hl=enlr=lang_enas_qdr=allq=%22tattered+cover%22+%22first+amendment%22btnG=Searchlr=lang_en Still, tcpflow was pretty useful. I got something approximating sequentiality by redirecting all of
RE: [OT] HTTP Sniffers
I forgot about that one. Geez From: Durham David R Jr Contr 805 CSPTS/SCE [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: [OT] HTTP Sniffers Date: Wed, 15 Dec 2004 14:24:45 -0600 If you're talking about Response Headers, mozilla's firefox browser has a plug-in called web-developer. https://update.mozilla.org/extensions/moreinfo.php?application=firefoxi d=60 Under the 'information' menu, there is an option to view response headers. - Dave -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: [OT] HTTP Sniffers Considering this is a pretty knowledgable group is there a good free HTTP Sniffer application I can use, I need to see what the HTTP headers are returning on my site. - 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: [OT] cannot connect a sqlserver
David, Thanks for the clarification. Can you elaborate on how you can use SQL Enterprise Manager to generate necessary SQL script to create the users and roles specific to that database, and to apply the object-level permissions or point me to the docs? I have a script which I use for permisions, but I had to create it and maintain it manually. I have been using Enterprise Manager UI to manage users when restoring from a backup. It would be great to place all of this into a single script for execution. /robert -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 10:45 AM To: [EMAIL PROTECTED] Subject: RE: [OT] cannot connect a sqlserver For the sake of clarifcation, this is only necessary when restoring to an instance of SQL server that is different from the one on which the backup was created. On your production server, you can use SQL Enterprise Manager to generate the necessary SQL script to create the users and roles specific to that database, and to apply the object-level permissions. That way, you just restore the database to the test server, run the SQL script, and you should be ready to go. [EMAIL PROTECTED] 12/16/2004 8:41:40 AM When you restore a backup using SQLServer, you must delete and re-add the database users for that database. It's deceiving, because when you restore the database, and look at the users in Enterprise Manager, they are still there and you have no problem querying the database using Query Analyzer. Try deleting the users, then adding them back and don't forget to re-run your permissions once you've added the users back. /robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 8:56 AM To: [EMAIL PROTECTED] Subject: cannot connect a sqlserver I have a problem building a testserver with a webapp using sqlserver2000. We got a productionserver running, so I installed java SDK (j2sdk-1_4_2_04-windows-i586-p.exe),tomcat (jakarta-tomcat-4.1.30.exe) and SQLserver2000 (restored a backup) and took the .war file from the productionserver and placed it under the webapps directory. I changed the .properties file started Tomcat again. Are ther more changes to do??? This is the SQLException I get: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'LogonUser'. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unkn own Source) at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegatin gPreparedStatement.java:205) at com.quinity.standard.business.StdEntity.retrieve(StdEntity.java) at nl.terrafilius.lms.business.LogonUser.retrieveWithLogonData(LogonUser.java ) at nl.terrafilius.lms.servlet.HandlerLogon.handleActionLogon(HandlerLogon.jav a) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.quinity.standard.servlet.StdHandler.handle(StdHandler.java) at com.quinity.standard.servlet.StdHandler.handle(StdHandler.java) at com.quinity.standard.servlet.StdController.doPost(StdController.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at
RE: Reloading JSP's and other resources
I am not really an expert but I think it is beter if you modify your application at another location and then redeploy it on the server. Heh, I think I know what you're saying. Yes, I modify the application at a different location than deployment. Just for example, code that I'm working on might go here: E:\projects\application\src Then an Ant build script would put the compiled/configured stuff here: E:\projects\application\latest-build Tomcat, for development purposes would be configured to look at code in the latest-build directory. However, if: antiResourceLocking=true in the Context (I made an error in my previous message and had this set to false), then changes that are deployed to latest-build are not picked up by Tomcat. Considering that antiResourceLocking, to me, is a developmental feature (as opposed to production), then changes should be picked up. Perhaps I should post a feature request? I'm really only posting here to make sure that I'm not doing something wrong, before something is sent to dev. Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] HTTP Sniffers
Puzzle no longer... tcpdump -n -i eth0 -s0 -X Should you have a problem with s0 try changing it to something bigger than your MTU, ie: if you are using normal fast ethernet, 1600. Regards Andrew On the technical level, you have to puzzle out the command line arguments, which isn't that hard, and you also have to do some post-processing on the data to make it intelligible. Unfortunately, I no longer have my notes from whenI puzzled this out for myself. The man pages for tcpdump have a fair amount of example recipes for the arguments. Some googling should turn up examples and explanations of how to do this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Display of Static Resources
but it's more than just take away the package. If you map your servlet to this: url-pattern/foobar/url-pattern then your form should say : form method=POST action=foobar (I just didn't want anyone to think that you invoke a servlet by calling it's class name). so in fact, you want bizDispathcer (no capital b). -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 5:57 AM To: Tomcat Users List Subject: Re: Display of Static Resources form method=POST action=com.client.BizDispatcher Take the package name out of the action attribute. form method=POST action=BizDispatcher - 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: sending a JSP page by email
I *believe*, but don't hold me to it, that you can implement a filter AFTER the JSP renders, in the latest servlet spec. With that, you shouldn't have much trouble taking the output stream and sending it as an eMail. I'd also assume, although I don't know for sure, that you could basically kill the response at that point, so it's not trying to send back to the client or anything. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, December 16, 2004 1:38 pm, haimra said: I had tried doing the same thing and failed. But after I gained more knowledge I had a new idea that I did not tried yet. I will be happy if you let me know if it works. The basic Idea is that if we used a servelet we had no problem taking the StringBuffer created and coping it into the mail message and not back to the browser. The problem with JSP, it's actually a servlet but we can not control it. In the Java Server Page (O'reilly page 315) book I found some directive element. %@ page buffer=12kb autoFlash=false % When autoFlash=false the JSP container will not flush the buffer until the following script % out.flash() % is used. Maybe there is a way to redirect this output writer to a buffer and email it. What do you think? Haim -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 12:15 AM To: [EMAIL PROTECTED] Subject: sending a JSP page by email Hi, How can I take advantage of Tomcat's JSP processing engine to use a JSP page as a template for an email? That is, I want to do something like a page forwarding from a servlet, but this forwarding process the JSP page and, instead of send it to the browser, it send it by email to somebody. Thanks in advance, Gabriel - 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: sending a JSP page by email
Hey kids, I had run into this a while back. I've got a link here to what I did. It's rough and ready so don't expect too much out of it, but it should be enough to get you runnning. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 1:52 PM To: [EMAIL PROTECTED] Subject: RE: sending a JSP page by email I *believe*, but don't hold me to it, that you can implement a filter AFTER the JSP renders, in the latest servlet spec. With that, you shouldn't have much trouble taking the output stream and sending it as an eMail. I'd also assume, although I don't know for sure, that you could basically kill the response at that point, so it's not trying to send back to the client or anything. http://bijou.dyndns.org/weblog/computer/software/SendingMailFromJavaServlets .html Enjoy. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, December 16, 2004 1:38 pm, haimra said: I had tried doing the same thing and failed. But after I gained more knowledge I had a new idea that I did not tried yet. I will be happy if you let me know if it works. The basic Idea is that if we used a servelet we had no problem taking the StringBuffer created and coping it into the mail message and not back to the browser. The problem with JSP, it's actually a servlet but we can not control it. In the Java Server Page (O'reilly page 315) book I found some directive element. %@ page buffer=12kb autoFlash=false % When autoFlash=false the JSP container will not flush the buffer until the following script % out.flash() % is used. Maybe there is a way to redirect this output writer to a buffer and email it. What do you think? Haim -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 12:15 AM To: [EMAIL PROTECTED] Subject: sending a JSP page by email Hi, How can I take advantage of Tomcat's JSP processing engine to use a JSP page as a template for an email? That is, I want to do something like a page forwarding from a servlet, but this forwarding process the JSP page and, instead of send it to the browser, it send it by email to somebody. Thanks in advance, Gabriel - 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: [OT] cannot connect a sqlserver
Thanks David. /robert -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 11:27 AM To: [EMAIL PROTECTED] Subject: RE: [OT] cannot connect a sqlserver In Enterprise Manager: Right-click on the database, select All Tasks, and Generate SQL Script This will let you script various portions of the database for later recreation. It may take a couple tries until you find the combination of objects and options for the specific situation. [EMAIL PROTECTED] 12/16/2004 10:03:14 AM David, Thanks for the clarification. Can you elaborate on how you can use SQL Enterprise Manager to generate necessary SQL script to create the users and roles specific to that database, and to apply the object-level permissions or point me to the docs? I have a script which I use for permisions, but I had to create it and maintain it manually. I have been using Enterprise Manager UI to manage users when restoring from a backup. It would be great to place all of this into a single script for execution. /robert -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 10:45 AM To: [EMAIL PROTECTED] Subject: RE: [OT] cannot connect a sqlserver For the sake of clarifcation, this is only necessary when restoring to an instance of SQL server that is different from the one on which the backup was created. On your production server, you can use SQL Enterprise Manager to generate the necessary SQL script to create the users and roles specific to that database, and to apply the object-level permissions. That way, you just restore the database to the test server, run the SQL script, and you should be ready to go. [EMAIL PROTECTED] 12/16/2004 8:41:40 AM When you restore a backup using SQLServer, you must delete and re-add the database users for that database. It's deceiving, because when you restore the database, and look at the users in Enterprise Manager, they are still there and you have no problem querying the database using Query Analyzer. Try deleting the users, then adding them back and don't forget to re-run your permissions once you've added the users back. /robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 8:56 AM To: [EMAIL PROTECTED] Subject: cannot connect a sqlserver I have a problem building a testserver with a webapp using sqlserver2000. We got a productionserver running, so I installed java SDK (j2sdk-1_4_2_04-windows-i586-p.exe),tomcat (jakarta-tomcat-4.1.30.exe) and SQLserver2000 (restored a backup) and took the .war file from the productionserver and placed it under the webapps directory. I changed the .properties file started Tomcat again. Are ther more changes to do??? This is the SQLException I get: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'LogonUser'. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unkn own Source) at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegatin gPreparedStatement.java:205) at com.quinity.standard.business.StdEntity.retrieve(StdEntity.java) at nl.terrafilius.lms.business.LogonUser.retrieveWithLogonData(LogonUser.java ) at nl.terrafilius.lms.servlet.HandlerLogon.handleActionLogon(HandlerLogon.jav a) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at
Re: WAR files and Eclipse
Wait a minute, you didnt say you were using Apache to front the Tomcat did you? At least thats the impression I gathered since you were hitting it as http://localhost/~userjoe/index.jsp. I am not overly familiar with having Apache fronting Tomcat. With that kind of URI, I think its going to the apache side and not to Tomcat. You must set your mapping in http.conf or worker.properties(?) to make this work. Or your set-up has Tomcat serving off port 80 and you are running this as root right? --- Dwayne Ghant [EMAIL PROTECTED] wrote: I did as suggested but it didn't work . The ironic thing now is that scence I tried that the user accounts /home/username/public_html no longer works to compile jsp pages. I figure this is weird becasue I see the compilation .class files in the $CATALINAHOME/work/Catalina/localhost/~username/classname.class, but when I try to go to http://localhost/~username/index.jsp I just see a pure white page. No matter how many time I reboot the server I get the same result Does anyone else want to take a shoot at this or am I to give up. sven morales wrote: I think there is another attribute to Listener which is home.Base. Set this where you normally put user/public_html directory. For example on mine, its set as homeBase=/home and user home is /home/sergio. Once this is working, any war files on your /home/user/public_html should get expanded. --- Dwayne Ghant [EMAIL PROTECTED] wrote: Anybody won't to take a shoot at this? Dwayne Ghant wrote: Intresting question associated with this subject. If I have public_html enabled for developers on local machine ex: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ Can I have a setting for tomcat to unwar there personal test applications in there public_html directories I'm assuming it would look something like this (listed below): Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host I'm probably incorrect, but I do need to know, to finish setting up JSP enviornment for java developers like myself. . Rhino wrote: It's actually very easy to do what you want to do. Assuming you have correctly installed and configured Sysdeo, you will need to tell Eclipse where the War file for your Tomcat project should be generated. This is done on a *project* basis, i.e. you have to repeat this step once for each Tomcat project you create but you will never have to do this again for a given project unless you change the location where you want the War file. 1. Select the Tomcat project in the Package Explorer perspective. 2. Right click for a context menu. Choose 'Properties'. 3. Within Properties, choose 'Tomcat' from the tree on the left. 4. Click on the 'Export to WAR settings' tab within the Tomcat properties. 5. Enter the path that tells Tomcat where to generate your War file. The path name should include the file name of the War file. I normally put my War files in a folder called 'war' directly beneath the project so my WAR file for export looks like this: D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reloading JSP's and other resources
I am not really an expert but I think it is beter if you modify your application at another location and then redeploy it on the server. I guess you're saying that this feature is mainly so that you can develop out of the same directory that tomcat is using as a docbase ... That would basically make the feature useless if it, in fact, does not pick up changes to that directory.Redeploying, in a Tomcat sense of the word (restarting a context), does not make much sense. I guess I'm still confused about the *real* purpose of this feature. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reloading JSP's and other resources
Well antiResourceLocking is not default anymore because you mainly have this problem (in other words need to have this feature) under windows platform with it's file locking... The anti resource and anti jar locking features are supposed to be very powerfull and are ment to avoid such platform specific problems but you have to pay a certain price for it... May be it's possible to solve your propblem in more convinient way, as I said I'm not the biggest expert over here. On Thu, 16 Dec 2004 14:44:04 -0600, Durham David R Jr Contr 805 CSPTS/SCE [EMAIL PROTECTED] wrote: I am not really an expert but I think it is beter if you modify your application at another location and then redeploy it on the server. I guess you're saying that this feature is mainly so that you can develop out of the same directory that tomcat is using as a docbase ... That would basically make the feature useless if it, in fact, does not pick up changes to that directory.Redeploying, in a Tomcat sense of the word (restarting a context), does not make much sense. I guess I'm still confused about the *real* purpose of this feature. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: integrated login between servers
I know that these folks in the USA have a decent application for SSO. http://www.secured-services.com/products/index.htm Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 6:30 AM To: Tomcat Users List Subject: Re: integrated login between servers You may want to look at a 3rd party SSO solution. They do exist for java and there are some open source ones. -Tim Paulo Alvim wrote: Hi, I'm using a cluster with two machines each one running 4 identical war files. But I'll need to keep another application isolated in a third machine...The point is that I'd like to keep my integrated login when users jump from the cluster to this app (I'm using Tomcat 5.0.28 single signon feature and my dispatcher just redirects to one of the cluster's servers...so single signon is working ok in the cluster environment). I'm thinking about to use commons-httpclient to connect from one of the clusters apps to the isolated one (giving it the user credentials) and trying to get the session cookie and send it to the user in the url using redirect...but it's just a first idea. Is there any other (maybe more elegant) way? Anyone has already tried this before? Will it work? - 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: Reloading JSP's and other resources
May be it's possible to solve your propblem in more convinient way, as I said I'm not the biggest expert over here. Honestly, my problem is solved. I'm just kind of thought-lingering on this feature a bit. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.5 and jndi context naming error
Since downloading the new version of Tomcat 5.5.4, I have been experiencing problems with jndi resources within my web app. I am porting over from an existing server where that resource is working. The error is listed at the bottom. I saw in the release notes that naming-common.jar (JNDI Context implementation) is one of the required files but it does not appear to be included in the download. When I include it from a previous release, it appears to not like it. When I leave it out, it can not find the jndi context either. java.lang.NoSuchMethodError: org.apache.naming.NamingContextBindingsEnumeration. init(Ljava/util/Iterator;)V at org.apache.naming.resources.FileDirContext.listBindings(FileDirContex t.java:335) at org.apache.naming.resources.ProxyDirContext.listBindings(ProxyDirCont ext.java:515) at org.apache.catalina.util.ExtensionValidator.validateApplication(Exten sionValidator.java:178) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 934) Here is my set up. Any help is greatly appreciated. I can't do anything with this release till this is solved. Thanks! -Ken Hall According to the docs, the preferred method is not messing with the server.xml but creating an application.xml. I've tried both name value pairs and resource parameters. This is done and placed in the conf\Catalina\localhost directory: ?xml version='1.0' encoding='utf-8'? Context docBase=c:/jakarta-tomcat-5.5/webapps/myapp path=/myapp workDir=work\Catalina\localhost\myapp Resource auth=Container name=jdbc/myapp type=javax.sql.DataSource/ ResourceParams name=jdbc/myapp parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value6/value /parameter parameter nameusername/name valuexx/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter namepassword/name valuexx/value /parameter parameter nameurl/name valuejdbc:jtds:sqlserver://server:1433/myapp/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter namemaxIdle/name value2/value /parameter /ResourceParams /Context In my app's web.xml I have: /servlet-mapping resource-ref res-ref-namejdbc/myapp/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref welcome-file-list My application is referencing the context like this: InitialContext initContext = new javax.naming.InitialContext(); Context envContext=(Context)initContext.lookup(java:comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/myapp); //Error upon calling context SEVERE: Null component Catalina:type=DataSource,path=/myapp,host=localhost,class=javax.sql.Data Source,name=jdbc/myapp Unable to connect to myapp database. Class Not Found.Name java:comp is not bound in this Context javax.naming.NameNotFoundException: Name java:comp is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:768) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at javax.naming.InitialContext.lookup(InitialContext.java:351) at my.load.servlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:1053) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3817) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4079 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:755) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:777) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:672) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 0) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003) at
connection pooling
I'm about to the point where I'm going to switch to db connection pooling. however before I undertake this seemly easy task I have a question, which will make this a huge project or a simple one. The current site uses typical MySQL connection, where a connection is opened and so on, if I do connection pooling will I have to go in and do mass code changes? aka will I have to rewrite any servlets or jsps that make database calls. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Commercial Tomcat Support?
Hi guys, Does anybody have recommendations of providers for commercial tomcat support contracts? Not that I'm not fairly impressed with tomcat-users, but sometimes you're dealing with a problem at 4am and it'd be nice to have somebody to call. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of Static Resources
Thank-you. Ben Souther wrote: * servlet name tag in the servlet tag and servlet-mapping tag should be the same. Yes the servlet tag in web.xml is where you define the servlet's name. * The value of the url-pattern, welcome-file and the action value in the form tag should be all the same Yes, the url-pattern in the mapping tag of your web.xml file defines the string that a browser would need to send in order to invoke your servlet. * I should have one set of servlet, servlet-mapping and welcome file for every servlet I use NO. The welcome file is the default file. (ex: index.html, or index.jsp) If you want your servlet to be the default servlet for your app, this is where to set it up. * I should never use / as a pattern because that is what Tomcat uses for static resources. Yes. (unless you want to handle all the default behavior..) * Can I have a url-pattern /foobar/foo2bar? Yes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
workers2.properties for mod_jk2.so and loadbalancing
Hey any of you guys out there have a good workers2.properties that I could use to model the loadbalancing functionality in my tomcat5.x/apache configuration . My current configuration is Apache2.0.46/tomcat5.0.28/mod_jk2.so Please keep in mind that I am using mod_jk2.so so that mean the configuration uses the mechanism modeled after JMX. All I have to do is take a look at an example of loadbalancing done this way and I should be fine. Thank you . -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]