Embedding Tomcat inside Java app.
Hi folks, I'm trying to embed Tomcat inside Java application. At the time of "/ROOT" context init, I get exception, stating that I've no read right on file "server.xml" I am really wondering what is the CORRECT way to embed Tomcat. Here is part of the output I get: ERROR reading D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml java.security.AccessControlException: access denied (java.io.FilePermission D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml read) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:231) at Anyone who, suceeded in embeddig Tomcat, please give me some clue. Thanks in advance Hristo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Réf. : Embedding Tomcat inside Java app.
Hi , Have you try to adapt your tomcat.policy file ? something like: grant codeBase "file:${tomcat.home}/webapps/ROOT" { java.io.FilePermission "*" , read) }; Nicolas De :Hristo Katsarski@hristo le 14/02/2001 09:32 Pour : tomcat-user@[EMAIL PROTECTED]@SMTP@Hays Hub cc : Faxer : Objet : Embedding Tomcat inside Java app. Hi folks, I'm trying to embed Tomcat inside Java application. At the time of "/ROOT" context init, I get exception, stating that I've no read right on file "server.xml" I am really wondering what is the CORRECT way to embed Tomcat. Here is part of the output I get: ERROR reading D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml java.security.AccessControlException: access denied (java.io.FilePermission D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml read) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:231) at Anyone who, suceeded in embeddig Tomcat, please give me some clue. Thanks in advance Hristo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ** Ce message lectronique et tous les fichiers attachs qu'il contient sont confidentiels et destins exclusivement l'usage de la personne laquelle ils sont adresss. Si vous avez reu ce message par erreur, merci de le retourner son metteur. Les ides et opinions prsentes dans ce messages sont celles de son auteur, et ne reprsentent pas ncessairement celles du Groupe HAYS plc ou d'une quelconque de ses filiales. La publication, l'usage, la distribution, l'impression ou la copie non autorise de ce message et des attachements qu'il contient sont strictement interdits. Nous vous informons galement que nous avons vrifi l'absence de virus dans ce message mais que, malgr ce contrle, nous ne saurions tre tenus pour responsables d'ventuels dgts occasionns par un virus non dtect. This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the HAYS plc group or any of its subsidiary companies. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
help about tomcat virtual hosting...
I'm using apache 1.3.17 + tomcat 3.2.1 + red-hat 6.2. Every time I add a virtual host, I have to restart apache and tomcat. During the restart, the visitors will loose all connection to the site is there anyway to add a virtual host without restarting the server? Currentl, I'm only using tomcat3.2.1 for web service. Is there a way to refresh additional virtual hosts without restarting the server?
Re: How do I connect JNDI in Tomcat 4.0 to JNDI in JBoss?
Hi! I think you are talking about different kind of contexts. I've entered the online administration for the first time after reading your emails and the only contexts I could find there were servlet ones. Another point is that /admin doesn't seem exist in Tomcat 4.0 (use /manager instead) but only in Tomcat 3.2. I'm not sure the EJB-link tag (or any member of its family) is implemented by Tomcat. The servlet 2.2 spec only requires the implementation of these tags to servlet containers that are part of a J2EE compliant implementation. One solution to the JNDI stuff could be using the JNDI taglib (from the jakarta taglibs project). Another one could be writing a tag similar to useBean but providing 1) an id, a remote type, a JNDI name and optionally JNDI environment stuff or 2) an id, a home type, a remote type, a JNDI home name, an array of parameters for some create method, and optionally JNDI environment stuff. The second alternative would be useful when the bean should be obtained from its home. Carlos - Original Message - From: "Nael Mohammad" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 9:30 PM Subject: RE: How do I connect JNDI in Tomcat 4.0 to JNDI in JBoss? Simple, using the tomcat admin feature, you can specify the context to be whatever you like. To access the admin feature, you need to set it first using the tomcat-user.xml file located in your conf directory. An example that I have below works just fine for me. After that then you should be able to add the context you like anywhere so long as tomcat knows where it's going. In Linux: /tomcat/conf/tomcat-user.xml tomcat-users user name="admin" password="" roles="admin" / user name="tomcat" password="tomcat" roles="tomcat" / user name="role1" password="tomcat" roles="role1" / user name="both" password="tomcat" roles="tomcat,role1" / /tomcat-users After that got http://localhost:8080/admin and bam... you should now be able to access the admin feature. After you login, just follow the examples that are already in place and you should figure how to add the context. If worse comes to worse, result to the manual. Nael -Original Message- From: Tye, Timothy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 2:37 PM To: [EMAIL PROTECTED] Subject: How do I connect JNDI in Tomcat 4.0 to JNDI in JBoss? I am trying to run Tomcat 4.0 and JBoss on separate virtual machines. How do I get the JNDI context in Tomcat to look in JBoss JNDI context for the EJB-link Remote object /EJB-link? Tim Tye Computer Associates Senior Software Developer tel: +1 972 801-6436 fax: none pager: none mobile: +1 214 924-6396 [EMAIL PROTECTED] mailto:[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]
urgent tomcat -ssl i followed the details explained in the how to ssl but still not able to connect
I have tomcat version 3.2 and i am trying to use ssl. Firstly i am testing this in a network environment. I don't have my own separate pc and net connection since it is routed through a network. i.e. when i apply for the certificate in cn do i have to specify unique dsn so as to be recognised ?. Two after following the steps and i generated my own self cert i gave cn as test1 and generated key and put the certificate into the key store as under /windows/.keystore, Then i tried to connect to the ssl port by specifiying https://my ipaddress:8443/my servlet . I get an error webserver not found. Why is this. I removed the comment in the server.xml etc. Urgent and i need help. I am breaking my head for the past two days. Please.
jsp could not be loaded on winnt
Hi there, hopefully I am not repeating a already asked questions, but I couldn't find it in the archives. Tomcat 3.2.1. is working fine on our linux boxes, but we also need to setup tomcat on a notebook for demonstrations. The strange thing is, it is not working. We are using Sun's JDK 1.3 and WIN 2K. When trying to access a servlet we get a Null Pointer Exception and when looking at the stack trace it seems to be related to to the class loading (adaptiveClassloader). Is there anyway to start Tomcat in debug mode? I'd like to see what class is missing or whatever reason there is?! Btw. When starting up tomcat right before establishing the handlers it reports that the jsp servlect could not be loaded and displays a count to 357. I have never seen this on Linux?! Any ideas? Mariano -- mariano kamp codamax ag hessenring 89 61348 bad homburg v.d.h. germany phone +49 6172 182 473 fax+49 6172 182 475 mobile +49 173 300 8564 (changed!) -- mariano kamp codamax ag hessenring 89 61348 bad homburg v.d.h. germany phone +49 6172 182 473 fax+49 6172 182 475 mobile +49 173 300 8564 (changed!) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: urgent tomcat -ssl i followed the details explained in the how to ssl but still not able to connect
You haven't specified which OS your client is. If your DNS is not setup to allow you to type https://hostname:8443 then 95/98/NT4.0 will give you the standard "cannot find server" error page. This is because your browser has https://ipaddress:8443 and in the eyes of 95/98/NT4.0 this does not match your certificate. 2000 (and I believe Me) will give you a warning but allow you to continue. HTH Gary -Original Message-From: Gopi Kesavan [mailto:[EMAIL PROTECTED]]Sent: 14 February 2001 10:14To: [EMAIL PROTECTED]Subject: urgent tomcat -ssl i followed the details explained in the how to ssl but still not able to connect I have tomcat version 3.2 and i am trying to use ssl. Firstly i am testing this in a network environment. I don't have my own separate pc and net connection since it is routed through a network. i.e. when i apply for the certificate in cn do i have to specify unique dsn so as to be recognised ?. Two after following the steps and i generated my own self cert i gave cn as test1 and generated key and put the certificate into the key store as under /windows/.keystore, Then i tried to connect to the ssl port by specifiying https://my ipaddress:8443/my servlet . I get an error webserver not found. Why is this. I removed the comment in the server.xml etc. Urgent and i need help. I am breaking my head for the past two days. Please.
mail configuration
hi, can anyone tell me how to configure mail on tomcat. i am building an application which has to send attachments with the mail to a user. best reagrds piyush
Handler thread problem - How to overcome?
Hello All, I am getting the following exception when I use Tomcat Apache combination. HANDLER THREAD PROBLEM: java.Lang.NullPointerException. at org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders (HttpResponseAdapter.java:111). Has any one got such exception before. If so please indicate how to overcome such problem. I am using Tomcat(3.1) apache( 3.1.12) Thanking you Sriranga. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
legal issue???
Hi, I have been using tomcat for a while now developing an intranet front end to a database system We are now at the point where we are think about how we are to deploy it on user sites and so are doing research on what the best JSP/Servlet server engine to use. As we have been developing on tomcat we would prefer to use it... I am really not sure about the legal issues of doing this with tomcat, especially to do with customers requiring the JDK to compile the JSP files. I have tried to find information about this on the web site but have failed. I would be very grateful for an advise received. Cheers Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat configuration
Hi All, Can i use the tomcat for ISP purpose and also can i use it without the any port which show in the URL.
RE: legal issue???
This came up before with the subject tools.jar. I think the response was basically to use jspc to precompile your JSP source. -Original Message- From: Philip Halsey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:17 AM To: '[EMAIL PROTECTED]' Subject: legal issue??? Hi, I have been using tomcat for a while now developing an intranet front end to a database system We are now at the point where we are think about how we are to deploy it on user sites and so are doing research on what the best JSP/Servlet server engine to use. As we have been developing on tomcat we would prefer to use it... I am really not sure about the legal issues of doing this with tomcat, especially to do with customers requiring the JDK to compile the JSP files. I have tried to find information about this on the web site but have failed. I would be very grateful for an advise received. Cheers Phil - 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 as NT Service with Invoker
I have installed a service with invoker for Tomcat. The problem I am having is that when I try to start the service, I get an error message that there is an overlap in i/o in progress. Error 997 to be exact. Any Ideas. Any other info you need to help me out? TIA Todd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
request.getScheme() problem and virtual hosts
Hey, I have two problems, one seems to be a bug in request.getScheme(). It always returns "https", no matter whether I am viewing a page with http or https. This is a problem due to my second issue. I need to do virtual hosts based on port. I do this on apache like so: VirtualHost _default_:80 and VirtualHost _default_:443 I want to make an alias change between the two hosts so that SSI (for the static pages) and the jsp:includes in the jsp content change depending on whether you are using SSL or not. This works fine with apache and SSI, but I am unable to make it work for tomcat, the Host facility in server.xml doesn't seem to allow for ports. I have tried many combinations here. My backup, to do an if() on request.getScheme and show the relavent content, doesn't work because request.getScheme() always returns https. This is with tomcat-3.2, any help would be appreciated. Tom. -- .^..---. /V\| Tom Gilbert, London, England | http://linuxbrit.co.uk | /( )\ | Open Source hacker, advocate | [EMAIL PROTECTED]| ^^-^^ `---' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: ajp12 vs ajp13 mod_jk.conf-auto
-Message d'origine- De: Mel Martinez [mailto:[EMAIL PROTECTED]] Date: mardi 13 fvrier 2001 23:33 : [EMAIL PROTECTED] Objet: ajp12 vs ajp13 mod_jk.conf-auto Question: what determines whether ajp12 or ajp13 will be specified for a jkmount statement in the auto-generated mod_jk.conf-auto file? I.E., it always generates statements like: JkMount /myapp/servlet/* ajp12 JkMount /myapp/*.jsp ajp12 I've even tried disabling all reference to ajp12 from server.xml and workers.properties but that had no effect. Is the only way to force the use of Ajp13 to manually edit the mod_jk.conf file? as told here you can tweak things, but the most clean is to use a separate my-mod_jk.conf include file that you derivate from the generated mod_jk.conf-auto if you really want all to be automatic add a conversion script (sed or perl script) to generate the my-mod_jk.conf from the .conf-auto with cocoon and HTTPS I had to tweak thos .conf-auto much more and nothing is better than manual config when things are stable... changing the ajp12 alias to point to ajp13 is really anti-documentation... on unix try something like #!/bin/sh launch_tomcat sleep 5 # wait for tomcat to generate the .conf-auto sed -e 's/ajp12/ajp13/g' conf/mod_jk.conf-auto conf/my-mod_jk.conf launch_apache don't forget to adapt apache conf/httpd.conf to include the my-mod_jk.conf instead of the conf-auto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
sessions problem?
Hi All, I am using tomcat,servlets,Rmi, jdbc for my web application In the middle i am facing problem in session creation. I created session like HttpSession session = request.getSession(); after i encoded all urls in the form like String ee = response.encodeURL("/card/servlet/ServletCard"); out.println("FORM METHOD=\"POST\" ACTION=\"" +ee+ "\""); after i configured /WEB-INF/web.xml and given session-config session-timeout !-- In Minutes -- 2 /session-timeout /session-config After a when i am seeing my web pages some id is updating after my url. The problem is that page is not expired after specified 2 minutes that is alive for ever. Can any body tell that how can i handle session creation and deletion by Tomcat itself... Thankx in advance cheers venkatesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Hi Ho - Problem with ServletOutputStream in Tomcat
I ve created an Servlet that routes Requests and Responses to and from another Server. When i try to get a Image through this Servlet i get an Error 500. I coded the app as described in the j2ee docu for sending binary data. maybee a little code snipplet and the error trace helps to understand http://127.0.0.1:8080/maria/portal/zmr/javalogo52x88.gif this is the url -- http://127.0.0.1:8080 - is my Tomcat instance /maria/portal - is my proxy servlet /zmr/javalogo52x88.gif is the image i want to display in my browser - but /zmr is another webapplication on another tomcat server heres the code for the binary data receiving and sending to the client // Setting the Headers for the Client same as the Servlet received them from the other server while ((strHeaderKey = HttpUrlCon.getHeaderFieldKey(iCounter)) != null) { strHeaderValue = HttpUrlCon.getHeaderField(iCounter); LogIt("ResponseHeader - Value: " + strHeaderKey + " - " + strHeaderValue); response.setHeader(strHeaderKey,strHeaderValue); iCounter +=1; } // figuring out which type of data the servlet is getting if (HttpUrlCon.getContentType().equals("text/html")) { // Text or HTML - thats where i use the PrintWriter PrintWriter out = response.getWriter(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } else { try { // Everything else assuming its binary data so i use ServletOutputStream ServletOutputStream out = ((ServletResponse)response).getOutputStream(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } catch (IOException e) { this.log("IOException !!",e); } } heres the error trace i get when i try to process it - 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Type - image/gif 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Length - 1495 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Last-Modified - Tue, 13 Feb 2001 10:07:22 GMT 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Servlet-Engine - Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) 2001-02-14 01:26:43 - path="/maria" :proxy: IOException !! - java.io.IOException: Not an ISO 8859_1 character:^ at org.apache.tomcat.core.BufferedServletOutputStream.print(BufferedServletOutp utStream.java:221) at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:177) at at.gv.bmi.maria.proxy.ReturnData(proxy.java:201) at at.gv.bmi.maria.proxy.doGet(proxy.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) please help me, its important and i dont know how to solve this problem - in my opinion its a problem in the org.apache.tomcat.core.BufferedServletOutputStream Class ?? why does it need a ISO 8859_1 Charset for Binary Data ??? greetings Wolfgang Kremser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: IIS 5 won't play nice
This happened to me when I had put the isapi_redirect.dll into the FilterDLLs registry key. It doesn't belong there if you're using IIS. If that's not it, then verify your workers.properties file has the right host and port. It also might be a good idea to look at your isapi log file. Randy For those who were wondering, I was trying to see if I could add a filter to IIS without using the GUI. No luck yet. -Original Message- From: Conrad Gustafson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 7:15 PM To: [EMAIL PROTECTED] Subject: IIS 5 won't play nice Hi all, I have everything working fine as described in the Tomcat-IIS howto. When I start things up and try to hit http://localhost/examples/jsp/index.html, I get the standard HTTP 404 error message. The last line in the IIS logfile is : 00:08:03 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404. Everything is cool when I hit Tomcat directly. Any ideas? Gratefully, Conrad - 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: search display problem
First, I would suggest using a List (probably a LinkedList, see javadoc for java.util for more information) because its more efficent. Second, your problem is because it sounds like when the user moves forward or backward and then hits reload, they are sending the same request as before- move forward or move backward. Your links should instead pass something like view page so that when they reload the server sees the same request - view page X. Randy PS If you have more questions, lets move this off the list. -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 12:05 AM To: '[EMAIL PROTECTED]' Subject: RE: search display problem thanx randy for ur ideas. what i am doing is that i am getting all the records from the database and storing in a vector. and that vector i am storing in a session. Now this session is being passed on to the next page where i get all the records. my next and previous links are working but whenever i press the refresh button by default the next 10 or previous 10 records are shown. i know that this is not a good idea and the last idea you suggested me i have also thought about it and i have also thought of using HashTable. But still i am not sure whether this will solve my problem anyway thanx for ur ideas bye vikram -Original Message- From: Randy Layman [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 4:34 AM To: [EMAIL PROTECTED] Subject: RE: search display problem This probably isn't the proper forum for this, but I'll answer anyways. You could just put the ResultSet into your session. This is probably a bad idea since you would be keeping database connections open for long periods of time. You could keep an index you're at as part of the session/parameter, then on every time you return to the page you would perform the query again, skip the appropriate number of rows and continue. (Depending upon your database server you might be able to indicate to it not to return the extra rows). The problem with this is that you are querying the database every time and probably going to be bringing back extra data. You could suck in all of the resultset into some data holding object (List of basically C-style structs) and store this in the session. Then use a current page variable to select the correct rows. This would probably waste lots of memory but would limit the number of database accesses. Another way would be to suck in all the records on the first access and include them in the web page by JavaScript. The JavaScript would then control the page display. This would be ultra-fast and would eliminate server access, but it would take longer to download each page. There are several other alternatives available by mixing several of these methods. It seems to me that typical access will be to look at the first several pages more frequently, so you might pull in those records into memory and only have to go back to the database when they request something like page 5 or 6. (Fetch X pages of records at a time). This hybrid would also work well with the last solution - send the user 4 pages of results and then to move to the next age you need to access the server. Just some quick thoughts. Randy -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 12:54 AM To: [EMAIL PROTECTED] Subject: search display problem hello everybody, i have a problem. i am making a search page in which all the records are being displayed from the database. Now what my problem is that i want to make it look like Google site. in which every page has 10records and when i click on the link then i get to see the records with 10 pages. if anybody of you has gone through this then plz tell me how to do it. any idea is welcome bye vikram - 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: legal issue???
There are several possibilities - mainly depending upon your relation to your users. If your a consulting company and are really an agent of your users and can accept terms of licenses for them (this is generally in the contract of work between the two companies, implied in some states of US), then you should have no problems installing the JDK for them. If you're reselling a product, which makes you no longer an agent of the users, or you are not able to make binding agreements for the users then you have (I believe) two options. First, you can use jspc to translaste the jsp into java and then compile. Second is the Jikes compiler. I don't know anything about its licensing, but you might want to check it out over at http://www10.software.ibm.com/developerworks/opensource/jikes/?aw=50. All of this comes with the cavaet: I'm not a lawyer, just someone going through the same process as you are. Randy -Original Message- From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 6:52 AM To: '[EMAIL PROTECTED]' Subject: RE: legal issue??? This came up before with the subject tools.jar. I think the response was basically to use jspc to precompile your JSP source. -Original Message- From: Philip Halsey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:17 AM To: '[EMAIL PROTECTED]' Subject: legal issue??? Hi, I have been using tomcat for a while now developing an intranet front end to a database system We are now at the point where we are think about how we are to deploy it on user sites and so are doing research on what the best JSP/Servlet server engine to use. As we have been developing on tomcat we would prefer to use it... I am really not sure about the legal issues of doing this with tomcat, especially to do with customers requiring the JDK to compile the JSP files. I have tried to find information about this on the web site but have failed. I would be very grateful for an advise received. Cheers Phil - 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: Hi Ho - Problem with ServletOutputStream in Tomcat
I think your problem might be because you are trying to print bytes cast to characters. Try using the write method instead. Also, to get a speed up I would suggest reading and writing arrays of bytes at a time (maybe 500 to 2000 bytes) - it greatly reduces the number of system calls involved. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 7:45 AM To: [EMAIL PROTECTED] Subject: Hi Ho - Problem with ServletOutputStream in Tomcat I ve created an Servlet that routes Requests and Responses to and from another Server. When i try to get a Image through this Servlet i get an Error 500. I coded the app as described in the j2ee docu for sending binary data. maybee a little code snipplet and the error trace helps to understand http://127.0.0.1:8080/maria/portal/zmr/javalogo52x88.gif this is the url -- http://127.0.0.1:8080 - is my Tomcat instance /maria/portal - is my proxy servlet /zmr/javalogo52x88.gif is the image i want to display in my browser - but /zmr is another webapplication on another tomcat server heres the code for the binary data receiving and sending to the client // Setting the Headers for the Client same as the Servlet received them from the other server while ((strHeaderKey = HttpUrlCon.getHeaderFieldKey(iCounter)) != null) { strHeaderValue = HttpUrlCon.getHeaderField(iCounter); LogIt("ResponseHeader - Value: " + strHeaderKey + " - " + strHeaderValue); response.setHeader(strHeaderKey,strHeaderValue); iCounter +=1; } // figuring out which type of data the servlet is getting if (HttpUrlCon.getContentType().equals("text/html")) { // Text or HTML - thats where i use the PrintWriter PrintWriter out = response.getWriter(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } else { try { // Everything else assuming its binary data so i use ServletOutputStream ServletOutputStream out = ((ServletResponse)response).getOutputStream(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } catch (IOException e) { this.log("IOException !!",e); } } heres the error trace i get when i try to process it - 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Type - image/gif 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Length - 1495 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Last-Modified - Tue, 13 Feb 2001 10:07:22 GMT 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Servlet-Engine - Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) 2001-02-14 01:26:43 - path="/maria" :proxy: IOException !! - java.io.IOException: Not an ISO 8859_1 character:^ at org.apache.tomcat.core.BufferedServletOutputStream.print(BufferedServletOutp utStream.java:221) at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:177) at at.gv.bmi.maria.proxy.ReturnData(proxy.java:201) at at.gv.bmi.maria.proxy.doGet(proxy.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) please help me, its important and i dont know how to solve this problem - in my opinion its a problem in the org.apache.tomcat.core.BufferedServletOutputStream Class ?? why does it need a ISO 8859_1 Charset for Binary Data ??? greetings Wolfgang Kremser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To
RE: Hi Ho - Problem with ServletOutputStream in Tomcat
This is true, I wrote a multipart/form-data parser and the only character set which preserved binary data was ISO-8859-1. Conversions between bytes and characters only work with this encType, your input and output should both use this if you use characters to store binary data. Output streams are supposed to output bytes, the print in the ServletOutputStream method converts a char to a byte array, you'd be better off using the write(byte[] b) method of the base OutputStream class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: Hi Ho - Problem with ServletOutputStream in Tomcat I ve created an Servlet that routes Requests and Responses to and from another Server. When i try to get a Image through this Servlet i get an Error 500. I coded the app as described in the j2ee docu for sending binary data. maybee a little code snipplet and the error trace helps to understand http://127.0.0.1:8080/maria/portal/zmr/javalogo52x88.gif this is the url -- http://127.0.0.1:8080 - is my Tomcat instance /maria/portal - is my proxy servlet /zmr/javalogo52x88.gif is the image i want to display in my browser - but /zmr is another webapplication on another tomcat server heres the code for the binary data receiving and sending to the client // Setting the Headers for the Client same as the Servlet received them from the other server while ((strHeaderKey = HttpUrlCon.getHeaderFieldKey(iCounter)) != null) { strHeaderValue = HttpUrlCon.getHeaderField(iCounter); LogIt("ResponseHeader - Value: " + strHeaderKey + " - " + strHeaderValue); response.setHeader(strHeaderKey,strHeaderValue); iCounter +=1; } // figuring out which type of data the servlet is getting if (HttpUrlCon.getContentType().equals("text/html")) { // Text or HTML - thats where i use the PrintWriter PrintWriter out = response.getWriter(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } else { try { // Everything else assuming its binary data so i use ServletOutputStream ServletOutputStream out = ((ServletResponse)response).getOutputStream(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } catch (IOException e) { this.log("IOException !!",e); } } heres the error trace i get when i try to process it - 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Type - image/gif 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Length - 1495 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Last-Modified - Tue, 13 Feb 2001 10:07:22 GMT 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Servlet-Engine - Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) 2001-02-14 01:26:43 - path="/maria" :proxy: IOException !! - java.io.IOException: Not an ISO 8859_1 character:^ at org.apache.tomcat.core.BufferedServletOutputStream.print(BufferedServletOutp utStream.java:221) at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:177) at at.gv.bmi.maria.proxy.ReturnData(proxy.java:201) at at.gv.bmi.maria.proxy.doGet(proxy.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) please help me, its important and i dont know how to solve this problem - in my opinion its a problem in the org.apache.tomcat.core.BufferedServletOutputStream Class ?? why does it need a ISO 8859_1 Charset for Binary Data ??? greetings Wolfgang Kremser - To
connecting to MS-SQL
Hi, I am trying to connect to a MS-SQL 7 database. I manage to create all the necessary object, but when I execute the servlet I get the following error: [Microsoft][ODBC Driver Manager] Invalid cursor state I use JdbcOdbc driver supplied with SDK 1.3 Any idea? David Treves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: connecting to MS-SQL
At what point does it raise that message ? Have you connected OK to the Database ? got a Recordset etc. ? The JDBC-ODBC in SDK 1.3 certainly works with SQL 7 and is very Quick. -Original Message- From: David Treves [mailto:[EMAIL PROTECTED]] Sent: 14 February 2001 13:38 To: mailing list tomcat-users Subject: connecting to MS-SQL Hi, I am trying to connect to a MS-SQL 7 database. I manage to create all the necessary object, but when I execute the servlet I get the following error: [Microsoft][ODBC Driver Manager] Invalid cursor state I use JdbcOdbc driver supplied with SDK 1.3 Any idea? David Treves - 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: connecting to MS-SQL
I managed to create the connection, statement and the resultset, the problem is when I try to get the data: try { Connection con = broker.getConnection(); //using the DBConnectionBroker pool Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT MAX(id) AS 'id' FROM table"); if (rs.getString(1) != null) // THIS IS THE PROBLEMATIC PART id = String.valueOf(rs.getInt(1) + 1); // assign an id to the user else id = "1"; } note that I have records in the table so it does fetch results. Thanks, David. - Original Message - From: "Richard Downey" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 3:59 PM Subject: RE: connecting to MS-SQL At what point does it raise that message ? Have you connected OK to the Database ? got a Recordset etc. ? The JDBC-ODBC in SDK 1.3 certainly works with SQL 7 and is very Quick. -Original Message- From: David Treves [mailto:[EMAIL PROTECTED]] Sent: 14 February 2001 13:38 To: mailing list tomcat-users Subject: connecting to MS-SQL Hi, I am trying to connect to a MS-SQL 7 database. I manage to create all the necessary object, but when I execute the servlet I get the following error: [Microsoft][ODBC Driver Manager] Invalid cursor state I use JdbcOdbc driver supplied with SDK 1.3 Any idea? David Treves - 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: jsp could not be loaded on winnt
Make sure that your classpath is being set up properly, and that any of your own classes are in a directory that is in your classpath. I had this, but can't remember exactly which thing I had to add to the classpath. Chris -Original Message- From: Mariano Kamp (by way of Mariano Kamp [EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 4:25 PM To: [EMAIL PROTECTED] Subject: jsp could not be loaded on winnt Hi there, hopefully I am not repeating a already asked questions, but I couldn't find it in the archives. Tomcat 3.2.1. is working fine on our linux boxes, but we also need to setup tomcat on a notebook for demonstrations. The strange thing is, it is not working. We are using Sun's JDK 1.3 and WIN 2K. When trying to access a servlet we get a Null Pointer Exception and when looking at the stack trace it seems to be related to to the class loading (adaptiveClassloader). Is there anyway to start Tomcat in debug mode? I'd like to see what class is missing or whatever reason there is?! Btw. When starting up tomcat right before establishing the handlers it reports that the jsp servlect could not be loaded and displays a count to 357. I have never seen this on Linux?! Any ideas? Mariano -- mariano kamp codamax ag hessenring 89 61348 bad homburg v.d.h. germany phone +49 6172 182 473 fax+49 6172 182 475 mobile +49 173 300 8564 (changed!) -- mariano kamp codamax ag hessenring 89 61348 bad homburg v.d.h. germany phone +49 6172 182 473 fax+49 6172 182 475 mobile +49 173 300 8564 (changed!) - 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: Réf. : Embedding Tomcat inside Java app.
Hi Nicolas, I've tried a lot of approaches (including giving permissions) but -- no success so far. Did you succeed embedding Tomcat? Hristo. -Original Message- From: JULE, Nicolas - DSIA [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Date: Wednesday, February 14, 2001 10:58 AM Subject: Rf. : Embedding Tomcat inside Java app. Hi , Have you try to adapt your tomcat.policy file ? something like: grant codeBase "file:${tomcat.home}/webapps/ROOT" { java.io.FilePermission "*" , read) }; Nicolas De : Hristo Katsarski@hristo le 14/02/2001 09:32 Pour : tomcat-user@[EMAIL PROTECTED]@SMTP@Hays Hub cc : Faxer : Objet : Embedding Tomcat inside Java app. Hi folks, I'm trying to embed Tomcat inside Java application. At the time of "/ROOT" context init, I get exception, stating that I've no read right on file "server.xml" I am really wondering what is the CORRECT way to embed Tomcat. Here is part of the output I get: ERROR reading D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml java.security.AccessControlException: access denied (java.io.FilePermission D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml read) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:231) at Anyone who, suceeded in embeddig Tomcat, please give me some clue. Thanks in advance Hristo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ** Ce message lectronique et tous les fichiers attachs qu'il contient sont confidentiels et destins exclusivement l'usage de la personne laquelle ils sont adresss. Si vous avez reu ce message par erreur, merci de le retourner son metteur. Les ides et opinions prsentes dans ce messages sont celles de son auteur, et ne reprsentent pas ncessairement celles du Groupe HAYS plc ou d'une quelconque de ses filiales. La publication, l'usage, la distribution, l'impression ou la copie non autorise de ce message et des attachements qu'il contient sont strictement interdits. Nous vous informons galement que nous avons vrifi l'absence de virus dans ce message mais que, malgr ce contrle, nous ne saurions tre tenus pour responsables d'ventuels dgts occasionns par un virus non dtect. This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the HAYS plc group or any of its subsidiary companies. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. ** - 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: connecting to MS-SQL
note that you must use if (rs.next()) or while (rs.next()) before accessing any results in order to position the pointer to the first record in the result set. HTH Alan I managed to create the connection, statement and the resultset, the problem is when I try to get the data: try { Connection con = broker.getConnection(); //using the DBConnectionBroker pool Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT MAX(id) AS 'id' FROM table"); if (rs.getString(1) != null) // THIS IS THE PROBLEMATIC PART id = String.valueOf(rs.getInt(1) + 1); // assign an id to the user else id = "1"; } note that I have records in the table so it does fetch results. Thanks, David. - Original Message - From: "Richard Downey" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 3:59 PM Subject: RE: connecting to MS-SQL At what point does it raise that message ? Have you connected OK to the Database ? got a Recordset etc. ? The JDBC-ODBC in SDK 1.3 certainly works with SQL 7 and is very Quick. -Original Message- From: David Treves [mailto:[EMAIL PROTECTED]] Sent: 14 February 2001 13:38 To: mailing list tomcat-users Subject: connecting to MS-SQL Hi, I am trying to connect to a MS-SQL 7 database. I manage to create all the necessary object, but when I execute the servlet I get the following error: [Microsoft][ODBC Driver Manager] Invalid cursor state I use JdbcOdbc driver supplied with SDK 1.3 Any idea? David Treves - 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: jsp could not be loaded on winnt
I've found the NPEs from the class loader generally mean corrupted .class files. Is it possible that the files got messed up when they were moved from the Linux machine to Win2000? You can turn on *lots* of debugging. There are notes in conf/server.xml about how to do it. Depending on how your starting Tomcat, using JDK1.3 might cause some other problems down the road. There is a known problem with JDK1.3 that causes NT services implemented in Java to shutdown when a user logs out. Unless you really need features in 1.3 I'd recommend using JDK1.2.2. -Original Message- From: Mariano Kamp (by way of Mariano Kamp [EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 4:25 PM To: [EMAIL PROTECTED] Subject: jsp could not be loaded on winnt Hi there, hopefully I am not repeating a already asked questions, but I couldn't find it in the archives. Tomcat 3.2.1. is working fine on our linux boxes, but we also need to setup tomcat on a notebook for demonstrations. The strange thing is, it is not working. We are using Sun's JDK 1.3 and WIN 2K. When trying to access a servlet we get a Null Pointer Exception and when looking at the stack trace it seems to be related to to the class loading (adaptiveClassloader). Is there anyway to start Tomcat in debug mode? I'd like to see what class is missing or whatever reason there is?! Btw. When starting up tomcat right before establishing the handlers it reports that the jsp servlect could not be loaded and displays a count to 357. I have never seen this on Linux?! Any ideas? Mariano -- mariano kamp codamax ag hessenring 89 61348 bad homburg v.d.h. germany phone +49 6172 182 473 fax+49 6172 182 475 mobile +49 173 300 8564 (changed!) -- mariano kamp codamax ag hessenring 89 61348 bad homburg v.d.h. germany phone +49 6172 182 473 fax+49 6172 182 475 mobile +49 173 300 8564 (changed!) - 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: connecting to MS-SQL
I'd put a while (rs.next ()) { . } round your if ( rs.getString... code . In effect it hasn't positioned to the start of the record set hence the cursor message. Hope that helps. -Original Message- From: David Treves [mailto:[EMAIL PROTECTED]] Sent: 14 February 2001 14:13 To: [EMAIL PROTECTED] Subject: Re: connecting to MS-SQL I managed to create the connection, statement and the resultset, the problem is when I try to get the data: try { Connection con = broker.getConnection(); //using the DBConnectionBroker pool Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT MAX(id) AS 'id' FROM table"); if (rs.getString(1) != null) // THIS IS THE PROBLEMATIC PART id = String.valueOf(rs.getInt(1) + 1); // assign an id to the user else id = "1"; } note that I have records in the table so it does fetch results. Thanks, David. - Original Message - From: "Richard Downey" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 3:59 PM Subject: RE: connecting to MS-SQL At what point does it raise that message ? Have you connected OK to the Database ? got a Recordset etc. ? The JDBC-ODBC in SDK 1.3 certainly works with SQL 7 and is very Quick. -Original Message- From: David Treves [mailto:[EMAIL PROTECTED]] Sent: 14 February 2001 13:38 To: mailing list tomcat-users Subject: connecting to MS-SQL Hi, I am trying to connect to a MS-SQL 7 database. I manage to create all the necessary object, but when I execute the servlet I get the following error: [Microsoft][ODBC Driver Manager] Invalid cursor state I use JdbcOdbc driver supplied with SDK 1.3 Any idea? David Treves - 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]
IIS/Tomcat can I get them to work together?
Hi all I am looking for documentation or help with getting Tomcat and IIS web server to work together. My aim is to have IIS serve up the static web pages and Tomcat the Servlet/JSP stuff. Problem is that I can only find documentation on setting up Tomcat and Apache. I am running Tomcat on an NT4 box with IIS web server. I did look into replacing IIS with Apache Win32 but that seems a little drastic. Also, am I being too fussy. Perhaps I should just let Tomcat serve up all web pages and dispense with IIS? Thanks for any help or advice. Michael Thomas www.abcXyz.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: IIS/Tomcat can I get them to work together?
I am looking for documentation or help with getting Tomcat and IIS web server to work together. My aim is to have IIS serve up the static web pages and Tomcat the Servlet/JSP stuff. Have a look at this: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l I can't vouch for how easy it is to set up as I haven't got as far as integrating it with IIS yet (although I plan to) - I'm still trying to get a J2EE application up and running on Tomcat myself. -- Julie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: IIS/Tomcat can I get them to work together?
Your plan sounds very resonable. The IIS-Tomcat how to is in the CVS Repository. Go to the jakarta.apache.org web page and select CVS Repository. Click on the Web interface. Select the jakarta-tomcat project. Now, click on the links for src and then doc. This is the listing of documentation for the Tomcat project. There should be a file entitled tomcat-iis-howto.html. This file describes all the steps necessary. Randy -Original Message- From: mike thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 12:40 PM To: [EMAIL PROTECTED] Subject: IIS/Tomcat can I get them to work together? Hi all I am looking for documentation or help with getting Tomcat and IIS web server to work together. My aim is to have IIS serve up the static web pages and Tomcat the Servlet/JSP stuff. Problem is that I can only find documentation on setting up Tomcat and Apache. I am running Tomcat on an NT4 box with IIS web server. I did look into replacing IIS with Apache Win32 but that seems a little drastic. Also, am I being too fussy. Perhaps I should just let Tomcat serve up all web pages and dispense with IIS? Thanks for any help or advice. Michael Thomas www.abcXyz.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]
Re: connecting to MS-SQL
Hi, I think you should try this code-snippet: ... Connection con = null; try { // get data from database con = DriverManager.getConnection( ... ); // replace with your DB-connector Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery( "put your SQL-Statement here" ); if ( null != rs ) { while( rs.next() ) { ... (get data with rs.getString() etc.) } rs.close(); } rs = null; stmt.close(); stmt = null; } catch( Exception e ) { ... // some exception handling here } finally { // don't forget to close the connection !! try { con.close(); con = null; } catch( Exception e ) {} } ... Bye Frank Ursprngliche Nachricht Am 14.02.01, 14:38:10, schrieb "David Treves" [EMAIL PROTECTED] zum Thema connecting to MS-SQL: Hi, I am trying to connect to a MS-SQL 7 database. I manage to create all the necessary object, but when I execute the servlet I get the following error: [Microsoft][ODBC Driver Manager] Invalid cursor state I use JdbcOdbc driver supplied with SDK 1.3 Any idea? David Treves - 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: Réf. : Embedding Tomcat inside Java app.
Try giving the full path of the policy file as a parameter to the jvm. Example: java -Djava.security.policy==full_path_to/ips.policy myAppWithTomcat Also note the two equal signs. This is important. Do NOT use just one equal sign. Also I'm attatching a tomca.policy file that grants all permission to all codebases. This may not be a good idea to do in production but for development it should be fine. Regards, Stefan -Original Message- From: Hristo Katsarski [mailto:[EMAIL PROTECTED]] Sent: 14. febrar 2001 14:12 To: [EMAIL PROTECTED] Subject: Re: Rf. : Embedding Tomcat inside Java app. Hi Nicolas, I've tried a lot of approaches (including giving permissions) but -- no success so far. Did you succeed embedding Tomcat? Hristo. -Original Message- From: JULE, Nicolas - DSIA [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Date: Wednesday, February 14, 2001 10:58 AM Subject: Rf. : Embedding Tomcat inside Java app. Hi , Have you try to adapt your tomcat.policy file ? something like: grant codeBase "file:${tomcat.home}/webapps/ROOT" { java.io.FilePermission "*" , read) }; Nicolas De : Hristo Katsarski@hristo le 14/02/2001 09:32 Pour : tomcat-user@[EMAIL PROTECTED]@SMTP@Hays Hub cc : Faxer : Objet : Embedding Tomcat inside Java app. Hi folks, I'm trying to embed Tomcat inside Java application. At the time of "/ROOT" context init, I get exception, stating that I've no read right on file "server.xml" I am really wondering what is the CORRECT way to embed Tomcat. Here is part of the output I get: ERROR reading D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml java.security.AccessControlException: access denied (java.io.FilePermission D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml read) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:231) at Anyone who, suceeded in embeddig Tomcat, please give me some clue. Thanks in advance Hristo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ** Ce message lectronique et tous les fichiers attachs qu'il contient sont confidentiels et destins exclusivement l'usage de la personne laquelle ils sont adresss. Si vous avez reu ce message par erreur, merci de le retourner son metteur. Les ides et opinions prsentes dans ce messages sont celles de son auteur, et ne reprsentent pas ncessairement celles du Groupe HAYS plc ou d'une quelconque de ses filiales. La publication, l'usage, la distribution, l'impression ou la copie non autorise de ce message et des attachements qu'il contient sont strictement interdits. Nous vous informons galement que nous avons vrifi l'absence de virus dans ce message mais que, malgr ce contrle, nous ne saurions tre tenus pour responsables d'ventuels dgts occasionns par un virus non dtect. This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the HAYS plc group or any of its subsidiary companies. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ips.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JSPs and namedDispatchers
I am trying to forward a request back and forth between a servlet and some JSPs. The way I am trying to do this is via a namedDispatcher. The problem I am having is, how do I name a JSP. I was looking through the web-app DTD and it seems that something like this would work serevlet servlet-name RSSChannelWizard /servlet-name jsp-file /rss/rsschannelwizard.jsp /jsp-file /servlet Will this work (given that I can get to the above jsp from the above address)? Chad La Joie "Only a man who can not conquer IT Specialist his deficiencies feels the need to ISC - WARD convince the world he has none" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: mail configuration
Take a look at JavaMail. http://java.sun.com/products/javamail/ On Wed, 14 Feb 2001, you wrote: hi, can anyone tell me how to configure mail on tomcat. i am building an application which has to send attachments with the mail to a user. best reagrds piyush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: IIS/Tomcat can I get them to work together?
Julie Thanks for the info. I'll let you know how I get on with NT/IIS. Sorry I cannot help you with the J2EE stuff. Michael -Original Message- From: Julie Sorrell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 6:40 AM To: '[EMAIL PROTECTED]' Subject: RE: IIS/Tomcat can I get them to work together? I am looking for documentation or help with getting Tomcat and IIS web server to work together. My aim is to have IIS serve up the static web pages and Tomcat the Servlet/JSP stuff. Have a look at this: http://jakarta.apache.org/tomcat/jakarta-tomcat/sr c/doc/tomcat-iis-howto.htm l I can't vouch for how easy it is to set up as I haven't got as far as integrating it with IIS yet (although I plan to) - I'm still trying to get a J2EE application up and running on Tomcat myself. -- Julie -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Need help! :( (XALAN CONFIG )
Hello We are trying to configure Tomcat to work with Xalan (the XSLT engine). We have set up the servlet (XSLT.class) in the webapps directory ie D:\tomcat\webapps\faisal\WEB-INF\Classes\XSLT.class we have also configured the 'web.xml' in D:\tomcat\webapps\faisal\WEB-INF this file looks like : - web.xml ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" web-app servlet servlet-name XSLT /servlet-name servlet-class XSLT /servlet-class /servlet /web-app -eof web.xml -- We can run simple example servlets however, when using the XALAN API, we keep getting the following errors: tomcat.log-- Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Context log: path="/faisal" Adding context path="/faisal" docBase="webapps/faisal" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="d:\tomcat" home="D:\tomcat" classPath="d:\tomcat\classes;d:\tomcat\lib\webserver.jar; d:\tomcat\lib\jasper.jar;d:\tomcat\lib\xml.jar; d:\tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar; D:\tomcat\lib\servlet.jar;D:\xalan\stylebook-1.0-b3_xalan-2.jar;.; D:\xalan\xalan.jar;D:\xalan\xerces.jar;D:\xalan\xalanj1compat.jar; D:\xalan\xalan2jdoc.jar;D:\xalan\xalanservlet.jar" Context log: path="/admin" Automatic context load docBase="D:\tomcat\webapps\admin" Context log: path="/admin" Adding context path="/admin" docBase="D:\tomcat\webapps\admin" file:///D:/tomcat/webapps/faisal/fruit.xml; Line 3; Column 3; java.lang.NoSuchMethodError at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326) at org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471) at org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528) at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:432) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894) at java.lang.Thread.run(Thread.java:484) -eof tomcat.log-- The servlet compiles ok and the all the Xalan jars are placed in the correct directories, however, there seems to be a problem with Tomcat finding the above Xalan API method call. We've tried doing many things already and are urgently needing some help. Here's the simple servlet that we've been working on : XSLT.java import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import javax.xml.transform.*; import javax.xml.transform.stream.*; import org.w3c.dom.*; public class XSLT extends HttpServlet { public void init(){ TransformerFactory trFactory = TransformerFactory.newInstance(); File xmlFile = new File("birds.xml"); File xslFile = new File("birds.xsl"); try { Transformer transformer = trFactory.newTransformer(new StreamSource(xslFile)); transformer.transform(new StreamSource(xmlFile), new StreamResult(new File("result.out"))) } catch (Exception et) { System.out.print(String.valueOf(et)); } } } eof XSLT.java Nazir Faisal-LFN003.vcf Nazir Faisal-LFN003.vcf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Configuring Isapi Redirector with IIS
I have followed the instructions in "Tomcat IIS HowTo" by Gal Shachor [EMAIL PROTECTED] to set up IIS to redirect requests to Tomcat on an NT machine. I don't want to repeat again all the steps that appears in the document in this email. Whenever I try to test the redirection of requests from IIS to Tomcat, I get an error. It appears in the "Event Viewer" as: "The HTTP Filter DLL E:\Programs\jakarta-tomcat\bin\iis\i386 failed to load. The data is the error.". The isapi.log has [jk_isapi_plugin.c (385)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (338)]: jk_uri_worker_map_t::uri_worker_map_open, done with ajp12 [jk_isapi_plugin.c (395)]: In HttpFilterProc /examples/jsp/index.html should redirect to ajp12 [jk_uri_worker_map.c (127)]: Into jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c (273)]: Into jk_uri_worker_map_t::uri_worker_map_close [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_worker.c (125)]: Into wc_close [jk_worker.c (127)]: wc_close, done C:\WINNT\system32\LogFiles\W3SVC1\ex010214.log has: 2001-02-14 15:08:59 132.253.97.108 - W3SVC1 BISUT GET /jakarta/isapi_redirect.dll - 401 80 HTTP/1.0 Mozilla/4.7+[en]+(WinNT;+I) - The operation crashes IIS and I get the following error (see attachment). Does anyone know what is wrong here? The error is 401 which is not covered in the troubleshooting section for WinNT. The IIS version is 4.0 and Tomcat is 3.1. -- Eli Segev PTC (781)370-6127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Need help! :( (XALAN CONFIG )
Hi that's a problem that cause due to the duel parsers ! you see tomcat (version 3.2.1 as far as I know) uses jaxp as its parser and may be this is your problem ! . -Original Message- From: Nazir Faisal-LFN003 [mailto:[EMAIL PROTECTED]] Sent: Wed, February 14, 2001 5:24 PM To: '[EMAIL PROTECTED]' Subject: Need help! :( (XALAN CONFIG ) Hello We are trying to configure Tomcat to work with Xalan (the XSLT engine). We have set up the servlet (XSLT.class) in the webapps directory ie D:\tomcat\webapps\faisal\WEB-INF\Classes\XSLT.class we have also configured the 'web.xml' in D:\tomcat\webapps\faisal\WEB-INF this file looks like : - web.xml ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" web-app servlet servlet-name XSLT /servlet-name servlet-class XSLT /servlet-class /servlet /web-app -eof web.xml -- We can run simple example servlets however, when using the XALAN API, we keep getting the following errors: tomcat.log-- Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Context log: path="/faisal" Adding context path="/faisal" docBase="webapps/faisal" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="d:\tomcat" home="D:\tomcat" classPath="d:\tomcat\classes;d:\tomcat\lib\webserver.jar; d:\tomcat\lib\jasper.jar;d:\tomcat\lib\xml.jar; d:\tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar; D:\tomcat\lib\servlet.jar;D:\xalan\stylebook-1.0-b3_xalan-2.jar;.; D:\xalan\xalan.jar;D:\xalan\xerces.jar;D:\xalan\xalanj1compat.jar; D:\xalan\xalan2jdoc.jar;D:\xalan\xalanservlet.jar" Context log: path="/admin" Automatic context load docBase="D:\tomcat\webapps\admin" Context log: path="/admin" Adding context path="/admin" docBase="D:\tomcat\webapps\admin" file:///D:/tomcat/webapps/faisal/fruit.xml; Line 3; Column 3; java.lang.NoSuchMethodError at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326) at org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471) at org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528) at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja va:432) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav a:193) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java:2154) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java:2097) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer Impl.java:2029) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1189) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894) at java.lang.Thread.run(Thread.java:484) -eof tomcat.log-- The servlet compiles ok and the all the Xalan jars are placed in the correct directories, however, there seems to be a problem with Tomcat finding the above Xalan API method call. We've tried doing many things already and are urgently needing some help. Here's the simple servlet that we've been working on : XSLT.java--- - import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import javax.xml.transform.*; import javax.xml.transform.stream.*; import org.w3c.dom.*; public class XSLT extends HttpServlet { public void init(){ TransformerFactory trFactory = TransformerFactory.newInstance(); File xmlFile = new File("birds.xml"); File xslFile = new File("birds.xsl"); try { Transformer transformer = trFactory.newTransformer(new StreamSource(xslFile)); transformer.transform(new StreamSource(xmlFile), new StreamResult(new File("result.out"))) } catch (Exception et) { System.out.print(String.valueOf(et)); } } } eof XSLT.java Nazir Faisal-LFN003.vcf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Need help! :( (XALAN CONFIG )
Hi This question comes up alot on this list. The fix is to put your xml parser before the tomcat one in the CLASSPATH. ie xalan.jar;xerces.jar;xml.jar This will avoid the less functional classes in xml.jar being used when you really want the newer classes. You can make the change in tomcat.[sh|bat] for tomcat 4.0 In 4.0 I think the WEB-INF/lib is automatcally searched b4 the system classpath, so no problems like this. If you want more detail search the list archive. -Original Message- From: Nazir Faisal-LFN003 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 3:24 PM To: '[EMAIL PROTECTED]' Subject: Need help! :( (XALAN CONFIG ) Hello We are trying to configure Tomcat to work with Xalan (the XSLT engine). We have set up the servlet (XSLT.class) in the webapps directory ie D:\tomcat\webapps\faisal\WEB-INF\Classes\XSLT.class we have also configured the 'web.xml' in D:\tomcat\webapps\faisal\WEB-INF this file looks like : - web.xml ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" web-app servlet servlet-name XSLT /servlet-name servlet-class XSLT /servlet-class /servlet /web-app -eof web.xml -- We can run simple example servlets however, when using the XALAN API, we keep getting the following errors: tomcat.log-- Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Context log: path="/faisal" Adding context path="/faisal" docBase="webapps/faisal" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="d:\tomcat" home="D:\tomcat" classPath="d:\tomcat\classes;d:\tomcat\lib\webserver.jar; d:\tomcat\lib\jasper.jar;d:\tomcat\lib\xml.jar; d:\tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar; D:\tomcat\lib\servlet.jar;D:\xalan\stylebook-1.0-b3_xalan-2.jar;.; D:\xalan\xalan.jar;D:\xalan\xerces.jar;D:\xalan\xalanj1compat.jar; D:\xalan\xalan2jdoc.jar;D:\xalan\xalanservlet.jar" Context log: path="/admin" Automatic context load docBase="D:\tomcat\webapps\admin" Context log: path="/admin" Adding context path="/admin" docBase="D:\tomcat\webapps\admin" file:///D:/tomcat/webapps/faisal/fruit.xml; Line 3; Column 3; java.lang.NoSuchMethodError at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326) at org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471) at org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528) at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja va:432) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav a:193) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java:2154) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java:2097) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer Impl.java:2029) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1189) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894) at java.lang.Thread.run(Thread.java:484) -eof tomcat.log-- The servlet compiles ok and the all the Xalan jars are placed in the correct directories, however, there seems to be a problem with Tomcat finding the above Xalan API method call. We've tried doing many things already and are urgently needing some help. Here's the simple servlet that we've been working on : XSLT.java--- - import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import javax.xml.transform.*; import javax.xml.transform.stream.*; import org.w3c.dom.*; public class XSLT extends HttpServlet { public void init(){ TransformerFactory trFactory = TransformerFactory.newInstance(); File xmlFile = new File("birds.xml"); File xslFile = new File("birds.xsl"); try { Transformer transformer = trFactory.newTransformer(new StreamSource(xslFile)); transformer.transform(new StreamSource(xmlFile), new StreamResult(new File("result.out"))) } catch (Exception et) { System.out.print(String.valueOf(et)); } } } eof XSLT.java Nazir Faisal-LFN003.vcf
RE: Need help! :( (XALAN CONFIG )
Title: RE: Need help! :( (XALAN CONFIG ) you need to move xerces.jar and xalan.jar before xml.jar in your classpath. -Original Message- From: Nazir Faisal-LFN003 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:24 AM To: '[EMAIL PROTECTED]' Subject: Need help! :( (XALAN CONFIG ) Hello We are trying to configure Tomcat to work with Xalan (the XSLT engine). We have set up the servlet (XSLT.class) in the webapps directory ie D:\tomcat\webapps\faisal\WEB-INF\Classes\XSLT.class we have also configured the 'web.xml' in D:\tomcat\webapps\faisal\WEB-INF this file looks like : - web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2.2.dtd web-app servlet servlet-name XSLT /servlet-name servlet-class XSLT /servlet-class /servlet /web-app -eof web.xml -- We can run simple example servlets however, when using the XALAN API, we keep getting the following errors: tomcat.log-- Context log: path=/examples Adding context path=/examples docBase=webapps/examples Context log: path= Adding context path= docBase=webapps/ROOT Context log: path=/test Adding context path=/test docBase=webapps/test Context log: path=/faisal Adding context path=/faisal docBase=webapps/faisal Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install=d:\tomcat home=D:\tomcat classPath=d:\tomcat\classes;d:\tomcat\lib\webserver.jar; d:\tomcat\lib\jasper.jar;d:\tomcat\lib\xml.jar; d:\tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar; D:\tomcat\lib\servlet.jar;D:\xalan\stylebook-1.0-b3_xalan-2.jar;.; D:\xalan\xalan.jar;D:\xalan\xerces.jar;D:\xalan\xalanj1compat.jar; D:\xalan\xalan2jdoc.jar;D:\xalan\xalanservlet.jar Context log: path=/admin Automatic context load docBase=D:\tomcat\webapps\admin Context log: path=/admin Adding context path=/admin docBase=D:\tomcat\webapps\admin file:///D:/tomcat/webapps/faisal/fruit.xml; Line 3; Column 3; java.lang.NoSuchMethodError at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326) at org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471) at org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528) at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:432) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894) at java.lang.Thread.run(Thread.java:484) -eof tomcat.log-- The servlet compiles ok and the all the Xalan jars are placed in the correct directories, however, there seems to be a problem with Tomcat finding the above Xalan API method call. We've tried doing many things already and are urgently needing some help. Here's the simple servlet that we've been working on : XSLT.java import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import javax.xml.transform.*; import javax.xml.transform.stream.*; import org.w3c.dom.*; public class XSLT extends HttpServlet { public void init(){ TransformerFactory trFactory = TransformerFactory.newInstance(); File xmlFile = new File(birds.xml); File xslFile = new File(birds.xsl); try { Transformer transformer = trFactory.newTransformer(new StreamSource(xslFile)); transformer.transform(new StreamSource(xmlFile), new StreamResult(new File(result.out))) } catch (Exception et) { System.out.print(String.valueOf(et)); } } } eof XSLT.java Nazir Faisal-LFN003.vcf
IIS Tomcat. Why?
Please forgive a complete newbie, but I joined these lists to start building my knowledge of servlets and enterprise apps a few days ago and it has already been very fun. I see a lot of people trying to configure IIS to work with Tomcat. Being stuck in a mainly MS-oriented shop, this is of some interest to me. My project involves a research department database custom application, and having already dealt with ASP, I'd like to try another nightmare. :) (At a minimum, but maybe it'll turn into a good wet dream!) So, I installed Tomcat on a W2K Server box. I see that it can work pretty much alone. Why do I want to work it through IIS? Is it to be able to use JSP and servlets through port 80? I guess I'm just missing something fundamental here, but can't put my finger on it. TIA. Paul Tiseo, Intermediate Systems Programmer Birdsall 122, Mayo Clinic Jacksonville 4500 San Pablo Rd, FL, 32224 [EMAIL PROTECTED] -- (904) 953-8254 / 953-7134 (fax) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Hi Ho - Problem with ServletOutputStream in Tomcat
thx for your info i used write but my next problem is that the binary content gets somehow translated and isnt the same as before - for example gif images arent displayed correctly --- pdf are displayed wrong -- and so on ... well i dont have a clue why. greetings Wolfgang -Ursprngliche Nachricht- Von: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. Februar 2001 14:32 An: '[EMAIL PROTECTED]' Betreff: RE: Hi Ho - Problem with ServletOutputStream in Tomcat This is true, I wrote a multipart/form-data parser and the only character set which preserved binary data was ISO-8859-1. Conversions between bytes and characters only work with this encType, your input and output should both use this if you use characters to store binary data. Output streams are supposed to output bytes, the print in the ServletOutputStream method converts a char to a byte array, you'd be better off using the write(byte[] b) method of the base OutputStream class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: Hi Ho - Problem with ServletOutputStream in Tomcat I ve created an Servlet that routes Requests and Responses to and from another Server. When i try to get a Image through this Servlet i get an Error 500. I coded the app as described in the j2ee docu for sending binary data. maybee a little code snipplet and the error trace helps to understand http://127.0.0.1:8080/maria/portal/zmr/javalogo52x88.gif this is the url -- http://127.0.0.1:8080 - is my Tomcat instance /maria/portal - is my proxy servlet /zmr/javalogo52x88.gif is the image i want to display in my browser - but /zmr is another webapplication on another tomcat server heres the code for the binary data receiving and sending to the client // Setting the Headers for the Client same as the Servlet received them from the other server while ((strHeaderKey = HttpUrlCon.getHeaderFieldKey(iCounter)) != null) { strHeaderValue = HttpUrlCon.getHeaderField(iCounter); LogIt("ResponseHeader - Value: " + strHeaderKey + " - " + strHeaderValue); response.setHeader(strHeaderKey,strHeaderValue); iCounter +=1; } // figuring out which type of data the servlet is getting if (HttpUrlCon.getContentType().equals("text/html")) { // Text or HTML - thats where i use the PrintWriter PrintWriter out = response.getWriter(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } else { try { // Everything else assuming its binary data so i use ServletOutputStream ServletOutputStream out = ((ServletResponse)response).getOutputStream(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } catch (IOException e) { this.log("IOException !!",e); } } heres the error trace i get when i try to process it - 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Type - image/gif 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Length - 1495 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Last-Modified - Tue, 13 Feb 2001 10:07:22 GMT 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Servlet-Engine - Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) 2001-02-14 01:26:43 - path="/maria" :proxy: IOException !! - java.io.IOException: Not an ISO 8859_1 character:^ at org.apache.tomcat.core.BufferedServletOutputStream.print(BufferedServletOutp utStream.java:221) at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:177) at at.gv.bmi.maria.proxy.ReturnData(proxy.java:201) at at.gv.bmi.maria.proxy.doGet(proxy.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at
AW: Hi Ho - Problem with ServletOutputStream in Tomcat
ok thanx for your info -- i didnt notice that ServletOutputStream has a write method :) and about speed - its my first catch -- i ll improve speed after i know that this way works .) greetings Wolfgang Kremser -Ursprngliche Nachricht- Von: Randy Layman [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. Februar 2001 13:48 An: [EMAIL PROTECTED] Betreff: RE: Hi Ho - Problem with ServletOutputStream in Tomcat I think your problem might be because you are trying to print bytes cast to characters. Try using the write method instead. Also, to get a speed up I would suggest reading and writing arrays of bytes at a time (maybe 500 to 2000 bytes) - it greatly reduces the number of system calls involved. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 7:45 AM To: [EMAIL PROTECTED] Subject: Hi Ho - Problem with ServletOutputStream in Tomcat I ve created an Servlet that routes Requests and Responses to and from another Server. When i try to get a Image through this Servlet i get an Error 500. I coded the app as described in the j2ee docu for sending binary data. maybee a little code snipplet and the error trace helps to understand http://127.0.0.1:8080/maria/portal/zmr/javalogo52x88.gif this is the url -- http://127.0.0.1:8080 - is my Tomcat instance /maria/portal - is my proxy servlet /zmr/javalogo52x88.gif is the image i want to display in my browser - but /zmr is another webapplication on another tomcat server heres the code for the binary data receiving and sending to the client // Setting the Headers for the Client same as the Servlet received them from the other server while ((strHeaderKey = HttpUrlCon.getHeaderFieldKey(iCounter)) != null) { strHeaderValue = HttpUrlCon.getHeaderField(iCounter); LogIt("ResponseHeader - Value: " + strHeaderKey + " - " + strHeaderValue); response.setHeader(strHeaderKey,strHeaderValue); iCounter +=1; } // figuring out which type of data the servlet is getting if (HttpUrlCon.getContentType().equals("text/html")) { // Text or HTML - thats where i use the PrintWriter PrintWriter out = response.getWriter(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } else { try { // Everything else assuming its binary data so i use ServletOutputStream ServletOutputStream out = ((ServletResponse)response).getOutputStream(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } catch (IOException e) { this.log("IOException !!",e); } } heres the error trace i get when i try to process it - 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Type - image/gif 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Length - 1495 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Last-Modified - Tue, 13 Feb 2001 10:07:22 GMT 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Servlet-Engine - Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) 2001-02-14 01:26:43 - path="/maria" :proxy: IOException !! - java.io.IOException: Not an ISO 8859_1 character:^ at org.apache.tomcat.core.BufferedServletOutputStream.print(BufferedServletOutp utStream.java:221) at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:177) at at.gv.bmi.maria.proxy.ReturnData(proxy.java:201) at at.gv.bmi.maria.proxy.doGet(proxy.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) please help me, its important and i dont know how to solve this problem
RE: Need help! :( (XALAN CONFIG )
hi thanks for all help, we just been looking at the archives and it would appear the we posted an already well known problem. Thanks for the quick response people, we really appreciate all help rob fazza -Original Message- From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]] Sent: 14 February 2001 15:33 To: '[EMAIL PROTECTED]' Subject: RE: Need help! :( (XALAN CONFIG ) Hi This question comes up alot on this list. The fix is to put your xml parser before the tomcat one in the CLASSPATH. ie xalan.jar;xerces.jar;xml.jar This will avoid the less functional classes in xml.jar being used when you really want the newer classes. You can make the change in tomcat.[sh|bat] for tomcat 4.0 In 4.0 I think the WEB-INF/lib is automatcally searched b4 the system classpath, so no problems like this. If you want more detail search the list archive. -Original Message- From: Nazir Faisal-LFN003 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 3:24 PM To: '[EMAIL PROTECTED]' Subject: Need help! :( (XALAN CONFIG ) Hello We are trying to configure Tomcat to work with Xalan (the XSLT engine). We have set up the servlet (XSLT.class) in the webapps directory ie D:\tomcat\webapps\faisal\WEB-INF\Classes\XSLT.class we have also configured the 'web.xml' in D:\tomcat\webapps\faisal\WEB-INF this file looks like : - web.xml ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" web-app servlet servlet-name XSLT /servlet-name servlet-class XSLT /servlet-class /servlet /web-app -eof web.xml -- We can run simple example servlets however, when using the XALAN API, we keep getting the following errors: tomcat.log-- Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Context log: path="/faisal" Adding context path="/faisal" docBase="webapps/faisal" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="d:\tomcat" home="D:\tomcat" classPath="d:\tomcat\classes;d:\tomcat\lib\webserver.jar; d:\tomcat\lib\jasper.jar;d:\tomcat\lib\xml.jar; d:\tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar; D:\tomcat\lib\servlet.jar;D:\xalan\stylebook-1.0-b3_xalan-2.jar;.; D:\xalan\xalan.jar;D:\xalan\xerces.jar;D:\xalan\xalanj1compat.jar; D:\xalan\xalan2jdoc.jar;D:\xalan\xalanservlet.jar" Context log: path="/admin" Automatic context load docBase="D:\tomcat\webapps\admin" Context log: path="/admin" Adding context path="/admin" docBase="D:\tomcat\webapps\admin" file:///D:/tomcat/webapps/faisal/fruit.xml; Line 3; Column 3; java.lang.NoSuchMethodError at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326) at org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471) at org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528) at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja va:432) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav a:193) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java:2154) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java:2097) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer Impl.java:2029) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1189) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894) at java.lang.Thread.run(Thread.java:484) -eof tomcat.log-- The servlet compiles ok and the all the Xalan jars are placed in the correct directories, however, there seems to be a problem with Tomcat finding the above Xalan API method call. We've tried doing many things already and are urgently needing some help. Here's the simple servlet that we've been working on : XSLT.java--- - import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import javax.xml.transform.*; import javax.xml.transform.stream.*; import org.w3c.dom.*; public class XSLT extends HttpServlet { public void init(){ TransformerFactory trFactory = TransformerFactory.newInstance(); File xmlFile = new File("birds.xml"); File xslFile = new File("birds.xsl"); try { Transformer transformer = trFactory.newTransformer(new StreamSource(xslFile)); transformer.transform(new
RE: Configuring Isapi Redirector with IIS
It seems to me like there might be several things wrong. First, check your workers.properties file. It seems like you might not have the ajp12 worker defined or maybe defined incorrectly. Next, check the registry entry for the worker.properties file. Second, look at your filter. The executable for the filter needs to be isapi_redirect.dll (the message looks like it might not point to the dll, just the directory). If that doesn't do it, I would suggest trying a new DLL, after the Windows NT fix-all - reboot. Randy -Original Message- From: Eli Segev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:30 AM To: [EMAIL PROTECTED] Subject: Configuring Isapi Redirector with IIS I have followed the instructions in "Tomcat IIS HowTo" by Gal Shachor [EMAIL PROTECTED] to set up IIS to redirect requests to Tomcat on an NT machine. I don't want to repeat again all the steps that appears in the document in this email. Whenever I try to test the redirection of requests from IIS to Tomcat, I get an error. It appears in the "Event Viewer" as: "The HTTP Filter DLL E:\Programs\jakarta-tomcat\bin\iis\i386 failed to load. The data is the error.". The isapi.log has [jk_isapi_plugin.c (385)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (338)]: jk_uri_worker_map_t::uri_worker_map_open, done with ajp12 [jk_isapi_plugin.c (395)]: In HttpFilterProc /examples/jsp/index.html should redirect to ajp12 [jk_uri_worker_map.c (127)]: Into jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c (273)]: Into jk_uri_worker_map_t::uri_worker_map_close [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_worker.c (125)]: Into wc_close [jk_worker.c (127)]: wc_close, done C:\WINNT\system32\LogFiles\W3SVC1\ex010214.log has: 2001-02-14 15:08:59 132.253.97.108 - W3SVC1 BISUT GET /jakarta/isapi_redirect.dll - 401 80 HTTP/1.0 Mozilla/4.7+[en]+(WinNT;+I) - The operation crashes IIS and I get the following error (see attachment). Does anyone know what is wrong here? The error is 401 which is not covered in the troubleshooting section for WinNT. The IIS version is 4.0 and Tomcat is 3.1. -- Eli Segev PTC (781)370-6127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: RE: Réf. : Embedding Tomcat inside Java app.
Thak you Stefan and Nikolas ! Replacing the default policy file worked fine. Tomcat started, but...below is part of the first Exception I got, trying to access the default index.html file. Anyway, thanks a LOT for your help! best regards, Hristo ... WebAdapter: addConnector 8080 hristo/192.168.0.12 localhost PoolTcpConnector: setAttribute( vhost_port , 8080) PoolTcpConnector: setAttribute( vhost_address , hristo/192.168.0.12) PoolTcpConnector: setAttribute( vhost_name , localhost) ContextManager: Add connector javaClass="org.apache.tomcat.service.PoolTcpConnector" PoolTcpConnector: Starting HttpConnectionHandler on 8080 WebAdapter: Started - ContextManager: Error mapping the request R( + / + null) 302 Ctx( ): Handler tomcat.redirectHandler(null/null) tomcat.redirectHandler Ctx( ): Exception in: R( + / + null) java.lang.NullPointerException at java.io.PrintWriter.flush(PrintWriter.java:121) at org.apache.tomcat.facade.ServletWriterFacade.flush(ServletWriterFacade.java: 96) at org.apache.tomcat.context.RedirectHandler.doService(DefaultCMSetter.java:460 ) . ..and so on the trace - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Stopping Tomcat
Title: RE: Stopping Tomcat Thanks everyone who helped out with this. -Original Message- From: Jan Labanowski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 9:28 PM To: [EMAIL PROTECTED] Subject: RE: Stopping Tomcat I did not follow this thread from the beginning, but the first thing I would try is to see if ajp12 is enabled. Even if you use ajp13 for communication with apache you need ajp12 for shutting down the Tomcat. Never remove ajp12 from server.xml, only add ajp13. So, you have to have a !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/ Parameter name=port value=4006/ /Connector in your server.xml. Put something which is not used as port value (4006 in my case) Jan 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]
RE: IIS Tomcat. Why?
First, Tomcat can perform all of the basic web server functionality that IIS can - it can serve static content over any port you configure it to. IIS, however, has one thing going for it - its much faster than Tomcat at the static stuff (I know, its amazing that anything Microsoft has created can be fast, but it seems to be true). So, the question of wether or not to use IIS with Tomcat usually comes down to one of a few reasons: 1. Must support legacy ASP code, therefore must use IIS. 2. Corporate policy dictates that all web servers must be IIS, therfore must use IIS. 3. Corportate security policy dicates that all web traffic must be on port 80 and the machine to run the application already has IIS on port 80, therefore use IIS. 4. Application contains large amounts of static content (images, JavaScript includes, Style Sheets, etc) and performance is a concern, therefore use IIS. 5. If you reach here without the need for IIS, you should be alright with just Tomcat. Since this question comes up a lot, is there any interest in coming up with a guide for the questions one should answer in order to determine when they should or need to use Tomcat with another web server? If so, is there any support for adding it to the CVS docs? Randy -Original Message- From: Tiseo, Paul [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:40 AM To: '[EMAIL PROTECTED]' Subject: IIS Tomcat. Why? Please forgive a complete newbie, but I joined these lists to start building my knowledge of servlets and enterprise apps a few days ago and it has already been very fun. I see a lot of people trying to configure IIS to work with Tomcat. Being stuck in a mainly MS-oriented shop, this is of some interest to me. My project involves a research department database custom application, and having already dealt with ASP, I'd like to try another nightmare. :) (At a minimum, but maybe it'll turn into a good wet dream!) So, I installed Tomcat on a W2K Server box. I see that it can work pretty much alone. Why do I want to work it through IIS? Is it to be able to use JSP and servlets through port 80? I guess I'm just missing something fundamental here, but can't put my finger on it. TIA. Paul Tiseo, Intermediate Systems Programmer Birdsall 122, Mayo Clinic Jacksonville 4500 San Pablo Rd, FL, 32224 [EMAIL PROTECTED] -- (904) 953-8254 / 953-7134 (fax) - 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: Hi Ho - Problem with ServletOutputStream in Tomcat
What kind of translation is happening? Are you getting a few extra bytes here and there, are all (or some) shifting by a few bits? Just guess - I don't see where you get your inpustream, make sure that you aren't using a stream that expects to work with characters and is doning some form of character translation. (Any class that has a readLine or readString method is suspect to fiddling with the bytes). Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 8:39 AM To: [EMAIL PROTECTED] Subject: AW: Hi Ho - Problem with ServletOutputStream in Tomcat thx for your info i used write but my next problem is that the binary content gets somehow translated and isnt the same as before - for example gif images arent displayed correctly --- pdf are displayed wrong -- and so on ... well i dont have a clue why. greetings Wolfgang -Ursprngliche Nachricht- Von: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. Februar 2001 14:32 An: '[EMAIL PROTECTED]' Betreff: RE: Hi Ho - Problem with ServletOutputStream in Tomcat This is true, I wrote a multipart/form-data parser and the only character set which preserved binary data was ISO-8859-1. Conversions between bytes and characters only work with this encType, your input and output should both use this if you use characters to store binary data. Output streams are supposed to output bytes, the print in the ServletOutputStream method converts a char to a byte array, you'd be better off using the write(byte[] b) method of the base OutputStream class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: Hi Ho - Problem with ServletOutputStream in Tomcat I ve created an Servlet that routes Requests and Responses to and from another Server. When i try to get a Image through this Servlet i get an Error 500. I coded the app as described in the j2ee docu for sending binary data. maybee a little code snipplet and the error trace helps to understand http://127.0.0.1:8080/maria/portal/zmr/javalogo52x88.gif this is the url -- http://127.0.0.1:8080 - is my Tomcat instance /maria/portal - is my proxy servlet /zmr/javalogo52x88.gif is the image i want to display in my browser - but /zmr is another webapplication on another tomcat server heres the code for the binary data receiving and sending to the client // Setting the Headers for the Client same as the Servlet received them from the other server while ((strHeaderKey = HttpUrlCon.getHeaderFieldKey(iCounter)) != null) { strHeaderValue = HttpUrlCon.getHeaderField(iCounter); LogIt("ResponseHeader - Value: " + strHeaderKey + " - " + strHeaderValue); response.setHeader(strHeaderKey,strHeaderValue); iCounter +=1; } // figuring out which type of data the servlet is getting if (HttpUrlCon.getContentType().equals("text/html")) { // Text or HTML - thats where i use the PrintWriter PrintWriter out = response.getWriter(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } else { try { // Everything else assuming its binary data so i use ServletOutputStream ServletOutputStream out = ((ServletResponse)response).getOutputStream(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } catch (IOException e) { this.log("IOException !!",e); } } heres the error trace i get when i try to process it - 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Type - image/gif 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Length - 1495 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Last-Modified - Tue, 13 Feb 2001 10:07:22 GMT 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Servlet-Engine - Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) 2001-02-14 01:26:43 - path="/maria" :proxy: IOException !! - java.io.IOException: Not an ISO 8859_1 character:^ at org.apache.tomcat.core.BufferedServletOutputStream.print(BufferedServletOutp utStream.java:221) at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:177) at at.gv.bmi.maria.proxy.ReturnData(proxy.java:201) at at.gv.bmi.maria.proxy.doGet(proxy.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
configuring web.xml
I am trying to run my own servlets that are placed in the appropriate directories (which are sub directories of Web-inf\classes). Can you advise on how to modify the web.xml file and where i can find information regarding the tag definitions Regards Damendra The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorised. If you are not an intended recipient, you must not read, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of The Capital Markets Company. http://www.capco.com *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: IIS Tomcat. Why?
Let me ask you another question. Why would you use M$ products at all? Original Message On 2/14/01, 7:39:38 AM, "Tiseo, Paul" [EMAIL PROTECTED] wrote regarding IIS Tomcat. Why?: Please forgive a complete newbie, but I joined these lists to start building my knowledge of servlets and enterprise apps a few days ago and it has already been very fun. I see a lot of people trying to configure IIS to work with Tomcat. Being stuck in a mainly MS-oriented shop, this is of some interest to me. My project involves a research department database custom application, and having already dealt with ASP, I'd like to try another nightmare. :) (At a minimum, but maybe it'll turn into a good wet dream!) So, I installed Tomcat on a W2K Server box. I see that it can work pretty much alone. Why do I want to work it through IIS? Is it to be able to use JSP and servlets through port 80? I guess I'm just missing something fundamental here, but can't put my finger on it. TIA. Paul Tiseo, Intermediate Systems Programmer Birdsall 122, Mayo Clinic Jacksonville 4500 San Pablo Rd, FL, 32224 [EMAIL PROTECTED] -- (904) 953-8254 / 953-7134 (fax) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Stopping Tomcat
Title: RE: Stopping Tomcat Sorry for the cryptic message - here are my eventual findings... The -f works for stop as well. The reason it appeared not to work is that starting 2 instances of Tomcat does not always work (for some strange reason - that's a whole 'nother problem which I still have to figure out). So if the second instance does not start properly it cannot be shutdown properly. So, if the 2 instances of Tomcat boot fine, then the stop -f works perfectly. (ps -ax |grep java reveals not running java processes) -Original Message-From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 14, 2001 10:56 AMTo: '[EMAIL PROTECTED]'Subject: RE: Stopping Tomcat Thanks everyone who helped out with this. -Original Message- From: Jan Labanowski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 9:28 PM To: [EMAIL PROTECTED] Subject: RE: Stopping Tomcat I did not follow this thread from the beginning, but the first thing I would try is to see if ajp12 is enabled. Even if you use ajp13 for communication with apache you need ajp12 for shutting down the Tomcat. Never remove ajp12 from server.xml, only add ajp13. So, you have to have a !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="4006"/ /Connector in your server.xml. Put something which is not used as port value (4006 in my case) Jan 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]
RE: Hi Ho - Problem with ServletOutputStream in Tomcat
You will probably find it's bytes 127dec that are getting mucked up. In the char/byte conversion the sign bit seems to do some funny stuff when converted. As a quick test create a binary file with low value ( 127 ) bytes and see if it transfers ok. You will need to make sure your reader is using ISO-8859-1 to fix the problem, or even better dont use character readers at all. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 1:39 PM To: [EMAIL PROTECTED] Subject: AW: Hi Ho - Problem with ServletOutputStream in Tomcat thx for your info i used write but my next problem is that the binary content gets somehow translated and isnt the same as before - for example gif images arent displayed correctly --- pdf are displayed wrong -- and so on ... well i dont have a clue why. greetings Wolfgang -Ursprüngliche Nachricht- Von: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. Februar 2001 14:32 An: '[EMAIL PROTECTED]' Betreff: RE: Hi Ho - Problem with ServletOutputStream in Tomcat This is true, I wrote a multipart/form-data parser and the only character set which preserved binary data was ISO-8859-1. Conversions between bytes and characters only work with this encType, your input and output should both use this if you use characters to store binary data. Output streams are supposed to output bytes, the print in the ServletOutputStream method converts a char to a byte array, you'd be better off using the write(byte[] b) method of the base OutputStream class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: Hi Ho - Problem with ServletOutputStream in Tomcat I ve created an Servlet that routes Requests and Responses to and from another Server. When i try to get a Image through this Servlet i get an Error 500. I coded the app as described in the j2ee docu for sending binary data. maybee a little code snipplet and the error trace helps to understand http://127.0.0.1:8080/maria/portal/zmr/javalogo52x88.gif this is the url -- http://127.0.0.1:8080 - is my Tomcat instance /maria/portal - is my proxy servlet /zmr/javalogo52x88.gif is the image i want to display in my browser - but /zmr is another webapplication on another tomcat server heres the code for the binary data receiving and sending to the client // Setting the Headers for the Client same as the Servlet received them from the other server while ((strHeaderKey = HttpUrlCon.getHeaderFieldKey(iCounter)) != null) { strHeaderValue = HttpUrlCon.getHeaderField(iCounter); LogIt("ResponseHeader - Value: " + strHeaderKey + " - " + strHeaderValue); response.setHeader(strHeaderKey,strHeaderValue); iCounter +=1; } // figuring out which type of data the servlet is getting if (HttpUrlCon.getContentType().equals("text/html")) { // Text or HTML - thats where i use the PrintWriter PrintWriter out = response.getWriter(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } else { try { // Everything else assuming its binary data so i use ServletOutputStream ServletOutputStream out = ((ServletResponse)response).getOutputStream(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } catch (IOException e) { this.log("IOException !!",e); } } heres the error trace i get when i try to process it - 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Type - image/gif 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Content-Length - 1495 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Last-Modified - Tue, 13 Feb 2001 10:07:22 GMT 2001-02-14 01:26:43 - path="/maria" :proxy: ResponseHeader - Value: Servlet-Engine - Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) 2001-02-14 01:26:43 - path="/maria" :proxy: IOException !! - java.io.IOException: Not an ISO 8859_1 character:^ at org.apache.tomcat.core.BufferedServletOutputStream.print(BufferedServletOutp utStream.java:221) at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:177) at at.gv.bmi.maria.proxy.ReturnData(proxy.java:201) at at.gv.bmi.maria.proxy.doGet(proxy.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
RE: IIS Tomcat. Why?
Just because someone is using an MS product doesn't mean they choose it. In my experience its still very difficult to sell open source products to management and accountants, not because of a lack of quality but because of the generally poor quality of support availalble for those products. Although working with them does generally present a challange. Some people like challenges. Also, today's business environment is not much different from that of the 70s and 80s. Then it was "You will never get fired for buying IBM" Today you can replace IBM with Microsoft. Its sad, but true. The marketing of Microsoft is able to overcome lots of the technological achievements of their competitition. That's just my perspective. Randy -Original Message- From: John Golubenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 11:40 AM To: [EMAIL PROTECTED] Subject: Re: IIS Tomcat. Why? Let me ask you another question. Why would you use M$ products at all? Original Message On 2/14/01, 7:39:38 AM, "Tiseo, Paul" [EMAIL PROTECTED] wrote regarding IIS Tomcat. Why?: Please forgive a complete newbie, but I joined these lists to start building my knowledge of servlets and enterprise apps a few days ago and it has already been very fun. I see a lot of people trying to configure IIS to work with Tomcat. Being stuck in a mainly MS-oriented shop, this is of some interest to me. My project involves a research department database custom application, and having already dealt with ASP, I'd like to try another nightmare. :) (At a minimum, but maybe it'll turn into a good wet dream!) So, I installed Tomcat on a W2K Server box. I see that it can work pretty much alone. Why do I want to work it through IIS? Is it to be able to use JSP and servlets through port 80? I guess I'm just missing something fundamental here, but can't put my finger on it. TIA. Paul Tiseo, Intermediate Systems Programmer Birdsall 122, Mayo Clinic Jacksonville 4500 San Pablo Rd, FL, 32224 [EMAIL PROTECTED] -- (904) 953-8254 / 953-7134 (fax) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. 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: IIS Tomcat. Why?
Any then for a REAL answer... If you had a box that had existing IIS applications running and you wanted to add servlets (and jsp if you really want a new nightmare). You could tie the two together.. Or if you have a high-access site and you need the performance for static pages and HTML you may want to tie in with IIS, Tomcat doesn't claim to compare to IIS or apache as a static web server for perfomance... And it definately doesn't compare with Apache in terms of configuration flexibility. If you are just doing relatively low access stuff that is mostly servlets and you have no use for asp or other IIS applications then by all means skip trying to get tomcat to work with IIS.. Simply put... Tomcat contains only a basic web front end for the servlet container, if you are dont' care about anything but servlets (and jsp) then you don't need IIS.. John Golubenko wrote: Let me ask you another question. Why would you use M$ products at all? Original Message On 2/14/01, 7:39:38 AM, "Tiseo, Paul" [EMAIL PROTECTED] wrote regarding IIS Tomcat. Why?: Please forgive a complete newbie, but I joined these lists to start building my knowledge of servlets and enterprise apps a few days ago and it has already been very fun. I see a lot of people trying to configure IIS to work with Tomcat. Being stuck in a mainly MS-oriented shop, this is of some interest to me. My project involves a research department database custom application, and having already dealt with ASP, I'd like to try another nightmare. :) (At a minimum, but maybe it'll turn into a good wet dream!) So, I installed Tomcat on a W2K Server box. I see that it can work pretty much alone. Why do I want to work it through IIS? Is it to be able to use JSP and servlets through port 80? I guess I'm just missing something fundamental here, but can't put my finger on it. TIA. Paul Tiseo, Intermediate Systems Programmer Birdsall 122, Mayo Clinic Jacksonville 4500 San Pablo Rd, FL, 32224 [EMAIL PROTECTED] -- (904) 953-8254 / 953-7134 (fax) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. 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]
IllegalAccessError?
This is most likely a newbie question, so please bear with me. I have a class of my own, ("Building") which is compiled and placed in my WEB-INF directory. Whenever I try to instantiate this class, I receive a IllegalAccessError error. According to the Java 1.2.2 API docs: "Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed." Which makes sense, but the JSP will die with just this: Building b = new Building(); When I go into the generated servlet, I can see that it dies on this same line every time. If I run it like this: Building b; b = new Building(); ... it will die on the second line. To see if there's a problem in my Building class I wrote a simple application which simply takes a dozen Building objects, tosses them into a LinkedList object, and then prints them out one at a time. It works great as an application, but this servlet is giving me fits. Am I doing something wrong? I'm at a loss. - Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Mail Notification
The attached message has had some or all attachments deleted because of the following reason: Message contains attachments: inetin1.jpg Additional Information: none I have followed the instructions in "Tomcat IIS HowTo" by Gal Shachor [EMAIL PROTECTED] to set up IIS to redirect requests to Tomcat on an NT machine. I don't want to repeat again all the steps that appears in the document in this email. Whenever I try to test the redirection of requests from IIS to Tomcat, I get an error. It appears in the "Event Viewer" as: "The HTTP Filter DLL E:\Programs\jakarta-tomcat\bin\iis\i386 failed to load. The data is the error.". The isapi.log has [jk_isapi_plugin.c (385)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (338)]: jk_uri_worker_map_t::uri_worker_map_open, done with ajp12 [jk_isapi_plugin.c (395)]: In HttpFilterProc /examples/jsp/index.html should redirect to ajp12 [jk_uri_worker_map.c (127)]: Into jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c (273)]: Into jk_uri_worker_map_t::uri_worker_map_close [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_worker.c (125)]: Into wc_close [jk_worker.c (127)]: wc_close, done C:\WINNT\system32\LogFiles\W3SVC1\ex010214.log has: 2001-02-14 15:08:59 132.253.97.108 - W3SVC1 BISUT GET /jakarta/isapi_redirect.dll - 401 80 HTTP/1.0 Mozilla/4.7+[en]+(WinNT;+I) - The operation crashes IIS and I get the following error (see attachment). Does anyone know what is wrong here? The error is 401 which is not covered in the troubleshooting section for WinNT. The IIS version is 4.0 and Tomcat is 3.1. -- Eli Segev PTC (781)370-6127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
where can I put an images folder in Tomcat for my site?
I build an aplication with BC4J and some images on my navigation bar are pointing to "webapp/images" folder. How can I setup the server.xml file to reconigne the directory "webapp" under the /webapps directory as a part of my site, called "omir"? Please, taken a look at my server.xml file: Context path="/omir" docBase="webapps/omir" crossContext="true" debug="0" reloadable="true" trusted="false" /Context I added this lines to make the images appear, its works fine, but when I shutdown the Tomcat server always returns an error message like "removing ctx () context ( - null - ) Bad file description. Here the code: Context path="/webapp" docBase="webapps/webapp" crossContext="false" debug="0" reloadable="true" trusted="false" /Context Under my webapps directory I only have these directories: - admin - examples - omir (my site!) - ROOT - webapp (where are located some of the navigation bar images!) What can I do to solve this problem in the better way? THks a lot!!! Pedro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: configuring web.xml
Chahal Damendra wrote: I am trying to run my own servlets that are placed in the appropriate directories (which are sub directories of Web-inf\classes). Can you advise on how to modify the web.xml file and where i can find information regarding the tag definitions Regards Damendra Everybody working with servlets and JSP should get the API documents from the java.sun.com site. Therein you will find great detail on what goes into web.xml and how that is related to web applications. -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: configuring web.xml
Take a look through the web.dtd file. It has the specs for the tags. Here's an example I'm using (although I'm having trouble with the init_params... -BEGIN SNIPPET--- ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" web-app session-config session-timeout 30 /session-timeout /session-config servlet servlet-namejspell/servlet-name servlet-class com.wallstreetwise.app.jspell.domain.net.JSpellServlet /servlet-class load-on-startup3/load-on-startup init-param param-nameindex/param-name param-valueSNDSPELL.JDX/param-value /init-param /servlet /web-app -END SNIPPET- Does anyone know what the init-params are for things like if it's a bean, etc? Thanks, Kyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111 -Original Message- From: Chahal Damendra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 8:36 AM To: '[EMAIL PROTECTED]' Subject: configuring web.xml I am trying to run my own servlets that are placed in the appropriate directories (which are sub directories of Web-inf\classes). Can you advise on how to modify the web.xml file and where i can find information regarding the tag definitions Regards Damendra The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorised. If you are not an intended recipient, you must not read, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of The Capital Markets Company. http://www.capco.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]
RE: IllegalAccessError?
Is your Building class and constructor public? I know it sounds basic but its important to the servlet container. -Original Message- From: Matt White [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 5:02 PM To: [EMAIL PROTECTED] Subject: IllegalAccessError? This is most likely a newbie question, so please bear with me. I have a class of my own, ("Building") which is compiled and placed in my WEB-INF directory. Whenever I try to instantiate this class, I receive a IllegalAccessError error. According to the Java 1.2.2 API docs: "Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed." Which makes sense, but the JSP will die with just this: Building b = new Building(); When I go into the generated servlet, I can see that it dies on this same line every time. If I run it like this: Building b; b = new Building(); ... it will die on the second line. To see if there's a problem in my Building class I wrote a simple application which simply takes a dozen Building objects, tosses them into a LinkedList object, and then prints them out one at a time. It works great as an application, but this servlet is giving me fits. Am I doing something wrong? I'm at a loss. - Matt - 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: IllegalAccessError?
Lyndon; Bingo. Thanks, I knew I was just making a newbie mistake. - Matt [EMAIL PROTECTED] 02/14/01 12:19PM Is your Building class and constructor public? I know it sounds basic but its important to the servlet container. -Original Message- From: Matt White [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 5:02 PM To: [EMAIL PROTECTED] Subject: IllegalAccessError? This is most likely a newbie question, so please bear with me. I have a class of my own, ("Building") which is compiled and placed in my WEB-INF directory. Whenever I try to instantiate this class, I receive a IllegalAccessError error. According to the Java 1.2.2 API docs: "Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed." Which makes sense, but the JSP will die with just this: Building b = new Building(); When I go into the generated servlet, I can see that it dies on this same line every time. If I run it like this: Building b; b = new Building(); ... it will die on the second line. To see if there's a problem in my Building class I wrote a simple application which simply takes a dozen Building objects, tosses them into a LinkedList object, and then prints them out one at a time. It works great as an application, but this servlet is giving me fits. Am I doing something wrong? I'm at a loss. - Matt - 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: Configuring Isapi Redirector with IIS
Randy, Thanks for the quick response. I forgot to add the crucial point that accessing Tomcat directly, something like http://localhost:8080/examples/servlets/index.html works perfectly. But when you take out the port (expecting redirection from IIS to Tomcat), I get inetinfo Application Error and it crashes the IIS. worker.properties file looks like: # # Simple worker configuration file # worker.list=ajp12 worker.ajp12.port=8007 worker.ajp12.host=localhost The filter points to the isapi_redirect.dll and it has the green arrow in the ISAPI Filters. I did reboot. :-) It seems to me like there might be several things wrong. First, check your workers.properties file. It seems like you might not have the ajp12 worker defined or maybe defined incorrectly. Next, check the registry entry for the worker.properties file. Second, look at your filter. The executable for the filter needs to be isapi_redirect.dll (the message looks like it might not point to the dll, just the directory). If that doesn't do it, I would suggest trying a new DLL, after the Windows NT fix-all - reboot. Randy -Original Message- From: Eli Segev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:30 AM To: [EMAIL PROTECTED] Subject: Configuring Isapi Redirector with IIS I have followed the instructions in "Tomcat IIS HowTo" by Gal Shachor [EMAIL PROTECTED]> to set up IIS to redirect requests to Tomcat on an NT machine. I don't want to repeat again all the steps that appears in the document in this email. Whenever I try to test the redirection of requests from IIS to Tomcat, I get an error. It appears in the "Event Viewer" as: "The HTTP Filter DLL E:\Programs\jakarta-tomcat\bin\iis\i386 failed to load. The data is the error.". The isapi.log has [jk_isapi_plugin.c (385)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (338)]: jk_uri_worker_map_t::uri_worker_map_open, done with ajp12 [jk_isapi_plugin.c (395)]: In HttpFilterProc /examples/jsp/index.html should redirect to ajp12 [jk_uri_worker_map.c (127)]: Into jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c (273)]: Into jk_uri_worker_map_t::uri_worker_map_close [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_worker.c (125)]: Into wc_close [jk_worker.c (127)]: wc_close, done C:\WINNT\system32\LogFiles\W3SVC1\ex010214.log has: 2001-02-14 15:08:59 132.253.97.108 - W3SVC1 BISUT GET /jakarta/isapi_redirect.dll - 401 80 HTTP/1.0 Mozilla/4.7+[en]+(WinNT;+I) - The operation crashes IIS and I get the following error (see attachment). Does anyone know what is wrong here? The error is 401 which is not covered in the troubleshooting section for WinNT. The IIS version is 4.0 and Tomcat is 3.1. -- Eli Segev PTC (781)370-6127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Eli Segev PTC (781)370-6127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Configuring Isapi Redirector with IIS
Eli I am throwing a wild guess here but in the uriworkermap you shouldadd an entryso that the isapi will know to which worker to transfer the request something like : /*=ajp12 or /myServlet*=ajp12 -Original Message-From: Eli Segev [mailto:[EMAIL PROTECTED]]Sent: Wed, February 14, 2001 6:58 PMTo: [EMAIL PROTECTED]Subject: Re: Configuring Isapi Redirector with IISRandy, Thanks for the quick response. I forgot to add the crucial point that accessing Tomcat directly, something like http://localhost:8080/examples/servlets/index.html works perfectly. But when you take out the port (expecting redirection from IIS to Tomcat), I get inetinfo Application Error and it crashes the IIS. worker.properties file looks like: # # Simple worker configuration file # worker.list=ajp12 worker.ajp12.port=8007 worker.ajp12.host=localhost The filter points to the isapi_redirect.dll and it has the green arrow in the ISAPI Filters. I did reboot. :-) It seems to me like there might be several things wrong. First, check your workers.properties file. It seems like you might not have the ajp12 worker defined or maybe defined incorrectly. Next, check the registry entry for the worker.properties file. Second, look at your filter. The executable for the filter needs to be isapi_redirect.dll (the message looks like it might not point to the dll, just the directory). If that doesn't do it, I would suggest trying a new DLL, after the Windows NT fix-all - reboot. Randy -Original Message- From: Eli Segev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:30 AM To: [EMAIL PROTECTED] Subject: Configuring Isapi Redirector with IIS I have followed the instructions in "Tomcat IIS HowTo" by Gal Shachor [EMAIL PROTECTED] to set up IIS to redirect requests to Tomcat on an NT machine. I don't want to repeat again all the steps that appears in the document in this email. Whenever I try to test the redirection of requests from IIS to Tomcat, I get an error. It appears in the "Event Viewer" as: "The HTTP Filter DLL E:\Programs\jakarta-tomcat\bin\iis\i386 failed to load. The data is the error.". The isapi.log has [jk_isapi_plugin.c (385)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (338)]: jk_uri_worker_map_t::uri_worker_map_open, done with ajp12 [jk_isapi_plugin.c (395)]: In HttpFilterProc /examples/jsp/index.html should redirect to ajp12 [jk_uri_worker_map.c (127)]: Into jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c (273)]: Into jk_uri_worker_map_t::uri_worker_map_close [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_worker.c (125)]: Into wc_close [jk_worker.c (127)]: wc_close, done C:\WINNT\system32\LogFiles\W3SVC1\ex010214.log has: 2001-02-14 15:08:59 132.253.97.108 - W3SVC1 BISUT GET /jakarta/isapi_redirect.dll - 401 80 HTTP/1.0 Mozilla/4.7+[en]+(WinNT;+I) - The operation crashes IIS and I get the following error (see attachment). Does anyone know what is wrong here? The error is 401 which is not covered in the troubleshooting section for WinNT. The IIS version is 4.0 and Tomcat is 3.1. -- Eli Segev PTC (781)370-6127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Eli Segev PTC (781)370-6127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Configuring Isapi Redirector with IIS
I've gotta say that you're out there at the end of my knowledge, but I'll theorize a little: You are crashing the inetinfo process (with a bad pointer read) so the problem can't be in Tomcat (seperate process). I'm assuming that IIS works when you try other URLs, so its probably not IIS. That leaves some problem with isapi_redirect.dll or the way that it communicates with IIS. Things I would try: 1. Wait for someone else on the list to lend a helping hand (don't hold your breath, most people seem to use Apache) 2. Download a new dll file (make sure to get the zip to avoid corrupting it and unzip it on the machine that it will run) 3. Go over the registry again. 4. Try debugging the isapi_redirect.dll code to find out why it causes the crash I've been running Tomcat as part of several IIS installations (IIS 4 on NT and 5 on 2000) and haven't crashed IIS yet (from Tomcat anyways :) ) Randy -Original Message- From: Eli Segev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 11:58 AM To: [EMAIL PROTECTED] Subject: Re: Configuring Isapi Redirector with IIS Randy, Thanks for the quick response. I forgot to add the crucial point that accessing Tomcat directly, something like http://localhost:8080/examples/servlets/index.html works perfectly. But when you take out the port (expecting redirection from IIS to Tomcat), I get inetinfo Application Error and it crashes the IIS. worker.properties file looks like: # # Simple worker configuration file # worker.list=ajp12 worker.ajp12.port=8007 worker.ajp12.host=localhost The filter points to the isapi_redirect.dll and it has the green arrow in the ISAPI Filters. I did reboot. :-) It seems to me like there might be several things wrong. First, check your workers.properties file. It seems like you might not have the ajp12 worker defined or maybe defined incorrectly. Next, check the registry entry for the worker.properties file. Second, look at your filter. The executable for the filter needs to be isapi_redirect.dll (the message looks like it might not point to the dll, just the directory). If that doesn't do it, I would suggest trying a new DLL, after the Windows NT fix-all - reboot. Randy -Original Message- From: Eli Segev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:30 AM To: [EMAIL PROTECTED] Subject: Configuring Isapi Redirector with IIS I have followed the instructions in "Tomcat IIS HowTo" by Gal Shachor [EMAIL PROTECTED] to set up IIS to redirect requests to Tomcat on an NT machine. I don't want to repeat again all the steps that appears in the document in this email. Whenever I try to test the redirection of requests from IIS to Tomcat, I get an error. It appears in the "Event Viewer" as: "The HTTP Filter DLL E:\Programs\jakarta-tomcat\bin\iis\i386 failed to load. The data is the error.". The isapi.log has [jk_isapi_plugin.c (385)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (338)]: jk_uri_worker_map_t::uri_worker_map_open, done with ajp12 [jk_isapi_plugin.c (395)]: In HttpFilterProc /examples/jsp/index.html should redirect to ajp12 [jk_uri_worker_map.c (127)]: Into jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c (273)]: Into jk_uri_worker_map_t::uri_worker_map_close [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_worker.c (125)]: Into wc_close [jk_worker.c (127)]: wc_close, done C:\WINNT\system32\LogFiles\W3SVC1\ex010214.log has: 2001-02-14 15:08:59 132.253.97.108 - W3SVC1 BISUT GET /jakarta/isapi_redirect.dll - 401 80 HTTP/1.0 Mozilla/4.7+[en]+(WinNT;+I) - The operation crashes IIS and I get the following error (see attachment). Does anyone know what is wrong here? The error is 401 which is not covered in the troubleshooting section for WinNT. The IIS version is 4.0 and Tomcat is 3.1. -- Eli Segev PTC (781)370-6127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Eli Segev PTC (781)370-6127 - 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: IIS Tomcat. Why?
you wanted to add servlets (and jsp if you really want a new nightmare). I constantly see folks on this list referring to JSP as 'a new nightmare'. I realize it's very easy to program 'poor' JSP, but what replacements are there to handle presentation logic as easily (and separately) as JSP? I hesitate to admit it but I come most recently from several Cold Fusion projects,THAT is a nightmare language if ever one were written. It's like JSP but without the power of Java on the backend, talk about nightmare. I readily admit I've not thoroughly investigated some of the Jakarta templating engines, but would someone do a Jakarta newbie a favor and paste a link to the 'better' option over use of JSP for template-based presentation? TIA, - jc - James Diggans Phone:301.987.1756 Gene Logic, Inc. FAX: 301.987.1701 [EMAIL PROTECTED] Cell: 301.908.2477 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
servlets vs servlet in URL match
I'm trying to setup my tomcat (3.2.1) to display servlets with the url host/servlets/ServletName. The servlets are in a directory in the class path and come up just fine using the url host/servlet/ServletName. I tried changing the web.xml in $TOMCAT_HOME/conf and in $TOMCAT_HOME/webapps/ROOT/WEB-INF/ to have: servlet-mapping servlet-name invoker /servlet-name url-pattern /servlets/* /url-pattern /servlet-mapping placed right before the similar section for /servlet/*, but neither one works. Any help on this would be greatly appreciated. Thanks, Jason __ 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]
AW: IIS Tomcat. Why?
Just a short dump from my side: There are two kind of reasons Some answers apply to the more general question: Why use an external WebServer at all ? The current implementation of tomcat 3* implement HTTP 1.0 if you want or have to use HTTP 1.1 you need a webserver that does this for tomcat or wait until tomcat 4.* gets final or be optimistic and use the latest tomcat 4 milestone. Some people won't rely on the stability of tomcats HTTP stack, just because tomcat is younger than those webservers. Some people think that a non java web server is faster as tomcat in serving static content and speaking HTTP. Some people have still cgi scripts flying around, which they want to use. (ugliest one: FP Server extensions) The more specific question: Why use IIS in front of tomcat: - There might be a company police to use IIS. - There might be old content created with ASP that has to be integrated - You wan't to have a high integration with other MS products (Yes there are people and companies who need this) -Ursprngliche Nachricht- Von: Tiseo, Paul [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. Februar 2001 16:40 An: '[EMAIL PROTECTED]' Betreff: IIS Tomcat. Why? snip/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat Apache / Context
Gang, I am having a problem setting up Tomcat/Apache to use a / Context. All the other contexts I've created work well. http://localhost/examples or /foo works fine but I can't figure out how to set it up so http://localhost/ goes to a context... Any help would be appreciated. Also anyone know when the Load Balancing stuff will be done? I miss the Flexibility I had in JSERV with load balancing. I've looked over the Tomcat source and it seems this is in the "TODO" stuff Jason Maderios Unix SA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Stop method should do session serialization first.
For the reason that temporarily stopping Tomcat would not affect user's browsing, session serialization should be used instead of expiration. Or, configuration may carry a flag to turn on this feature or not. Chris Zhao - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat Apache / Context
aha, this is kind of a tricky one. One way is to set the DocumentRoot for Apache to point to webapps/ROOT/ just the way the autoconfiguration gets set up for any other context. that should get you started. I know I have a bunch more ideas in my head, but never realized them, so if you come up with a clean configuration let me know. also, feel free to bounce off any ideas off of me. Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jason Maderios" [EMAIL PROTECTED] To: "Tomcat-User (E-mail)" [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 9:52 AM Subject: Tomcat Apache / Context Gang, I am having a problem setting up Tomcat/Apache to use a / Context. All the other contexts I've created work well. http://localhost/examples or /foo works fine but I can't figure out how to set it up so http://localhost/ goes to a context... Any help would be appreciated. Also anyone know when the Load Balancing stuff will be done? I miss the Flexibility I had in JSERV with load balancing. I've looked over the Tomcat source and it seems this is in the "TODO" stuff Jason Maderios Unix SA - 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: Stop method should do session serialization first.
For the reason that temporarily stopping Tomcat would not affect user's browsing, session serialization should be used instead of expiration. Or, configuration may carry a flag to turn on this feature or not. A more appropriate place to post stuff like this is probably the developer list not the user list. Granted many of the developers are likely to read user but it shouldn't be assumed. --- 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]
problem building tomcat 3.2.1 on Solaris x86
I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building tomcat 3.2.1 on Solaris x86
what version of the SDK do you have? also do you have $JAVA_HOME/lib/tools.jar in your CLASSPATH? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jennifer Dyess" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:35 AM Subject: problem building tomcat 3.2.1 on Solaris x86 I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - 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 Apache / Context
I use mod_rewrite. You can check how I do it at: http://www.ccl.net/cca/software/UNIX/apache/ and click on: Linux Red Hat 7.0, Apache (1.3.14), Tomcat 3.2.1, mod_jk Compilation from scratch Jan On Wed, 14 Feb 2001, Filip Hanik wrote: aha, this is kind of a tricky one. One way is to set the DocumentRoot for Apache to point to webapps/ROOT/ just the way the autoconfiguration gets set up for any other context. that should get you started. I know I have a bunch more ideas in my head, but never realized them, so if you come up with a clean configuration let me know. also, feel free to bounce off any ideas off of me. Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jason Maderios" [EMAIL PROTECTED] To: "Tomcat-User (E-mail)" [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 9:52 AM Subject: Tomcat Apache / Context Gang, I am having a problem setting up Tomcat/Apache to use a / Context. All the other contexts I've created work well. http://localhost/examples or /foo works fine but I can't figure out how to set it up so http://localhost/ goes to a context... Any help would be appreciated. Also anyone know when the Load Balancing stuff will be done? I miss the Flexibility I had in JSERV with load balancing. I've looked over the Tomcat source and it seems this is in the "TODO" stuff Jason Maderios Unix SA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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]
RE: Stop method should do session serialization first.
why don'cha shut up? Are you a moderator of this list or what? -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 9:31 AM To: '[EMAIL PROTECTED]' Subject: RE: Stop method should do session serialization first. For the reason that temporarily stopping Tomcat would not affect user's browsing, session serialization should be used instead of expiration. Or, configuration may carry a flag to turn on this feature or not. A more appropriate place to post stuff like this is probably the developer list not the user list. Granted many of the developers are likely to read user but it shouldn't be assumed. --- 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] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem building tomcat 3.2.1 on Solaris x86
This problem comes up on the Ant (Ant is what is doing the build) mailing list somewhat frequently. It usually results in you adding the ant.jar file to the jdk/lib/ext directory. Otherwise, there is usually some jar file in there that the user added which make JavaC not work with ant any more. By the way, Tomcat is written in Java and distributed as .jar files, so you don't have to build it (you could if you want to, but its not necessary). Unless you want the latest from CVS. Randy -Original Message- From: Jennifer Dyess [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 1:36 PM To: [EMAIL PROTECTED] Subject: problem building tomcat 3.2.1 on Solaris x86 I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - 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: problem building tomcat 3.2.1 on Solaris x86
Thanks for the quick response! I'm running the Java 2 SDK Std Edition v 1.3 No, I did not have the tools.jar in my classpath. I just added it, but I still get the same error. Here's my classpath: /usr/java/bin:/usr/java/lib:/usr/java/jre/lib:/usr/java/jre/lib/ext/jaxp.jar :/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre/lib/ext/jnet.jar:/usr/java/jr e/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parser.jar:/usr/java/jre/lib/ext/an t.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/java/lib/tools.jar:.: Any other suggestions? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 what version of the SDK do you have? also do you have $JAVA_HOME/lib/tools.jar in your CLASSPATH? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jennifer Dyess" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:35 AM Subject: problem building tomcat 3.2.1 on Solaris x86 I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - 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: problem building tomcat 3.2.1 on Solaris x86
by the way, why do you have /usr/java/bin: xx/xx: in CLASSPATH? The directories should be in PATH, not CLASSPATH. The jars,or files should be in CLASSPATH (*.xx). This may cause the problems. -Original Message- From: Jennifer Dyess [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 11:01 AM To: [EMAIL PROTECTED] Subject: RE: problem building tomcat 3.2.1 on Solaris x86 Thanks for the quick response! I'm running the Java 2 SDK Std Edition v 1.3 No, I did not have the tools.jar in my classpath. I just added it, but I still get the same error. Here's my classpath: /usr/java/bin:/usr/java/lib:/usr/java/jre/lib:/usr/java/jre/lib/ext/jaxp.jar :/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre/lib/ext/jnet.jar:/usr/java/jr e/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parser.jar:/usr/java/jre/lib/ext/an t.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/java/lib/tools.jar:.: Any other suggestions? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 what version of the SDK do you have? also do you have $JAVA_HOME/lib/tools.jar in your CLASSPATH? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jennifer Dyess" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:35 AM Subject: problem building tomcat 3.2.1 on Solaris x86 I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - 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] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
aliased name based virtual hosts apache/mod_jk/tomcat
Do I have to do a host/host for each alias from an apache virtual host? ( I have some v.hosts with about a dozen names) I am using tomcat 3.2.1, mod_jk, apach 1.3.12-2 How do I get this to work (httpd.cnf): VirtualHost 203.98.94.46 ServerName www.icconsulting.com.au ServerAlias w3 w3.icconsulting.com.au www icconsulting.com.au DocumentRoot /home/httpd/ic/ /VirtualHost This works fine in apache, this is what I have in server.xml: Host name=www.icconsulting.com.au Context path= docBase=/home/httpd/ic debug=0 reloadable=true /Context /Host Host name=icconsulting.com.au Context path= docBase=/home/httpd/ic debug=0 reloadable=true /Context /Host do I just have to keep repeating these in server.xml? Thanx Scott
mod_jk + ajp13 + SSL
Hi, I'm using tomcat 3.2.1 with apache running in Window NT. I have configured to use mod_jk as the connector and ajp13. It works fine. I use Apache with SSL. Right now, if I use different common name for ssl server, it works fine. For example, I would use http://host1.myserver.com http://host1.myserver.com and https://host2.myserver.com https://host2.myserver.com . I created virtual host with SSL in apache and specify the following in server.xml: Host name="host2.myserver.com" Context path="" docBase="d:/webapps/rootexample/secure_html"/ /Host However, I want to use the same common name for both port 80 and 443. And I would like to have two separate directories storing http files (in public_html directory) and https files (secure_html). It does not work. It keeps looking the document root directory. Can anyone help me? Plus, where can I get server.dtd file? Thanks, Connie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to JServ - SSL
Hi, I am using Apache 1.3.14, Tomcat 3.2 and JServ for running my site. I need to secure my site and so i have installed JSSE, as mentioned in the server.xml. I have also set the security.provider.2. Now where will i specify the location of the certificate file ?(think in Tomcat-conf using APJServ directives ). There is no documentation for specifying the certificate file given by the Verisign. If i use apache as my HTTPS connector then there are directives like SSLRequireSSL, SSLCACertificateFile, SSLCACertificatePath..etc. Is there anything like that to make my certificate to be recognized. or Do i have to install some other mod_ssl for window NT, in my server apart from JSSE jars. Please clarify me. Madan Kumar Thirumeni, 575,Herndon Parkway, Herndon, VA 20172. 703-456-6303 ( Off ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem building tomcat 3.2.1 on Solaris x86
ok, I modified my classpath as you suggested: /usr/java/jre/lib/ext/jaxp.jar:/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre /lib/ext/jnet.jar:/usr/java/jre/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parse r.jar:/usr/java/jre/lib/ext/ant.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/j ava/lib/tools.jar:.: what should the path look like? Here's min: :/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/java/bi n:/usr/java/lib/:/usr/java/jre/lib But, I still get the same error msg :( -Original Message- From: John Golubenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:54 AM To: '[EMAIL PROTECTED]' Subject: RE: problem building tomcat 3.2.1 on Solaris x86 by the way, why do you have /usr/java/bin: xx/xx: in CLASSPATH? The directories should be in PATH, not CLASSPATH. The jars,or files should be in CLASSPATH (*.xx). This may cause the problems. -Original Message- From: Jennifer Dyess [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 11:01 AM To: [EMAIL PROTECTED] Subject: RE: problem building tomcat 3.2.1 on Solaris x86 Thanks for the quick response! I'm running the Java 2 SDK Std Edition v 1.3 No, I did not have the tools.jar in my classpath. I just added it, but I still get the same error. Here's my classpath: /usr/java/bin:/usr/java/lib:/usr/java/jre/lib:/usr/java/jre/lib/ext/jaxp.jar :/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre/lib/ext/jnet.jar:/usr/java/jr e/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parser.jar:/usr/java/jre/lib/ext/an t.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/java/lib/tools.jar:.: Any other suggestions? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 what version of the SDK do you have? also do you have $JAVA_HOME/lib/tools.jar in your CLASSPATH? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jennifer Dyess" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:35 AM Subject: problem building tomcat 3.2.1 on Solaris x86 I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - 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] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. 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: **** How do I configure Tomcat for use with j2ee ****
Jon, I believe the "Tomcat Documentation" in tomcat\doc will be useful to have your questions answered. It has "Tomcat User's Guide" on how to install, configure, and deploy Tomcat and also "Developing Application With Tomcat" which explains the steps required to build and deploy web apps within Tomcat. Hope this helps. Amy Quoting jon [EMAIL PROTECTED]: What do I need to do to getTomcat to work with enterprise architectures? Can it be done at all or do I have to use a weblogic or something comparable? Download j2ee and include jar files in classpath? Or is there more? How must I organize directory structures? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How to JServ - SSL
If you use Apache as a front end to Tomcat, you cannot use Tomcat SSL. Tomcat SSL only works when you go directly to Tomcat (e.g., to its port 8443 as given in default server.xml file). You can do it, but then you do not need apache for anything. If you are serving pages from Apache, and jsp/servlet requests go first to Apache, and then, via connector to Tomcat, you have to use Apache SSL, namely mod_ssl or apache-ssl. The mod_ssl is more modern. You may want to look at my older installation logs for Tomcat at: http://www.ccl.net/cca/software/UNIX/apache where I list jserv as connector (I switched to mod_jk for some time). JAN On Wed, 14 Feb 2001 [EMAIL PROTECTED] wrote: Hi, I am using Apache 1.3.14, Tomcat 3.2 and JServ for running my site. I need to secure my site and so i have installed JSSE, as mentioned in the server.xml. I have also set the security.provider.2. Now where will i specify the location of the certificate file ?(think in Tomcat-conf using APJServ directives ). There is no documentation for specifying the certificate file given by the Verisign. If i use apache as my HTTPS connector then there are directives like SSLRequireSSL, SSLCACertificateFile, SSLCACertificatePath..etc. Is there anything like that to make my certificate to be recognized. or Do i have to install some other mod_ssl for window NT, in my server apart from JSSE jars. Please clarify me. Madan Kumar Thirumeni, 575,Herndon Parkway, Herndon, VA 20172. 703-456-6303 ( Off ) - 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]
Servlet error
hi i'm trying to send a picture to the browser but i keep getting this error public class GetTiff extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { res.setContentType("image/jpeg"); // image/jpeg OutputStream out=res.getOutputStream(); FileInputStream file=new FileInputStream("d:/matrix.jpg"); int databyte; while((databyte=file.read())=0) { out.write(databyte); } } } here's the error: java.lang.IllegalStateException: Writer is already being used for this request does anyone have a clue how can i fix this problem thanks for any advice - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building tomcat 3.2.1 on Solaris x86
Jennifer, You do not need the java/lib directories in your PATH. It should have directories with executables, not libraries. Question: When you run java -version, what do you get? Jennifer Dyess wrote: ok, I modified my classpath as you suggested: /usr/java/jre/lib/ext/jaxp.jar:/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre /lib/ext/jnet.jar:/usr/java/jre/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parse r.jar:/usr/java/jre/lib/ext/ant.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/j ava/lib/tools.jar:.: what should the path look like? Here's min: :/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/java/bi n:/usr/java/lib/:/usr/java/jre/lib But, I still get the same error msg :( -Original Message- From: John Golubenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:54 AM To: '[EMAIL PROTECTED]' Subject: RE: problem building tomcat 3.2.1 on Solaris x86 by the way, why do you have /usr/java/bin: xx/xx: in CLASSPATH? The directories should be in PATH, not CLASSPATH. The jars,or files should be in CLASSPATH (*.xx). This may cause the problems. -Original Message- From: Jennifer Dyess [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 11:01 AM To: [EMAIL PROTECTED] Subject: RE: problem building tomcat 3.2.1 on Solaris x86 Thanks for the quick response! I'm running the Java 2 SDK Std Edition v 1.3 No, I did not have the tools.jar in my classpath. I just added it, but I still get the same error. Here's my classpath: /usr/java/bin:/usr/java/lib:/usr/java/jre/lib:/usr/java/jre/lib/ext/jaxp.jar :/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre/lib/ext/jnet.jar:/usr/java/jr e/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parser.jar:/usr/java/jre/lib/ext/an t.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/java/lib/tools.jar:.: Any other suggestions? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 what version of the SDK do you have? also do you have $JAVA_HOME/lib/tools.jar in your CLASSPATH? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jennifer Dyess" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:35 AM Subject: problem building tomcat 3.2.1 on Solaris x86 I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - 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] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. 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
Starting Tomcat under Netware 5.x
Could somebody tell me what I need to do to start tomcat running on a Netware server? I downloaded and unzipped files to the SYS volume, but there are only scripts for unix and win32 in the bin directory. I have JVM for netware, and the sdk. Do I just need to load the lib/webserver.jar via java on the server console? Thanks, -Aaron Schroeder [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem building tomcat 3.2.1 on Solaris x86
java -version java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Java HotSpot(TM) Client VM (build 1.3.0, mixed mode) -Original Message- From: lee [mailto:lee]On Behalf Of lee fellows Sent: Wednesday, February 14, 2001 12:20 PM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 Jennifer, You do not need the java/lib directories in your PATH. It should have directories with executables, not libraries. Question: When you run java -version, what do you get? Jennifer Dyess wrote: ok, I modified my classpath as you suggested: /usr/java/jre/lib/ext/jaxp.jar:/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre /lib/ext/jnet.jar:/usr/java/jre/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parse r.jar:/usr/java/jre/lib/ext/ant.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/j ava/lib/tools.jar:.: what should the path look like? Here's min: :/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/java/bi n:/usr/java/lib/:/usr/java/jre/lib But, I still get the same error msg :( -Original Message- From: John Golubenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:54 AM To: '[EMAIL PROTECTED]' Subject: RE: problem building tomcat 3.2.1 on Solaris x86 by the way, why do you have /usr/java/bin: xx/xx: in CLASSPATH? The directories should be in PATH, not CLASSPATH. The jars,or files should be in CLASSPATH (*.xx). This may cause the problems. -Original Message- From: Jennifer Dyess [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 11:01 AM To: [EMAIL PROTECTED] Subject: RE: problem building tomcat 3.2.1 on Solaris x86 Thanks for the quick response! I'm running the Java 2 SDK Std Edition v 1.3 No, I did not have the tools.jar in my classpath. I just added it, but I still get the same error. Here's my classpath: /usr/java/bin:/usr/java/lib:/usr/java/jre/lib:/usr/java/jre/lib/ext/jaxp.jar :/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre/lib/ext/jnet.jar:/usr/java/jr e/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parser.jar:/usr/java/jre/lib/ext/an t.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/java/lib/tools.jar:.: Any other suggestions? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 what version of the SDK do you have? also do you have $JAVA_HOME/lib/tools.jar in your CLASSPATH? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jennifer Dyess" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:35 AM Subject: problem building tomcat 3.2.1 on Solaris x86 I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - 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] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL
RE: Servlet error
hi i'm trying to send a picture to the browser but i keep getting this error public class GetTiff extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { res.setContentType("image/jpeg"); // image/jpeg OutputStream out=res.getOutputStream(); FileInputStream file=new FileInputStream("d:/matrix.jpg"); int databyte; while((databyte=file.read())=0) { out.write(databyte); } } } here's the error: java.lang.IllegalStateException: Writer is already being used for this request does anyone have a clue how can i fix this problem thanks for any advice Something has a handle to the JSPWriter for the response. Try making a request to the servlet outside of any JSP functionality. --- 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]
Re: problem building tomcat 3.2.1 on Solaris x86
Hi Jennifer, Sorry, I had hoped to see something quckly. Unfortunately, I do not have a Solaris box to chase this further. Take a look in $JAVA_HOME/jre/lib. You should see two sub-directories: green_threads and classic. It sounds like the classic libraries are missing. I do not know if this has something to do with your version of Solaris on an x86 box or not. Seems there was some condition like that previously. Hopefully someone else can help you further. Jennifer Dyess wrote: java -version java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Java HotSpot(TM) Client VM (build 1.3.0, mixed mode) -Original Message- From: lee [mailto:lee]On Behalf Of lee fellows Sent: Wednesday, February 14, 2001 12:20 PM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 Jennifer, You do not need the java/lib directories in your PATH. It should have directories with executables, not libraries. Question: When you run java -version, what do you get? Jennifer Dyess wrote: ok, I modified my classpath as you suggested: /usr/java/jre/lib/ext/jaxp.jar:/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre /lib/ext/jnet.jar:/usr/java/jre/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parse r.jar:/usr/java/jre/lib/ext/ant.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/j ava/lib/tools.jar:.: what should the path look like? Here's min: :/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/java/bi n:/usr/java/lib/:/usr/java/jre/lib But, I still get the same error msg :( -Original Message- From: John Golubenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:54 AM To: '[EMAIL PROTECTED]' Subject: RE: problem building tomcat 3.2.1 on Solaris x86 by the way, why do you have /usr/java/bin: xx/xx: in CLASSPATH? The directories should be in PATH, not CLASSPATH. The jars,or files should be in CLASSPATH (*.xx). This may cause the problems. -Original Message- From: Jennifer Dyess [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 11:01 AM To: [EMAIL PROTECTED] Subject: RE: problem building tomcat 3.2.1 on Solaris x86 Thanks for the quick response! I'm running the Java 2 SDK Std Edition v 1.3 No, I did not have the tools.jar in my classpath. I just added it, but I still get the same error. Here's my classpath: /usr/java/bin:/usr/java/lib:/usr/java/jre/lib:/usr/java/jre/lib/ext/jaxp.jar :/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre/lib/ext/jnet.jar:/usr/java/jr e/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parser.jar:/usr/java/jre/lib/ext/an t.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/java/lib/tools.jar:.: Any other suggestions? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 what version of the SDK do you have? also do you have $JAVA_HOME/lib/tools.jar in your CLASSPATH? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jennifer Dyess" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:35 AM Subject: problem building tomcat 3.2.1 on Solaris x86 I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - 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] NOTICE: This communication may contain confidential or other
Re: problem building tomcat 3.2.1 on Solaris x86
Jennifer, Another thing you may want to look at: Try downloading the jdk again from Sun and installing in a different directory, i.e., /usr/jdk1.3. It is possible something went wrong during your installation. lee fellows wrote: Hi Jennifer, Sorry, I had hoped to see something quckly. Unfortunately, I do not have a Solaris box to chase this further. Take a look in $JAVA_HOME/jre/lib. You should see two sub-directories: green_threads and classic. It sounds like the classic libraries are missing. I do not know if this has something to do with your version of Solaris on an x86 box or not. Seems there was some condition like that previously. Hopefully someone else can help you further. Jennifer Dyess wrote: java -version java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Java HotSpot(TM) Client VM (build 1.3.0, mixed mode) -Original Message- From: lee [mailto:lee]On Behalf Of lee fellows Sent: Wednesday, February 14, 2001 12:20 PM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 Jennifer, You do not need the java/lib directories in your PATH. It should have directories with executables, not libraries. Question: When you run java -version, what do you get? Jennifer Dyess wrote: ok, I modified my classpath as you suggested: /usr/java/jre/lib/ext/jaxp.jar:/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre /lib/ext/jnet.jar:/usr/java/jre/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parse r.jar:/usr/java/jre/lib/ext/ant.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/j ava/lib/tools.jar:.: what should the path look like? Here's min: :/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/java/bi n:/usr/java/lib/:/usr/java/jre/lib But, I still get the same error msg :( -Original Message- From: John Golubenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:54 AM To: '[EMAIL PROTECTED]' Subject: RE: problem building tomcat 3.2.1 on Solaris x86 by the way, why do you have /usr/java/bin: xx/xx: in CLASSPATH? The directories should be in PATH, not CLASSPATH. The jars,or files should be in CLASSPATH (*.xx). This may cause the problems. -Original Message- From: Jennifer Dyess [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 11:01 AM To: [EMAIL PROTECTED] Subject: RE: problem building tomcat 3.2.1 on Solaris x86 Thanks for the quick response! I'm running the Java 2 SDK Std Edition v 1.3 No, I did not have the tools.jar in my classpath. I just added it, but I still get the same error. Here's my classpath: /usr/java/bin:/usr/java/lib:/usr/java/jre/lib:/usr/java/jre/lib/ext/jaxp.jar :/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre/lib/ext/jnet.jar:/usr/java/jr e/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parser.jar:/usr/java/jre/lib/ext/an t.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/java/lib/tools.jar:.: Any other suggestions? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 what version of the SDK do you have? also do you have $JAVA_HOME/lib/tools.jar in your CLASSPATH? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jennifer Dyess" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:35 AM Subject: problem building tomcat 3.2.1 on Solaris x86 I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building tomcat 3.2.1 on Solaris x86
two suggestion, one from an earlier post 1. take a look at the build.sh script and see if it is setting any variables that may affect the classpath. play around with that. 2. Tomcat is Java based, you can download the already built jar files and use them directly Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jennifer Dyess" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 11:40 AM Subject: RE: problem building tomcat 3.2.1 on Solaris x86 ok, I modified my classpath as you suggested: /usr/java/jre/lib/ext/jaxp.jar:/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre /lib/ext/jnet.jar:/usr/java/jre/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parse r.jar:/usr/java/jre/lib/ext/ant.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/j ava/lib/tools.jar:.: what should the path look like? Here's min: :/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/java/bi n:/usr/java/lib/:/usr/java/jre/lib But, I still get the same error msg :( -Original Message- From: John Golubenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:54 AM To: '[EMAIL PROTECTED]' Subject: RE: problem building tomcat 3.2.1 on Solaris x86 by the way, why do you have /usr/java/bin: xx/xx: in CLASSPATH? The directories should be in PATH, not CLASSPATH. The jars,or files should be in CLASSPATH (*.xx). This may cause the problems. -Original Message- From: Jennifer Dyess [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 11:01 AM To: [EMAIL PROTECTED] Subject: RE: problem building tomcat 3.2.1 on Solaris x86 Thanks for the quick response! I'm running the Java 2 SDK Std Edition v 1.3 No, I did not have the tools.jar in my classpath. I just added it, but I still get the same error. Here's my classpath: /usr/java/bin:/usr/java/lib:/usr/java/jre/lib:/usr/java/jre/lib/ext/jaxp.jar :/usr/java/jre/lib/ext/jcert.jar:/usr/java/jre/lib/ext/jnet.jar:/usr/java/jr e/lib/ext/jsse.jar:/usr/java/jre/lib/ext/parser.jar:/usr/java/jre/lib/ext/an t.jar:/usr/java/jre/lib/ext/servlet.jar:/usr/java/lib/tools.jar:.: Any other suggestions? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Re: problem building tomcat 3.2.1 on Solaris x86 what version of the SDK do you have? also do you have $JAVA_HOME/lib/tools.jar in your CLASSPATH? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Jennifer Dyess" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:35 AM Subject: problem building tomcat 3.2.1 on Solaris x86 I'm having a problem building TomCat v321 on a Solaris x86 intel box. I receive the error "cannot use classic compiler..." I've got the java2 sdk installed. The path to javac is in my path/classpath. I can type javac from any dir and it appears to be available. Searching thru the mail archives, I found a bug had been filed on this exact problem, but on linux. Unfortunately, there was no fix/workaround/resolution. Here's a link to the bug: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg04248.html bash-2.03# ./build.sh Searching for build.xml ... Buildfile: /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /usr/pkgs/build/tomcat/conf tomcat: [javac] Compiling 217 source files to /usr/pkgs/build/tomcat/classes BUILD FAILED /usr/pkgs/jakarta-tomcat-3.2.1-src/build.xml:94: Cannot use classic compiler, as it is not available - 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] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: IIS Tomcat. Why?
Have a look at the "Getting Started" bit in the Tomcat- A minimalistic User's Guide on http://jakarta.apache.org. The main point seems to be regarding scalability and stability - Tomcat on its own isn't beefy enough. Bear in mind this is the opinion of an almost complete newbie to Tomcat, so I could be wrong. -- Julie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
running Tomcat as a service on windows2000
I've got Apache and Tomcat configured successfully on w2k. But when I register and run Tomcat as a service it fails. Registration works but "net start Tomcat" fails and I can't find any error logs. Only information is in the event viewer: "Jakarta - Tomcat error 1063: StartServiceCtrlDispatcher failed". Any hints or clues as to what's going on? Thanks. _ Parag ShahTechnical Manager Quova, Inc. 303 Twin DolphinSte. 410 Redwood City CA 94065T 650.622.3726 F 650.508.0147 E [EMAIL PROTECTED]http://www.quova.com
Solved! problems compiling mod_jk.so etc.
I finally had enough of this. Jakarta-Tomcat is obviously not yet up to the quality we have come to expect from other Apache projects (this is not a flame! but my professional opinion). If I get the time I may contribute to the project but for now I have real work to do. I went to http://www.caucho.com/ downloaded and installed Resin 1.2.2 and now I am back in business. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
sendRedirect and KeepAlive Problem
Hi, I am using Tomcat 3.2.1 mod_jk ajp13 with Apache 1.3.14 on Solaris 8 Intel. I had the webserver configured so that KeepAlive was off. My App worked FINE. Now, when I turned it on, I am having all sorts of problems with pages that had a sendRedirect on them. I corrected the most common problem by adding a return; after every sendRedirect() call. Anyway I still have one problem. I have a logout.jsp page as below some html which is really not required % session.invalidate(); response.sendRedirect("/path/to/index.jsp page"); if(true) // Needed else i get an error saying statement not reached. return; % Anyway, now when I click on logout.jsp, I get redirected to index.jsp, but the image on the index page does not load. The browser progress bar just seems to move on and on very slowly until it finally times out. The index page also has some redirects on it, but they are within an if block. The control falls through to the end of the index.jsp page which is just plain html code. It seems that after serving up index.jsp, any further http get requests are hanging. (In this case for the href to an image ) Is it because the session is invalidated in this case as opposed to other pages where the session is still alive ? Any idea what is going on ? Thanks Shahed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]