RE: [corba] ORB initializing in Servlet
Here's a working example of a servlet initialising the ORB as it loads: public void init(ServletConfig cfg) throws ServletException { try { String[] orbArgs = {-ORBInitialHost, localhost, -ORBInitialPort, 1050} ; ORB orb = ORB.init(orbArgs, null); org.omg.CORBA.Object objRef = orb.resolve_initial_references(NameService); NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef); org.omg.CORBA.Object obj = ncRef.resolve_str(MyService) ; svcRef = SimpleServiceHelper.narrow(obj); } catch(Exception e) { System.out.println(Failed to initialise ORB: + e) ; e.printStackTrace() ; throw new ServletException(ORB initialisation failure, e) ; } } Eoin. -Original Message- From: Halil AKINCI [mailto:[EMAIL PROTECTED]] Sent: 27 November 2002 07:18 To: Tomcat Users List; servlet-interest group; jakarta-tomcat yahoo groups; idl-user; CORBA_Official; [EMAIL PROTECTED]; CORBA Subject: [corba] ORB initializing in Servlet Hi, I want to use a servlet as a CORBA client. I developed a sample application, but it is returned an error message. I think, I could not initialize the ORB correctly within the servlet class. I need a sample to initialize ORB and resolve the object reference in naming within the servlet class. Can anyone help me? Note: I use Java 2 SDK v1.4.0 and JavaIDL Halil Yahoo! Groups Sponsor ADVERTISEMENT http://rd.yahoo.com/M=237459.2675695.4055211.2225243/D=egroupweb/S=1707 276718:HM/A=1267611/R=0/*http://ad.doubleclick.net/jump/N2524.Yahoo/B107 1650;sz=300x250;ord=1038382220206228? http://us.adserver.yahoo.com/l?M=237459.2675695.4055211.2225243/D=egrou pmail/S=:HM/A=1267611/rand=935653631 To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ .
Re: How to I build Tomcat with SSL?
Date: Mon, 13 Aug 2001 09:04:50 -0400 From: Peter Markowsky [EMAIL PROTECTED] Subject: How to I build Tomcat with SSL? I've looked at the documentation, downloaded the classes and xerces 1.4.1. But am now faced with the actual how do I rebuild Tomcat. I'm very new at this. I've just had to do this myself. The first thing is that if you just want SSL support then, with Tomcat 3.2.3 at least, you don't seem to need to rebuild it. Just put the JSSE JAR files in $TOMCAT_HOME/lib and configure the SSL HttpConnector in server.xml (there is an example there commented out). If you *do* need to rebuild it (for other reasons) the you'll find an explanation in the README file supplied with jakarta-tomcat-3.2.2.tar.gz. Basically, you need to download Ant, the servletapi package, Xerces, JAXP and JSSE and put them in a directory structure like: rootdir jakarta-tomcat jakarta-servletapi jakarta-ant jaxp-1.0.1 You also need to put xerces.jar and the JSSE JARs in your CLASSPATH before doing the build. Eoin.
RE: Setting JVM Memory configuration
Firstly, running out of memory after a predictable period of running (rather than because of peak loading) suggests a memory leak. These are possible in Java if you hold onto object references accidentally once you're done with them (or libraries you call do so). If this is the case, adding more JVM memory won't help you. You may want to monitor your Java memory usage with the JVM profiler (or an external tool like jProbe). Assuming that this isn't the case, then you have the correct command line parameter - you're setting it to about 120 Mb in your example (which you can specify as -Xmx120M if you prefer). The default value for this is 64 Mb on Solaris and WinNT with Sun's JVM. Eoin. -Original Message- From: Srinivas Reddy [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 4:39 PM To: [EMAIL PROTECTED] Subject: Setting JVM Memory configuration hi , my tomcat runs out of memory soon after 3-4 hrs of running(depends on no of users accessing it). As almost 5-10 users are accessing it at a time. I have 120 JSPs and 180 JAVA classes in defferent packages. I increased JVM memory something like this in tomcat.bat file it served me for next say 3-4 hrs but still it crashes after that. %_STARTJAVA% %TOMCAT_OPTS% -Xmx12 -Dtomcat.home=%TOMCAT_HOME% org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9 can anyone help me ? thanks in advance. -srini Also what is default memory used by JVM - Original Message - From: Ogievetsky, Nikita [EMAIL PROTECTED] To: Ogievetsky, Nikita [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 30, 2001 3:24 PM Subject: RE: Invalid class file format never mind. the error disappeared when I switched from tomcat 3.2.3 to 4.0 b6 --Nikita. -Original Message- From: Ogievetsky, Nikita Sent: Monday, July 30, 2001 5:37 PM To: '[EMAIL PROTECTED]' Subject: Invalid class file format Hello all, I would greatly appreciate your help. This is the message I am getting from Tomcat: org.apache.jasper.JasperException: Unable to compile class for JSPerror: Invalid class file format: D:\xml\Rdfquery\lib\rdfquery.jar(org/desire/rudolf/query/DownloadUrls.class) , wrong version: 46, expected 45 I tried to compile org/desire/rudolf/query/DownloadUrls.class with JDK 1.3 and JDK 1.2.2, same error message. I would greatly appreciate any hints and help, thanks, Nikita. Important Notice to Recipients It is important that you do not use e-mail to request, authorize or effect the purchase or sale of any security or commodity, to send fund transfer instructions, or to effect any other transactions. Any such request, orders, or instructions that you send will not be accepted and will not be processed by Morgan Stanley.
RE: tomcat4b6 classpath for poolman.xml
Not tried it with Tomcat 4.0, but with 3.x placing it in $TOMCAT_HOME/classes works fine. Eoin. -Original Message- From: Matt Barre [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 8:35 AM To: [EMAIL PROTECTED] Subject: Re: tomcat4b6 classpath for poolman.xml I guess it might help to include the trace from the out screen. :) Starting service Tomcat-Standalone Apache Tomcat/4.0-b6 Starting service Tomcat-Apache Apache Tomcat/4.0-b6 null java.lang.NullPointerException java.lang.NullPointerException at com.codestudio.management.PoolManConfiguration.parseXML(PoolManConfig uration.java:121) at com.codestudio.management.PoolManConfiguration.loadConfiguration(Pool ManConfiguration.java:75) at com.codestudio.management.PoolManBootstrap.init(PoolManBootstrap.ja va:61) Matt - Original Message - From: Matt Barre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 26, 2001 9:32 AM Subject: tomcat4b6 classpath for poolman.xml I am moving a few of my applications from tomcat 3.2 to tomcat4-b6. I have them up and running except for some trouble with poolman. From the trace before it kills tomcat, it looks like it can't find the poolman.xml file. With tomcat 3.2 I simply have this file in my jdkhome/jre/lib/ext/ folder. Anyone have a tip for where I should place a copy for tomcat 4 to access? I'm on win2k with 2.0.4 of poolman. Thanks, Matt
RE: JDBC in TOMCAT - LINUX - ORACLE 8.0.5
[EMAIL PROTECTED] wrote: I have a Tomcat at a Linux and a Oracle 8.05. What the JDBC driver that i must install ? You need Oracle's JDBC driver. And where i can learn about it ? The manual about it is at: http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.81 7/a83724/toc.htm The driver is shipped with Oracle 8i in the $ORACLE_HOME/jdbc directory. I don't think it came with 8.0 though - you may have to contact Oracle to get a copy. Eoin.
RE: When to start a new JVM?
I mean, when do you know that current jvm is fully used and that you should start a new one and balance the load on two? Interesting question. Generally, I'd suggest that you do a load test. You increase the load against the Tomcat instance until the CPU that Tomcat is using isn't increasing any more but the client service time is. This suggests that you've reached the scalability limit of a single Tomcat address space. Then, graph your results. You'll often find a sharp angle in the graph where response time increases sharply with load. Back off from this point a little (say 10%) and that's your maximum throughput for the single JVM, Also, how do you know that current machine has enough load and can't support any more requests, and load should be balanced on two machines? This is easier to do. Assuming you are using Unix, use tools like top(1m), mpstat(1m) on Solaris and ps(1) to check CPU usage. Check memory usage (and paging activity) with vmstat(1m). For NT, PerfMon provides the same sort of facilities via a GUI. For Solaris you can also use the SEToolkit freeware package - it comes with a tool called Zoom that provides instant feedback on whether important areas of the machine are overloaded or not. Cheers, Eoin. -Original Message- From: Bora Paksoy [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 15, 2001 5:21 AM To: [EMAIL PROTECTED] Subject: When to start a new JVM? Hi there; I am actually a java developer who was asked to manage some Tomcat instance;) Hence, this question may sound dumb, but excuse my sys-admin skills. Anyways, I know that you can start multiple-jvms and even different instances on different machines, but I was wondering how people decide when to start a new JVM? I mean, when do you know that current jvm is fully used and that you should start a new one and balance the load on two? Also, how do you know that current machine has enough load and can't support any more requests, and load should be balanced on two machines? Is there any tool that tells you that one specific jvm process is fully loaded, likewise is there any tool that tells you that this machine is fully loaded and load should be distributed on different machines ? Thanks, Baho. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: Error when starting Tomcat
This looks like the dynamic linker can't find libdl.so.1 when it tries to load mod_jk.so - which is really strange because libdl.so.1 is a really fundamental library and is in /usr/lib. Are you running this on the same version of Solaris it was built on? Try running ldd(1m) on mod_jk.so and see how it resolves references. Cheers, Eoin. -Original Message- From: Brawner, Jerry J [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 6:18 AM To: '[EMAIL PROTECTED]' Subject: Error when starting Tomcat I'm having the following errors print to the screen when I start Tomcat. Any suggestions? Thanks, Starting tomcat. Check logs/tomcat.log for error messages /usr/lib/dld.sl: Unresolved symbol: dlclose (code) from /home/brawnerj/usr/local/apache/libexec/mod_jk.so /usr/lib/dld.sl: Unresolved symbol: dlopen (code) from /home/brawnerj/usr/local/apache/libexec/mod_jk.so /usr/lib/dld.sl: Unresolved symbol: dlerror (code) from /home/brawnerj/usr/local/apache/libexec/mod_jk.so /usr/lib/dld.sl: Unresolved symbol: dlsym (code) from /home/brawnerj/usr/local/apache/libexec/mod_jk.so
RE: I need help in tomcat configuration with Oracle 8.1.7
Firstly ... post in text, not HTML! What sort of errors are you getting from Tomcat? Have you checked your JDBC URL using Oracle's CheckJDBC class? Eoin. -Original Message- From: Internet Total Solutions LLC - Customer Liaisons Department - [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 3:37 AM To: [EMAIL PROTECTED] Subject: I need help in tomcat configuration with Oracle 8.1.7 Hello, I would like to know whether anyone is able to give me a hint towards solving the following scenario. If anyone is available on consultation basis, it is fine too. I have developed website personalization engine in java that comes with it's own kind of application server to handle the client access requests to the oracle 8.1.7 db through the use of tomcat 3.1 I am using the oracle thin driver and classes111.zip in order to handle the requests through the jdbc. However tomcat giving me serious errors and my client application can't login to the database. Would anyone be able to help me on that matter? Thanks Tobias Hansen
RE: PoolMan woes
We're using PoolMan 2.0.x with Tomcat 3.2.x without too many problems. PoolMan does respond rather violently when it can't find its configuration file - which is poolman.xml in version 2. I put this in $TOMCAT_HOME/classes and it appears to be found OK. If PoolMan doesn't find its configuration file, it ends up throwing a NullPointerException however, I've never seen this floor Tomcat - you just get an exception in the logs. How are you using PoolMan from within Tomcat? We just import it into our servlets and call PoolMan.findDataSource(MyDataSource) to retrieve a data source from it and then call ds.getConnection() to force initialisation. One difference is that we're on Solaris with JDK 1.3.1 and you have a W2K JVM. Eoin. -Original Message- From: Matt Barre [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: PoolMan woes I am trying to get PoolMan and TomCat to play nicely together. I am developing on Win2k, Tomcat 3.2. My first attempt was to use version 2.0.4 of Poolman with Tomcat 3.2...upon access PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal window just vanishes. I tried increasing the heap size, but that didn't seem to help. Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but mysteriously it can't find its poolman.props file. I've tried putting it in directories that I'm absolutely positive are in my ClassPath without luck. I've read the docs pretty extensively I think, but can't seem to come up with an answer. My overall goal is to simply add connection pooling to tomcat. If anyone can give me some pointers, thanks in advance. Matt
RE: PoolMan woes
Method getDataSource(java.lang.String) not found in class com.codestudio.sql.PoolMan I use findDataSource(java.lang.String) - although both are documented in the JavaDoc. Is poolman.jar in your CLASSPATH when you compile? I've just tested this with 2.0.1 and both findDataSource() and getDataSource() are found. Cheers, Eoin. -Original Message- From: Matt Barre [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 1:47 PM To: Eoin Woods; [EMAIL PROTECTED] Subject: Re: PoolMan woes Thanks for the tip. By taking the two suggestions I now have Tomcat somewhat stabilized. I am working on a jsp to get all the kinks worked out. I import the PoolMan packages but I get the following/weird error: Method getDataSource(java.lang.String) not found in class com.codestudio.sql.PoolMan According to the javadocs that is a valid function call Any further ideas? Thanks, Matt - Original Message - From: Eoin Woods [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:18 PM Subject: RE: PoolMan woes We're using PoolMan 2.0.x with Tomcat 3.2.x without too many problems. PoolMan does respond rather violently when it can't find its configuration file - which is poolman.xml in version 2. I put this in $TOMCAT_HOME/classes and it appears to be found OK. If PoolMan doesn't find its configuration file, it ends up throwing a NullPointerException however, I've never seen this floor Tomcat - you just get an exception in the logs. How are you using PoolMan from within Tomcat? We just import it into our servlets and call PoolMan.findDataSource(MyDataSource) to retrieve a data source from it and then call ds.getConnection() to force initialisation. One difference is that we're on Solaris with JDK 1.3.1 and you have a W2K JVM. Eoin. -Original Message- From: Matt Barre [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: PoolMan woes I am trying to get PoolMan and TomCat to play nicely together. I am developing on Win2k, Tomcat 3.2. My first attempt was to use version 2.0.4 of Poolman with Tomcat 3.2...upon access PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal window just vanishes. I tried increasing the heap size, but that didn't seem to help. Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but mysteriously it can't find its poolman.props file. I've tried putting it in directories that I'm absolutely positive are in my ClassPath without luck. I've read the docs pretty extensively I think, but can't seem to come up with an answer. My overall goal is to simply add connection pooling to tomcat. If anyone can give me some pointers, thanks in advance. Matt
RE: So what *IS* available? Formerly Tomcat SUCKS
For a list of servlet containers see: http://java.sun.com/products/servlet/industry.html Lots to choose from ! Eoin. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 5:46 AM To: [EMAIL PROTECTED] Subject: So what *IS* available? Formerly Tomcat SUCKS Hello Everyone, I was just going through the posts and have been following this thread. Despite Tomcat not meeting Nick's needs and the frustration he must have had, he does bring up a good question. What is out there that can handle Nick's problems? I am still new to the Tomcat scene so please be patient with me. I've seen commercial solutions mentioned such as Resin, JRun and a few others. What about IBM WebSphere? Is that not a similar product? How do the commercial products compare to Tomcat as far as feature set, stability, scalability and speed? The thread just got me thinking is all. Thanks in advance John Brosan On 27 Jun 2001 17:28:19 -0700, Nick Stoianov wrote: Hey Milt, I guess you are right. Thanks, Nick On Wednesday 27 June 2001 05:23 pm, Milt Epstein wrote: On Wed, 27 Jun 2001, Nick Stoianov wrote: To all of you tomcat fans, Attacking me with these immature e-mails shows the following things: 1. not accepting other people's opinions and experiences 2. blindly repeating the same things over and over again. [ ... ] Frankly, you're the one that's being immature here -- as evidenced so well by the subject of your post. If you've got your mind made up and won't listen to legitimate suggestions from others, what's the point of coming in here and posting like you did. You're acting out, something a three year old does. Now, this doesn't mean you don't have some legitimate gripes. It may very well be that for your situation, Tomcat isn't suitable. That doesn't mean it sucks, or that it's not suitable for others. Your situation just may be complex enough, or idiosyncratic enough, that it will be problematic for you to use Tomcat. And perhaps for a number of reasons, it's just not possible for you to spend a lot of time trying to figure out how to get Tomcat to do what you want, you want it to work the way you want out of the box, or have someone else figure it out for you. So a heavy duty commercial product with support may be a better choice for you. But it's going to cost you (whereas Tomcat is free). But that's a choice you're making as to how best to allocate your resources (and it may perfectly well be a legitimate choice). Again, it doesn't mean Tomcat sucks, it's just not what you need (and I've probably heard complaints about most of the other products out there, including commercial ones). Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: Finding the XML parser in Tomcat
I think this has come up before. Tomcat has an XML parser built in (it reads XML files for configuration). To use Xerces in our servlets, we had to add xerces.jar to the front of the CLASSPATH in the tomcat.sh script. Eoin. -Original Message- From: Frank Lawlor [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 7:20 AM To: Tomcat (E-mail) Subject: Finding the XML parser in Tomcat In my VisualAge Java development environemnt (jdk 1.2.2) I can say, for example, Parser parser = ParserFactory.makeParser(org.apache.xerces.parsers.SAXParser); but when I deploy to a standalone Tomcat environment, I get a class not found on the parser name, even tho I put the jar in Tomcat's WEB-INF\lib directory. If I put the jar into jre\lib\ext, it is found, but having to put it there is more imposition on the user and requires extra work beyond normal web app deployment (just putting the WAR file in the webapps dir). Further, If I put the jar there, then programs that use the no parameter form Parser parser = ParserFactory.makeParser(); then start to throw an error: Null Pointer Exception: sax.parser is null This can break other applications! Why will it not find the parser in the Tomcat WEB-INF\lib directory? Is this an XML, jdk, Tomcat issue or what? If I add the XML lib to jre\lib\ext, what/how system properties must be set? Thanks, -- Frank Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions.