Re: Tomcat 5.0.16 Server Can't Find Keystore
Because the VM is being started from C:\WINDOWS\System32 since it is running as a service. If it were started from catalina.bat, then the VM would have been started from CATALINA_HOME/bin, so it would have looked there for the config directory. Why it doesn't look from in the location of CATALNIA_HOME rather than wherever the VM was started for the keystore stuff is beyond me. I'm not really sure about the keystore stuff since I haven't configured SSL for Tomcat as of yet. Jake At 09:40 AM 1/3/2004 -0600, you wrote: Yesterday, in response to a post asking how to run Tomcat as a server, someone pointed out that the *.exe binary, which includes the installer, is now available. (Hooray!) So, I downloaded it, and it installed flawlessly. I had renamed my previous Tomcat 5.0.16 installation so the server version could be installed in parallel. I am using HTTPS, and I have enabled the proper connectors in server.xml as I had done before. However, with the Tomcat service started, when I start the application, it fails with the following entry in the stdout.log file: java.io.FileNotFoundException: C:\WINDOWS\system32\config\systemprofile\.keystore (The system cannot find the file specified) The error message is valid in that my .keystore is under C:\Document Settings. That keystore had been generated by the Java keytool utility using the instructions in Tomcat for establishing an SSL connector.. I tried generating another key, thinking maybe this version looked in a different place. However, the keytool failed claiming that the alias "Tomcat" already existed, implying it was looking C:\Document Settings. I have check server.xml and web.xml, but I can't find anything to specify where Tomcat is to look for the .keystore file. Anyone have any suggestions as to how to make Tomcat look in C:\Document Settings or how to make keytool generate a .keystore file in C:\WINDOWS\System32\config\systemprofile where it's looking? Merrill Cornish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to prevent HTTPS access?
Hi guys, Does anybody know how to prevent HTTPS access to certain pages that don't need the SSL protection? I know how to protect sensitive pages with HTTPS, but I noticed users can now access *any* page over an HTTPS connection, which seems to waste our server resources. Thanks for any insight. Sonny __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sessions timing out prematurely
Hey all, I set my session timeout to 4 hours with the following bit of XML in my web.xml, but sessions seem to time out far sooner than that. 240 Has anybody encountered this before? I'm using Tomcat 4.1.27. __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache2 + Tomcat4 + mod_jk2 success
Hi Having succeeded in getting jk2_mod to work thought I would document what I did My setup Linux RH9 basic setup, httpd-2.0.48 installed from source NOT RPM, tomcat-4.1.29, ant-1.5.4 The following was setup in /etc/profile JAVA_HOME="/usr/java/java" CATALINA_HOME="/usr/local/tomcat" PATH="$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin" CLASSPATH="$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALI NA_HOME/common/lib/servlet.jar" Add the following to the EXPORT line JAVA_HOME CATALINA_HOME CLASSPATH You will need to logout/login or restart to set the environment Install Apache2 from source make sure you enable dynamic loading by adding --enable-so I also like to add --enable-mods-shared=most Ie ./configure --enable-so --enable-mods-shared=most I installed into the default directory (/usr/local/apache2) Install tomcat nothing unusual here I placed mine in "/usr/local/jakarta-tomcat-4.1.29" and made a symbolic link from /usr/local/tomcat Test both are working OK then stop both Now for the JK2 connector Download the connector source from CVS this was the only way I could get all the files needed "cvs -d :pserver:[EMAIL PROTECTED]:home/cvspublic checkout jakarta-tomcat-connectors" This will download all files into a director "jakata-tomcat-connectors" below the current directory This brings down all connectors the one we need is in "jakata-tomcat-connectors/jk/native2" Have a read of the "readme.txt" file from this we can see we need to download 2 more files (APR, APR-UTILS) the locations are given I placed mine in "/jakata-tomcat-connectors/jk/native2/apr" Run buildconf ./buildconf Before we can go further we have to modify two of the source files "jk_channel_socket.c" and "jk_pool.c" Both the files are in "jk/native2/common" Jk_channel_socket.c find "#error "jk_channel_socket is deprecated" line74 just after copyright notice Remove this line Jk_pool.c find "#error "jk_pool is deprecated" line64 just after copyright notice Remove this line Run configure We need to add some parameters to configure: ./configure --with-apxs2=/usr/local/apache2/bin/apes --with-tomcat41=/usr/local/tomcat --with-java-home=/usr/java/java --with-jni Change all paths to suit your system Hopefully all will go well Run Make ./make At the end of make you will see a message about running libtools for me it was Libtool --finish /usr/local/apache2/modules This did not work for me I just copied mod_jk2.so from "/jk/build/jk2/apache2" to /usr/local/apache2/modules And libjkjni.so to "/usr/local/tomcat/server/lib" Make sure apache and tomcat are not running File jk2.properties /usr/local/tomcat/conf/jk2.properties handler.list=channelSocket,request channelSocket.port=8009 channelSocket.address=127.0.0.1 File httpd.conf /usr/local/apache2/conf/httpd.conf Add LoadModule jk2_module modules/mod_jk2.so File workers2.properties /usr/local/apache2/conf/workers2.properties [shm] file=/usr/local/apache2/logs/jk2.shm size=1048576 debug=0 Disabled=0 [channel.socket:localhost:8009] [status:status] [uri:/jkstatus/*] group=status:status [uri:/examples/*] Info=map the entire "examples" webapp Debug=0 [uri:/tomcat-docs/*] You will need to add uri for all the webapps you use OK time to test all this Start tomcat first can be a bit slow to start give a little time Start apache2 Goto http://localhost you should get default apache2 goto http://localhost:8080 you should get default tomcat page Goto http://localhost/examples you should get tomcat directory listing if so all done I hope this works for you I have not tested this greatly so may still be thinks missing Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Subject: Fw: jk2_init() Can't find child in none of the 1024 scoreboard slots > Hi Peter, > > I'm using Apache 2.0.48, Tomcat 4.1.29, Jakarta-Tomcat-Connectors 4.1.29. > I'm hoping the problem it is not the mod_jk2.so module as I went to great > trouble in order to generate it on my RH9 Linux Kernal Version 2.4.20-8 > platform. I had to recompile apr, apr-util code and only "ant native" > managed to build mod_jk2.so > ### error.log file in Apache2.0.48 log > ### > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7398 in none > of the 256 scoreboard slots > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7399 in none > of the 256 scoreboard slots > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7400 in none > of the 256 scoreboard slots > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7402 in none > of the 256 scoreboard slots > [Sat Jan 03 23:01:48 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.3-dev > configured -- resuming normal operations These are mostly harmless messages. The only way I found to avoid them was a rather long one. In order for Apache + mod_jk2 to find neighbour children is to configure shared memory for mod_jk2. And it must be configured on both Apache and Tomcat side. If you drop Tomcat side, then it will complain. :-) For shared memory in Coyote-jk2 handler, you need to build jkjni.so (you may screem in agony :-)). JK-JNI gives you "Java Native Interface" functionality, which includes UNIX SHM and UNIX file sockets. In order for jkjni.so to function correctly, it must have an environment variable "serverRoot" defined on the process level, or it will not be able to locate workers2.properties (it is in Apache's config dir). To be honest, jkjni.so was designed for another purpose - running Tomcat from within Apache process (in-process). This environment variable is provided by Apache. All of us who wish to run a standalone Tomcat and still use jkjni.so must emulate this. The only way I found to do that was to place export serverRoot=/etc/httpd/2.0 in Tomcat's config/startup scripts. Like I said - it is long one. > [Sun Jan 04 12:08:37 2004] [notice] caught SIGTERM, shutting down Normal shutdown, I'd say. > ### jk2.prorperties ### > ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED > ## WHEN YOU EDIT THE FILE. > ## COMMENTS WILL BE _LOST_ > ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. > # Set the desired handler list > # handler.list=apr,request,channelJni Why are you using "channelJni"? You could use "apr,request,channelSocket" and drop JNI completely. Take look at Tomcats docs and JK2 section. > ## workers.properties > worker.list=ajp13 > worker.ajp13.port=8009 > worker.ajp13.host=localhost > worker.ajp13.type=ajp13 > Why are you using "workers.properties"? It is for mod_jk. For mod_jk2 you must use "worker2.properties". Consult docs at http://jakarta.apache.org -> Tomcat -> Documentation. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Errors with Tomcat /IIS connection - shm.init(): No file
I am desparately trying to connect Tomcat to IIS. The IIS filter (isapi_redirector2.dll) is loaded (green arrow in IIS admin), but I am getting the following errors when I submit a request that needs to be handled by Tomcat (http://localhost/examples): Error: [jk_shm.c (333)]: shm.init(): No file Error: [jk_endpoint.c (90)]: workerEnv.init() create slot epStat.0 failed Error: [jk_worker_lb.c (402)]: lb.service() worker failed 12 for ajp13:localhost:8009 Error: [jk_worker_lb.c (415)]: lb.service() unrecoverable error... I tried to follow the documentation - default jk2.properties (all comments) and the workers2.properties quoted below. I'll be most gratedul for any clues. Youval workers2.properties: # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting Up Tomcat for Multiple Users
Hi, I'll be running a seminar on a web application development with java and would like to set up a single webserver where all the participants can have their web app folders following them whiles they roam so that no matter the cp on which they log on to they can still test their application for a single Tomcat Server. I read something on the $CATALINA BASE but don't know how to deploy that. Would be grateful for any help given Thank you. carl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
permission problem
Hello, I've edited catalina.policy and added line: grant codeBase "file:${catalina.home}/webapps/vvv/WEB-INF/lib/-" { permission java.security.AllPermission; }; restarted Tomcat. And when I'm running an application from vvv/WEB-INF/lib, I'm still becoming exception: "Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.net.SocketPermission 111.101.68.165:3306 connect,resolve)" Why it doesn't work? -- Best regards, Algirdas mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting Up Tomcat for Multiple Users
> I read something on the $CATALINA BASE but don't know how to deploy > that. Would be grateful for any help given I am no expert, but I believe $CATALINA BASE would only be helpful if everyone had his or her own Tomcat server each of which pulled classes and other files from a base install. That's most useful for clustering. Netbeans is a free IDE from Sun that comes with it's own internal Tomcat server bundled inside the IDE. Consider incorporating it in your class. I am very impressed with it's debugger, and each student might benefit from breaking and fixing the server.xml. Besides, at some point everyone in Javaland needs to deal with an IDE. If you insist on having a central server, then you want something similar to apache's public_html. http://httpd.apache.org/docs-2.0/howto/public_html.html I don't know if Tomcat alone has that functionality, but you might get what you need by Apache running tomcat as a module. MPC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache2 + Tomcat4 + mod_jk2 success
Thanks. Some of the steps surprised me in missing files, etc. Can anyone else comment on why this would be the case? BTW, you have a reference to "/usr/local/apache2/bin/apes", which should probably be "/usr/local/apache2/bin/apxs". I'm also surprised that some of your directories say "jk", not "jk2". Is that correct? Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Sun, 4 Jan 2004, Ian Harwood wrote: > Hi > Having succeeded in getting jk2_mod to work thought I would document what I > did > My setup Linux RH9 basic setup, httpd-2.0.48 installed from source NOT RPM, > tomcat-4.1.29, ant-1.5.4 > The following was setup in /etc/profile > JAVA_HOME="/usr/java/java" > CATALINA_HOME="/usr/local/tomcat" > PATH="$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin" > CLASSPATH="$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALI > NA_HOME/common/lib/servlet.jar" > Add the following to the EXPORT line JAVA_HOME CATALINA_HOME CLASSPATH > You will need to logout/login or restart to set the environment > > Install Apache2 from source make sure you enable dynamic loading by adding > --enable-so I also like to add --enable-mods-shared=most > Ie ./configure --enable-so --enable-mods-shared=most > I installed into the default directory (/usr/local/apache2) > > Install tomcat nothing unusual here I placed mine in > "/usr/local/jakarta-tomcat-4.1.29" and made a symbolic link from > /usr/local/tomcat > > Test both are working OK then stop both > > Now for the JK2 connector > Download the connector source from CVS this was the only way I could get all > the files needed > "cvs -d :pserver:[EMAIL PROTECTED]:home/cvspublic checkout > jakarta-tomcat-connectors" > This will download all files into a director "jakata-tomcat-connectors" > below the current directory > This brings down all connectors the one we need is in > "jakata-tomcat-connectors/jk/native2" > Have a read of the "readme.txt" file from this we can see we need to > download 2 more files (APR, APR-UTILS) the locations are given > I placed mine in "/jakata-tomcat-connectors/jk/native2/apr" > > Run buildconf > ./buildconf > > Before we can go further we have to modify two of the source files > "jk_channel_socket.c" and "jk_pool.c" > Both the files are in "jk/native2/common" > Jk_channel_socket.c find "#error "jk_channel_socket is deprecated" line74 > just after copyright notice > Remove this line > Jk_pool.c find "#error "jk_pool is deprecated" line64 just after copyright > notice > Remove this line > > Run configure > We need to add some parameters to configure: > ./configure --with-apxs2=/usr/local/apache2/bin/apes > --with-tomcat41=/usr/local/tomcat --with-java-home=/usr/java/java --with-jni > Change all paths to suit your system > Hopefully all will go well > > Run Make > ./make > > At the end of make you will see a message about running libtools for me it > was > Libtool --finish /usr/local/apache2/modules > This did not work for me I just copied mod_jk2.so from > "/jk/build/jk2/apache2" to /usr/local/apache2/modules > And libjkjni.so to "/usr/local/tomcat/server/lib" > > Make sure apache and tomcat are not running > File jk2.properties > /usr/local/tomcat/conf/jk2.properties > handler.list=channelSocket,request > channelSocket.port=8009 > channelSocket.address=127.0.0.1 > > > File httpd.conf > /usr/local/apache2/conf/httpd.conf > Add > LoadModule jk2_module modules/mod_jk2.so > > File workers2.properties > /usr/local/apache2/conf/workers2.properties > [shm] > file=/usr/local/apache2/logs/jk2.shm > size=1048576 > debug=0 > Disabled=0 > > [channel.socket:localhost:8009] > > [status:status] > [uri:/jkstatus/*] > group=status:status > > [uri:/examples/*] > Info=map the entire "examples" webapp > Debug=0 > > [uri:/tomcat-docs/*] > > You will need to add uri for all the webapps you use > > OK time to test all this > Start tomcat first can be a bit slow to start give a little time > Start apache2 > Goto http://localhost you should get default apache2 goto > http://localhost:8080 you should get default tomcat page > Goto http://localhost/examples you should get tomcat directory listing if so > all done > > I hope this works for you I have not tested this greatly so may still be > thinks missing > Ian > > > > - > 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]
apache 1.3.27 + tomcat 5 + cpanel : no docBase
Hello everyone, I've been digging ins the archives, but no luck... maybe the problem is 18 inches in front of the screen... but I wanna be sure. I've installed tomcat 5.0.16, running apache 1.3.27. I can see the index file that is in webapps/ROOT but not mine... Also, it does not wanna accept the settings I have running on 4.0.3 it bombs on the docBase Dont laugh too hard, but it takes this, but maps my docBase to the default one : /vhome/frantzcy/public_html Anysuggestions ? Os: RH73/cpanel Frantzcy --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.556 / Virus Database: 348 - Release Date: 2003-12-26 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to prevent HTTPS access?
Via tomcat - there is no out of the box way. A simple way is to use a filter. Another simple way is to use mod_rewrite. -Tim Sonny Sukumar wrote: Hi guys, Does anybody know how to prevent HTTPS access to certain pages that don't need the SSL protection? I know how to protect sensitive pages with HTTPS, but I noticed users can now access *any* page over an HTTPS connection, which seems to waste our server resources. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiuser tomcat environment
Many thanks for your reply. Does your solution works with NIS? Also I have found on the server config site that : "The operating system username under which Catalina is executed MUST have read access to each user's web application directory, and all of its contents." In my case that probably means that I will have to run Catalina as root. Are there any known security problems with that? About implementing my own manager ,I am not realy a java programmer Does anybody knows about such a thing already done? Thanks. On Fri, 02 Jan 2004 11:00:24 -0500, Tim Downey <[EMAIL PROTECTED]> wrote: >> The main perpose of the server - a programming course,the >> students should develope their projects on it. >> Students probably should be able to do the folowing: >> [1] deploy/redeply/reload their applications Using Tomcat as a stand-alone server, you can create a ~ directory for each user in /etc/passwd. Add a Listener for UserConfig in the Host. >> [2] they should NOT be able to do the same for the >>other students applications The ~ directories have individual user access privileges. >> [3] they can't restart the server ,of course, since >> students don't have root access. I am unfamiliar with creating a new manager, but it seems that you should be able to write a servlet that can only be accessed by registered users. This servlet will send stop/start for a particular user's web app directory. It is possible to send messages to the manager via HTTP. Your servlet will need to authenticate as the manager, and then send the correct HTTP request. Perhaps someone else has a slicker solution. I would love to hear it. >> So,using manager app is not appropriate - that way all the >> students will be able to manage all the application. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding timestamp to logs
In this message there is no timestamp. It is from stderr.log. [ERROR] ThreadPool - -All threads are busy, waiting. Please increase maxThreads or check the servlet status5 5 Antony Paul - Original Message - From: "Rhino" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, January 03, 2004 12:59 AM Subject: Re: adding timestamp to logs > I'm not sure I understand what your problem/question is. I've been using > Tomcat 4.1.24 for over a year and Tomcat 4.1.29 for the last few weeks and > all the messages generated by Tomcat already begin with timestamps. > > Or are you asking how to put a timestamp in a message that you generate from > within your servlets? > > Rhino > > - Original Message - > From: "Antony Paul" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Friday, January 02, 2004 8:00 AM > Subject: adding timestamp to logs > > > > Hi, > > I want to add a time stamp to Tomcat loggings. I am using JDK 1.3 and > no > > log4j. I want to add this to stderr. > > > > rgds > > Antony Paul > > > > - > > 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]
Parsing error processing resource path
Hi all, I have the following error and i dunno where is the mistake. Any hints? Thank you. 2004-01-05 11:43:51 StandardContext[/bmd2]Marking servlet action as unavailable 2004-01-05 11:43:51 StandardContext[/bmd2]Servlet /bmd2 threw load() exception javax.servlet.UnavailableException: Parsing error processing resource path at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.j ava:1035) at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.j ava:1014) at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9 55) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10 44) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3948) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4271) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 66) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:316) at org.apache.catalina.core.StandardHost.install(StandardHost.java:859) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:723 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:816) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) 2004-01-05 11:43:53 StandardContext[/jsp-examples]ContextListener: contextInitialized() 2004-01-05 11:43:53 StandardContext[/jsp-examples]SessionListener: contextInitialized() 2004-01-05 11:43:53 StandardContext[/servlets-examples]ContextListener: contextInitialized() 2004-01-05 11:43:53 StandardContext[/servlets-examples]SessionListener: contextInitialized() 2004-01-05 11:47:33 StandardContext[/manager]HTMLManager: init: Associated with Deployer 'localhost' 2004-01-05 11:47:33 StandardContext[/manager]HTMLManager: init: Global resources are available 2004-01-05 11:47:33 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost' 2004-01-05 11:47:36 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396) at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:294) at org.apache.jsp.index_jsp._jspx_meth_logic_redirect_0(index_jsp.java:81) at org.apache.jsp.index_jsp._jspService(index_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 11) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(S
problem with forms authentication
I am running Tomcat 5.0.16 and using Form based authentication with the JDBC realm. I have ported an application that was previously running on Tomcat 4.x to 5.0.16. Now, after being authenticated on the login page I keep receiving this error: Invalid direct reference to form login page I am not directly accessing the login page, but rather am trying to access a protected resource and being redirected to the login page. Again, this exact same setup worked with the previous version of Tomcat. Any thoughts?
JK2 Won't create .so's for Tomcat 5/Apache 2.0.48
Hello, I have lost the remainder of what hair I had trying to get JK2 to create mod_jk2.so and jkini.so. Has anyone ever made this combination work? I'm using configure like this: ./configure --with-tomcat41=/usr/local/tomcat5.0 \ --with-apache2=/usr/local/apache2 \ --with-apxs2=/usr/local/apache2/bin/apxs Any help would be greatly appreciated. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with forms authentication
: Invalid direct reference to form login page Just one, but it has nothing to do with the upgrade: are cookies enabled in your browser? -QM -- software -- http://www.brandxdev.net (C++ / Java / SSL) tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with forms authentication
Thanksthat seemed to be the problem. I had also upgraded my browser and it seems that the new privacy settings kicked in. Has someone approached the issue of why this won't work with URL rewriting when cookies are blocked? -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, January 05, 2004 12:22 AM To: Tomcat Users List Subject: Re: problem with forms authentication : Invalid direct reference to form login page Just one, but it has nothing to do with the upgrade: are cookies enabled in your browser? -QM -- software -- http://www.brandxdev.net (C++ / Java / SSL) tech news -- http://www.RoarNetworX.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]