|
|
Re: Tomcat 4.0.4 on OS/390?
By jjnfg at Oct 8, 2007, 11:04 pm UTC
You are not alone. I am working in a similar direction. I reported as a bug when Tomcat v4.1.12 complaining about context URL when I tried running it on OS/390/USS. see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13014 Waiting for TOMCAT development team to comment on EBCDIC suport. Joseph... More...
You are not alone. I am working in a similar direction. I reported as a bug when Tomcat v4.1.12 complaining about context URL when I tried running it on OS/390/USS.
see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13014
Waiting for TOMCAT development team to comment on EBCDIC suport.
Joseph
--- [email protected: ric...@relativity.org] wrote: > > I've been looking into getting Tomcat 4.0.4 running on > OS/390 for a day or so now. I've found various > references > to doing this, but nothing conclusive yet. > > Could someone please let me know if they have it running > themself and/or know what would be involved in doing > this. > > I've also been working on getting Tomcat 3.3.1 running on > > the same machine (just in case I can't get 4.0.4 going). > So information on 3.3.1 on OS/390 would he helpful as > well. > > Current notes: > - may have to convert certain files such as > catalina.policy/tomcat.policy, tomcat.conf, and > tomcat.propeties... from ascii to EBCDIC. > - I'm under the impression that all served up files > should > remain in ascii. > > I'm currently (today) focussing on even getting Tomcat > 3.3.1 going. All of the JSP examples run great, but I'm > running into the following error when I run the servlet > examples: > Error: 500 > Location: /examples/servlet/HelloWorldExample > Internal Servlet Error: > > java.util.MissingResourceException: Can't find resource > for bundle java.util.PropertyResourceBundle, key > helloworld.title > at > java.util.ResourceBundle.getObject(ResourceBundle.java(Compiled > > Code)) > at > java.util.ResourceBundle.getString(ResourceBundle.java:342) > at HelloWorldExample.doGet(Unknown Source) > etc... > > The properties file, LocalStrings.properties, is in the > default location and seems fine. It is stored in ascii, > which I'm assuming is correct, just like all the other > files. > > I've looked on the web via google and through this list's > > archives and unfortiontely still haven't found solid > information regarding this Tomcat on OS/390. I couldn't > even tell if this scenario is officially supported by the > > Tomcat group. Tomcat has rocked for me, I'm using it at > work and for personal projects at home. > > Any input would be greatly appreciated. Thank you so > much! > > Cheers, > Rich > > -- > To unsubscribe, e-mail: > <mailto:tomcat-user-unsubscribe@jakarta.apache.org> > For additional commands, e-mail: > <mailto:tomcat-user-help@jakarta.apache.org> >
http://mobile.yahoo.com.au - Yahoo! Messenger for SMS - Now send & receive IMs on your mobile via SMS
-- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
7 Replies
|
|
|
Tomcat and PostgreSQL
By NSB)Hiroshi Kasamatsu at Dec 26, 2005, 8:19 pm UTC
It seems that Tomcat cannot find jdbc Driver,or postgresql.jar.When "http://127.0.0.1:8080/jdbc_servlet/servlet/postgresql_servlet" is accessed, an error message is shown of "java.lang.ClassNotFoundException;org.postgresql.Driver". What do I need to do in order to let Tomcat know the position of... More...
It seems that Tomcat cannot find jdbc Driver,or postgresql.jar.When "http://127.0.0.1:8080/jdbc_servlet/servlet/postgresql_servlet" is accessed, an error message is shown of "java.lang.ClassNotFoundException;org.postgresql.Driver". What do I need to do in order to let Tomcat know the position of postgresql.jar? Please help me out. I have not found any clues for two weeks. Thanks in advance.
Hiroshi Kasamatsu
2 Replies
|
|
|
RE: apache virtual hosting + server.xml + context [255643:132138]
By RTE - Meridian Club at Oct 12, 2005, 9:14 pm UTC
Many thanks for your email. This is an automated response acknowledging r= eceipt. Please be advised that Badge mailing commences beginning of October 2005. Should your message require a response we will respond shortly. Regards Meridian Club ; some of them need to use tomcat (have jsp pages and... More...
Many thanks for your email. This is an automated response acknowledging receipt.
Please be advised that Badge mailing commences beginning of October 2005.
Should your message require a response we will respond shortly.
Regards Meridian Club
> -----Original Message----- > From: "gianni dalmasso" <giadalma@yahoo.it> > Received: 10/7/2005 10:51 AM > To: <tomcat-user@jakarta.apache.org> > Subject: apache virtual hosting + server.xml + context > > hi list, i have a problem. i have apache 2.0 + tomcat 5.5. > i have N name based virtual hosts on the same machine managed by apache; some of them need to use tomcat (have jsp pages and servlets...) > if i set a server.xml of tomcat with several hosts, and every host has ist context --> it's ok ( but tomcat documentation says "Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place <Context> elements directly in the server.xml file") > if i try to move the context informations in a .xml file in a $CATALINA_HOME/conf/[enginename]/[hostname]/ directory, tomcat cannot serve anything (it acts as he cannot find files in docBase); > - which is the right configuration ? > - is it necessary to define different host in server.xml ?(--> so, when i add a new host i need to restart apache and tomcat...) > thanks in advance > > here is the configuration that works.. > > HTTPD.CONF > .... > Include /var/jakarta-tomcat-5.5.9/conf/mod_jk.conf > > MOD_JK.CONF > ..... > > NameVirtualHost xx.yy.zz.kk:80 > > <VirtualHost xx.yy.zz.kk:80> > > DocumentRoot /var/www/html > > ServerName web.ccc.com > > </VirtualHost> > > > > <VirtualHost xx.yy.zz.kk:80> > > <Directory "/var/www/html/aaa" > > > DirectoryIndex index.htm index.html index.jsp > > </Directory> > > ServerName www.aaa.com > > DocumentRoot /var/www/html/aaa > > JkMount /*.jsp ajp13 > > JkMount /servlet/* ajp13 > > </VirtualHost> > > > > <VirtualHost xx.yy.zz.kk:80> > > <Directory "/var/jakarta-tomcat-5.5.9/webapps/bbb" > > > DirectoryIndex index.htm index.html > > </Directory> > > ServerName www.bbb.com > > DocumentRoot /var/jakarta-tomcat-5.5.9/webapps/bbb > > JkMount /*.jsp ajp13 > > JkMount /servlet/* ajp13 > > </VirtualHost> > > > > SERVER.XML > > .... > > <Host name="www.aaa.com"> > > <Context path="" > > docBase="/var/www/html/aaa" > > debug="0" > > reloadable="true" > > > </Context> > > </Host> > > > > <Host name="www.bbb.com"> > > <Context path="" > > docBase="/var/jakarta-tomcat-5.5.9/webapps/bbb" > > debug="0" > > reloadable="true" > > > </Context> > > </Host> > > > > ---------------------------------------------------------------------------------------- > > > > This for example, don't work > > > > setting : > > SERVER.XML > > > > .... > > <Host name="www.aaa.com"> > > appBase = /var/www/html/aaa (or similar... ) > > </Host> > > > > <Host name="www.bbb.com"> > > </Host> > > > the file : $CATALINA_HOME/conf/Catalina/www.aaa.com/aaa.xml > > <Context path="" > > docBase="/var/www/html/aaa" > > debug="0" > > reloadable="true" > > > </Context> > > > > > > > > --------------------------------- > Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
-- Meridian Club Unit 5, Caxton Centre Porters Wood St Albans Herts UNITED KINGDOM AL3 6XT
Tel: +44 1727 738855 Fax: +44 1700 578955 email: [email protected: mer...@dataco.net]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
2 Replies
|
|
|
Getting Apache2 forwarding to tomcat5
By Dan Chesmore at Oct 12, 2005, 8:55 pm UTC
I have read about 25 different websites on getting this setup. I have read through this list trying to find the answer I need. I have spent the last 2 days and soon 3rd day trying to get this working. I need Apache to forward port 80 and 443 requests to tomcat to 8080 and 8443. I am working on the... More...
I have read about 25 different websites on getting this setup. I have read through this list trying to find the answer I need. I have spent the last 2 days and soon 3rd day trying to get this working. I need Apache to forward port 80 and 443 requests to tomcat to 8080 and 8443. I am working on the non-ssl right now. I get an error in Apache error_log saying: [error] uriEnv.init() map to invalid worker /*.jsp-0 ajp13:localhost:8009 [error] uriEnv.init() map to invalid worker /patientC onnect-1 ajp13:localhost:8009
Let me give a bit of history and config files. This is running on SLES9 x86-64 version. Apache and tomcat and the connectors are from RPMs that came with SuSE. Everything is installed in SuSE default install location.
httpd.conf.local:
LoadModule jk2_module /usr/lib64/apache2/mod_jk2.so
<Location "/*.jsp"> JkUriSet worker ajp13:localhost:8009 </Location>
<Location "/patientConnect"> JkUriSet worker ajp13:localhost:8009 </Location>
workers2.properties:
[logger] level=DEBUG
[config:] file=/etc/apache2/workers2.properties debug=0 debugEnv=0
[uriMap:] info=Maps the requests. Options: debug debug=1
[shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/usr/share/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0
[workerEnv:] info=Global server options timing=1 debug=0
[status:] info=Status worker, displays runtime informations
[uri:patientconnect.truchart.com/jkstatus/*] info=Display status information and checks the config file for changes. group=status:
[channel.socket:localhost:8009] info=Ajp13 forwarding over socket
# Define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009
[uri:patientconnect.truchart.com/patientConnect/*] info=patientConnect
Both the workers2.properties and the httpd.conf.local are located in /etc/apache2 directory.
In the /usr/share/tomcat/conf/ directory is the jk2.properties and the server.xml
jk2.properties:
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel channelSocket.port=8009 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess
and the server.xml that was modified:
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --> <Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" /> <!-- Note : To disable connection timeouts, set connectionTimeout value to 0 -->
<!-- Note : To use gzip compression you could set the following properti es :
compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml" -->
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --> <!-- <Connector port="8443" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" debug="0" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> -->
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> <Connector port="8009" enableLookups="false" redirectPort="8443" debug="0" protocol="AJP/1.3" />
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 --> <!-- See proxy documentation for more information about using this. --> <!-- <Connector port="8082" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" acceptCount="100" debug="0" connectionTimeout="20000" proxyPort="80" disableUploadTimeout="true" /> -->
...
<!-- Logger shared by all Contexts related to this virtual host. By default (when using FileLogger), log files are created in the "logs " directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the "directory" attribute. Specify eith er a relative (to $CATALINA_HOME) or absolute path to the desired directory.--> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/>
<Context path="/patientConnect" docBase="/usr/local/mediture/gateway_patient_connect/webapp" debug=" 0" reloadable="true" crossContext="true"/> <Context path="" docBase="/srv/www/htdocs" debug="0" reloadable="true" cr ossContext="true"/>
</Host>
Thank you for any help or direction you can place me. If you think I should have read something first then tell me to read it. I may have skipped over it or I may have read it. I have seen a lot of different ways of doing that same thing and tried all so I may be missing up a few of them. Again thank you.
-- Dan Chesmore Systems Admin Mediture 7700 Equitable Dr Suite 100 Eden Prairie, MN 55344 952-400-0315 www.mediture.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
3 Replies
|
|
|
Re: where is a text/html;charset= ?
By Jon Wingfield at Oct 12, 2005, 8:39 pm UTC
You need to submit a valid HTTP request. Yours doesn't have the version at the end of the request line. Try: GET / HTTP/1.0 blank line indiating the end of the http headers) You should then see the HTTP response, headers and all. If you want to submit HTTP/1.1 requests you need to submit some... More...
You need to submit a valid HTTP request. Yours doesn't have the version at the end of the request line.
Try:
GET / HTTP/1.0
(Thats a two linefeeds: one marking the end of the request line and one blank line indiating the end of the http headers) You should then see the HTTP response, headers and all. If you want to submit HTTP/1.1 requests you need to submit some mandatory headers (Host and maybe Date) otherwise you get a 400 back.
$ telnet telnet> open localhost 8080 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET / HTTP/1.1
HTTP/1.1 400 Bad Request Transfer-Encoding: chunked Date: Wed, 12 Oct 2005 17:26:36 GMT Server: Apache-Coyote/1.1 Connection: close
Alternatively you can use plug-ins for Mozilla/Firefox and IE which allow you to see the raw response:
http://livehttpheaders.mozdev.org/ http://www.blunck.info/iehttpheaders.html
HTH,
Jon
Mark wrote: > Hi everybody, > > How can I see the complete output stream for each http request? > > I tried: > ---------- > $telnet localhost 8080 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > GET / > <html><head><title>Hello Test4</title></head><body></body></html> > --------- > Where is a "text/html;charset=..."? or I'm missing something? > > Thanks, > Mark. > > > > __________________________________ > Yahoo! Music Unlimited > Access over 1 million songs. Try it free. > http://music.yahoo.com/unlimited/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] > For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org] >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
1 Reply
|
|
|
Context Relative versus Path Relative error pages
By Arlene Milgram at Oct 12, 2005, 7:35 pm UTC
Hi All, We ran into a problem with JSP pages under Tomcat 5.5.9 which did not exist under Tomcat 4.1.31. In Tomcat 5.5.9 if we forward to a JSP page that is in a different directory then the initial request the errorPage directive does not work as we expected. If we use a path relative errorPage... More...
Hi All,
We ran into a problem with JSP pages under Tomcat 5.5.9 which did not exist under Tomcat 4.1.31.
In Tomcat 5.5.9 if we forward to a JSP page that is in a different directory then the initial request the errorPage directive does not work as we expected.
If we use a path relative errorPage directive then Tomcat 5.5.9 seems to assume that the errorPage path is relative to the path of the initial HTTP request not the JSP page. Is this behavior correct?
For example, Error 404, /servlet/PopError.jsp appears if an HTTP request of /servlet/PathServ forwards to a JSP page, /popdrv/pathRelative.jsp, that uses relative paths and then throws an exception.
<%@ page language="java" session="true" errorPage="PopError.jsp" %>
We found a similar entry in BugZilla which was closed because the problem could not be reproduced.
http://issues.eu.apache.org/bugzilla/show_bug.cgi?id=35230
One can get the correct errorPage by using a Context relative path.
<%@ page language="java" session="true" errorPage="/popdrv/PopError.jsp" %>
We have attached 6 files, PathServ.java, pathRelative.jsp, ContextServ.java, contextRelative.jsp, PopError.jsp, and web.xml. To see the issue one can create a context and place PathServ.java in the directory com.optimedsys.servlet, pathRelative.jsp and PopError.jsp in the directory popdrv. To see the workaround one can place ContextServ.java in the directory com.optimedsys.servlet, contextRelative.jsp and PopError.jsp in the popdrv directory.
Request "context/servlet/PathServ" to see the 404 error or "context/servlet/ContextServ" to get the correct errorPage.
Thank You
Lee Breslow [email protected: lee.br...@MEDecision.com]
Arlene Milgram [email protected: arlene.mi...@MEDecision.com] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
Attachment: web.xml
0 Replies
|
|
|
Newbee question on servlet and html - Really frustated with this problem.
By Developer Developer at Oct 12, 2005, 6:59 pm UTC
------=_Part_2741_185311.1129000971919 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline does anybody know how to fix this problem. Invocation of servlet prompts a messagebox posing a questions " do you want to save this ?" instead... More...
------=_Part_2741_185311.1129000971919 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
does anybody know how to fix this problem. Invocation of servlet prompts a messagebox posing a questions " do you want to save this ?" instead of executing it and returing the output in the html document. :(
On 10/10/05, Developer Developer <devquestions@gmail.com> wrote: > > I wrote my first html and servlet and deployed it on tomcat 5.5. The html > works okay when I call it from the browser. The servlet too works okay > when > I call its doget() method by invoking it from the browser. EG:. > http://localhost:8080/VBeer/BeerSelect > However, when i try to invoke the servlet from an html form I get a > message > box - (file download security warning) - Do you want to save this file ? > It has a > funny number suffixed to the my servlet name. > > > Not sure what is happening. > Here is my HTML code snippet. > > <body> > > <h1 align =3D3D "center">Beer selecton Page </h1> > > <form method=3D3D"POST" action=3D3D"BeerSelect"> > > <p>Select Beer Characteristics</p> > > Thanks ! >
------=_Part_2741_185311.1129000971919--
2 Replies
|
|
|
Re: Tomcat 5.5.12 and user-agent header
By Bill Barker at Oct 12, 2005, 5:58 pm UTC
"Richard Mixon" <rnmixon@qwest.net> wrote in message news:007801c5ca7b$0c13cea0$8a01a8c0@smartfish... It's certainly not a known issue. It would help a lot if you could tell us which Connector you are using at the time (e.g. HTTP/1.1, HTTP/1.1-APR, AJP/1.3, AJP/1.3-APR). To unsubscribe, e-mail:... More...
"Richard Mixon" <rnmixon@qwest.net> wrote in message news:007801c5ca7b$0c13cea0$8a01a8c0@smartfish... >I tested out my application on 5.5.12 yesterday and noticed one small > anomally. I had a JSP in my sitemesh decorator "default.jsp" that ends up > wrapping the login page for container managed authentication. This page > had > a statement > String _userAgent = request.getHeader("user-agent").toLowerCase(); > > It gets a null-pointer exception in 5.5.12, but under 5.5.9 it runs fine. > In > 5.5.12, after the login succeeds then the user-agent headers appear to be > there just fine, but not on the initial login page. > > Is this a known issue? >
It's certainly not a known issue. It would help a lot if you could tell us which Connector you are using at the time (e.g. HTTP/1.1, HTTP/1.1-APR, AJP/1.3, AJP/1.3-APR).
> Thank you - Richard >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
5 Replies
|
|
|
Tomcat on Windows: advantages of running as a service?
By Tom Burke at Oct 12, 2005, 4:32 pm UTC
I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to automatically shut it down & restart it. One way is to control it via shutdown.bat & startup.bat, and run these as scheduled tasks at (say) 3:30am and 3:31am. However, I've noticed that while shutdown.bat will shut it down if it was... More...
I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to automatically shut it down & restart it. One way is to control it via shutdown.bat & startup.bat, and run these as scheduled tasks at (say) 3:30am and 3:31am. However, I've noticed that while shutdown.bat will shut it down if it was previously started as a service, startup.bat won't run it as a service, it starts it at a command prompt.
My question is: does this matter? If I'm running on Windows are there any advantages to running Tomcat as a service? Or disadvantages to running from the command prompt? The server is dedicated to tomcat, by the way.
Tom Burke
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
4 Replies
|
|
|
Re: filter: How to set browser encoding?
By Frank W. Zammetti at Oct 12, 2005, 3:08 pm UTC
Mark, have a look here: http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/CharacterEncodingFilter.html Just added that to JWP last weekend :) It essentially calls request.setCharacterEncoding() with whatever you configure. realized I have a cut-and-paste error in the javadoc. D'oh!).... More...
Mark, have a look here:
http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/CharacterEncodingFilter.html
Just added that to JWP last weekend :) It essentially calls request.setCharacterEncoding() with whatever you configure.
(Oops... ignore the description of the encodingScheme parameter... just realized I have a cut-and-paste error in the javadoc. D'oh!).
-- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [email protected: fzam...@hotmail.com]
On Wed, October 12, 2005 10:53 am, Mark said: > Hi everybody, > I've got a request from my client to force an encoding in the > browser, regardless what user have set. > > When I set encoding inside my filter to Windows-1257 in the HTML > source code I see only ?s:??? ????? ???. > > Is there any easy way to enforce browser to set proper encoding? > > > May be I need to setContent type after I obtain a writer in the > servlet? > Note, all outputs are generated by servlets: > > public void doPost( HttpServletRequest req, HttpServletResponse resp > ) > throws IOException, ServletException > { > // do something > resp.setContentType("text/html"); > resp.getWriter().println(output); > } > > > In MyFilter.doFilter() I do following: > (HttpServletResponse)response).setContentType("text/html;charset=Windows-1257") > > I use 5.0.28 with Redhat 9. > Any input is welcome. > > Thanks! > Mark. > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] > For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
0 Replies
|
|
|
Fw: Tomcat on Windows: advantages of running as a service?
By Tom Burke at Oct 12, 2005, 2:32 pm UTC
Thanks to Peter and other who made this, in retrospect, obvious suggestion! I'm pleased to say it works perfectly. Tom Burke ----- Original Message ----- From: "Peter Crowther" <Peter.Crowther@melandra.com> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org> Sent: Wednesday, October 12, 2005... More...
Thanks to Peter and other who made this, in retrospect, obvious suggestion! I'm pleased to say it works perfectly.
Tom Burke
----- Original Message ----- From: "Peter Crowther" <Peter.Crowther@melandra.com> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org> Sent: Wednesday, October 12, 2005 11:49 AM Subject: RE: Tomcat on Windows: advantages of running as a service?
> From: Tom Burke [email protected: tom...@expensys.com] > Sent: 12 October 2005 11:18 > To: Tomcat Users List > Subject: Tomcat on Windows: advantages of running as a service? > > I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to > automatically shut it down & restart it. One way is to control it via > shutdown.bat & startup.bat, and run these as scheduled tasks at (say) > 3:30am and 3:31am. However, I've noticed that while shutdown.bat will > shut it down if it was previously started as a service, startup.bat > won't run it as a service, it starts it at a command prompt.
Why not use net stop <servicename> and net start <servicename> with the name of the Tomcat service?
> My question is: does this matter? If I'm running on Windows are there > any advantages to running Tomcat as a service? Or disadvantages to > running from the command prompt?
If you run it as a service: you can ensure it restarts if the machine reboots unexpectedly for any reason; you can take actions if the service crashes; and you can run the service as a specified user fairly simply. If you run from the command line, you have none of these options.
- Peter
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
0 Replies
|
|
|
RE: dynamical class loading
By Allistair Crossley at Oct 12, 2005, 1:34 pm UTC
this is a complex answer that *probably* only the Tomcat devs can answer of= someone knowledgable about the JVM and class loaders, so don't expect too = many users to answer.=20 i believe from my limited knowledge that you cannot reload single classes i= n a tomcat web application as a whole class... More...
this is a complex answer that *probably* only the Tomcat devs can answer of someone knowledgable about the JVM and class loaders, so don't expect too many users to answer.
i believe from my limited knowledge that you cannot reload single classes in a tomcat web application as a whole class loader is associated with a web application. i believe the problem is more to do with the JVM although I *believe* WebLogic manages it. perhaps if a dev has time to explain they will.
Allistair.
> -----Original Message----- > From: dumbQuestionsAsker _ [email protected: eex...@hotmail.com] > Sent: 12 October 2005 09:11 > To: [email protected: tomcat...@jakarta.apache.org] > Subject: dynamical class loading > > > can somone give me an information? > I want to know if it is possible to past and load classes into > web-inf/classes path without beeing forced to reload the > whole webapp ? > > _________________________________________________________________ > 10 Mo pour vos pičces jointes avec MSN Hotmail ! > http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] > For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org] > >
<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> ------------------------------------------------------- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- </FONT> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLACK> Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation.
Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. </FONT>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
2 Replies
|
|
|
AW: Refresh ResourceBundle
By Bernhard Slominski at Oct 12, 2005, 1:25 pm UTC
Hi, you can write a class which handles the loading of the resoucres, so = you can control the behaviour. We have the resource bundles in the DB, so we can administer it via the = DB without restarting the application Cheers Bernhard To unsubscribe, e-mail:... More...
Hi,
you can write a class which handles the loading of the resoucres, so you can control the behaviour. We have the resource bundles in the DB, so we can administer it via the DB without restarting the application
Cheers
Bernhard
> -----Ursprüngliche Nachricht----- > Von: Roland Carlsson [email protected: roland.car...@alfa-moving.se] > Gesendet: Mittwoch, 12. Oktober 2005 15:20 > An: [email protected: tomcat...@jakarta.apache.org] > Betreff: Refresh ResourceBundle > > > Hi! > > I'm using the i18n taglibrary to i18n a site i'm working on. The > administration features not only i18n but also contentmanagement. The > problem is that I can't find out how to refresh my > ResourceBundle in any > kind of way other than restart the whole webapp. > > Are there any way to tell tomcat to reload ResourceBundles? > > Thanks in advance > Roland Carlsson > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] > For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org] >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
0 Replies
|
|
|
Refresh ResourceBundle
By Roland Carlsson at Oct 12, 2005, 1:19 pm UTC
Hi! I'm using the i18n taglibrary to i18n a site i'm working on. The administration features not only i18n but also contentmanagement. The problem is that I can't find out how to refresh my ResourceBundle in any kind of way other than restart the whole webapp. Are there any way to tell tomcat to... More...
Hi!
I'm using the i18n taglibrary to i18n a site i'm working on. The administration features not only i18n but also contentmanagement. The problem is that I can't find out how to refresh my ResourceBundle in any kind of way other than restart the whole webapp.
Are there any way to tell tomcat to reload ResourceBundles?
Thanks in advance Roland Carlsson
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
0 Replies
|
|
|
Illegal Field Name Error
By Asad Habib at Oct 12, 2005, 11:42 am UTC
I am receiving the following error when trying to run a Struts application. I checked and it seems that I do have all of the appropriate jar files installed. But for some reason, the Action class is not being recognized. Any help would be greatly appreciated. Thank you. - Asad HTTP Status 500 -... More...
I am receiving the following error when trying to run a Struts application. I checked and it seems that I do have all of the appropriate jar files installed. But for some reason, the Action class is not being recognized. Any help would be greatly appreciated. Thank you.
- Asad
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Illegal field name "has inconsistent hierarchy" in class registration/RegistrationTypeAction
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) root cause
java.lang.ClassFormatError: Illegal field name "has inconsistent hierarchy" in class registration/RegistrationTypeAction java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
Apache Tomcat/5.5.9
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
3 Replies
|
|
|
connection timeout reached JK IsapiRedirect.dll
By Reynir Hubner at Oct 12, 2005, 10:11 am UTC
Hi, I'm using tomcat 4.1.x and Coyote JK connector, with IIS 5. I just updated to isapi_redirect-1.2.14.dll. I did that because I've been getting alot of those error messages into the log(stderr.log): - - 12.10.2005 09:50:53 org.apache.jk.common.ChannelSocket processConnection - - INFO: connection... More...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi, I'm using tomcat 4.1.x and Coyote JK connector, with IIS 5. I just updated to isapi_redirect-1.2.14.dll.
I did that because I've been getting alot of those error messages into the log(stderr.log):
- - 12.10.2005 09:50:53 org.apache.jk.common.ChannelSocket processConnection - - INFO: connection timeout reached
Can anyone explaine these (still coming after the update). this is the config for the connector :
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8009" minProcessors="5" maxProcessors="275" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="10000" useURIValidationHack="false" tomcatAuthentication="true" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
thanx, [email protected: r...@hugsmidjan.is]
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDTN9K19KgIQihNwgRAlEpAJ9sNvVp9B5cVaOROkswt2A0oyZu7ACfVDCA PE2yIFPgurN3CX0jPv2duHo= =pm9R -----END PGP SIGNATURE-----
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: tomcat-user-help@jakarta.apache.orgSIGNED
1 Reply
|
|
|
Fwd: More helpful reporting of exceptions in JSPs
By Tim Fennell at Oct 12, 2005, 09:04 am UTC
--Apple-Mail-6-419863990 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Apologies in advance for cross-posting this, but I sent this email out to the tomcat-dev list a couple of days ago and have received no replies at all... I think this is... More...
--Apple-Mail-6-419863990 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Apologies in advance for cross-posting this, but I sent this email out to the tomcat-dev list a couple of days ago and have received no replies at all... I think this is quite a useful feature, and I'm wondering how best to go about contributing it. Thanks
-Tim Fennell http://stripes.mc4j.org
Begin forwarded message:
> From: Tim Fennell <tfenne@tfenne.com> > Date: October 9, 2005 5:50:11 PM EDT > To: [email protected: tomca...@jakarta.apache.org] > Subject: More helpful reporting of exceptions in JSPs > Reply-To: "Tomcat Developers List" <tomcat-dev@jakarta.apache.org> > > > Hi, > > I'll apologize in advance if this is the wrong place to post this, > or if this has been covered before. I had a good read through the > Tomcat docs and faqs, searched the bug database, and googled around > on the topic, but could not really find anything. > > I've been using Tomcat for a while, and in general have found it as > good a servlet/JSP container as any I've used. With one exception > (no pun intended). A long time ago I started out using WebLogic, > and the one thing that I loved about WebLogic, that is missing from > Tomcat, is that when an Exception occurred in a JSP it would tell > you what line number *in the JSP* generated the exception, and show > you a snippet of code around the offending line. > > For quite a while I'd figured that the way Tomcat was built > prevented this from being easy/possible, but I didn't look. Well, > I finally got around to looking, and it only took me a couple of > hours to implement it. Which makes me wonder if there is some > other reason that this isn't done in Tomcat/Jasper? > > At any rate, I have code that will do this now, and I think it'd be > a great productivity boost for anyone else developing JSPs on > Tomcat. It amounts to small patches to two files. The first is > org.apache.jasper.compiler.Compiler to make it hang on to the parse > tree (pageNodes) if in development mode, and a getter to make this > accessible. The second is to > org.apache.jasper.servlet.JspServletWrapper to do the grunt work of > mapping a stack frame from the exception back to the line in the > JSP that it came from. > > It's all coded up to function only when in development mode, and is > reasonably well commented. Would any of the committers be > interested in taking a look at this if I put together a patch and > posted it here? Cheers, > > -Tim Fennell > http://stripes.mc4j.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected: tomcat-dev-unsubs...@jakarta.apache.org] > For additional commands, e-mail: [email protected: tomcat-dev...@jakarta.apache.org] > >
--Apple-Mail-6-419863990--
6 Replies
|
|
|
Re: serving content from outside the context
By Darryl L. Miles at Oct 12, 2005, 08:58 am UTC
Are you wanting TC to serve the static files or do you use AJP connector and Apache. The easiest way to serve files from outside is to let Apache serve them and configure up AJP connector, then mount the entire content or just *.jsp pages to TC. To unsubscribe, e-mail:... More...
John Laughton wrote:
> Hi, I hope this is the right mailing list for this question > > I am using tomcat 5.0.28 > I have a simple web app and want to serve up some images in the jsp > pages, but the images are outside the context > > The HTTP statement looks like > <tr><td> > <img alt="thumb image" src="/data/webData/family/DSC01183.JPG"/> > </td></tr> > > The web app is under /usr/local/tomcat/webapp/family > On the browser it only shows "thumb image" as it cannot get to the > hyperlink http://xx.xx.xx.xx/data/webData/family/DSC01183.JPG > (IP shown as xx.xx.xx.xx for security) > > I have read a lot about tomcat and figure there must be a way to > configure server.xml and/or web.xml to allow this to work, but cannot > see it ? > > It is possible ?
Are you wanting TC to serve the static files or do you use AJP connector and Apache. The easiest way to serve files from outside is to let Apache serve them and configure up AJP connector, then mount the entire content or just *.jsp pages to TC.
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
0 Replies
|
|
|
newbee question on servlet and html
By Developer Developer at Oct 12, 2005, 06:02 am UTC
------=_Part_2543_26863992.1128978259432 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when i call it from the browser. The servlet too works... More...
------=_Part_2543_26863992.1128978259432 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when i call it from the browser. The servlet too works okay when i call its doget() method by invoking it from the browser. EG:. http://localhost:8080/VBeer/BeerSelect However, when i try to invoke the servlet from an html form I get a message box - (file download security warning) - Do you want to save this file, wit= h a funny number suffixed to the my servlet name.
Not sure what is happening. Here is my HTML code snippet.
<body>
<h1 align =3D3D "center">Beer selecton Page </h1>
<form method=3D3D"POST" action=3D3D"BeerSelect">
<p>Select Beer Characteristics</p>
Thanks !
------=_Part_2543_26863992.1128978259432--
2 Replies
|
|
|
Example build.xml error?
By René Schade at Oct 12, 2005, 06:01 am UTC
Hi List, Starting a new project, I deceided to move to Tomcat 5.5.=20 In the "Application Developer's Guide"=20 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html There is an example build.xml file for installing & reloading the = project, a "basic build-file":... More...
Hi List,
Starting a new project, I deceided to move to Tomcat 5.5.
In the "Application Developer's Guide"
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html
There is an example build.xml file for installing & reloading the project, a "basic build-file":
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/build.xml.txt
Using this build.xml file works fine, except for one thing. Whenever I do a change followed by "ant reload", it does not deploy the changes to the server. The changed files are recompiled in to the local /build folder, followed by a reload of the server, but the changed files are never deployed to the server.
Maybe my setup is wrong, maybe it is not supposed to support this, or maybe it's just an error?
Regards, René
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
1 Reply
|
|
 | |