ServletPath Problem
Title: ServletPath Problem I am running linux 6.2 tomcat 3.2.1. I created a WAR file called dci.war and placed it in the webapps dir. When I try to access the directory through the web I get a page not found error. I can access the other default tomat directories. I can also call html pages from the /dci directory. I belive the problem is related to the JSP path. When looking at the logs. I see JspEngine --> /examples/num/*.jsp ServletPath: /example/num/*.jsp The above works When it does not work I see JspEngine --> /dci.jsp ServletPath: /dci.jsp I believe it should look like JspEngine --> /dci/dci.jsp ServletPath: /dci/dci.jsp My question is Where do I specify the Directory so that the JSP reads the default. I thought all of this was taken care of when you use a war file in webapps dir. thanks in advance /===\ | Micky Mimo | | Systems Specialist | | (781) 457 - 1317 | | [EMAIL PROTECTED] ===\ |There was once a young man from Wight | |Who could travel faster than the speed of light. | |He went out one day | |In a relative way | |And returned home the previous night. | \==/
RE: Servlet URLs
Murray Cumming wrote: >> Is there any way to use servlets (not JSPs) with >> tomcat without using >> '/servlet/' in the URL. I am trying to set up a >> system which already uses >> fixed URLs. Scott Walter wrote: > just specify the url mapping in the web.xml file. It > does not have to have servlet in it. For example I > have a servlet that processes a login from an html and > the url to the servlet is: > > http://localhost/processlogin or > http://localhost/myapp/processlogin But as I understand it, I would have to map each class individually. I have hundreds of classes. Murray Cumming [EMAIL PROTECTED] www.murrayc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Security Constraint Problem
i just set-up a security constraint for my context using the simpleRealm, i've tested it using this URL http://myserver:8080/mycontext/ (standalone server)works fine while using URL http://myserver/mycontext/ (tomcat-apache) did not work. what else do i need to configure? here's the configuration ... Protected Area /* /web/* DELETE GET POST PUT owner BASIC realmname ... thank you very much alex èbj(ër¢êßç²j(ruÚÞ²ÆÛiÿù\¢
Re: wml
Try the web.xml inside your webapp, in WEB-INF. The one in conf/ is just for shows. Cheers, Alex. Carlos wrote: > i have writte that in my web.xml but doesn't run, doesn't show the wml > pages. > it says me that there are te3xt/plain > I have restart the tomcat but doesn't show. > anybody can help me? > thanks > Carlos > > - Original Message - > From: "Christoph Fischer" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, February 07, 2001 1:27 PM > Subject: Re: wml > > > Hi Carlos, > > You have to add the following mime-types > > For .WML files: "text/vnd.wap.wml" > > For .WMLC files: "application/vnd.wap.wmlc" > > For .WMLS files: "text/vnd.wap.wmlscript" > > For .WMLSC files: "application/vnd.wap.wmlscriptc" > > For .WBMP files: "image/vnd.wap.wbmp" > > e.g. > > > > > > wml > > > > > > text/vnd.wap.wml > > > > > > > > > > wbmp > > > > > > image/vnd.wap.wbmp > > > > > > etc... > > anyway with tomcat 3.2 I wasn't able to transfer pictures anymore. > > If you find a solution let me know. > > > > Chris > > > > > > > > Carlos wrote: > > > > > i have in a linux only the tomcat as the web server. > > > how can i to server wml pages? > > > what i must configure? > > > in which files i must to configure and what i must to write? > > > thanks > > > Carlos > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, email: [EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: YDS.ORG
What does this have to do with Tomcat-user? Haridham - Yogi Divine Society wrote: > Friends: > Jai Swaminarayan > Everyone of us is aware of the earthquake calamity that hit India. As per > H.D.H. Hariprasad Swami Maharaj's wish, saints and devotees from Yogi Divine > Society are working hard to help the victims. > > As a part of ongoing relief efforts we have put up a website that focuses > on earthquake relief activities. It also has the ability for the users to > donate online > > Please goto www.yds.org/ydscare to have a glimpse of the relief activities > carried by YDS. This site has been specially prepared by saints and > shahishnu sevaks who are onsite of the earthquake relief activities. > > The main site www.yds.org will be under continuous upgrade. > > Please forward this to all your friends. > > Jai Swaminaryan > Everyone at Haridham > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: YDS.ORG
some java programmer must be there > -Original Message- > From: Alex Fernández [SMTP:[EMAIL PROTECTED]] > Sent: Friday, February 09, 2001 1:55 AM > To: [EMAIL PROTECTED] > Subject: Re: YDS.ORG > > What does this have to do with Tomcat-user? > > Haridham - Yogi Divine Society wrote: > > > Friends: > > Jai Swaminarayan > > Everyone of us is aware of the earthquake calamity that hit India. As > per > > H.D.H. Hariprasad Swami Maharaj's wish, saints and devotees from Yogi > Divine > > Society are working hard to help the victims. > > > > As a part of ongoing relief efforts we have put up a website that > focuses > > on earthquake relief activities. It also has the ability for the users > to > > donate online > > > > Please goto www.yds.org/ydscare to have a glimpse of the relief > activities > > carried by YDS. This site has been specially prepared by saints and > > shahishnu sevaks who are onsite of the earthquake relief activities. > > > > The main site www.yds.org will be under continuous upgrade. > > > > Please forward this to all your friends. > > > > Jai Swaminaryan > > Everyone at Haridham > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
summarized tomcat-apache configuration
1. download the tomcat src distribution 2. unzip the file to a temporary dir 3. go to /src/native/apache1.3 4. execute /usr/sbin/apxs -o mod_jk.so -I../jk -I/usr/local/jdk-install-dir/include -I/usr/local/jdk-install-dir/include/linux -c *.c ../jk/*.c /jk/jk_ajp13_worker.o ../jk/jk_ajp13.o ../jk/jk_ajp12_worker.o mod_jk.o 5. result of the execution will be ld: cannot open ../jk/jk_worker.o: No such file or directory apxs:Break: Command failed with rc=65536 generates the mod_jk.o file 10540kb 6. execute gcc -shared -o mod_jk.so *.oto complete the build generates the mod_jk.so file 84253kb 7. copy mod_jk.so file to /etc/httpd/libexec 8. include mod_jk.conf-auto to the last line of your http.conf file e.g. include /usr/local/tomcat/conf/mod_jk.conf-auto 9. restart tomcat, then apache 10. verify the examples application can be access using http:///examples/jsp/ if the server server them then you successfully done your job! congratulations! ¡.a¨h gÊ«~·É¨h¡Ê&i×kz˶m§ÿæj)rj(r
Re: web.xml and session timeout
John Clark L. Naldoza typed the following on 09:57 AM 2/9/2001 +0800 >> >> >> 5 >> >> >> >> However, I have a session bean with an HttpSessionBindingListener- I >> would think that my valueUnbound() method would get called after 5 >> minutes and something printed to the screen, but it doesn't look like >> the session is timing out- > >Based upon my limited experience, and having the default setting which >tomcat gives. I have observed that the sessions are invalidated every >minute, not every second. And this cycle starts when you start-up the >Tomcat Server. > >It does time out, but don't expect it to be timed-out to the nearest >second. I tried to get a viable explanation on this mailing list, but >it appears no one knows how...;-( A background thread processes wakes itself every minute and checks for sessions which are past their due date. It is conceivable that a session could be expired an entire minute after it "ought" to be. For 99.99% of applications this shouldn't be a problem. If it is a problem, you can add a tag to your server.xml. You'll have to experiment a bit, I haven't tested this on Tomcat 3.2. checkInterval is what you're looking for, it's the number of seconds the background thread sleeps. Setting this too low means your server will be constantly crunching on this: even when the server is idle or nearly idle, it will constantly loop over a possibly empty session list. In other words, don't set this too low unless you really really need it and have measured the effects in different situations. Don't set maxActiveSessions to anything other than -1 unless you really want users to see an error page when your site gets too much traffic. maxInactiveInterval is another way of setting the session timeout, although I haven't looked to see which takes precedence, or whether it takes seconds or minutes. The -1 setting above is a poor choice. Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Manager in Tomcat 4.0
Hi, I am using tomcat 4.0, how can I login to the manager, what is the user name and password, anyone can tell me where I can find . Thanks in Advance ! LUN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: wml
thanks it runs all rigth - Original Message - From: "Alex Fernández" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 09, 2001 10:51 AM Subject: Re: wml > Try the web.xml inside your webapp, in WEB-INF. The one in conf/ is just for > shows. > > Cheers, > > Alex. > > Carlos wrote: > > > i have writte that in my web.xml but doesn't run, doesn't show the wml > > pages. > > it says me that there are te3xt/plain > > I have restart the tomcat but doesn't show. > > anybody can help me? > > thanks > > Carlos > > > > - Original Message - > > From: "Christoph Fischer" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, February 07, 2001 1:27 PM > > Subject: Re: wml > > > > > Hi Carlos, > > > You have to add the following mime-types > > > For .WML files: "text/vnd.wap.wml" > > > For .WMLC files: "application/vnd.wap.wmlc" > > > For .WMLS files: "text/vnd.wap.wmlscript" > > > For .WMLSC files: "application/vnd.wap.wmlscriptc" > > > For .WBMP files: "image/vnd.wap.wbmp" > > > e.g. > > > > > > > > > wml > > > > > > > > > text/vnd.wap.wml > > > > > > > > > > > > > > > wbmp > > > > > > > > > image/vnd.wap.wbmp > > > > > > > > > etc... > > > anyway with tomcat 3.2 I wasn't able to transfer pictures anymore. > > > If you find a solution let me know. > > > > > > Chris > > > > > > > > > > > > Carlos wrote: > > > > > > > i have in a linux only the tomcat as the web server. > > > > how can i to server wml pages? > > > > what i must configure? > > > > in which files i must to configure and what i must to write? > > > > thanks > > > > Carlos > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, email: [EMAIL PROTECTED] > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, email: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Creating & Maintanin Sessions using Tomcat 3.2
Hello Tomcat Users, My Name is Purvang and I am using jakarta-tomcat-3.2.1 release. I have configured Tomcat as a Web Container itself, meaning that Tomcat is not connected to any other external Web Server and acts as a server itself handling all servlet requests. Tomcat is configured perfectly ok and is running fine. The only problems I have is while implementiong "Session" in my servlets. I have a servlet say "First" servlet, that create's an Httpsession using the getSession() method and uses the setAttribute() method to bind/set the object in the session. Below is an example code that I write in doPost()/doGet() method to create a Session is servlet "First": HttpSession session = request.getSession(); String usrid = "tomcat"; session.setAttribute("UserId",usrid); Now in another servlet, lets call it "Second" servlet, when I try to create a session and extract the value that is set in the above code, it throws a NullPointerException, meaning that it did not find the session, which was successfully created in the First servlet. Example code in "Second" servlet to get the values bound/set in the session created by the "First" servlet: HttpSession session = request.getSession(false); String test = (String) session.getAttribute("Userid"); The above line throws a NullPointerException. Please help me out in implementing "Sessions" using tomcat as Session is a very important feature and I am heavily relying on it. Waiting for a fast reply. Regards Purvang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Where can I find dlfcn.h for mod_jk.c for HPUX compilation
Hi, I'm getting the following error when I try to compile mod_jk.c in HP UX 10. Did not find the mentioned file anywhere in the source distribution, and nither on the system. gcc -DHPUX10 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr2/tranweb/apache1.3/include -I../jk -I/opt/java/include -I/opt/java/include/hp-ux -I/opt/java/include/green_threads -D_HPUX_SOURCE -c ../jk/jk_jni_worker.c../jk/jk_jni_worker.c:64: dlfcn.h: No such file or directory../jk/jk_jni_worker.c:764: warning: #warning ---../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED../jk/jk_jni_worker.c:766: warning: #warning ---apxs:Break: Command failed with rc=65536*** Error exit code 1 Stop. Please let me know if I'm missing anything Many thanx Bonifacio Braganza
Re: Creating & Maintanin Sessions using Tomcat 3.2
Pravin Jain typed the following on 03:42 PM 2/9/2001 +0500 >Tomcat is configured perfectly ok and is running fine. The only problems I >have is while implementiong "Session" in my servlets. I have a servlet say >"First" servlet, that create's an Httpsession using the getSession() method >and uses the setAttribute() method to bind/set the object in the session. > >Below is an example code that I write in doPost()/doGet() method to create >a Session is servlet "First": > >HttpSession session = request.getSession(); >String usrid = "tomcat"; >session.setAttribute("UserId",usrid); > > >Now in another servlet, lets call it "Second" servlet, when I try to create >a session and extract the value that is set in the above code, it throws a >NullPointerException, meaning that it did not find the session, which was >successfully created in the First servlet. > >Example code in "Second" servlet to get the values bound/set in the session >created by the "First" servlet: > >HttpSession session = request.getSession(false); >String test = (String) session.getAttribute("Userid"); > >The above line throws a NullPointerException. Are you sure the cookie is being set? Set your browser to warn you when cookies are set by the server. Are both servlets in the same webapp? Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Fw: Time exceeded
Hi everyone, I have a problem executing a servlet under Tomcat 3.2.1 and Apache 1.1.3. This servlet is executing queries and the process consumes a lot of time. An advice from Internet Explorer is show indicating that this server can't follow the task due to time has excedeed. I would like to know where must i fix a time limit, in my servlet or in tomcat, and how to configure it. A lot of thanks in advance.
Who can help me??
I'm a Java Developer,my name is Mariano Scardino. Now I need to work with JSP and so I would use TOMCAT.I downloaded it I made something to configure it(directory structure,modify to server.xml file,update the path for JAVA_HOME and TOMCAT_HOME in the tomcat.bat). However:I can see the index at "http://localhost:8080/index.htm" and also use the examples of JSP:they work!but when I try to make my JSpage it doesen't work!!I think it's a problem of startup.bat or tomcat.bat.Who can help me?PLEASEE!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Who can help me??you can see the error showed me in startup execution
I'm a Java Developer,my name is Mariano Scardino. Now I need to work with JSP and so I would use TOMCAT.I downloaded it I made something to configure it(directory structure,modify to server.xml file,update the path for JAVA_HOME and TOMCAT_HOME in the tomcat.bat). However:I can see the index at "http://localhost:8080/index.htm" and also use the examples of JSP:they work!but when I try to make my JSpage it doesen't work!!I think it's a problem of startup.bat or tomcat.bat.I attacched a file in wich you can see the error showed me in startup execution.Who can help me?PLEASEE!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Manager in Tomcat 4.0
Try looking at $TOMCAT_HOME/conf/tomcat-users.xml J. Andrade. -Original Message- From: LUN [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 7:57 AM To: [EMAIL PROTECTED] Subject: Manager in Tomcat 4.0 Hi, I am using tomcat 4.0, how can I login to the manager, what is the user name and password, anyone can tell me where I can find . Thanks in Advance ! LUN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Fw: Time exceeded
HI,I don't know if the problem it's up to executing a servlet.I found the same problem many times executing an application on Oracle Db.I discovered that the problem was that sometimes the connection or the statement not close so the time exceeded depends on too much time opened connection(or statement).I suggest you to see if your connectiion and statement close also if your servlet throws an exception executing a query.And if you don't need to use "select" instruction use method:"executeUpdate(Str)"(return an int) instead of "executeQuery(Str).I hope that I could help you and you can help me! Bye,! Mariano Scardino > > Da: "Guillermo de Miguel" <[EMAIL PROTECTED]> > Data: 2001/02/09 Fri PM 12:21:12 GMT > A: <[EMAIL PROTECTED]> > Oggetto: Fw: Time exceeded > > > > Hi everyone, > I have a problem executing a servlet under Tomcat 3.2.1 and Apache 1.1.3. This >servlet is executing queries and the process consumes a lot of time. An advice from >Internet Explorer is show indicating that this server can't follow the task due to >time has excedeed. > I would like to know where must i fix a time limit, in my servlet or in tomcat, and >how to configure it. > A lot of thanks in advance. > > Hi everyone, I have a problem executing a servlet under Tomcat 3.2.1 and Apache 1.1.3. This servlet is executing queries and the process consumes a lot of time. An advice from Internet Explorer is show indicating that this server can't follow the task due to time has excedeed. I would like to know where must i fix a time limit, in my servlet or in tomcat, and how to configure it. A lot of thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Manager in Tomcat 4.0
Hi, I tried with the username and password which specified in the tomcat-user.xml file, but it is not working. Let me know how to find the administration user name and password. regards PATHY A.V. <[EMAIL PROTECTED]> > -Original Message- > From: Jefferson Oliveira Andrade [SMTP:[EMAIL PROTECTED]] > Sent: Friday, February 09, 2001 6:13 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Manager in Tomcat 4.0 > > Try looking at $TOMCAT_HOME/conf/tomcat-users.xml > > J. Andrade. > > -Original Message- > From: LUN [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 09, 2001 7:57 AM > To: [EMAIL PROTECTED] > Subject: Manager in Tomcat 4.0 > > > Hi, > I am using tomcat 4.0, how can I login to the manager, what > is the user name and password, anyone can tell me where I can find . > Thanks in Advance ! > LUN > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Manager in Tomcat 4.0
add the line to the tomcat-users.xml file then in server.xml change trusted="true" for the admin context and then use username admin and password admin. Matt > -Original Message- > From: Ananda Venkatapathy [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 09, 2001 11:54 AM > To: [EMAIL PROTECTED] > Subject: RE: Manager in Tomcat 4.0 > > > Hi, > > I tried with the username and password which specified in the > tomcat-user.xml file, but it is not working. Let me know how > to find the > administration user name and password. > > regards > PATHY A.V. > <[EMAIL PROTECTED]> > > > > > -Original Message- > > From: Jefferson Oliveira Andrade [SMTP:[EMAIL PROTECTED]] > > Sent: Friday, February 09, 2001 6:13 PM > > To: '[EMAIL PROTECTED]' > > Subject:RE: Manager in Tomcat 4.0 > > > > Try looking at $TOMCAT_HOME/conf/tomcat-users.xml > > > > J. Andrade. > > > > -Original Message- > > From: LUN [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 09, 2001 7:57 AM > > To: [EMAIL PROTECTED] > > Subject: Manager in Tomcat 4.0 > > > > > > Hi, > > I am using tomcat 4.0, how can I login to the manager, what > > is the user name and password, anyone can tell me where I can find . > > Thanks in Advance ! > > LUN > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > This e-mail may be confidential and may also be legally privileged. If you are not the intended recipient, please notify us immediately; you should not copy it or use it for any purpose, nor disclose it's contents to any person. E-mail may be subject to data corruption accidentally or deliberately. For this reason it is inappropriate to rely on advice contained in an e-mail without obtaining written confirmation of it first. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Manager in Tomcat 4.0
I changed as you specified. Its working. Thanks a lot PATHY A.V. <[EMAIL PROTECTED]> > -Original Message- > From: Dale, Matt [SMTP:[EMAIL PROTECTED]] > Sent: Friday, February 09, 2001 5:28 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Manager in Tomcat 4.0 > > > > > add the line > > > > to the tomcat-users.xml file > > then in server.xml change trusted="true" for the admin context and then > use > username admin and password admin. > > Matt > > > -Original Message- > > From: Ananda Venkatapathy [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 09, 2001 11:54 AM > > To: [EMAIL PROTECTED] > > Subject: RE: Manager in Tomcat 4.0 > > > > > > Hi, > > > > I tried with the username and password which specified in the > > tomcat-user.xml file, but it is not working. Let me know how > > to find the > > administration user name and password. > > > > regards > > PATHY A.V. > > <[EMAIL PROTECTED]> > > > > > > > > > -Original Message- > > > From: Jefferson Oliveira Andrade [SMTP:[EMAIL PROTECTED]] > > > Sent: Friday, February 09, 2001 6:13 PM > > > To: '[EMAIL PROTECTED]' > > > Subject: RE: Manager in Tomcat 4.0 > > > > > > Try looking at $TOMCAT_HOME/conf/tomcat-users.xml > > > > > > J. Andrade. > > > > > > -Original Message- > > > From: LUN [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, February 09, 2001 7:57 AM > > > To: [EMAIL PROTECTED] > > > Subject: Manager in Tomcat 4.0 > > > > > > > > > Hi, > > > I am using tomcat 4.0, how can I login to the manager, what > > > is the user name and password, anyone can tell me where I can find . > > > Thanks in Advance ! > > > LUN > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, email: [EMAIL PROTECTED] > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, email: [EMAIL PROTECTED] > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > > > This e-mail may be confidential and may also be legally privileged. > If you are not the intended recipient, please notify us immediately; you > should not copy it or use it for any purpose, > nor disclose it's contents to any person. E-mail may be subject to data > corruption accidentally or deliberately. > For this reason it is inappropriate to rely on advice contained in an > e-mail > without obtaining written confirmation of it first. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Location Error
I am using tomcat 3.2.1, when i run my jsp file its showing ERROR 500: LOCATION INTERNAL SERVLET ERROR If anybody knows send me a reply PATHY A.V. <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Recommendations for JSP development tools?
I also use Kawa 5.0 and tomcat and find they work well together. I definitely like Kawa in general as a Java IDE. Steve Buroff -Original Message- From: Kyle Robinson [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:14 PM To: '[EMAIL PROTECTED]' Subject: RE: Recommendations for JSP development tools? I prefer Kawa 5.0. And Tomcat as the app server (of course). They integrate nicely. See: http://www.allaire.com/Handlers/index.cfm?ID=18623&Method=Full -Original Message- From: John Coonrod [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 4:51 PM To: [EMAIL PROTECTED] Subject: Recommendations for JSP development tools? I'd like to improve the productivity of my people here. To date, I've done all my JSP development with a text editor. Has anyone had any luck with JSP and any of the FrontPage type programs (including FrontPage?). Any recommendations? Thanks. Dr. John Coonrod, Vice President, [EMAIL PROTECTED] The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Damned Configuration!!!
I'm a Java Developer,my name is Mariano Scardino. Now I need to work with JSP and so I would use TOMCAT.I downloaded it I made something to configure it(directory structure,modify to server.xml file,update the path for JAVA_HOME and TOMCAT_HOME in the tomcat.bat). However:I can see the index at "http://localhost:8080/index.htm" and also use the examples of JSP:they work!but when I try to make my JSpage it doesen't work!!I think it's a problem of startup.bat or tomcat.bat.Here is the message I see in the secon window when I execute startup.bat: Starting tomcat. Check logs/tomcat.log for error messages 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /admin ) 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( ) 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /test ) Error generating automatic apache configuration java.lang.NullPointerException: java.lang.NullPointerException: at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) at org.apache.tomcat.task.ApacheConfig.execute(Compiled Code) at org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217 ) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Error generating automatic Netscape configuration java.lang.NullPointerException : java.lang.NullPointerException: at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) at org.apache.tomcat.task.NSConfig.execute(Compiled Code) at org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:229 ) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) 2001-02-09 12:56:56 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-02-09 12:56:56 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 Who can help me? THANK you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Recommendations for JSP development tools?
JBuilder works well also. It's got Tomcat integrated into it. -Original Message- From: Steve Buroff [mailto:[EMAIL PROTECTED]] Sent: 9. febrúar 2001 12:18 To: [EMAIL PROTECTED] Subject: RE: Recommendations for JSP development tools? I also use Kawa 5.0 and tomcat and find they work well together. I definitely like Kawa in general as a Java IDE. Steve Buroff -Original Message- From: Kyle Robinson [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:14 PM To: '[EMAIL PROTECTED]' Subject: RE: Recommendations for JSP development tools? I prefer Kawa 5.0. And Tomcat as the app server (of course). They integrate nicely. See: http://www.allaire.com/Handlers/index.cfm?ID=18623&Method=Full -Original Message- From: John Coonrod [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 4:51 PM To: [EMAIL PROTECTED] Subject: Recommendations for JSP development tools? I'd like to improve the productivity of my people here. To date, I've done all my JSP development with a text editor. Has anyone had any luck with JSP and any of the FrontPage type programs (including FrontPage?). Any recommendations? Thanks. Dr. John Coonrod, Vice President, [EMAIL PROTECTED] The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Recommendations for JSP development tools?
I'm using homesite for editing jsp-pages. and if you want to write the code by your self, only supported by syntax highlighting and code-completion for html, it works very well. a drawback is, that code-completion for java is not supported (as it is with jbuilder or forte). -Ursprüngliche Nachricht- Von: John Coonrod [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 9. Februar 2001 01:51 An: [EMAIL PROTECTED] Betreff: Recommendations for JSP development tools? I'd like to improve the productivity of my people here. To date, I've done all my JSP development with a text editor. Has anyone had any luck with JSP and any of the FrontPage type programs (including FrontPage?). Any recommendations? Thanks. Dr. John Coonrod, Vice President, [EMAIL PROTECTED] The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Help with servlet mapping
Title: RE: Help with servlet mapping I've solved it. It seems that the file $TOMCAT_HOME/conf/web.xml is no longer considered in Tomcat 3.2.1. You have to put your web.xml in the Web-inf directory where your files are. Now I have one more problem: If I start Tomcat from the command-line, everything works fine. But, if I start it as a NT service, the servlets/JSP cannot access the database. The following error message is given: Starting tomcat. Check logs/tomcat.log for error messages SQL Exception opening DB connection:java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified URL: jdbc:odbc:workdb UserName: PUBLIC SQL State: IM002 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Vendor: 0 I have configured the wrapper.properties file according to the documentation, and everything but the database access seems to work. Can anyone help ? Should I change something in the server.xml file ? Thanks, Wesley PS: I'm using WinNT4sp6 and JDK1.3.0_01. -Original Message- From: Ribeiro, Wesley [CMPS:2852-A:EXCH] Sent: quinta-feira, 8 de fevereiro de 2001 13:28 To: Tomcat User mailing list Subject: Help with servlet mapping Hi ! Can you please help me solve the following problem (sorry if this is a naive question) : I'm trying to make Tomcat 3.2.1 to invoke a servlet (class myServlet in package com.mycompany) whenever I use this URL: http://myServer/myServlet In order to do that, I've added to the $TOMCAT_HOME/conf/web.xml: myServlet com.mycompany.myServlet myServlet /myServlet However, all I get is a 404 error when I try the URL above mentioned. The class com.mycompany.myServlet is in the CLASSPATH, and this used to work with Tomcat 3.1, so I don't know what I'm doing wrong. One thing I noticed is that the classes org.apache.tomcat.servlets.DefaultServlet and org.apache.tomcat.servlets.InvokerServlet are no longer part of $TOMCAT_HOME/lib/webserver.jar, although they continue to be mentioned in the default $TOMCAT_HOME/conf/web.xml file. Can this be the cause of this problem ? One other thing I noticed is that the $TOMCAT_HOME/conf/server.xml file has an entry like: className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/servlet/" /> If I remove or comment that, the servlet examples which come with the distribution stop working (i.e., the servlet examples work because of this entry, and not because of the $TOMCAT_HOME/conf/web.xml file). Thanks in advance for any help, Wesley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Keep Servlet Alive Indefinitely?
On Thu, 8 Feb 2001, schalk wrote: > Greetings: > >How can I keep my JDBC pool servlet alive, even if it hasn't been > used all day. It keeps being destroyed, and I suspect Tomcat 3.2.1 is > "garbage collecting" it. If so, how can I stop Tomcat from destroying > my servlet. > Just create some object that isn't going to be garbage collected and let that object have a reference to the servlet: the ObjectPreserver pattern. have fun, Sloot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat und IIS
I couldn't connect to the site yesterday when I sent this, that was the URL on my printed copy. To view the HOW-TO go to the Tomcat website, click on CVS Repositories under Get Involved on the left menu. From that, select jakarta-tomcat. This will put you into the WebCVS interface. Select the src project and then the doc project. The file is tomcat-iis-howto.html. It is currently 10 hours old (someone made a change in the past 10 hours). Randy -Original Message- From: Lifeng Xu [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 2:59 PM To: '[EMAIL PROTECTED]' Subject: RE: tomcat und IIS I got a "page not found (HTTP 404 error)" when I click this link. I wonder if their site is down? Lifeng -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:23 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS That would be the Tomcat IIS HowTo. Its at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l. It says that it only works with IIS/PWS 4, but it also works for IIS 5. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 9:19 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS do u know where i can find how o install tomcat(version?) with IIS4? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 8 février 2001 14:03 À : [EMAIL PROTECTED] Objet : RE: tomcat und IIS As another current thread states, yes you can still run ASP and JSP, but you must be careful - if the pattern of the URL matches something in the config file then Tomcat will see it and not IIS's ASP engine. Randy -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:59 AM To: [EMAIL PROTECTED] Subject: RE: tomcat und IIS In this case IIS will run only in JSP no longer in ASP? or will it be possible to develop in ASP and in JSP? -Message d'origine- De : Randy Layman [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 8 février 2001 13:16 À : [EMAIL PROTECTED] Objet : RE: tomcat und IIS Yes its possible. Check the registry entries (case and white space matters). Also, check that you have the full dll (downloading with Netscape will corrupt, I would recommend the zip file, just to be safe) Randy -Original Message- From: Inga Schuetz [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:38 AM To: [EMAIL PROTECTED] Subject: tomcat und IIS Hello, does someone know, if it is possible to use tomcat together with IIS 5 und Windows 2000? I have set the ISAPI Filter, and edited the regidtry, but I still have a red arrow. It says that the dll was not loaded. Inga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: making a diary
> I've figured out how to make a calendar using JSP now...however, i was > wondering if there was a way to make something like a diary using the > calendar? > i would need to grab some data from a database and match it > up to specific > dates on the calendar so that they can be displayed in the > right place ad > time. This SEEMS to be a very non-Tomcat question IMHO. In fact this seems like a programming theory and free of all specific languages kind of question. I HIGHLY recommend finding a good java resource(book, site, a class, etc...) to learn good java programming techniques before jumping into servlets/jsp. In otherwords, first study some programming theory then move onto the java core API(i.e. getting familiar with the java.lang, java.io, etc... classes) then once your familiar with these topics(and only then) move onto the servlet API and Tomcat. A good guideline for what belongs here is if the entire scope of your question can be answered without using the Tomcat engine and/or servlet/jsp technology/api then it probably doesn't really belong here. In other words the programming logic for your question can be resolved using the java core api and jdbc and only the presentation needs to be resolved in jsp which is somwhat trivial. This list should be reserved for Tomcat topics and Tomcat related topics and this is REALLY not a Tomcat topic. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
mod_jk on Tru64 kills Apache
Hello, I have successfully compiled mod_jk.so on a Tru64 v4.0D box for Apache 1.3.17 but loading the module seems to "kill" Apache without any error messages. In fact, Apache reports that it has started but there is no .pid file and indeed no process for it running on my system. I have seen two more postings on this in the archive but no responses. Has anyone successfully loaded mod_jk.so on Tru64? Many regards, Bill Antoniadis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Who can help me??
I'm a Java Developer,my name is Mariano Scardino. Now I need to work with JSP and so I would use TOMCAT.I downloaded it I made something to configure it(directory structure,modify to server.xml file,update the path for JAVA_HOME and TOMCAT_HOME in the tomcat.bat). However:I can see the index at "http://localhost:8080/index.htm" and also use the examples of JSP:they work!but when I try to make my JSpage it doesen't work!!I think it's a problem of startup.bat or tomcat.bat.Here is the message I see in the secon window when I execute startup.bat: Starting tomcat. Check logs/tomcat.log for error messages 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /admin ) 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( ) 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /test ) Error generating automatic apache configuration java.lang.NullPointerException: java.lang.NullPointerException: at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) at org.apache.tomcat.task.ApacheConfig.execute(Compiled Code) at org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217 ) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Error generating automatic Netscape configuration java.lang.NullPointerException : java.lang.NullPointerException: at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) at org.apache.tomcat.task.NSConfig.execute(Compiled Code) at org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:229 ) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) 2001-02-09 12:56:56 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-02-09 12:56:56 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 Who can help me? THANK you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Help with servlet mapping
You probably configured workdb as a *User* DSN under ODBC. Either configure your service to run using the same userid as the one you defined your datasource for, or use a *System* DSN. Luc Vanlerberghe Wesley Ribeiro wrote: > > I've solved it. It seems that the file $TOMCAT_HOME/conf/web.xml is no > longer considered in Tomcat 3.2.1. > You have to put your web.xml in the Web-inf directory where your files > are. > Now I have one more problem: > If I start Tomcat from the command-line, everything works fine. But, > if I start it as a NT service, the servlets/JSP cannot > > access the database. The following error message is given: > > Starting tomcat. Check logs/tomcat.log for error messages > SQL Exception opening DB connection:java.sql.SQLException: > [Microsoft][ODBC Driver Manager] Data source name not found and no > default driver specified > > URL: jdbc:odbc:workdb > UserName: PUBLIC > SQL State: IM002 > Message: [Microsoft][ODBC Driver Manager] Data source name not found > and no default driver specified > Vendor: 0 > > I have configured the wrapper.properties file according to the > documentation, and everything but the database access seems to work. > > Can anyone help ? Should I change something in the server.xml file ? > Thanks, > > Wesley > > PS: I'm using WinNT4sp6 and JDK1.3.0_01. > > -Original Message- > From: Ribeiro, Wesley [CMPS:2852-A:EXCH] > Sent: quinta-feira, 8 de fevereiro de 2001 13:28 > To: Tomcat User mailing list > Subject:Help with servlet mapping > > Hi ! > > Can you please help me solve the following problem (sorry if this > is a naive > question) : > > I'm trying to make Tomcat 3.2.1 to invoke a servlet (class > myServlet in > package com.mycompany) > whenever I use this URL: http://myServer/myServlet > In order to do that, I've added to the $TOMCAT_HOME/conf/web.xml: > > > > myServlet > > > com.mycompany.myServlet > > > > > > myServlet > > > /myServlet > > > > However, all I get is a 404 error when I try the URL above > mentioned. The > class com.mycompany.myServlet is in > the CLASSPATH, and this used to work with Tomcat 3.1, so I don't > know what > I'm doing wrong. > One thing I noticed is that the classes > org.apache.tomcat.servlets.DefaultServlet and > org.apache.tomcat.servlets.InvokerServlet are no longer part of > $TOMCAT_HOME/lib/webserver.jar, although they > continue to be mentioned in the default $TOMCAT_HOME/conf/web.xml > file. Can > this be the cause of this problem ? > One other thing I noticed is that the > $TOMCAT_HOME/conf/server.xml file has > an entry like: > > > className="org.apache.tomcat.request.InvokerInterceptor" > debug="0" prefix="/servlet/" /> > > If I remove or comment that, the servlet examples which come with > the > distribution stop working (i.e., the servlet > examples work because of this entry, and not because of the > $TOMCAT_HOME/conf/web.xml file). > Thanks in advance for any help, > > Wesley > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, email: > [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Context Administrator login
I'm having trouble logging in as Context Administrator. I have even used the tomcat-users.conf file for reference but that did not help as well. A quick reply would be greatly appreciated. Thanks. Steve Gramenopoulos Software Engineer Veridian Information Solutionz _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Who can help me??
what tomcat version do you use? try to place jsp files in tomcat/webbapps/root directory and then try to get jsp files from your browser. Arunas Andriulaitis Programmer No Magic Gedimino g. 47-407, 3000 Kaunas P.O. box 2166, LT-3000, Kaunas Phone: +370 7 324032 Fax: +370 7 320670 e-mail: [EMAIL PROTECTED] WWW: http://www.nomagic.com > I'm a Java Developer,my name is Mariano Scardino. > Now I need to work with JSP and so I would use TOMCAT.I downloaded it I made > something to configure it(directory structure,modify to server.xml file,update > the path for JAVA_HOME and TOMCAT_HOME in the tomcat.bat). > However:I can see the index at "http://localhost:8080/index.htm" and also use > the examples of JSP:they work!but when I try to make my JSpage it doesen't > work!!I think it's a problem of startup.bat or tomcat.bat.Here is the message I > see in the secon window when I execute startup.bat: > > Starting tomcat. Check logs/tomcat.log for error messages > 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /admin ) > 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( ) > 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /test ) > Error generating automatic apache configuration java.lang.NullPointerException: > > java.lang.NullPointerException: > at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) > at org.apache.tomcat.task.ApacheConfig.execute(Compiled Code) > at > org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217 > ) > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) > Error generating automatic Netscape configuration > java.lang.NullPointerException > : > java.lang.NullPointerException: > at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) > at org.apache.tomcat.task.NSConfig.execute(Compiled Code) > at > org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:229 > ) > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) > 2001-02-09 12:56:56 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 > 2001-02-09 12:56:56 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 > > > Who can help > me? > THANK you > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Who can help me??
I'm sure there is a better solution, but what I did was just put my jsps in the examples folder! = Original Message from [EMAIL PROTECTED] at 2/09/01 8:34 am >I'm a Java Developer,my name is Mariano Scardino. >Now I need to work with JSP and so I would use TOMCAT.I downloaded it I made >something to configure it(directory structure,modify to server.xml file,update >the path for JAVA_HOME and TOMCAT_HOME in the tomcat.bat). >However:I can see the index at "http://localhost:8080/index.htm" and also use >the examples of JSP:they work!but when I try to make my JSpage it doesen't >work!!I think it's a problem of startup.bat or tomcat.bat.Here is the message I >see in the secon window when I execute startup.bat: > >Starting tomcat. Check logs/tomcat.log for error messages >2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /admin ) >2001-02-09 12:56:55 - ContextManager: Adding context Ctx( ) >2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /test ) >Error generating automatic apache configuration java.lang.NullPointerException: > >java.lang.NullPointerException: >at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) >at org.apache.tomcat.task.ApacheConfig.execute(Compiled Code) >at >org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217 >) >at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) >at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) >Error generating automatic Netscape configuration >java.lang.NullPointerException >: >java.lang.NullPointerException: >at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) >at org.apache.tomcat.task.NSConfig.execute(Compiled Code) >at >org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:229 >) >at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) >at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) >2001-02-09 12:56:56 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 >2001-02-09 12:56:56 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 > > >Who can help >me? >THANK you > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Who can help me??
You must change the $TOMCAT_HOME/conf/server.xml and add an entry like this: Where "appname" is the virtual name of your application. It will be accessed as "http://www.yoursite.abc:8080/appname". For some weird reason it does not seams to work on Windows if you start Tomcat as a service, but it does work if you start it by the comman line. Your application must have a sub-directory WEB-INT like: Z:\masterdir\apphome\WEB-INF\web.xml Z:\masterdir\apphome\WEB-INF\classes\*.class Z:\masterdir\apphome\WEB-INF\lib\*.jar J. Andrade. P.S. If someone knows how to make it works with tomcat running as a service, and how to make it to be dinamicaly recognized by the server I whould like to hear about it. -Original Message- From: John Coonrod [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 11:45 AM To: [EMAIL PROTECTED] Subject: RE: Who can help me?? I'm sure there is a better solution, but what I did was just put my jsps in the examples folder! = Original Message from [EMAIL PROTECTED] at 2/09/01 8:34 am >I'm a Java Developer,my name is Mariano Scardino. >Now I need to work with JSP and so I would use TOMCAT.I downloaded it I made >something to configure it(directory structure,modify to server.xml file,update >the path for JAVA_HOME and TOMCAT_HOME in the tomcat.bat). >However:I can see the index at "http://localhost:8080/index.htm" and also use >the examples of JSP:they work!but when I try to make my JSpage it doesen't >work!!I think it's a problem of startup.bat or tomcat.bat.Here is the message I >see in the secon window when I execute startup.bat: > >Starting tomcat. Check logs/tomcat.log for error messages >2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /admin ) >2001-02-09 12:56:55 - ContextManager: Adding context Ctx( ) >2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /test ) >Error generating automatic apache configuration java.lang.NullPointerException: > >java.lang.NullPointerException: >at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) >at org.apache.tomcat.task.ApacheConfig.execute(Compiled Code) >at >org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217 >) >at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) >at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) >Error generating automatic Netscape configuration >java.lang.NullPointerException >: >java.lang.NullPointerException: >at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) >at org.apache.tomcat.task.NSConfig.execute(Compiled Code) >at >org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:229 >) >at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) >at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) >2001-02-09 12:56:56 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 >2001-02-09 12:56:56 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 > > >Who can help >me? >THANK you > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Re: Who can help me??
The version is 3.2.1 > > Da: "Arunas Andriulaitis" <[EMAIL PROTECTED]> > Data: 2001/02/09 Fri PM 03:41:58 GMT > A: <[EMAIL PROTECTED]> > Oggetto: Re: Who can help me?? > > what tomcat version do you use? > > try to place jsp files in tomcat/webbapps/root directory > and then try to get jsp files from your browser. > > Arunas Andriulaitis > Programmer > No Magic > Gedimino g. 47-407, 3000 Kaunas > P.O. box 2166, LT-3000, Kaunas > Phone: +370 7 324032 Fax: +370 7 320670 > e-mail: [EMAIL PROTECTED] > WWW: http://www.nomagic.com > > > > I'm a Java Developer,my name is Mariano Scardino. > > Now I need to work with JSP and so I would use TOMCAT.I downloaded it I > made > > something to configure it(directory structure,modify to server.xml > file,update > > the path for JAVA_HOME and TOMCAT_HOME in the tomcat.bat). > > However:I can see the index at "http://localhost:8080/index.htm" and also > use > > the examples of JSP:they work!but when I try to make my JSpage it > doesen't > > work!!I think it's a problem of startup.bat or tomcat.bat.Here is the > message I > > see in the secon window when I execute startup.bat: > > > > Starting tomcat. Check logs/tomcat.log for error messages > > 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /admin ) > > 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( ) > > 2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /test ) > > Error generating automatic apache configuration > java.lang.NullPointerException: > > > > java.lang.NullPointerException: > > at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) > > at org.apache.tomcat.task.ApacheConfig.execute(Compiled Code) > > at > > org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217 > > ) > > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) > > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) > > Error generating automatic Netscape configuration > > java.lang.NullPointerException > > : > > java.lang.NullPointerException: > > at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) > > at org.apache.tomcat.task.NSConfig.execute(Compiled Code) > > at > > org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:229 > > ) > > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) > > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) > > 2001-02-09 12:56:56 - PoolTcpConnector: Starting HttpConnectionHandler on > 8080 > > 2001-02-09 12:56:56 - PoolTcpConnector: Starting Ajp12ConnectionHandler on > 8007 > > > > > > Who can help > > me? > > THANK you > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Recommendations for JSP development tools?
Hi everyone, I'm using Sun's Forte for Java Community Edition both for Java Applications development and for JSP/JavaBean/Servlet development and I find it a very nice product. I wonder how Sun can keep a similar product completely free! Sal. - Original Message - From: "Steve Buroff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 09, 2001 1:18 PM Subject: RE: Recommendations for JSP development tools? > I also use Kawa 5.0 and tomcat and find they work well > together. I definitely like Kawa in general as a Java > IDE. > > Steve Buroff > > -Original Message- > From: Kyle Robinson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 08, 2001 8:14 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Recommendations for JSP development tools? > > > I prefer Kawa 5.0. And Tomcat as the app server (of course). They > integrate nicely. > > See: > > http://www.allaire.com/Handlers/index.cfm?ID=18623&Method=Full > > -Original Message- > From: John Coonrod [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 08, 2001 4:51 PM > To: [EMAIL PROTECTED] > Subject: Recommendations for JSP development tools? > > > I'd like to improve the productivity of my people here. To date, I've done > all my JSP development with a text editor. > > Has anyone had any luck with JSP and any of the FrontPage type programs > (including FrontPage?). > > Any recommendations? > > Thanks. > > > Dr. John Coonrod, Vice President, [EMAIL PROTECTED] > The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Context Administrator login problem,,, HELP!
I am still having no luck logging in. I have even modified the tomcat-users.xml file but with no luck. I am using Tomcat version 3.2.1 on an SGI machine. I have tried the following combos: Username: tomcat Password: tomcat Username: role1 Password:tomcat Username: both Password:tomcat _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Recommendations for JSP development tools?
On Fri, 9 Feb 2001, [iso-8859-1] Stefán F. Stefánsson wrote: > JBuilder works well also. It's got Tomcat integrated into it. The free, open-source written-in-Java text editor named jEdit also works real nicely for editing JSPs. http://jedit.sourceforge.net/ Joe Laffey LAFFEY Computer Imaging St. Louis, MO - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Updating cookies in servlets and JSPs
I have a class used by a page that needs to update the value of an existing cookie. It should be simple but the browser is not receiving the updated cookie. I have even tried making a brand new cookie with the same attributes (except the value) and it is still not getting there. If I change the name the a new cookie is being received. What am I missing. I have read the spec and the javadocs, neither describe the behavior I am experiencing Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
jserv/tomcat
Hello I'm having 2 linux box, one running apache/jserv (=firsthost), the other running apache and 2 tomcat(8005&8007) (=secondhost). Is it possible to mount on firsthost a context from secondhost ? apache/jserv host (firsthost): httpd.conf apjservmount /app ajp12://secondhost:8007/app apache/tomcat host (8005): server.xml context path="webapps/app" tia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Updating cookies in servlets and JSPs
Let's see the code snippet you are using. --- Joseph Carew <[EMAIL PROTECTED]> wrote: > I have a class used by a page that needs to update > the value of an > existing cookie. It should be simple but the > browser is not receiving > the updated cookie. I have even tried making a > brand new cookie with > the same attributes (except the value) and it is > still not getting > there. If I change the name the a new cookie is > being received. What > am I missing. I have read the spec and the > javadocs, neither describe > the behavior I am experiencing > > Thanks > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, email: > [EMAIL PROTECTED] > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Help with servlet mapping
Title: RE: Help with servlet mapping That solved it. Thanks a lot, Wesley -Original Message- From: Luc Vanlerberghe [SMTP:[EMAIL PROTECTED]] Sent: sexta-feira, 9 de fevereiro de 2001 11:43 To: [EMAIL PROTECTED] Subject: Re: Help with servlet mapping You probably configured workdb as a *User* DSN under ODBC. Either configure your service to run using the same userid as the one you defined your datasource for, or use a *System* DSN. Luc Vanlerberghe Wesley Ribeiro wrote: > > I've solved it. It seems that the file $TOMCAT_HOME/conf/web.xml is no > longer considered in Tomcat 3.2.1. > You have to put your web.xml in the Web-inf directory where your files > are. > Now I have one more problem: > If I start Tomcat from the command-line, everything works fine. But, > if I start it as a NT service, the servlets/JSP cannot > > access the database. The following error message is given: > > Starting tomcat. Check logs/tomcat.log for error messages > SQL Exception opening DB connection:java.sql.SQLException: > [Microsoft][ODBC Driver Manager] Data source name not found and no > default driver specified > > URL: jdbc:odbc:workdb > UserName: PUBLIC > SQL State: IM002 > Message: [Microsoft][ODBC Driver Manager] Data source name not found > and no default driver specified > Vendor: 0 > > I have configured the wrapper.properties file according to the > documentation, and everything but the database access seems to work. > > Can anyone help ? Should I change something in the server.xml file ? > Thanks, > > Wesley > > PS: I'm using WinNT4sp6 and JDK1.3.0_01.
WARP Connection question (Tomcat 4.0).
I am running Tomcat 4.0 as Tomcat-Apache service using Warp Connector (mod_webapp.so). I am just wondering why there are no questions about this module and how to use it provided to this list? Is there another list covering this feature? I experience several problems running my configuration: - java beans scope variable seems not to do that it should according to the JSP 1.2 Specification (new session on each request despite of the scope="session") - I can't get work the form authentication and/or JDBC Realm with the Tomcat-Apache service (for instance, how can man specify the context dependent attributes for this service) My environment is: OS: Linux RedHat 7.0 Tomcat 4.0b1 mod_webapp.so (to connect Tomcat and Apache) I would like to know if any have some experience using Warp connector for Apache and where to find some more extended examples on this thema. Any comments and suggestions will be appreciated. janis --- Janis Gailis Senior IT consultant, ITRessurs as Janis Gailis, Gangdalsveien 14, 4618 Kristiansand S, Norway +47-90878829 (voice/sms), +47-37298001 (fax) [EMAIL PROTECTED] --- ITRessurs: http://www.itr.no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Context Administrator login problem,,, HELP!
add the admin role to one of your users and then make trusted="true" for the admin context. You should now be able to log in with the username and password that you gave the admin role. Matt > -Original Message- > From: Steve G [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 09, 2001 2:13 PM > To: [EMAIL PROTECTED] > Subject: Context Administrator login problem,,, HELP! > > > I am still having no luck logging in. I have even modified the > tomcat-users.xml file but with no luck. I am using Tomcat > version 3.2.1 on > an SGI machine. I have tried the following combos: > > Username: tomcat Password: tomcat > > Username: role1 Password:tomcat > > Username: both Password:tomcat > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > This e-mail may be confidential and may also be legally privileged. If you are not the intended recipient, please notify us immediately; you should not copy it or use it for any purpose, nor disclose it's contents to any person. E-mail may be subject to data corruption accidentally or deliberately. For this reason it is inappropriate to rely on advice contained in an e-mail without obtaining written confirmation of it first. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
EASY TO SOLVE ERROR PLEASE??????
Hi all Im pretty new to JSP but I have got tomcat and a couple of JSP pages and beans working. The site I am designing for my project contains 2 frames, the left hand frame contains the links and the right hand frame contains the targets. On the left I have a 2 links, the first called 'set availability' and the second 'view availability'. On my right hand frame in the 'set availability' page when I set the availability and click submit, a response page is brought up at the bottom of the 'set availability' pageas follows: "YOU SET AVAILABILITY AS BEING 15" (or whatever the user set it at) My problem is that when I click 'view availability' and try to bring up the variable that has been set in the set availability page. An error as follows comes up "Tried to do an operation on a null object." Does this have to do with scope="session" scope="request" or scope="page" I think the problem is that the bean is only set while the set Availability page is loaded because if I got to another page and then back to the setAvailability page the response at the bottom of the page is gone Anyone got any ideas at all, Id say its a fairly easy problem to solve? Big Thanks in advance, Michael _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
PATH INFO with JSP pages.
I’ve got some JSP’s running for an on-line application to the College that I work for. We have a select list of data that the applicant can select from, it’s quite huge (3,000+ rows). This select list makes the page balloon to over 2.5Mb of just HTML text. I’m looking at shortening the list to certain sections of the alphabet by passing the alphabet range as extra path info. However, when I try this I get a ‘404’ Error. I was wondering if there is a setting in Tomcat that needs to be setup for extra path info to be translated properly. = Bradley M. Handy | 106 E. Main St. Programmer Analyst II | Station 22 Spring Arbor College | Spring Arbor, MI 49283 - Phone: (517) 750-6675 (off-campus number) 1675 (on-campus number) Email: [EMAIL PROTECTED] [EMAIL PROTECTED]
RE: PATH INFO with JSP pages.
I don't believe that you can get the path info for JSPs - there is a mapping in the web.xml that basically maps *.jsp to the servlet that compiles and runs JSP files. I belive to handle PathInfo you need to use a servlet. Something that you might try would be page.jsp?subsection=a - that would allow you to still use JSP and divide the sections. Randy -Original Message- From: Brad Handy [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 10:12 AM To: Tomcat List Subject: PATH INFO with JSP pages. I've got some JSP's running for an on-line application to the College that I work for. We have a select list of data that the applicant can select from, it's quite huge (3,000+ rows). This select list makes the page balloon to over 2.5Mb of just HTML text. I'm looking at shortening the list to certain sections of the alphabet by passing the alphabet range as extra path info. However, when I try this I get a '404' Error. I was wondering if there is a setting in Tomcat that needs to be setup for extra path info to be translated properly. = Bradley M. Handy | 106 E. Main St. Programmer Analyst II| Station 22 Spring Arbor College | Spring Arbor, MI 49283 - Phone: (517) 750-6675 (off-campus number) 1675 (on-campus number) Email: [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk on Tru64 kills Apache
Title: RE: mod_jk on Tru64 kills Apache Try "apachectl configtest" -Original Message- From: Bill Antoniadis [mailto:[EMAIL PROTECTED]] Sent: None To: [EMAIL PROTECTED] Subject: mod_jk on Tru64 kills Apache Hello, I have successfully compiled mod_jk.so on a Tru64 v4.0D box for Apache 1.3.17 but loading the module seems to "kill" Apache without any error messages. In fact, Apache reports that it has started but there is no .pid file and indeed no process for it running on my system. I have seen two more postings on this in the archive but no responses. Has anyone successfully loaded mod_jk.so on Tru64? Many regards, Bill Antoniadis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
404 problems
Can anyone shed some light on this problem? using apache + tomcat(mod_jk) + rh6.2 trying to access the servlet examples from the tomcat default page works. however, trying to access the jsp examples (numguess) from the same page gives 404 errors. my jasper.log shows... 2001-02-08 03:39:49 - The scratchDir you specified: /usr/local/jakarta/jakarta-tomcat-3.2.1/work/localhost_8080 is unusable. 2001-02-08 03:39:49 - Scratch dir for the JSP engine is: /usr/local/jakarta/jakarta-tomcat-3.2.1/work/localhost_8080 2001-02-08 03:39:49 - IMPORTANT: Do not modify the generated servlets 2001-02-08 03:39:49 - The scratchDir you specified: /usr/local/jakarta/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples is unusable. 2001-02-08 03:39:49 - The scratchDir you specified: /usr/local/jakarta/jakarta-tomcat-3.2.1/work/localhost_8080%2Fadmin is unusable. 2001-02-08 03:39:49 - The scratchDir you specified: /usr/local/jakarta/jakarta-tomcat-3.2.1/work/localhost_8080%2Ftest is unusable. 2001-02-09 10:36:47 -ServletPath: /jsp/num/numguess.jsp 2001-02-09 10:36:47 - PathInfo: null 2001-02-09 10:36:47 - RealPath: /usr/local/jakarta/jakarta-tomcat-3.2.1/webapps/examples/jsp/num/numguess.js p 2001-02-09 10:36:47 - RequestURI: /examples/jsp/num/numguess.jsp 2001-02-09 10:36:47 -QueryString: null 2001-02-09 10:36:47 - Request Params: 2001-02-09 10:36:47 - Classpath according to the Servlet Engine is: /usr/local/jakarta/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes david ** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re:RE: Who can help me??
In fact, Tomcat running as a service in NT does recognize contexts defined in that way. The problem with your configuration seems to be that you're referencing a drive called 'Z' , which (I guess) is not in your local machine. When a service runs, the machine doesn't have the network drive or directory mappings that you have (as a user of the system), so it will be unable to know what drive 'Z' means. Please try it with a local directory. bye. diego. -- Diego Rodrigo Vates S.A. [EMAIL PROTECTED] +54(11)4346-6658 Reply Separator Subject:RE: Who can help me?? Author: [EMAIL PROTECTED] Date: 09/02/2001 3:21 PM Your application must have a sub-directory WEB-INT like: Z:\masterdir\apphome\WEB-INF\web.xml Z:\masterdir\apphome\WEB-INF\classes\*.class Z:\masterdir\apphome\WEB-INF\lib\*.jar J. Andrade. P.S. If someone knows how to make it works with tomcat running as a service, and how to make it to be dinamicaly recognized by the server I whould like to hear about it. -Original Message- From: John Coonrod [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 11:45 AM To: [EMAIL PROTECTED] Subject: RE: Who can help me?? I'm sure there is a better solution, but what I did was just put my jsps in the examples folder! = Original Message from [EMAIL PROTECTED] at 2/09/01 8:34 am >I'm a Java Developer,my name is Mariano Scardino. >Now I need to work with JSP and so I would use TOMCAT.I downloaded it I made >something to configure it(directory structure,modify to server.xml file,update >the path for JAVA_HOME and TOMCAT_HOME in the tomcat.bat). >However:I can see the index at "http://localhost:8080/index.htm" and also use >the examples of JSP:they work!but when I try to make my JSpage it doesen't >work!!I think it's a problem of startup.bat or tomcat.bat.Here is the message I >see in the secon window when I execute startup.bat: > >Starting tomcat. Check logs/tomcat.log for error messages >2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /admin ) >2001-02-09 12:56:55 - ContextManager: Adding context Ctx( ) >2001-02-09 12:56:55 - ContextManager: Adding context Ctx( /test ) >Error generating automatic apache configuration java.lang.NullPointerException: > >java.lang.NullPointerException: >at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) >at org.apache.tomcat.task.ApacheConfig.execute(Compiled Code) >at >org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217 >) >at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) >at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) >Error generating automatic Netscape configuration >java.lang.NullPointerException >: >java.lang.NullPointerException: >at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289) >at org.apache.tomcat.task.NSConfig.execute(Compiled Code) >at >org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:229 >) >at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200) >at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) >2001-02-09 12:56:56 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 >2001-02-09 12:56:56 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 > > >Who can help >me? >THANK you > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: PATH INFO with JSP pages.
Thanks for the help. I had thought about using the "page.jsp?subsection=a-c", but I'm trying to avoid using the get method. IMOHO the GET method is a bit too insecure. I do have a different idea to use (that actually my boss will like better), but thanks for info. On a different note... I went to the web site of "aswethink". I really liked the SmartLayout Manager. I've been looking for a layout manager that will give me more control on the how my components will be laid out in my forms. = Bradley M. Handy | 106 E. Main St. Programmer Analyst II| Station 22 Spring Arbor College | Spring Arbor, MI 49283 - Phone: (517) 750-6675 (off-campus number) 1675 (on-campus number) Email: [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 9:44 AM To: [EMAIL PROTECTED] Subject: RE: PATH INFO with JSP pages. I don't believe that you can get the path info for JSPs - there is a mapping in the web.xml that basically maps *.jsp to the servlet that compiles and runs JSP files. I belive to handle PathInfo you need to use a servlet. Something that you might try would be page.jsp?subsection=a - that would allow you to still use JSP and divide the sections. Randy -Original Message- From: Brad Handy [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 10:12 AM To: Tomcat List Subject: PATH INFO with JSP pages. I've got some JSP's running for an on-line application to the College that I work for. We have a select list of data that the applicant can select from, it's quite huge (3,000+ rows). This select list makes the page balloon to over 2.5Mb of just HTML text. I'm looking at shortening the list to certain sections of the alphabet by passing the alphabet range as extra path info. However, when I try this I get a '404' Error. I was wondering if there is a setting in Tomcat that needs to be setup for extra path info to be translated properly. = Bradley M. Handy | 106 E. Main St. Programmer Analyst II| Station 22 Spring Arbor College | Spring Arbor, MI 49283 - Phone: (517) 750-6675 (off-campus number) 1675 (on-campus number) Email: [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Time exceeded
I ran into this problem when I was doing something that required a longer time than the standard timeout. The solution was to change the Timout directive in the Apache httpd.conf file. I think the default is 300 -- this is in seconds so it means 5 minutes, so I changed mine to 600 and everything worked fine. Hope this helps, Yoav -Original Message-From: Guillermo de Miguel [mailto:[EMAIL PROTECTED]]Sent: Friday, February 09, 2001 6:21 AMTo: [EMAIL PROTECTED]Subject: Fw: Time exceeded Hi everyone, I have a problem executing a servlet under Tomcat 3.2.1 and Apache 1.1.3. This servlet is executing queries and the process consumes a lot of time. An advice from Internet Explorer is show indicating that this server can't follow the task due to time has excedeed. I would like to know where must i fix a time limit, in my servlet or in tomcat, and how to configure it. A lot of thanks in advance.
URL Rewrite between Apache & Tomcat (ah,ah it's very funny to configure)
Hello all, I have convince my boss that we must use Tomcat for our institutionnal webserver but there is a really bad news what i haven't detected before : mod_jserv don't manage the rewrite rules of Apache :- So my question is : will i have more luck with mod_jk ? (the handler could retrieve the local path of a file from Apache for example ?) you know it's very important to manage the rewrite rules 'cause in a big server, for maintaining old page (and preserving the bookmarks of our visitors), we must use the rewrite rules. So any help would be really appreciated, Best regards, -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Servlet Mapping Problem -- ???
I have a strange problem with Tomcat 3.2 that I can't figure out... I have two servers, a development server and a production server. The development server is working just fine. I have a servlet called marketCustomerVendorController that is mapped to /marketCustomerVendorController as seen here from web.xml: marketCustomerVendorController /marketCustomerVendorController On the dev box, it works great. Yesterday I tried to push the WAR (generated by Ant via ./build dist) out to the production box. When Tomcat had brought up the new Web app, the mapping doesn't work (404). If I type in context/servlet/marketCustomerVendorController it does work however. I double-checked the web.xml file in the webapps/context_name/WEB-INF/ directory to make sure that it was correct and it is. tomcat-apache.conf is the same on both boxes... I'm sure it's some config option somewhere but I went through it and I can't find it. Both boxes seem to be setup the same way... Any ideas? Hunter Hillegas, MCP Web Engineer / System Administrator - Jacob Stern & Sons, Inc. [EMAIL PROTECTED] 805-565-1411 PH * 805-565-8684 FAX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Jasper losing classpath?!?
Hi all, I've been merrily using Tomcat for some time now (v3.2.1) and have just come accross a rather bizarre one... Jasper seems to 'forget' the classpath after a while and refuses to compile new JSPs. All is well after startup, things run smoothly for an hour or two, and Tomcat will continue to serve already compiled JSPs. However, if I haven't used a given JSP after a couple of hours (not sure of a specific time) it will not compile. Jasper throws a 'Class not Found' JasperException and that's it. If Tomcat is restarted the same JSP will compile and run quite happily. Is this a known problem with Jasper, or am I just doing something really dumb with the config. It's not a major problem, as I should think that the production box can be 'pre-hit' to compile all the JSPs beforehand, and is unlikely to be updated often enough to warrant dynamic recompilation, but it'd be nice to know. Cheers, Duncan. This message contains information which may be privileged and confidential and subject to legal privilege. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by e-mail, facsimile, or telephone and return or destroy the original message. Sopheon and its officers are not responsible for any statements or material in this e-mail and in any attachment to it which might give rise to any criminal or civil claim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: URL Rewrite between Apache & Tomcat (ah,ah it's very funny toconfigure)
You may want to check my installation logs and see how I do rewrite. Rewrite works with mod_jk, but you need to load mod_jk module BEFORE mod_rewrite. Check the http://www.ccl.net/cca/software/UNIX/apache/ namely: http://www.ccl.net/cca/software/UNIX/apache/apacheRH7.0/README.html Jan [EMAIL PROTECTED] On Fri, 9 Feb 2001, Ludovic Maitre wrote: > Hello all, > > I have convince my boss that we must use Tomcat for our institutionnal > webserver but there is a really bad news > what i haven't detected before : mod_jserv don't manage the rewrite > rules of Apache :- > > So my question is : will i have more luck with mod_jk ? (the handler > could retrieve the local path of a file from Apache for example ?) > > you know it's very important to manage the rewrite rules 'cause in a big > server, for maintaining old page (and preserving the bookmarks of our > visitors), we must use the rewrite rules. > > So any help would be really appreciated, > > Best regards, > > -- > [EMAIL PROTECTED] > > INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 > 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Need some advice....
Hello, I'm not really sure I'm writing to the right place for help, please disregard if I sent this in error. I'm new to this technology so I need some direction. I trying to muddle my way through all the documentation, but there is so much I don't know (I'm just a student). I have wrote an active page servlet using sun's forte. I downloaded JSDK and have my servlet working. I would like to use apache to act as my server. I downloaded the apache httpd server and it works great for html pages, but does not support servlets... What do I need to add/download to get apache to support servlets which use JDBC-ODBC databases? I would appreciate any help you can provide. Thanks, Rob Lenart [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
HELP ANYONE PLEASE??
Hi all Im pretty new to JSP but I have got tomcat and a couple of JSP pages and beans working. The site I am designing for my project contains 2 frames, the left hand frame contains the links and the right hand frame contains the targets. On the left I have a 2 links, the first called 'set availability' and the second 'view availability'. On my right hand frame in the 'set availability' page when I set the availability and click submit, a response page is brought up at the bottom of the 'set availability' pageas follows: "YOU SET AVAILABILITY AS BEING 15" (or whatever the user set it at) My problem is that when I click 'view availability' and try to bring up the variable(using JSP getproperty) that has been set in the set availability page. An error as follows comes up "Tried to do an operation on a null object." Does this have to do with scope="session" scope="request" or scope="page" I think the problem is that the bean is only set while the set Availability page is loaded because if I got to another page and then back to the setAvailability page the response at the bottom of the page is gone Anyone got any ideas at all, Id say its a fairly easy problem to solve? Big Thanks in advance, Michael _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
prb mounting remote context
Hello I'm using O'reilly 's multipartrequest class to upload files. But I'm encountering the following error: cannot scan servlet headers (500) What does that mean? Did someone have the same problem? What can I do ? thanX -- ~tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: mod_jk on Tru64 kills Apache
Thanks Willy, apachectl configtest reports "Syntax OK" Regards, Bill Antoniadis > > --_=_NextPart_001_01C092AD.759A0700 > Content-Type: text/plain > > > Try "apachectl configtest" > > -Original Message- > From: Bill Antoniadis [mailto:[EMAIL PROTECTED]] > Sent: None > To: [EMAIL PROTECTED] > Subject: mod_jk on Tru64 kills Apache > > > Hello, > > I have successfully compiled mod_jk.so on a Tru64 v4.0D box for Apache > 1.3.17 > but loading the module seems to "kill" Apache without any error messages. > In fact, Apache reports that it has started but there is no .pid file and > indeed no process for it running on my system. > > I have seen two more postings on this in the archive but no responses. Has > anyone successfully loaded mod_jk.so on Tru64? > > Many regards, > Bill Antoniadis > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > --_=_NextPart_001_01C092AD.759A0700 > Content-Type: text/html > > > > > > > RE: mod_jk on Tru64 kills Apache > > > > > Try "apachectl configtest" > > > -Original Message- > From: Bill Antoniadis [HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]] > Sent: None > To: [EMAIL PROTECTED] > Subject: mod_jk on Tru64 kills Apache > > > > Hello, > > > I have successfully compiled mod_jk.so on a Tru64 v4.0D box for >Apache 1.3.17 > but loading the module seems to "kill" Apache without any >error messages. > In fact, Apache reports that it has started but there is no .pid >file and > indeed no process for it running on my system. > > > I have seen two more postings on this in the archive but no >responses. Has > anyone successfully loaded mod_jk.so on Tru64? > > > Many regards, > Bill Antoniadis > > > SIZE=2>- > To unsubscribe, e-mail: >[EMAIL PROTECTED] > For additional commands, email: >[EMAIL PROTECTED] > > > > > --_=_NextPart_001_01C092AD.759A0700-- > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Form based authentication
This problem was solved. It was a problem with configuration. The contexts were not set up properly. This was due to introducing aliases. Tomcat by default creates its own context by reading directories in the webapps directory. If you have aliases it creates contexts for them too, depending on their properties in the workers.properties file. -Dilip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 4:23 PM To: [EMAIL PROTECTED] Subject: Re: Form based authentication I've run into the same problem. I created an industrial strength bandaid for this problem by writing a simple servlet, mapped to /null, that redirects them where I want to go (which is defined in the web.xml). I've been too lazy to investigate what is actually throwing this so if anyone has any insight, please speak up. If you need the bandaid code, let me know. /bill Dilip Dalton <[EMAIL PROTECTED]> on 02/08/2001 12:36:27 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Bill Fellows/MO/americancentury) Subject: Form based authentication Hi, I am running tomcat 3.2.1, and I have started to use form based authentication for my application. The 'examples' form based authentication works fine. But when I use if from my application I get the following: Not Found (404) Original request: /hyseq/jsp/null Not found request: /hyseq/jsp/null Could anybody shed some light on this, Thank you, Dilip. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Need some advice....
First, most of the documentation is in the CVS reporitory unser src/doc. You can access the WebCVS interface from the Jakarta webpage. To get Apache and Tomcat to work together, you will need to download mod_jk, install and configure it. To support JDBC-ODBC databases you need a prayer. There is a well know bug with the JDBC-ODBC bridge that basically makes it crash if you try and do two things at once. If this is for a school project you can probably make that work, otherwise you will need to investigate another database connection mechanism. (Maybe use a different database like PostgreSQL or MySQL?) Randy -Original Message- From: Lenart, Robert [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 11:16 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: Need some advice Hello, I'm not really sure I'm writing to the right place for help, please disregard if I sent this in error. I'm new to this technology so I need some direction. I trying to muddle my way through all the documentation, but there is so much I don't know (I'm just a student). I have wrote an active page servlet using sun's forte. I downloaded JSDK and have my servlet working. I would like to use apache to act as my server. I downloaded the apache httpd server and it works great for html pages, but does not support servlets... What do I need to add/download to get apache to support servlets which use JDBC-ODBC databases? I would appreciate any help you can provide. Thanks, Rob Lenart [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
isapi_redirect.dll and jserv
Since the isapi_redirect.dll support ajp12 can I use is to talk to a jserv process instead of a tomcat process. When I try this I get the following in the isapi.log with debug mode turned on. [jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request [jk_ajp12_worker.c (488)]: Into ajpv12_handle_response [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Status: 400 Bad Request [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Status=400 Bad Request [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Servlet-Error: Received empty servlet name [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Servlet-Error=Received empty servlet name [jk_ajp12_worker.c (542)]: ajpv12_handle_response, allocating header arrays [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read [jk_ajp12_worker.c (504)]: ajpv12_handle_response, headers are done Can this be done? David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: JDBC REALM, classnotfound exception
Title: RE: JDBC REALM, classnotfound exception If your TOMCAT_HOME for the running version of tomcat is /usr/local/tomcat, then /usr/local/tomcat/lib will work. If you are compiling the source to a /build/tomcat directory, then it's /build/tomcat/lib. -Vijay -Original Message- From: Alex A. Almero [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 12:32 AM To: tomcat-user @ jakarta.apache.org Subject: JDBC REALM, classnotfound exception here's my xml entries, className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="com.informix.jdbc.IfxDriver" connectionURL="informix-sqli://ip:port/authority:informixserver=dbsvrname connectionName="test" connectionPassword="test" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" /> what particular /lib directory will i put my driver.jar? is it on /usr/local/tomcat/lib? thanks alex ¹¢·{¢j¶É¡
[T3.2.1] differences between different Request classes
Hi there, I am trying to implement our SingleLogin architecture using the Servlet API 2.2 recomendations. I would like to know why org.apache.tomcat.core.Request is not implementing methods from javax.servlet.http.Request? The error message is: [javac] D:\Apache-Group\src\jakarta-tomcat-3.2.1-src\src\share\org\apache\tomcat\request\CookieRealm.java:125: Method getCookies() not found in interface org.apache.tomcat.core.Request. [javac] Cookie cookies[] = request.getCookies(); and only work around is to use getCookie(i) method ?!?! TIA Drasko __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Virtual hosts on Tomcat 3.2
Hi all, new subscriber here. I'm running Tomcat stand-alone. I upgraded to 3.2 last night for the multiple host support. Several questions Can I have separate logfiles for each host? Can separate hosts share a context? (just curious). Can sessions be shared between hosts? Can database connections be pooled across hosts? What problems will I run into if one host's path is a subdirectory of another's? Thanks, and please point me in the right direction if these Q's have been answered already. Chris = - Chris Freyer | 4-BR/2-BA Home For Sale in Software Engineer | Jacksonville, FL. Visit [EMAIL PROTECTED] | http://www.freyer.homeip.net __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Manager in Tomcat 4.0
Hi all, But I have not found anything related to admin in server.xml, do I need to write this by myself, or can we send me the server.xml you changed. Thanks A Lot On Fri, 9 Feb 2001, Dale, Matt wrote: > add the line > > > > to the tomcat-users.xml file > > then in server.xml change trusted="true" for the admin context and then use > username admin and password admin. > > Matt > > > -Original Message- > > From: Ananda Venkatapathy [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 09, 2001 11:54 AM > > To: [EMAIL PROTECTED] > > Subject: RE: Manager in Tomcat 4.0 > > > > > > Hi, > > > > I tried with the username and password which specified in the > > tomcat-user.xml file, but it is not working. Let me know how > > to find the > > administration user name and password. > > > > regards > > PATHY A.V. > > <[EMAIL PROTECTED]> > > > > > > > > > -Original Message- > > > From: Jefferson Oliveira Andrade [SMTP:[EMAIL PROTECTED]] > > > Sent: Friday, February 09, 2001 6:13 PM > > > To: '[EMAIL PROTECTED]' > > > Subject: RE: Manager in Tomcat 4.0 > > > > > > Try looking at $TOMCAT_HOME/conf/tomcat-users.xml > > > > > > J. Andrade. > > > > > > -Original Message- > > > From: LUN [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, February 09, 2001 7:57 AM > > > To: [EMAIL PROTECTED] > > > Subject: Manager in Tomcat 4.0 > > > > > > > > > Hi, > > > I am using tomcat 4.0, how can I login to the manager, what > > > is the user name and password, anyone can tell me where I can find . > > > Thanks in Advance ! > > > LUN > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, email: [EMAIL PROTECTED] > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, email: [EMAIL PROTECTED] > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > > > This e-mail may be confidential and may also be legally privileged. > If you are not the intended recipient, please notify us immediately; you > should not copy it or use it for any purpose, > nor disclose it's contents to any person. E-mail may be subject to data > corruption accidentally or deliberately. > For this reason it is inappropriate to rely on advice contained in an e-mail > without obtaining written confirmation of it first. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
No luck with Context Administrator login....
I tried what Matt Dale suggested but no luck yet. Anybody have any other ideas for username and password for Context Manager on Tomcat 3.2.1? Thanks. _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
loading oracle drivers from classes12.zip?
Has anyone been able to get the oracle thin drivers to load from the zip file rather than having to unpack them - when running tomcat on an nt server? Dr. John Coonrod, Vice President, [EMAIL PROTECTED] The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Context Administrator login problem,,, HELP!
Hi Matt, I tried what you said but still have no luck, any other ideas From: "Dale, Matt" Subject: RE: Context Administrator login problem,,, HELP! Date: Fri, 9 Feb 2001 15:02:35 - add the admin role to one of your users and then make trusted="true" for the admin context. You should now be able to log in with the username and password that you gave the admin role. Matt > -Original Message- > From: Steve G [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 09, 2001 2:13 PM > To: [EMAIL PROTECTED] > Subject: Context Administrator login problem,,, HELP! > > > I am still having no luck logging in. I have even modified the > tomcat-users.xml file but with no luck. I am using Tomcat > version 3.2.1 on > an SGI machine. I have tried the following combos: > > Username: tomcat Password: tomcat > > Username: role1 Password:tomcat > > Username: both Password:tomcat > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: tomcat-user- [EMAIL PROTECTED] > _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: loading oracle drivers from classes12.zip?
I believe so. The story is that the Web App Spec states that it will load .jar files, not .zip files from the Web App lib directory ( even though they're essentially the same ). People here have suggested to simple rename the file from calsses12.zip to classes12.jar. You could also unpack it and rejar it. Hope this helps. fernando On Fri, 9 Feb 2001, John Coonrod wrote: > Has anyone been able to get the oracle thin drivers to load from the zip > file rather than having to unpack them - when running tomcat on an nt > server? > > > Dr. John Coonrod, Vice President, [EMAIL PROTECTED] > The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Context Administrator login problem,,, HELP!
try adding a new user in tomcat-users.xml like and then log in as admin with password admin. Are you sure the context has trusted="true" That worked for me so if that doesn't work them I don;t know what the problem is. Matt > -Original Message- > From: Steve G [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 09, 2001 5:40 PM > To: [EMAIL PROTECTED] > Subject: RE: Context Administrator login problem,,, HELP! > > > Hi Matt, > > I tried what you said but still have no luck, any other ideas > > > > > From: "Dale, Matt" > Subject: RE: Context Administrator login problem,,, HELP! > Date: Fri, 9 Feb 2001 15:02:35 - > add the admin role to one of your users and then make trusted="true" > for the > admin context. You should now be able to log in with the username > and > password that you gave the admin role. > > Matt > > > -Original Message- > > From: Steve G [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 09, 2001 2:13 PM > > To: [EMAIL PROTECTED] > > Subject: Context Administrator login problem,,, HELP! > > > > > > I am still having no luck logging in. I have even modified the > > tomcat-users.xml file but with no luck. I am using Tomcat > > version 3.2.1 on > > an SGI machine. I have tried the following combos: > > > > Username: tomcat Password: tomcat > > > > Username: role1 Password:tomcat > > > > Username: both Password:tomcat > > _ > > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: tomcat-user- > [EMAIL PROTECTED] > > > > > > > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > This e-mail may be confidential and may also be legally privileged. If you are not the intended recipient, please notify us immediately; you should not copy it or use it for any purpose, nor disclose it's contents to any person. E-mail may be subject to data corruption accidentally or deliberately. For this reason it is inappropriate to rely on advice contained in an e-mail without obtaining written confirmation of it first. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
getting started with Tomcat?
Hello!!! Could anybody help me, Please! I have Windows 98 on my PC.I have downloaded TOMCAT Version 3.1.1.I have put all tomcat files ( bin, conf, doc, lib, src, webapps) tothe C:\foo\tomcat directory.I have installed JDK 1.2 into C:\JAVA. So, could you describe how should I set TOMCAT_HOME. Best regards,Alexander
RE: loading oracle drivers from classes12.zip?
I have had no troubles with the zip files on Win2000 server and IIS5. Someone a while ago mentioned rejaring the contents. Oracle 8I enterprise has worked perfectly for me with tomcat using the thin driver with no modifications. Good luck, Craig -Original Message- From: John Coonrod [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 9:39 AM To: tomcat Subject: loading oracle drivers from classes12.zip? Has anyone been able to get the oracle thin drivers to load from the zip file rather than having to unpack them - when running tomcat on an nt server? Dr. John Coonrod, Vice President, [EMAIL PROTECTED] The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Servlet Questions - Please Help!
Hi I am doing some research work on servlets...I am trying to get some feedback regarding the following questions. Expert's help needed : (1) when are servlet classes instantiated? It seems that a web server will constantly reuse the same servlet object -- but I don't know how to create other instances. All of this makes sense if servlets are stateless. so (a) are servlets supposed to be stateless and (b) how are multiple instances of servlets created? (2) it is common for people to enter data on one web page and have this information available on other (subsequent) web pages. (e.g., the web ordering forms from Amazon.com). If servlets are stateless, how is the relationship between web pages (and the information they maintain) shared? (My guess is that subsequent pages have hidden text fields that maintain the shared information, but this seems like a hack...). Any help will be appreciated. Thanks. Kash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: getting started with Tomcat?
> "Alexandr L. Pazin" wrote: > > Hello!!! > > Could anybody help me, Please! > > I have Windows 98 on my PC. > I have downloaded TOMCAT Version 3.1.1. > I have put all tomcat files ( bin, conf, doc, lib, src, webapps) to > the C:\foo\tomcat directory. > I have installed JDK 1.2 into C:\JAVA. > > So, could you describe how should I set TOMCAT_HOME. > > Best regards, > Alexander I would eidt c:\foo\tomcat\bin\tomcat.bat and include after the first block of comments SET TOMCAT_HOME=c:\java\jdk1.2 thats it... You can do it many other ways, but I find myself running different copies of tomcat with different JVM's so I like to set TOMCAT_HOME per each tomcat installation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat-iis-howto---How to create a new registry key ???
Hello, I am trying to use tomcat in W2k But I don't know how to create a new registry key. How can I do it? Thank you in advance. Paul Yoon Hi there, Question: has anybody set up tomcat to work with IIS 5.0? I've done everything right and it just doesn't work. When I try to hit http://localhost/examples/jsp/index.html I get the standard HTTP 404 error page. The troubleshooting section just says "make sure you typed the url correctly". Could this be an IIS 5.0 issue? Thanks so much, Conrad Gustafson eXI Solutions Victoria, BC
RE: loading oracle drivers from classes12.zip?
The "things" changed slightly under T3.2 :-) My advice is to rename classes12.zip into classes12.jar HTH Drasko --- Craig <[EMAIL PROTECTED]> wrote: > I have had no troubles with the zip files on Win2000 > server and IIS5. > Someone a while ago mentioned rejaring the contents. > Oracle 8I enterprise > has worked perfectly for me with tomcat using the > thin driver with no > modifications. > > Good luck, > Craig > > -Original Message- > From: John Coonrod [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 09, 2001 9:39 AM > To: tomcat > Subject: loading oracle drivers from classes12.zip? > > > Has anyone been able to get the oracle thin drivers > to load from the zip > file rather than having to unpack them - when > running tomcat on an nt > server? > > > Dr. John Coonrod, Vice President, [EMAIL PROTECTED] > The Hunger Project, 15 East 26th Street, NY, NY > 10010 www.thp.org > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, email: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Servlet Questions - Please Help!
Both of your questions seem to come from missing two very important points about web development: 1. Connections are stateless 2. Objects called sessions. Basically each client is given some identifying piece of information that they must send as part of each connection to identify themselves. This session then works basically as your state storage. Servlets handle the creation and managment of sessions, you simply need to put information into the session. This session is available to all resources that the use accesses during the course of their visit, not just single servlets. Direct answers to your questions: 1. Yes, servlets are really designed to be stateless from a user perspective, with the state being stored in the session. There might be some server-relevant state like the number of access since object creation or a database connection, in-memory cache, etc. For the Tomcat servlet engine a new instance of the servlet is created for each distinct URL that the servlet is accessed by (ignoring GET and PATHINFO parameters). So for most servlets you have one instance, but in some cases you might get two or three. 2. See general answer. In the uncomplicated view of things, Tomcat sets a cookie for each user that contains their sessionID. Then when Tomcat gets the request it finds the session and makes it available to the servlet. Don't worry, Tomcat can deal with clients that don't accept cookies, but this gets messier to explain. It still has some flaws (people can change their cookies) that will only be resolved by a persistant or stateful web connection, however that would drastically change the web's architecture. Randy -Original Message- From: Rezaul H. Safiuddin [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 1:01 PM To: [EMAIL PROTECTED] Subject: Servlet Questions - Please Help! Hi I am doing some research work on servlets...I am trying to get some feedback regarding the following questions. Expert's help needed : (1) when are servlet classes instantiated? It seems that a web server will constantly reuse the same servlet object -- but I don't know how to create other instances. All of this makes sense if servlets are stateless. so (a) are servlets supposed to be stateless and (b) how are multiple instances of servlets created? (2) it is common for people to enter data on one web page and have this information available on other (subsequent) web pages. (e.g., the web ordering forms from Amazon.com). If servlets are stateless, how is the relationship between web pages (and the information they maintain) shared? (My guess is that subsequent pages have hidden text fields that maintain the shared information, but this seems like a hack...). Any help will be appreciated. Thanks. Kash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat-iis-howto---How to create a new registry key ???
From the Start Menu, select run. Type regedit. See the online help for information on how to use this application. Randy -Original Message- From: Paul Yoon [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 11:06 AM To: [EMAIL PROTECTED] Subject: RE: tomcat-iis-howto---How to create a new registry key ??? Hello, I am trying to use tomcat in W2k But I don't know how to create a new registry key. How can I do it? Thank you in advance. Paul Yoon Hi there, Question: has anybody set up tomcat to work with IIS 5.0? I've done everything right and it just doesn't work. When I try to hit http://localhost/examples/jsp/index.html I get the standard HTTP 404 error page. The troubleshooting section just says "make sure you typed the url correctly". Could this be an IIS 5.0 issue? Thanks so much, Conrad Gustafson eXI Solutions Victoria, BC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Recommendations for JSP development tools?
In my opinion the tool of choice is Forte for Java. It gives you syntax checking and compilation, debugging is a bit crude but it is doable! We also use Allaire's Home Site, because it will recognize your java content and maintain your page's integrety! unlike the MS tools. -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 9:54 PM To: tomcat Subject: Re: Recommendations for JSP development tools? On Thu, 8 Feb 2001, John Coonrod wrote: > I'd like to improve the productivity of my people here. To date, I've done > all my JSP development with a text editor. > > Has anyone had any luck with JSP and any of the FrontPage type programs > (including FrontPage?). Borland JBuilder is a good choice. It's also cross-platform (Windows, Linux & Solaris, I believe). Stay away from FrontPage -- it's OK for beginners, but it's not really suited for professional work. -- Brett http://www.chapelperilous.net/~bmccoy/ --- "Consequences, Schmonsequences, as long as I'm rich." -- "Ali Baba Bunny" [1957, Chuck Jones] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Login Form & Authentication
((Reposting in plain text.)) Hi again! After thinking about my previous questions I decided that a good solution could be: (Before going to the point I must say that I'm programming a RequestInterceptor to authenticate the user against an entity EJB, so I will not use neither SimpleRealm nor JDBCRealm. We could call it EJBRealm right by now) I think I could take the following for (well...almost) granted: 1) AccessInterceptor will not be interested in j_username or j_password (I hope not only in the current code but in future releases too). 2) AccessInterceptor will register two Handlers, one for authentication (that will be mapped to /j_security_check) and one for login (that will call the registered login servlet or jsp when needed). 3) EJBRealm authorize (and/or authenticate) method will be called before any of the 2 handlers. If it can authorize the request neither of both handlers will be called. If it can't, the login handler will be called (currently FormAuthHandler). 4) The login handler will redirect the request to my registered login form. I think I can assume that it will not complain about j_username or j_password not being defined, because it should know how to deal with this precondition. 5) My form will not have action=/j_security_check, from this point I'm disobeying servlet 2.2 traditions. I can do what I want here, I don't need to register j_password or j_username but only to align to an authentication method shared with EJBRealm. The registered error form is never reached (in fact, it is a fake one). j_security_check is never reached. Of course, I don't want to pretend that these points are true. But I need to find a solution based in the least possible assumptions. What do you think about this one? Carlos - Original Message - From: Carlos Pita To: [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 4:42 PM Subject: Login Form & Authentication Hi! I'm working in a project using servlets (with Tomcat 3.2) and I have a question regarding the security mechanisms described in servlet 2.2 spec and how to integrate them with other aspects of the application than login (for example, registration). More specifically, the application offers a registration form in the home page (nothing new here) and a registration form in the same page as the login form, which should be showed when a resource declaratively marked as secure is being accessed (nothing new here). So, for my surprise, I see no way to solve the next 2 problems inside the 2.2 spec (I'm using FORM authentication): 1) in the registration form in the home page there is no concept of a secured page to go once registered, but the user should still be logged, so if I call j_security_check it's not defined what would happen (and the solution is really dirty); 2) in the registration form in the login page, if the user choose the registration way, the form can't be directly submited to j_security_check because his/her information should be saved before being completely lost. I wanted to be standard, 2.2 standard! But instead I ended reading Tomcat request interceptors sources. Still I'm looking for a clean solution. I obviously should set the session j_username and j_password directly and this doesn't seem very portable. If I do that and then move my servlets to other container than Tomcat nasty things could happen. I think I would need to get the sources again (if available) or to program all the security stuff by myself (idea!: using j_username and j_password in the session to reuse my 6 lines of code). I can't believe than servlet spec doesn't provide an API to authenticate the user. I'm urged to know: 1) Is there a better solution? 2) If not, will the solution I proposed work? Thank you Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: loading oracle drivers from classes12.zip?
Just for clarification: I am using win2000 server with IIS5 Tomcat 3.2 Sun JDKs 1.3 and 1.2.2 I am not using JDBC Realms as I access Oracle, DB2, MSSQL7, and MySQL and my understanding is that I have to wait for Tomcat 4 for multiple databases realms. No matter as I wrote some code for that myself. Tomcat is configured as stand alone with Isapi redirect. I am just calling the thin driver(oracle.jdbc.driver.OracleDriver) URL(jdbc:oracle:thin:@localhost:1521:databasename) in Oracle's directory: jdbc/lib/classes12.zip Fortunately for me, (??!!) I have never had any troubles with anything regarding Tomcat. :0) Good luck, Craig -Original Message- From: Drasko Kokic [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 10:05 AM To: [EMAIL PROTECTED] Subject: RE: loading oracle drivers from classes12.zip? The "things" changed slightly under T3.2 :-) My advice is to rename classes12.zip into classes12.jar HTH Drasko --- Craig <[EMAIL PROTECTED]> wrote: > I have had no troubles with the zip files on Win2000 > server and IIS5. > Someone a while ago mentioned rejaring the contents. > Oracle 8I enterprise > has worked perfectly for me with tomcat using the > thin driver with no > modifications. > > Good luck, > Craig > > -Original Message- > From: John Coonrod [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 09, 2001 9:39 AM > To: tomcat > Subject: loading oracle drivers from classes12.zip? > > > Has anyone been able to get the oracle thin drivers > to load from the zip > file rather than having to unpack them - when > running tomcat on an nt > server? > > > Dr. John Coonrod, Vice President, [EMAIL PROTECTED] > The Hunger Project, 15 East 26th Street, NY, NY > 10010 www.thp.org > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, email: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
mod_jk & tomcat-4.0
does mod_jk work with tomcat4? i downloaded tomcat4.0 and didn't see the files to make this mod. and if anyone knows a config link to make tomcat an in-process worker, much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Connection/Session question
Hi, Randy. Thank you for your help. However, I am still a little bit confused. For HTTP/1.1 implementation, the connection from client to web server should be persistent. So how can the connection to the client be closed after the client get the first page which containing the applet. Do you mean, after each reqest-response pair communication, the connection is closed? Every request-response pair communication uses different connection from other pair communication, is that right? If so, the applet will use different connection for each request-response communication. Is that right? Thank you. Jianming Wang -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 3:13 PM To: [EMAIL PROTECTED] Subject: RE: Connection/Session question Not really. The client will download the content of the JSP page (which contains the applet). Assuming that you are using Tomcat in standalone, the connection to the client will be closed. Then the applet will start and the make its connection. So you will have two connections, although they will be at different times. Unless you set the cookie for the session or form your URL to include the sessionid your applet will not join an already existing session. Instead a new one will be formed. Randy -Original Message- From: Wang, Jianming [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 10:59 AM To: '[EMAIL PROTECTED]' Subject: Connection/Session question Hello, I have a question: - If I have a page containing a applet and some other HTML content, and the applet uses a URLConnection to connect to the web server. In this case, how many connections/sessions I have? 2 connections? one from the page itself and one from the applet? Could any guru please help? Thanks in advance. Jianming Wang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat & iis & servlet filters w/ *.asp ... possible?
I'm running Tomcat4.0 w/ Apache 1.3.14 on linux. I'm using 4.0 because of my use of servlets and filters. Every web page served up by the web server is modified in the respose's output stream (I insert code into a web page of any type). I'd like to port this same stuff to IIS but have a few questions. I'm assuming mod_jk will allow me to send all file type extensions to Tomcat (as now I can only do it with *.jsp files). If so ... if my clients are using *.asp pages, would this work for Tomcat4 on IIS. I'll explain ... asp pages are handled by IIS and my filters are on Tomcat, so would IIS allow me to modify the request or response before it did *.asp processing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
java and tomcat
Hi! I'm a total newbie to Tomcat. I'd like to know how I can: (1) Invoke the Tomcat JVM and (2) Configure Tomcat Programmatically using Java. For example, when I click a command button, both the above steps to be performed. Please let me know in detail! Thanks a lot! - Anant
Configuring PWS 4.0 for Tomcat ... ??
Hi there, I am having some trouble configuring Personal Web Server (4.0) to work with Tomcat (as in http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l ). I'm running NT 4.0. Tomcat works fine on its own, but I just get standard 404s when I try to access pages through PWS. The Tomcat console doesn't even blink when I ask PWS to serve me something in the examples context. I don't get an ISAPI.LOG file written out. I've checked the DLL entries for spaces etc. I've also used the DLL file from the zip as suggested on the list. 1. I'm suspicious about the Filter Dlls registry key, as this is where PWS seems to differ from IIS. Can anyone confirm that the correct key to create is "Filter [space] DLLs" like that? (I tried without a space but no effect). Should the key's value be just the abolsute path of Isapi_Redirect.dll (ie. no quotes, no comma etc)? 2. can anyone explain how PWS is supposed to map http://localhost/examples/*" documents through isapi_redirect.dll? As far as I can tell the configuration doesn't provide enough information. I've only created one virtual directory called "jakarta" as the docs suggest. Should I have others? Am I missing something obvious?? Please help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: loading oracle drivers from classes12.zip?
Right. On my Win2000 server, renaming the classes12.zip to classes12.jar in the lib area had the tomcat.bat file pick it up properly and put it in the classpath. This probably won't work on nt_4 for lack of enumeration of files in a directory, but then a simple explicit set %cp%;xxx\classes12.zip (or jar) works just fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem moving from 3.2 to 3.2.1
Hi all. I'm hoping someone can help me with a problem that I'm having as I move from Tomcat 3.2 to Tomcat 3.2.1. I'm using Tomcat as a Type 1 servlet container: both as an application server (servlet engine) and as a Web server. My context is called /portal and is accessed by a file called index.jsp in my Web root. I installed it under 3.2 without problems and am very happy with its performance. All I had to do was unzip Tomcat, edited tomcat.bat to add files to the CLASSPATH, and edit server.xml to include This works great with Tomcat 3.2; however, under 3.2.1, some parts of my HTML pages -- the header and navbar -- are no longer part of the HTML sent to the browser. The following error is written to the DOS window associated with Tomcat: Servlet API error: sendError with commited buffer Servlet API error: sendError with commited buffer Interestingly, my 3.2 servlet.log file contains: 2001-02-09 09:54:22 - path="/examples" :jsp: init 2001-02-09 09:54:22 - path="/admin" :jsp: init 2001-02-09 09:54:22 - path="/portal" :jsp: init 2001-02-09 09:54:22 - path="" :jsp: init 2001-02-09 09:54:23 - path="/test" :jsp: init 2001-02-09 09:54:40 - path="/portal" :jsp: init 2001-02-09 09:54:59 - path="/portal" :jsp: init 2001-02-09 09:54:59 - path="/portal" :jsp: init Note how the /portal context is initialized four times. Under 3.2.1, the equivalent log looks like this: 2001-02-09 09:51:11 - path="/examples" :jsp: init 2001-02-09 09:51:11 - path="/admin" :jsp: init 2001-02-09 09:51:11 - path="/portal" :jsp: init 2001-02-09 09:51:12 - path="" :jsp: init 2001-02-09 09:51:12 - path="/test" :jsp: init 2001-02-09 09:51:58 - path="/portal" :jsp: init Note how the last two initializations are not there. However, there *are* those corresponding "Servlet API errors" (described above) sent to stderr along with rendering errors. This seems to be an issue with 3.2.1 since neither my servlet nor my configuration files have changed. Can someone explain the error, and describe how I can get my servlet to run with 3.2.1? Thanks, Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Configuring PWS 4.0 for Tomcat ... ??
I would suggest looking at the uriworkermap.properties file. This is where you map certain URL patterns for Tomcat to handle. Everything else is sent to PWS. I don't have PWS so I can't help you with the name of the registry key, however it should be the full path without quotes. I believe that spaces won't work, but I'm not 100% sure of this. It sounds like Tomcat and isapi_redirect.dll are never seeing the request, so you probably want to look at your registry keys to make sure that they are correct (including the other keys, besides Filter DLLs). Randy -Original Message- From: Hondros, Constantine [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 2:38 PM To: '[EMAIL PROTECTED]' Subject: Configuring PWS 4.0 for Tomcat ... ?? Hi there, I am having some trouble configuring Personal Web Server (4.0) to work with Tomcat (as in http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l ). I'm running NT 4.0. Tomcat works fine on its own, but I just get standard 404s when I try to access pages through PWS. The Tomcat console doesn't even blink when I ask PWS to serve me something in the examples context. I don't get an ISAPI.LOG file written out. I've checked the DLL entries for spaces etc. I've also used the DLL file from the zip as suggested on the list. 1. I'm suspicious about the Filter Dlls registry key, as this is where PWS seems to differ from IIS. Can anyone confirm that the correct key to create is "Filter [space] DLLs" like that? (I tried without a space but no effect). Should the key's value be just the abolsute path of Isapi_Redirect.dll (ie. no quotes, no comma etc)? 2. can anyone explain how PWS is supposed to map http://localhost/examples/*" documents through isapi_redirect.dll? As far as I can tell the configuration doesn't provide enough information. I've only created one virtual directory called "jakarta" as the docs suggest. Should I have others? Am I missing something obvious?? Please help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: mod_jk & tomcat-4.0
"Grobe, Gary" wrote: > does mod_jk work with tomcat4? > > i downloaded tomcat4.0 and didn't see the files to make this mod. > > and if anyone knows a config link to make tomcat an in-process worker, much > appreciated. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] There is a module called mod_webserv to make it work with Apache. At the end of the default TOMCAT_HOME/conf/server.xml file (obtained when installing tomcat 4 from an RPM) there is a description how to compile this module. janis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Manager in Tomcat 4.0
LUN wrote: > Hi, > I am using tomcat 4.0, how can I login to the manager, what > is the user name and password, anyone can tell me where I can find . > Thanks in Advance ! > LUN > In Tomcat 4.0, the entire "/manager" web application is protected by a security constraint that requires a role named "manager". If you are using the default setup, then you need to modify the file "conf/tomcat-users.xml" and either add "manager" to the set of roles for one or more existing users, or add a new user with this role. The username and password are arbitrary -- security constraints check only the role(s) associated with each user to see if they are allowed to use this particular URL or not. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: java and tomcat
Here is a really simple way to do it. It's basically analogous to the behavior of the supplied startup and shutdown batch files in the tomcat bin directory (note: this was a tomcat version ago). ... // import for the Tomcat application - note that this must be on // the classpath for successful compilation import org.apache.tomcat.startup.Tomcat; String[] tomcatArgs = {"-home","jakarta-tomcat","-config","jakarta-tomcat\\conf\\server.xml"}; // invoke Tomcat Tomcat.main( tomcatArgs ); ... // prepare "stop" tomcat arguments String[] tomcatArgs = {"-stop","-home","\\LocalRuntime\\jakarta-tomcat","-config","\\LocalRuntime\\jakarta-tomcat\\conf\\server.xml"}; // stop tomcat - this will issue a System.exit Tomcat.main( tomcatArgs ); You may have to go into the tomcat source (i.e. Tomcat.java) and remove a particular System.exit(0) call if you don't want to have your VM stopped at this point. Cory Berg [EMAIL PROTECTED] SmartForce - The e-Learning Company http://www.SmartForce.com "Vembar, Anant" <[EMAIL PROTECTED]> 02/09/2001 12:16 PM Please respond to tomcat-user To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: java and tomcat Hi! I'm a total newbie to Tomcat. I'd like to know how I can: (1) Invoke the Tomcat JVM and (2) Configure Tomcat Programmatically using Java. For example, when I click a command button, both the above steps to be performed. Please let me know in detail! Thanks a lot! - Anant
Re: PATH INFO with JSP pages.
Brad Handy wrote: > Thanks for the help. I had thought about using the > "page.jsp?subsection=a-c", but I'm trying to avoid using the get method. > IMOHO the GET method is a bit too insecure. I do have a different idea to > use (that actually my boss will like better), but thanks for info. > You can still include query parameters, even on a POST. The parameters from the query string are merged with the parameters from the input form. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Default Contexts?
Hi, I have server.xml configured so the ContextManager adds two personally defined contexts ("tote1" & "tote2") located in TOMCAT_HOME/webapps. However, the Tomcat v3.2.1 startup reports more contexts: 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( /tote1 ) 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( /tote2 ) 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( ) 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( /test ) 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( /admin ) 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( /vhosts ) Will tomcat automatically add all subdirectories in TOMCAT_HOME/webapps as contexts? If so, why is ROOT not added (or is that " ")? Is there anyway to stop this behaviour? Regards, Bill Antoniadis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Servlet Mapping Problem -- ???
Hunter Hillegas wrote: > I have a strange problem with Tomcat 3.2 that I can't figure out... > > I have two servers, a development server and a production server. The > development server is working just fine. I have a servlet called > marketCustomerVendorController that is mapped to > /marketCustomerVendorController as seen here from web.xml: > > > marketCustomerVendorController > /marketCustomerVendorController > > > On the dev box, it works great. > > Yesterday I tried to push the WAR (generated by Ant via ./build dist) out to > the production box. > Does your dev box run Tomcat standalone and your production box run Tomcat behind Apache? If so, the most likely reason for this is that the Apache connector is totally ignorant of anything you define in web.xml -- you'll have to modify the tomcat-apache.conf file to include any additional forwarding you want. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]