deploying war file
I have a .war file that has been generated using the java create a war utility. this war file contains html, xsl, images and the associated jar and class files. this war file has worked fine with tomcat and websphere application studio developer, in short, it works by just dropping the file in tomcat/webapps folder or importing the war file using application developer. can a war file generated this way be used with websphere application server by just dropping it into an equivalent webapps folder(if one exists) OR can i use some import war utility. have any of you had any experience with this scenario. please let me know. Thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Distribution of production systems??
I have an application that is ready to ship and uses basically servlets and JSPs. Our preferred system of choice is Tomcat/Apache, but there might be scenarios where customers would like to choose Websphere or BEA or . In this case we are considering packaging the application as a .war file and sending this accross. I tried the .war file generated with BEA yesterday and it did not work , but the same war file worked with Websphere Studio. So my question is what are the distribution methods that developers out there use to distribute their web applications. 2nd question is what are EAR files and how do they differ from WAR files. Thanks in advance. TP -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Distribution of production systems??
Hello, Thanks for the reply. Thanks for the short explanation, I am assuming here that war is the way to go for me ;) (pardon the pun) So, that gets me to my second question, should a war created through ant or java's war utility be able to work on any application server (certified or not). because the .war i created worked on Tomcat and websphere out of the box, but did not work on weblogic. shouldnt a .war work on any application server? Please let me know your experiences. Thanks, Brown. - From: Shapira, Yoav [EMAIL PROTECTED] Hi, JARs and WARs and EARs, oh my ;) A WebApplicationArchive (WAR) contains the files for a web application, e.g. servlets, JSPs, static files (html, images, libraries, etc.) and so on, as well as that web application's deployment descriptor (web.xml). An EAR typically contains more than a WAR in that it contains EJBs and their libraries, information, descriptors, etc. It may also contain other, server-specific deployment details. It is common for an EAR file to contain one or more WAR files. An EAR file will have the application descriptor, application.xml. Personally, I use Ant's WAR and EAR tasks to create those files. I'm sure other people have their favorites, as some IDEs have built-in support for this. Hope this helps, Yoav -Original Message- From: Brown Bay [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 9:21 AM To: Tomcat Users List Subject: Distribution of production systems?? I have an application that is ready to ship and uses basically servlets and JSPs. Our preferred system of choice is Tomcat/Apache, but there might be scenarios where customers would like to choose Websphere or BEA or . In this case we are considering packaging the application as a .war file and sending this accross. I tried the .war file generated with BEA yesterday and it did not work , but the same war file worked with Websphere Studio. So my question is what are the distribution methods that developers out there use to distribute their web applications. 2nd question is what are EAR files and how do they differ from WAR files. Thanks in advance. TP -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0.1 on omvs under os390
I am in the process of porting our servlet based application running under Linux to omvs under Os390. After extensive searches on the web, I have not been able to find any kind of documentation/pages that suggest that this configuaration is possible. I believe that it can be done since I can run my Java programs quite nicely under omvs when they are converted to ebcdic. also, the configuration and xml files are text files, so they should not be much of a problem. IBM provides Websphere that does the ascii-ebcdic conversions on the fly and back under os390. My question is that has anyone been able to deploy Tomcat on os390. If they have, how did they resolve the problems of ascii-ebcdic conversions. I would appreciate any kind of information on the subject. Please let me know. Thanks in advance. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Repost:Urgent: Trouble starting Tomcat - Unix - omvs
Tomcat 4.0.1, JDK 1.3.1, OMVS Unix Os390. When I start Tomcat I get this error. Exception during startup processing java.lang.reflect.InvocationTargetException: javax.xml.parsers.FactoryConfigurationError at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:157) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Can you please point me to the right direction. Thanks. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Trouble starting Tomcat - omvs
Tomcat 4.0.1, JDK 1.3.1, OMVS Unix Os390. When I start Tomcat I get this error. Exception during startup processing java.lang.reflect.InvocationTargetException: javax.xml.parsers.FactoryConfigurationError at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:157) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Can you please point me to the right direction. Thanks. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat - OMVS/S390 - Urgent
Has anyone got Tomcat (any version) running under OMVS on S390. If you have a Linux VM on your S390 it will be easy since we package Tomcat 3.3/4.0.2 as RPM ;) BTW, Tomcat is a java apps which could be used on any system with a JDK 1.1.x (TC 3.3) or JDK 1.2 (TC 4.0.2). I used them on our IBM iSeries in OS/400 mode without any problems for months. Henri, Have you had success in making Apache and Tomcat work together under OMVS. So, did you have success in compiling the mod_jk module under OMVS. Can you mention the versions of Tomcat, Apache and the mod_jk that you used during the process, it will be a lot of help. Thanks. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Scale Tomcat-Apache
I have Apache 1.3.19 and Tomcat 4.0.1 running off a Suse Linux box A. I can scale this config for upto 1500 users giving acceptible response times. I have an identical machine B. What I would like to do is run Apache on machine A, serving requests off to Tomcat on machines A and B, some kind of load balancing to achieve better performance and server more users. Can somebody please point me to documentation that shows how to do this. Thanks. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Scale Tomcat-Apache - Is this true?
I have Apache 1.3.19 and Tomcat 4.0.1 running off a Suse Linux box A. I can scale this config for upto 1500 users giving acceptible response times. I have an identical machine B. What I would like to do is run Apache on machine A, serving requests off to Tomcat on machines A and B, some kind of load balancing to achieve better performance and server more users. Can somebody please point me to documentation that shows how to do this. Brown. I found this on the internet. Is this true. Is there a workaround to this. http://www.apachelabs.org/tomcat-user/200112.mbox/%3C01f101c17e30$577e27a0$4 [EMAIL PROTECTED]%3E If I do go back to TC3.3, what do I gain/lose in terms of functionality and performance. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat - OMVS/S390 - Urgent
Has anyone got Tomcat (any version) running under OMVS on S390. Please let me know. Thanks in advance. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Log messages
With respect to logging, I have a program that has System.out.println that are definied in certain places. If I disable logging for that context, they goto catalina.out. Is there a way for me to 1. disable logging into catalina.out or for that matter anywhere at all, so that those System.out's never get written anywhere or just get lost. 2. be able to set a limit on the size of the file, ie. the file should not be more than 50KB, Thanks. Brown. - Original Message - From: Yoav Shapira [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 25, 2002 1:06 PM Subject: Re: Log messages Hi, Look at log4j: http://jakarta.apache.org/log4j We've been using it for a while, both for development and production logging, and it's just great. Most of JSR47 (java.util.logging) is based on log4j, and it's also used by several commercial and/or big products like JBoss. Yoav James Adams wrote: Is there a class I can use to write log messages to the Tomcat log files ? Can anyone explain how this is done ? Also I have looked a wee bit at java.util.logging - can this also be used, or is it a better solution ? Thanks for any suggestions. -James Adams -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat Performance Expectations?
Hi Randy, Thank you for your reply. One common misconception that people seem to have about Tomcat (and application servers in general) is that you can predict how well an application will perform on that server without any real details of the application, but exact hardware details. I understand that it is a vague and open ended question and I mentioned it so in the email. What I am looking for is a ballpark figure that might not work for me but will give me something to shoot for/surpass. Not having worked on Tomcat or any other app server performance issues leaves me asking this question. For almost all applications that Tomcat is going to serve, the majority of CPU time will be spent in your application. The majority of network traffic will be specific to your application. The majority of memory might be your application (Tomcat might actually tie with you here). The point being, of all the possible factors that can limit the transactions per second or whatever other performance metric you want to consider, your application is the biggest blocker, not Tomcat, not the OS. That is true. My application does require network traffic. But I have used network monitoring tools like ntop etc. and am sure that network is not a bottleneck for this application. About the memory, I have used OptimizeIt and know where the memory bottlenecks are and am confident that garbage collection takes care of it (though there are some places that can be tuned) My best advice is for you to try it out. Set up a load test and see. One potential bottleneck you didn't mention, by the way, is your bandwidth between you and your users - this can also limit the number of transactions (which is a rather vague term when discussing app servers) you will receive. I have used load tests and for a single test it takes close to 3 min and have tested for 500 instances of the same test at the same time achieving decent performance. Bandwidth is not bottleneck bcoz all users are on T1 line. So what I am looking for are ballpark figures. Hope this information helps you and other tomcat list users to estimate the application. For the benefit of other listers I am pasting the email I wrote earlier below. * I have a single servlet based application. This application is accessed througha browser and travels over to a high performance database through a RMI-IIOP connection. It is not the best application in terms of code tuning. We are deploying this application on Tomcat 4.0.1, Apache 1.3, Suse Linux 7.0 on a PIII 800Mz machine with 800Mz RAM. We are not planning on adding multiple instances of Tomcat/Apache for the time being (or we are not quite sure that our machine might be able to sustain that many threads of either) Based on this what is the maximum number or requests that I can expect to obtain from my applications. Can I expect say 1000 (or maybe 5000 or more) concurrent users. How many requests/sec can I expect while delivering acceptible response on the browser. The reason I have asked such an open-ended question is that you might have deployed your production system on such a configuration and must have achieved some bechmarks. Please take the time and give me an estimate. Thanks in advance. * Thanks Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat Performance Expectations?
I have a single servlet based application. This application is accessed througha browser and travels over to a high performance database through a RMI-IIOP connection. It is not the best application in terms of code tuning. We are deploying this application on Tomcat 4.0.1, Apache 1.3, Suse Linux 7.0 on a PIII 800Mz machine with 800Mz RAM. We are not planning on adding multiple instances of Tomcat/Apache for the time being (or we are not quite sure that our machine might be able to sustain that many threads of either) Based on this what is the maximum number or requests that I can expect to obtain from my applications. Can I expect say 1000 (or maybe 5000 or more) concurrent users. How many requests/sec can I expect while delivering acceptible response on the browser. The reason I have asked such an open-ended question is that you might have deployed your production system on such a configuration and must have achieved some bechmarks. Please take the time and give me an estimate. Thanks in advance. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: page not found error using apache/tomcat
When i type in the browser http://x.x.com/examples I get the listings of servlets, jsp and images but when i goto servlets link i get a page not found error and the apache log says File does not exist: I believe this is a bug in the webapp module and I struggled several days about this problem too. You must enter the ending '/' for a directory. e.g. http://x.x.com/examples/ The apache server will use the index.html when it is a directory (e.g.http://myhost/dir) and tomcat will use the index.html too (e.g. http://myhost:8080/examples). However the apache-tomcat interface will not automatically add the ending '/' for you and will not use the index.html or show the files in the directory either. ** when i type http://x.x.com/examples/ i am on win 2k and i see the apache process running at 99% and the browser seems like it is in an endless loop. when u say that u were struggling with this for a while what did u do to resolve it, did u use mod_jk or just the warp connector. Please let me know.. Thanks. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
page not found error using apache/tomcat
Tomcat 4.0, apache 1.3, suse 7.0, os/390 My virtual host settings in apache http.conf are: VirtualHost x.x.x.x DocumentRoot /usr/local/tomcat/webapps ServerName x.x.com WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples /VirtualHost My service defination in server.xml in tomcat are: !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=localhost debug=0 appBase=webapps !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm/ /Engine /Service When i type in the browser http://x.x.com/examples I get the listings of servlets, jsp and images but when i goto servlets link i get a page not found error and the apache log says File does not exist: /examples/servlets/index.html when the file does exist in the virtual path. Are there any special settings required for apache/tomcat for me to get this to work. Any suggestions. Thanks in advance. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Apache - Tomcat - integration
Hi, I have been trying to make Apache 1.3 and Tomcat 4.0 work together but I was not sure what the different pieces are that I need to make them work together. I have listed a couple of doubts below, please take the time to answer them. 1. What is mod_webwap. Do I need this in my case. I have downloaded and copied the .dll into winnt/system32 and into %APACHE_HOME%/modules and the .so in to %APACHE_HOME%/modules 2. What is AJP connector and what is the relation with mod_jk. Do I need this in my case, according to the docs the AJP connector is required to connect to web servers, but the docs dont say exactly what is to be done (or maybe I have not been able to understand) One of the places that I saw http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml and http://dcb.sun.com/practices/howtos/tomcat_apache.jsp gave an easy guide that does not seem to work in my case. When I type http://localhost/examples the Apache.exe process runs at 99% and never comes back. Please let me know. Thanks in advance. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Hey Check this out... Tomcat forums!
great job!! - Original Message - From: August Detlefsen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 14, 2002 5:42 PM Subject: Hey Check this out... Tomcat forums! http://nagoya.apache.org:8080/jive/index.jsp __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat Performance
I have a system that is currently running on Websphere and we are only using the servlet container aspect of it. We have heard good things about Tomcat and were considering to move to it. Have members used Tomcat on production systems and have they achieved success in doing so, in terms of performance and load handling. We are assuming that our system can have upto 100 users login and the same time and could have upto 1000 logged on at the same time. Should this be any problem for Tomcat. Also, has anyone been able to configure Tomcat for load balancing in terms of multiple instances of it running from the same or different machines. Thanks. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat Performance
Moritz, Thanks for your reply. Can you tell me what webserver and platform you are running your application on. (for reference) Thanks. Brown - Original Message - From: Moritz Mann [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 9:22 AM Subject: Re: Tomcat Performance We have been running over 10 instances of tomcat on one maschine in an complete J2EE environment with a very good performance. I would also be interested in loadbalancing of 2+ physically different systems. moritz Brown Bay wrote: I have a system that is currently running on Websphere and we are only using the servlet container aspect of it. We have heard good things about Tomcat and were considering to move to it. Have members used Tomcat on production systems and have they achieved success in doing so, in terms of performance and load handling. We are assuming that our system can have upto 100 users login and the same time and could have upto 1000 logged on at the same time. Should this be any problem for Tomcat. Also, has anyone been able to configure Tomcat for load balancing in terms of multiple instances of it running from the same or different machines. Thanks. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- moritz mann junior engineer open systems ag raeffelstrasse 29 ch-8045 zurich t: +41 1 455 74 00 f: +41 1 455 74 01 mailto:[EMAIL PROTECTED] http://www.open.ch -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
ORB Singleton: Access Denied
Hi, I am using JDK1.3 and Tomcat 4.0 on win 2K. I am trying to access my remote machine and give a handle to my application server of the remote object using RMI-IIOP. I know this method works, because its been working on Websphere on OS/390. I am trying to port my product to Tomcat on Win/Linux. The code is ** orb = ORB.init(); // getIOR returns a string String factoryIOR = getIOR(path); //fails below org.omg.CORBA.Object genFacRef = orb.string_to_object(factoryIOR); ** When ran it gives me an exception called java.lang.securityException: ORBSingleton:access denied This is apparently a common error, but I have not found solutions on the net for this. Help would be appreciated. Thanks. Brown Bay. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Newbie: set java arguments
I want to add to my java command line arguments ***-Dorg.omg.CORBA.ORBClass=javaORB.CORBA.ORBSingleton -Dorg.omg.CORBA.ORBSi ngletonClass=JavaORB.CORBA.ORBSingleton*** In the shortcut to startup tomcat we see ***C:\Program Files\JavaSoft\JRE\1.3.0_01\bin\java.exe -jar -Duser.dir=C:\Program Files\Apache Tomcat 4.0 C:\Program Files\Apache Tomcat 4.0\bin\bootstrap.jar start*** When i try to put the -Dorg.omg to this startup the buffer in the shortcut does not take these many characters. Is there any other way that I can add the 1st set of arguments to the startup parameters for tomcat. Please let me know. Thanks. Brown Bay. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Newbie: initialize ORBSingleton
Brown - Couldn't you use a batch file unless it's out of option. Pae. Yea, I used a batch file instead, but now I am getting a ***java.lang.Exception: Servlet get corba object:org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation javaORB.CORBA.ORBSingleton minor code: 0 completed: No*** Any ideas what this is. Brown. /Pae I want to add to my java command line arguments ***-Dorg.omg.CORBA.ORBClass=javaORB.CORBA.ORBSingleton -Dorg.omg.CORBA.ORBSi ngletonClass=JavaORB.CORBA.ORBSingleton*** In the shortcut to startup tomcat we see ***C:\Program Files\JavaSoft\JRE\1.3.0_01\bin\java.exe -jar -Duser.dir=C:\Program Files\Apache Tomcat 4.0 C:\Program Files\Apache Tomcat 4.0\bin\bootstrap.jar start*** When i try to put the -Dorg.omg to this startup the buffer in the shortcut does not take these many characters. Is there any other way that I can add the 1st set of arguments to the startup parameters for tomcat. Please let me know. Thanks. Brown Bay. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]