|
|
tomcat unable to parse HTTP GET variables if & is replaced with %2526
By David A. (James Tower) Isaacson at Oct 11, 2005, 10:54 pm UTC
------_=_NextPart_001_01C5CEB6.C448B302 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Running=20 apache: httpd-2.0.46-46.3.ent tomcat: jakarta-tomcat-4.1.30 using the mod_jk connector. Earlier yesterday we started recieving the following error.... More...
------_=_NextPart_001_01C5CEB6.C448B302 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Running
apache: httpd-2.0.46-46.3.ent
tomcat: jakarta-tomcat-4.1.30
using the mod_jk connector.
Earlier yesterday we started recieving the following error.
java.lang.NumberFormatException: For input string: "888888%26order=44%26start=3%26end=3"
The page started to get refered to by another website, and the link that they are using is:
http://www.mysite.com/mypage.jsp?item=888888%2526order=44%2526start=3%25 26end=3
When I follow that link, it doesn't work, and it displays that it couldn't handle the input string
"888888%26order=44%26start=3%26end=3" (notice that the %2526 in the referring url now is a %26)
%25 = %
%26 = &
so it looks like the %25 is converting to the %, but then the recurring %26 is not getting converted to the &, which is causing tomcat not to be able to parse the variables.
Is this an apache or tomcat misconfiguration/bug? I've been searching, but unable to find any answers.
Any ideas on how to resolve this would be helpful. Sorry if this topic has been brought up before. I was unable to find any hits on google, or searching the mailing list archive.
Thanks,
Dave.
------_=_NextPart_001_01C5CEB6.C448B302--
0 Replies
|
|
|
Hijacking the coyote connector
By Michael G Dobbins at Oct 11, 2005, 10:33 pm UTC
In tomcat 5.0.28, we were able to replace the coyote connector using a "className" setting in the connector in server.xml. In tomcat 5.5.9 it looks like "className" is ignored. Looking at the source, it looks like the Connector is hardcoded in. Is this the case or am I missing something? My next... More...
In tomcat 5.0.28, we were able to replace the coyote connector using a "className" setting in the connector in server.xml. In tomcat 5.5.9 it looks like "className" is ignored. Looking at the source, it looks like the Connector is hardcoded in. Is this the case or am I missing something?
My next attempt, I repackaged our connector to replace the org.apache.catalina.connector package and put that in the -Xbootclasspath to override the released version. With -verbose:class set I can see my Connector being loaded, but the next class loaded is java/lang/reflect/InvocationTargetException and the JVM terminates. The documentation says that this is used to wrap an exception when a method or constructor is called by reflection. As I said above it looks to me like the constructor is called directly not via reflection. Am I missing something obvious?
I know that using the AJP connector is a cleaner way, but we estimate the serialization overhead will cost us about 5% on our platform.
Thanks mike
--------------------------------------------------------------------- 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
|
|
|
dynamical class reload
By dumbQuestionsAsker _ at Oct 11, 2005, 9:52 pm UTC
hi everybody, I got a problem loading an interface dynamycally. Im working under Tomcat. com.myApp.DefinitionServiceRemote and com.myApp.DefinitionService have to be dynamically (re)loaded because they are uploaded. com.myApp.DefinitionServiceRemote extends com.myApp.DefinitionService. By... More...
hi everybody, I got a problem loading an interface dynamycally. Im working under Tomcat. com.myApp.DefinitionServiceRemote and com.myApp.DefinitionService have to be dynamically (re)loaded because they are uploaded. com.myApp.DefinitionServiceRemote extends com.myApp.DefinitionService. By default(when I launch my webapp) I have 2 wrong interfaces to be able to launch my webapp and the cast doesn't work this way. When I replace (before launching my webapp)the default interfaces, by these which has to be dynamically loaded, I have no problem.
Any idea?
File file = new File (WEB_INF.substring (0, WEB_INF.length ()-7)+"/upload/"+typeDep+"/"+nomService+"/"); try {
URL url = file.toURL (); URL[] urls = new URL[]{url};
Class cls; Class cls2; ClassLoader cl = new URLClassLoader (urls);
cls2 = cl.loadClass ("com.myApp.DefinitionService"); cls = cl.loadClass ("com.myApp.DefinitionServiceRemote");
ServiceClient sc=new ServiceClient (null, nomService, null);
com.myApp.DefinitionServiceRemote dsr = (com.myApp.DefinitionServiceRemote) sc.getObject ();
} catch (MalformedURLException e) { } catch (ClassNotFoundException e) { } catch(ClassCastException e){
}
Thank you in advance.
_________________________________________________________________ MSN Hotmail : antivirus et antispam gratuits ! 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]
0 Replies
|
|
|
Anybody using autofarming feature on Tomcat 5.5 cluster?
By Edmon Begoli at Oct 11, 2005, 9:13 pm UTC
------=_Part_15551_6570949.1129065192996 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hey all, Can anyone share any experiences with web application autofarming on the Tomcat 5.5 cluster. Is it reliable? Do you use it for... More...
------=_Part_15551_6570949.1129065192996 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hey all,
Can anyone share any experiences with web application autofarming on the Tomcat 5.5 cluster.
Is it reliable? Do you use it for production purposes? How big is the cluster?
0 Replies
|
|
|
cluster FAQ link?
By Brian O'Rourke at Oct 11, 2005, 9:00 pm UTC
------=_Part_4281_23290356.1129064452940 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Reading up on some of the Tomcat 5.5 documentation, and I noticed that the cluster documentation links to a FAQ that doesn't appear to... More...
------=_Part_4281_23290356.1129064452940 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,
Reading up on some of the Tomcat 5.5 documentation, and I noticed that the cluster documentation links to a FAQ that doesn't appear to exist.
At the bottom of this page: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html
The link refers to this page, which doesn't exist, nor is there a link to a Cluster FAQ from the main FAQ page (that I can find): http://jakarta.apache.org/tomcat/faq/cluster.html
Where is this document located?
--bpo
------=_Part_4281_23290356.1129064452940--
0 Replies
|
|
|
Tomcat 5.5.9 bugs?
By Schalk Neethling at Oct 11, 2005, 8:54 pm UTC
Greetings All Does anyone know of bugs in the 5.5.9 release of Tomcat with regards to recompiling Jsp's or incorrectly send SQL statements? The reason I ask is, I do some development of Jsp's in Dreamweaver and use the synchronization utility to synchronize my local files with the files within... More...
Greetings All
Does anyone know of bugs in the 5.5.9 release of Tomcat with regards to recompiling Jsp's or incorrectly send SQL statements?
The reason I ask is, I do some development of Jsp's in Dreamweaver and use the synchronization utility to synchronize my local files with the files within Tomcat. Now, after having done this and refreshing the page, or triggering the link, Tomcat still runs the old file. If I delete everything from the work directory then it recompiles the Jsp and shows the new Jsp.
Also, I have a .jsp file used a resource for SQL queries. Once a page is run that calls one of these SQL queries, I continually get a SQL error that some column was not found. However, if I run the exact same query directly on the SQL server or via phpMyAdmin, the query executes successfully without any error.
Any aware of these issues? Or is there something else that might be causing these problems? Thank you in advance.
-- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
1 Reply
|
|
|
tomcat 3.2.4
By Steve Souza at Oct 11, 2005, 8:43 pm UTC
Hi folks, I'm new to the list, so I apologize in advance for any faux pas I may commit here! The question is simple - we'd like to get the 3.2.4 release of Tomcat, but do not see a download link on the Apache site. Is it archived somewhere? I know it's old, but we haven't moved to the new... More...
Hi folks,
I'm new to the list, so I apologize in advance for any faux pas I may commit here!
The question is simple - we'd like to get the 3.2.4 release of Tomcat, but do not see a download link on the Apache site. Is it archived somewhere? I know it's old, but we haven't moved to the new architecture yet.
Many many thanks!
Regards, Steve
--------------------------------------------------------------------- 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
|
|
|
Re: Embedded Tomcat and SSL?
By Mark at Oct 11, 2005, 8:14 pm UTC
are you using Apace with Tomcat? I have done embedded Tomcat and SSL, but it was Apache sitting in front of Tomcat. rote: EY_APPPORT)),isSSLEnabled); To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org... More...
are you using Apace with Tomcat? I have done embedded Tomcat and SSL, but it was Apache sitting in front of Tomcat.
On 10/6/05, [email protected: lmuxer-mailing...@yahoo.com] <lmuxer-mailinglists@yahoo.com> w= rote: > Hi, > > I am using an embedded tomcat instance within my application. I am > trying to set up a connector using SSL. When I start the server, it > creates the connector and bind to the port successfully. When I request > a page from the web browser, I get the following error in my browser: > > "The connection to the server has terminated unexpectedly. Some data > may have been transferred." > > The same scenario works fine with HTTP. > > Here is my code snippet: > // APPPORT and isSSLEnabled are set correctly to 8443 and true. > Connector httpConnector =3D > this._server.createConnector((java.net.InetAddress)null, > Integer.parseInt(ApplicationResourcesUtil.getProperty(Constants.RESOURCEK= EY_APPPORT)),isSSLEnabled); > > //add new Connector to set of Connectors for embedded server, > associated with Engine > this._server.addConnector(httpConnector); > this._server.start(); > > Looking at the tomcat website, they talk about registering keystore. > What APIs do I use to programmatically specify the keystore file? Is > there something else that needs to be configured before SSL will work > in the embedded more? > > Thanks, > > -Andy > > > > > --------------------------------------------------------------------- > 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]
2 Replies
|
|
|
Mod_jk + Apache on RHEL3 gives 503 for jsp only
By tpi...@crossref.org at Oct 11, 2005, 8:12 pm UTC
------_=_NextPart_30249_00020603.00028826 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I have a website that I am migrating to a new server. Server is Redhat ES3 2.4.21-20.0.1.ELsmp. Server version: Apache/2.0.46 I have jakarta-tomcat-5.5.9... More...
------_=_NextPart_30249_00020603.00028826 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
I have a website that I am migrating to a new server.
Server is Redhat ES3 2.4.21-20.0.1.ELsmp. Server version: Apache/2.0.46
I have jakarta-tomcat-5.5.9 installed and working properly on the new server. It is perfectly accessible from the legacy web server.
On the Website on the new server, access to jsp based pages give a 503 error.
The main page, home.jsp, loads fine in the servlet if no page is given. http://webserver/PI/ The home.jsp spawns a 503 if is in the URL. http://webserver/PI/home.jsp I can successfully get images from the page from the tomcat instance. It does not like the .jsp extension.
In the mod_jk log I can see the match made:
[Wed Sep 28 10:29:14 2005] [18841:2816] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/PI/*' [Wed Sep 28 10:29:14 2005] [18841:2816] [debug] map_uri_to_worker::jk_uri_worker_map.c (475): Found a wildchar match worker3 -> /PI/* However, in the apache access log is the 503. xxx.89.23.173 - - [28/Sep/2005:10:29:14 -0400] "GET /PI/home.jsp HTTP/1.1" 503 412 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7" SESSIONID=3D128F9AD992A16BC3D3EB1ED0AD5549C1
I have watched in Ethereal as no traffic goes from the apache to the tomcat. I have tried using the loopback and local network address. I have tried adding a *.jsp directive to the mod_jk config for the servlet.
Any help would be appreciated. I have a dent in my desk from hitting it with my forehead.
Apache Config:
#INSERT OF TOMCAT CONF PARAMETERS # Load mod_jk module # LoadModule jk_module modules/mod_jk.so LoadModule jk_module /etc/httpd/modules/mod_jk.so
# Declare the module for <IfModule directive> #AddModule mod_jk.c
# Where to find workers.properties JkWorkersFile /etc/httpd/conf/workers.properties
# Where to put jk logs JkLogFile /var/log/httpd/mod_jk.log
# Set the jk log level [debug/error/info] JkLogLevel debug
# Select the log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format JkRequestLogFormat "%w %V %T"
# Send servlet for context /examples to worker named worker1 JkMount /examples/servlet/* worker1 JkMount /PI/* worker3 #JkMount /PI/*.jsp worker3 # Send JSPs for context /examples to worker named worker1 JkMount /examples/*.jsp worker1 JkMount /journals/*.jsp worker1
Worker Properties /etc/httpd/conf/workers.properties # Define some properties workers.apache_log=3D/var/log/httpd/ workers.tomcat_home=3D/usr/local/tomcat/jakarta-tomcat-5.5.9 workers.java_home=3D/usr/bin/java ps=3D/
# worker.list=3Dworker1
# Set properties for worker1 (ajp13) worker.worker1.type=3Dajp13 worker.worker1.host=3D172.20.1.19 worker.worker1.port=3D8009
# worker.list=3Dworker2
# Set properties for worker2 (ajp13) worker.worker2.type=3Dajp13 worker.worker2.host=3D172.20.1.19 worker.worker2.port=3D10009
# worker.list=3Dworker3
# Set properties for worker3 (ajp13) worker.worker3.type=3Dajp13 worker.worker3.host=3D127.0.0.1 worker.worker3.port=3D8099
# worker.list=3Dworker4
# Set properties for worker4 (ajp13) worker.worker4.type=3Dajp13 worker.worker4.host=3D172.20.1.19 worker.worker4.port=3D8099
_____________________________________
Tim Pickard CrossRef Systems Support Analyst and Administrator 40 Salem Street Lynnfield, MA 01940 tpickard at crossref dot org 781 295 0072 x27 ______________________________________
------_=_NextPart_30249_00020603.00028826--
1 Reply
|
|
|
Re: Virtual Hosting and SSL
By Hassan Schroeder at Oct 11, 2005, 7:05 pm UTC
Yes. :-) That's exactly what you need to do. Try it, ask if you run into a specific problem... More...
Justin Jaynes wrote: > I am running tomcat 5.5.12 and need to host two sites, > both with ssl.
> Can you set up two connectors (one port 443 and one > port 80) for one specific ip address and another set > of connectors for another ip address?
Yes. :-)
That's exactly what you need to do. Try it, ask if you run into a specific problem...
-- Hassan Schroeder ----------------------------- [email protected: h...@webtuitive.com] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
--------------------------------------------------------------------- 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
|
|
|
symlink outside of docroot area
By wenzhou wang at Oct 11, 2005, 6:56 pm UTC
I have a question regarding TOMCAT 5.5.9. Hope to get help from folks who have the knowledge and experience. I try to create a symbolic link from the docroot area in tomcat 5.5.9($Catalina_HOME/webapps/ROOT) to a directory in my Solaris file system which has read/write permission to all users. The... More...
I have a question regarding TOMCAT 5.5.9. Hope to get help from folks who have the knowledge and experience. I try to create a symbolic link from the docroot area in tomcat 5.5.9($Catalina_HOME/webapps/ROOT) to a directory in my Solaris file system which has read/write permission to all users. The server is internal which has no access to outside world, so security is not a concern. The problem is that now when I try to load the directory from the browser, http://myhost:port/mydirectory, I got a HTTP 404 security error. I added following attributes in the ROOT/WEB-INF/web.xml file, but it doesn't help: <context-param> <param-name>allowLinking</param-name> <param-value>true</param-value> </context-param>
Can you tell whether I can do this and if yes, how?
Thanks.
Wenzhou
--------------------------------------------------------------------- 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
|
|
|
manager outofmemory exception
By Enrique RodrÃguez Lasterra at Oct 11, 2005, 5:40 pm UTC
I know this is a very common issue but i want to be sure about it. I have 5 tomcats on a 8Gb RAM machine. The number of applications installed on tomcats are 5 to 15. All the tomcat run with -Xms128M -Xmx512M but the manager aplication never show JVM memory higger than This is the JVM memory state... More...
I know this is a very common issue but i want to be sure about it.
I have 5 tomcats on a 8Gb RAM machine. The number of applications installed on tomcats are 5 to 15. All the tomcat run with -Xms128M -Xmx512M but the manager aplication never show JVM memory higger than 128
This is the JVM memory state for the tomcat with 15 application:
Free memory: 73.94 MB Total memory: 128.62 MB Max memory: 510.37 MB
What i don't understand is that I "sometimes" get OutOfMemoryException when i upload new aplitications to the tomcat using the manager.
I Profiled my aplication and i don't have any memory issue.
Is this a manager bug? Why the Total Memory is never higger than 128 MB but I get OutOfMemoryExceptions?
Regards, Enrique.
--------------------------------------------------------------------- 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
|
|
|
Form Based Authentication
By Peter Bright at Oct 11, 2005, 5:20 pm UTC
------_=_NextPart_001_01C5CE7E.9CBB9052 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, We're currently using form-based authentication (i.e. <auth-method>FORM</auth-method>) but, as I suspect many people have found, it's rather limited. One... More...
------_=_NextPart_001_01C5CE7E.9CBB9052 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hello, We're currently using form-based authentication (i.e. <auth-method>FORM</auth-method>) but, as I suspect many people have found, it's rather limited. One requirement we have is enforced password changes in certain scenarios. Currently the approach we were thinking of using is as follows: a) the realm recognizes that the user has a mandatory password change flag set, and so gives them a degenerate set of roles; instead of their true role, they just have a MUST_CHANGE_PASSWORD role. b) a filter checks for the existance of this role, and if it's found, forces the user to go to our change password page. c) the password is changed and the user reauthenticated with their new credentials, to retrieve their full set of roles. It's point (c) that's proving problematic; there's no way to reauthenticate that I can see. Our thinking is that we can resolve the inability to reauthenticate by creating a custom Authenticator; we could set some flag in the session to perform on-demand reauthentication, which would repopulate the list of roles, and everything would be hunky dory. Is this approach reasonable? How have other people tackled similar requirements? Is there any less contrived way of achieving what we want with the minimum of Tomcat-specific code? Peter
******************************************************************************* The information contained in this electronic message may be confidential and/or privileged. Any unauthorized use, dissemination, distribution, or reproduction is strictly prohibited. If you have received this communication in error, please contact the sender by reply email and destroy all copies of the original message. *******************************************************************************
------_=_NextPart_001_01C5CE7E.9CBB9052--
5 Replies
|
|
|
JSP Newbie seeking guidance
By John Geiger at Oct 11, 2005, 5:15 pm UTC
Hello: This is a little intimidating, but I am eager. I hope I am in the right place. I am a DHTML developer=8Bintermediate level. I=B9ve been exposed to JSP on an iPlanet server, Sun OS 5.8 (but it is my client=B9s production server, and I=B9= m reluctant to mess around there!) I now have my own... More...
Hello:
This is a little intimidating, but I am eager. I hope I am in the right place.
I am a DHTML developer=8Bintermediate level. I=B9ve been exposed to JSP on an iPlanet server, Sun OS 5.8 (but it is my client=B9s production server, and I=B9= m reluctant to mess around there!)
I now have my own Tomcat install kind-of-working on a Fedora Core 2 box. It is Tomcat 5.0.x with Apache 1.3.
I am studying an APress book called =B3JSP 2.0 Novice to Professional,=B2 but get errors with some of the exercises. (The book is great! Makes it sound s= o easy ;-)
My main question is: Can someone recommend a proven Linux, Apache 2 Tomcat 5.5 combination=8Bcould be unix, too.
I figure I should set up a stable development rig first=8Bone that I could eventually rely on in a light production environment.
Also: I am interested in finding a tutor/mentor in the San Francisco Bay Area.
Any advice would be much appreciated.
Thanks, John G.
--------------------------------------------------------------------- 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
|
|
|
manager webapp question
By Marcus Franke at Oct 11, 2005, 5:04 pm UTC
Hello, I have a tomcat server which serves some webapps for different purposes. I now would like to have another instance of the the manager webapp just for one of the webapps on this server, that another person can use the manager webapp to administer this one special webapp and not all the... More...
Hello,
I have a tomcat server which serves some webapps for different purposes.
I now would like to have another instance of the the manager webapp just for one of the webapps on this server, that another person can use the manager webapp to administer this one special webapp and not all the others, too.
so I have normal /manager/html and I would like to have something like
/web1/manager/html that is capable of adminstering web1
Can this be done? And if yes, what do I have to do?
Regards, Marcus
--------------------------------------------------------------------- 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
|
|
|
Re: Problems with graphics on Tomcat 5.5.9 OK!!! BUT.....
By David Delbecq at Oct 11, 2005, 3:07 pm UTC
Hello, if, like i suppose from your various errors, jfreechart require awt/swing api and do draw on it, you need to run the tomcat server inside a X server, not only do you need to have fonts installed and corresponding X libraries (like your link suggest was problem), you also need to to have X... More...
Hello, if, like i suppose from your various errors, jfreechart require awt/swing api and do draw on it, you need to run the tomcat server inside a X server, not only do you need to have fonts installed and corresponding X libraries (like your link suggest was problem), you also need to to have X server running and DISPLAY envirronement variable set accordingly.
I would first suggest you start tomcat with CATALINA_OPT="-Djava.awt.headless=true" If, like i suppose will be the case, you get HeadlessExceptions when running like this, this mean you definitly need to run tomcat server inside a X environment.
regards David Delbecq Mauricio Fernandez A. a écrit :
>Thanks for your help > >Now I have reinstalled the XFree86 completly including the Xvfb and I can >start it (XVfb), to test if it is running I execute a xclock and I don´t get >any error, so I think it is running ok > >However, now, when I try to get the jsp wich must show a graphic I get >another different error: > > >java.lang.NoClassDefFoundError > org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:764) > com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:19 >6) > org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1 >67) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >.... > > >And in another web app in the same server the error is: > > >java.lang.NoClassDefFoundError > java.lang.Class.forName0(Native Method) > java.lang.Class.forName(Class.java:164) > java.awt.Toolkit$2.run(Toolkit.java:821) > java.security.AccessController.doPrivileged(Native Method) > java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804) > com.actelion.control.Graficador.asignarBackground(Graficador.java:97) > com.actelion.control.Graficador.crearBarChartVertical(Graficador.java:524) > org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp._jspServi >ce(org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp:198) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >.... > > >So having in mind that before Xvfb Installation the error was: > >http://www.jfree.org/phpBB2/viewtopic.php?t=14319 > >I think I am just with another different problem. > >Can somebody understand this? > >Thanks > >Mauricio Fernandez > > > > > >>> >>> >>> > >Hi Mauricio, > >I had the same problem. The solution is as follows: > >1. Download and install a virtual frame buffer > Where to find and how to install: > http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/0/a832a07452b9a0e385256f >8000760f68?OpenDocument > >2. Do not forget to create a script to start xvfb - you will find the script >under the link above > >3. Edit the startup.sh or catalina.sh as follows: > >#export DISPLAY >export DISPLAY=<IP_of_your_machine_where_Tomcat_is_running>:0.0 >export CATALINA_OPTS="-Djava.awt.headless=false" > >4. Start xvfb > >5. Restart Tomcat > > >************************************ >Mit freundlichem Gruß / kind regards > >Aliye Edao > > > >--------------------------------------------------------------------- >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
|
|
|
After adding a context xml file, web-app doesn't always start
By David Farrell at Oct 11, 2005, 2:53 pm UTC
Hi all, For a while my web app was connecting manually to the db but obviously that's a bit rubbish so I looked at some examples and moved the db stuff into the context file for my app. I have never written a context file and I think I may have missed something. Now when I use ant to install my... More...
Hi all,
For a while my web app was connecting manually to the db but obviously that's a bit rubbish so I looked at some examples and moved the db stuff into the context file for my app. I have never written a context file and I think I may have missed something.
Now when I use ant to install my app, it sometimes fails - ant says "successful build" but tomcat throw an exeption that my app "conspiracy" cannot be found under /webapps/conspiracy - it isn't being installed from that location - ant installs it from my build dir outside of the tomcat folder entirely.
If this was happening all the time, it would be more understandable but roughly 50% of the time (and every time i re-type "ant remove install" immediately after a fail) it installs fine.
I imagine that I need to do something to my context xml file? I'm not really sure but the only change in the app pre and post this error is moving the db stuff to the xml file.
The xml file is attached: --------------------------------------------------------------------- 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: context_home.xml
1 Reply
|
|
|
Manage a context via JMX
By Björn König at Oct 11, 2005, 2:15 pm UTC
Hello, i'm using jmx to access the tomcat 5.5 server. I succeeded in retrieving a list of context mbeans. My problem is that the context-mbean doesn't contain any information about the availability of a context, the context description and number of sessions. I tried to get the original context... More...
Hello,
i'm using jmx to access the tomcat 5.5 server. I succeeded in retrieving a list of context mbeans. My problem is that the context-mbean doesn't contain any information about the availability of a context, the context description and number of sessions. I tried to get the original context object via the managedResource property of the mbean, but it doesn't work. It might be because I'm using a JmxMbeanServerConnection stead of a MbeanServer object.
Does any one know, how to get this information about a context via JMX?
Thanks! Bjoern
--------------------------------------------------------------------- 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
|
|
|
Where does tomcat loads classes from? Mysterious classes loaded....
By David Delbecq at Oct 11, 2005, 1:08 pm UTC
Hi, to be short, tomcat send me an error in console for my webapp in classes which simply are not supposed to exist: xalan classes. Linux debian computer, here is what i do: delbd@CAL-12:~/tomcat/jakarta-tomcat-5.5.7$ find * -iname '*xalan*' delbd@CAL-12:~/tomcat/jakarta-tomcat-5.5.7$ grep -i -R... More...
Hi, to be short, tomcat send me an error in console for my webapp in classes which simply are not supposed to exist: xalan classes.
Linux debian computer,
here is what i do:
delbd@CAL-12:~/tomcat/jakarta-tomcat-5.5.7$ find * -iname '*xalan*' delbd@CAL-12:~/tomcat/jakarta-tomcat-5.5.7$ grep -i -R xalan . | grep -v catalina.out ./webapps/tomcat-docs/printer/class-loader-howto.html:<li><em>org.apache.xalan.*</em></li> ./webapps/tomcat-docs/class-loader-howto.html:<li><em>org.apache.xalan.*</em></li> Fichier binaire ./webapps/intranet/WEB-INF/lib/oscore-2.2.2.jar concorde Fichier binaire ./webapps/RMI_intranet/WEB-INF/lib/oscore-2.2.2.jar concorde
ok, so 2 .jar contains references to xalan, here is the entry in those jar conatining string xalan:
com/opensymphony/provider/xmlprinter/XalanXMLPrinterProvider$1.class com/opensymphony/provider/xmlprinter/XalanXMLPrinterProvider.class com/opensymphony/provider/xpath/XalanXpathProvider.class
Now, as you see, no track of any org.apache.xalan classes. And for a good reason, i replaced xalan by saxon in my webapp. Now, here is where the fun starts: using an xsl 2.0 in my webapp, supported by saxon but not by xalan, i get this:
javax.xml.transform.TransformerException: Impossible de trouver la fonction : matches at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:649) at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1496) at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1435) at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1334) at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1267) at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1225) at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1131) at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1052) at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:994) at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:919) at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:859) at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:823) at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:796) at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:779) at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:172) at org.apache.xpath.XPath.<init>(XPath.java:202) at org.apache.xalan.processor.StylesheetHandler.createXPath(StylesheetHandler.java:199) at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:796) at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:1398) at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1589) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:381) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:312) at org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:122) at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:668) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:972) at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:788) at be.dissco.slide.SlideFopDriver.run(SlideFopDriver.java:158) at be.dissco.slide.SlideFopDriver.run(SlideFopDriver.java:136) at be.rmi.intranet.workflow.FOPHelper.createDocument(FOPHelper.java:107) at be.rmi.intranet.workflow.FOPHelper.createDocument(FOPHelper.java:83) at be.rmi.intranet.workflow.FOPHelper.createDocument(FOPHelper.java:80) at be.rmi.intranet.workflow.function.BuildPDF.execute(BuildPDF.java:67) at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1229) at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1268) at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:602) at be.dissco.opensymphony.SlideWorkflow.initialize(SlideWorkflow.java:110) at be.rmi.intranet.struts.InternalMissionAction.request(InternalMissionAction.java:127) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196) at be.rmi.intranet.struts.InternalMissionAction.execute(InternalMissionAction.java:296) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at be.rmi.intranet.filter.ContentEncodingFilter.doFilter(ContentEncodingFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at be.rmi.intranet.db.HibernateFilter.doFilter(HibernateFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at be.rmi.intranet.filter.PrincipalUser.doFilter(PrincipalUser.java:65) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:534)
Question is, how on hell did tomcat find a way to load org.apache.xalan.* classes !!!!! Subsidiary question, how do i make tomcat understand it's not xalan, but crimson the xslt processor?
Thanks for help, am lost! David Delbecq
--------------------------------------------------------------------- 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: Problems with graphics on Tomcat 5.5.9 [255835:132365]
By RTE - Meridian Club at Oct 11, 2005, 12:16 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 hart, er it the =2Ejava:7 ronment java:58 torAcce... 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: "Mauricio Fernandez A." <mfacontacto@ono.com> > Received: 10/7/2005 7:14 PM > To: "" <tomcat-user@jakarta.apache.org> > Subject: Problems with graphics on Tomcat 5.5.9 > > Hello > > I have a web App with some jsp´s showing graphics generated by jfreechart, > in my windows dev station it works fine but in my linux production server it > was working fine to some days ago and now it doesn´t. > > I have Tomcat 5.5.9, JDK 1.5.0_04, Red Hat Linux on a rack > > Now i obtain a ServletException generated by this reason (sorry to send the > trace but I want to be specific): > > java.lang.NoClassDefFoundError > sun.java2d.SunGraphicsEnvironment.addDirFonts(SunGraphicsEnvironment.java:7 > 22) > sun.java2d.SunGraphicsEnvironment.registerFontsInDir(SunGraphicsEnvironment > .java:602) > sun.java2d.SunGraphicsEnvironment.access$200(SunGraphicsEnvironment.java:58 > ) > sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:174) > java.security.AccessController.doPrivileged(Native Method) > sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:94) > sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:164) > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce > ssorImpl.java:39) > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru > ctorAccessorImpl.java:27) > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > java.lang.Class.newInstance0(Class.java:350) > java.lang.Class.newInstance(Class.java:303) > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen > t.java:68) > java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1141) > org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1243) > org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1223) > org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:173) > org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:328) > org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:299) > com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:21 > 1) > org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1 > 67) > > Thanks > > MauricioF > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] > For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org] > > >
-- 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
4 Replies
|
|
 | |