Tomcat Vs Orion

Hi,
Currently, I am using Orion as web server and running with no problem but need to ask the following as my network administrator request me to change to Tomcat:
1. Do I need to change a lot of coding in jsp and java files if I am told to change from Orion to Tomcat web server ?
2. Are there any good reasons to change from Orion to Tomcat ?
3. Which web server is better between Orion and Tomcat for Insurance Web Application ?
Kindly advise soon.
Best Regards,
yckok.

1. Do I need to change a lot of coding in jsp and java
files if I am told to change from Orion to Tomcat web
server ?Depends on how compliant your jsp is to the specification that Tomcat implements. Generally if the specification in Orion was a bit older and you need to move to Tomcat 4.x (which is a higher spec) then there should be minimal changes; UNLESS you relied heavily on a lot of Orion specific things.
2. Are there any good reasons to change from Orion to
Tomcat ?Well if you want a jsp/servlet container which implements the latest spec then you might want to use Tomcat. It's pretty fast and easy to use.
3. Which web server is better between Orion and Tomcat
for Insurance Web Application ?This is a loaded question, bound to give you lots of answers; none of them satisfactory and sometimes contradictory. My best advice: Try them both. Besides how would anyone come up with a definitive answer for your app if they've never used them ?
>
Kindly advise soon.
Best Regards,
yckok.

Similar Messages

  • Servlet 2.2 conformity of web-app deployment?

    Hi,
              I am having quite a bit of difficulty getting a standard Servlet 2.2 app
              that runs in Resin, Tomcat and Orion app server just fine, to work at all on
              WebLogic. Is there some sort of trick? I installed WebLogic 5.1 trial via
              the download on my Win2K box. I set the weblogic.properties to use a webApp.
              When I hit the web-app via html pages..its fine. When I try to display JSP
              pages I get problems. I then figured out that for some reason WebLogic
              couldn't find tools.jar to compile JSP pages, so I added that to my System
              Environment classpath. Why it needs to be set there..and its not
              automatically done by the install I don't know. It seems obvious to me that
              to display JSP pages they have to be compiled, so tools.jar is needed.
              Anyways, the pages started converting into .java files, but when compiling I
              am getting some compile-time errors and thus the .class isn't showing up.
              I have:
              weblogic.httpd.webApp.myapp=c:/applications/bm/www
              in weblogic.properties. I am not trying clustering yet, so this is just to
              deploy a single instance of weblogic to run our site. I also commented out
              the docRoot=/public or whatever the line is..since I only want to run a
              Servlet 2.2 web-app, not a simple web-site.
              Below is the output of the console. I am not sure why it is giving me a
              class loader error. I am going to try the SP4 patch, but for some reason the
              wlconfig utility doesn't change the settings that I keep applying to it. I
              am trying to add a path to the classpath with wlconfig.
              Anyways..if anyone can shed some light I would be much appreciated.
              Thank you.
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: init
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param verbose
              ini
              tialized to: true
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              packagePref
              ix initialized to: jsp_servlet
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              compileComm
              and initialized to: javac
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              srcCompiler
              initialized to weblogic.jspc
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              superclass
              initialized to null
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              workingDir
              initialized to: C:\applications\bm\www\_tmp_war
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              pageCheckSe
              conds initialized to: 1
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp:
              initialization co
              mplete
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp:
              pageCheckSeconds over-ruled in JSPServlet to : 1
              Mon Aug 14 11:02:55 PDT 2000:<E> <ServletContext-myapp> error checking JSP
              'jsp_
              servlet._index' for freshness, forcing re-compile
              java.lang.LinkageError: Class javax/servlet/ServletConfig violates loader
              constr
              aints
              at java.lang.ClassLoader.defineClass0(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
              at
              weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
              ClassLoader.java:415)
              at
              weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              cClassLoader.java:316)
              at
              weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
              loadClass(RecursiveReloadOnModifyClassLoader.java:234)
              at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              Loader.java:146)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
              at jsp_servlet._index._isStale(_index.java:45)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:158)
              at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:164)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:99)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:123)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:742)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:686)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:247)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:361)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> Generated java file:
              C:\
              applications\bm\www\_tmp_war\jsp_servlet\_index.java
              Mon Aug 14 11:02:58 PDT 2000:<E> <ServletContext-myapp> Servlet failed with
              Exce
              ption
              java.lang.LinkageError: Class javax/servlet/ServletConfig violates loader
              constr
              aints
              at java.lang.ClassLoader.defineClass0(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
              at
              weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
              ClassLoader.java:415)
              at
              weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              cClassLoader.java:316)
              at
              weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
              loadClass(RecursiveReloadOnModifyClassLoader.java:234)
              at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              Loader.java:146)
              at
              weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLo
              calClass(RecursiveReloadOnModifyClassLoader.java:109)
              at
              weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              cClassLoader.java:316)
              at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              Loader.java:172)
              at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              Loader.java:146)
              at weblogic.servlet.jsp.OneOffJspLoader.loadClass(JspStub.java:429)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
              at jsp_servlet._index._jspService(_index.java:58)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:105)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:123)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:742)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:686)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:247)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:361)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    Thanks. Playing with this now. The initial running does the same thing. I
              get the same ClassLoader problem. I sent you an email about editing these
              and I figured it out. Didn't find the .cmd files originally. Anyways,
              another problem I have..I had to set in the Win2K classpath the location of
              tools.jar. Is this not allowed to be distributed in the JRE? I am surprised
              if WebLogic (and other app servers too) need access to the javac compiler,
              why it is not part of JRE so they can access it. I set that in my
              environment. Are you saying I shouldn't need to set any environment
              variables..not to my WEB-INF\classes, \ib, or any JAVA dir? That instead I
              can just set it in the .cmd script to start the server?
              Lastly, I will need to run WebLogic as a service. I have a Java as NT
              service utility that works pretty easily..so can I just use that?
              Thanks.
              "Roberto Nanamura" <[email protected]> wrote in message
              news:[email protected]...
              > Hi Kevin,
              >
              > WebLogic should work just fine without setting any environment variables
              but
              > setting them in the startWebLogic.cmd script (I am supposing you are
              starting WL
              > through the command line). Look for the first lines in the
              startWebLogic.cmd
              > script like that:
              >
              > if "%JAVA_HOME%" == "" set JAVA_HOME=.\jre1_2\jre
              > set JAVA_HOME=.\jre1_2\jre
              >
              > And see if the JAVA_HOME is already set up and if the value is where your
              jre
              > 1.2 should be. That should take care of the 'tools.jar' problem.
              >
              > Try to run it again and see if the problem still persists.
              >
              > Hope this will help,
              >
              > Roberto N Nanamura
              > Technical Consultant
              > Summa Technologies
              >
              > Kevin Duffey wrote:
              > >
              > > Hi,
              > >
              > > I am having quite a bit of difficulty getting a standard Servlet 2.2 app
              > > that runs in Resin, Tomcat and Orion app server just fine, to work at
              all on
              > > WebLogic. Is there some sort of trick? I installed WebLogic 5.1 trial
              via
              > > the download on my Win2K box. I set the weblogic.properties to use a
              webApp.
              > > When I hit the web-app via html pages..its fine. When I try to display
              JSP
              > > pages I get problems. I then figured out that for some reason WebLogic
              > > couldn't find tools.jar to compile JSP pages, so I added that to my
              System
              > > Environment classpath. Why it needs to be set there..and its not
              > > automatically done by the install I don't know. It seems obvious to me
              that
              > > to display JSP pages they have to be compiled, so tools.jar is needed.
              > > Anyways, the pages started converting into .java files, but when
              compiling I
              > > am getting some compile-time errors and thus the .class isn't showing
              up.
              > >
              > > I have:
              > >
              > > weblogic.httpd.webApp.myapp=c:/applications/bm/www
              > >
              > > in weblogic.properties. I am not trying clustering yet, so this is just
              to
              > > deploy a single instance of weblogic to run our site. I also commented
              out
              > > the docRoot=/public or whatever the line is..since I only want to run a
              > > Servlet 2.2 web-app, not a simple web-site.
              > >
              > > Below is the output of the console. I am not sure why it is giving me a
              > > class loader error. I am going to try the SP4 patch, but for some reason
              the
              > > wlconfig utility doesn't change the settings that I keep applying to it.
              I
              > > am trying to add a path to the classpath with wlconfig.
              > >
              > > Anyways..if anyone can shed some light I would be much appreciated.
              > >
              > > Thank you.
              > >
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: init
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              verbose
              > > ini
              > > tialized to: true
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > packagePref
              > > ix initialized to: jsp_servlet
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > compileComm
              > > and initialized to: javac
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > srcCompiler
              > > initialized to weblogic.jspc
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > superclass
              > > initialized to null
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > workingDir
              > > initialized to: C:\applications\bm\www\_tmp_war
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > pageCheckSe
              > > conds initialized to: 1
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp:
              > > initialization co
              > > mplete
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp:
              > > ######
              > > ########
              > > ############
              > > ##############
              > > pageCheckSeconds over-ruled in JSPServlet to : 1
              > > ##############
              > > ############
              > > ########
              > > ######
              > >
              > > Mon Aug 14 11:02:55 PDT 2000:<E> <ServletContext-myapp> error checking
              JSP
              > > 'jsp_
              > > servlet._index' for freshness, forcing re-compile
              > > java.lang.LinkageError: Class javax/servlet/ServletConfig violates
              loader
              > > constr
              > > aints
              > > at java.lang.ClassLoader.defineClass0(Native Method)
              > > at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
              > > at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
              > > ClassLoader.java:415)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              > > cClassLoader.java:316)
              > > at
              > > weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
              > > loadClass(RecursiveReloadOnModifyClassLoader.java:234)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              > > Loader.java:146)
              > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
              > > at jsp_servlet._index._isStale(_index.java:45)
              > > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:158)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              > > java:164)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > > pl.java:99)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > > pl.java:123)
              > > at
              > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > > textImpl.java:742)
              > > at
              > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > > textImpl.java:686)
              > > at
              > > weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              > > ContextManager.java:247)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              > > a:361)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > >
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > >
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> Generated java
              file:
              > > C:\
              > > applications\bm\www\_tmp_war\jsp_servlet\_index.java
              > > Mon Aug 14 11:02:58 PDT 2000:<E> <ServletContext-myapp> Servlet failed
              with
              > > Exce
              > > ption
              > > java.lang.LinkageError: Class javax/servlet/ServletConfig violates
              loader
              > > constr
              > > aints
              > > at java.lang.ClassLoader.defineClass0(Native Method)
              > > at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
              > > at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
              > > ClassLoader.java:415)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              > > cClassLoader.java:316)
              > > at
              > > weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
              > > loadClass(RecursiveReloadOnModifyClassLoader.java:234)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              > > Loader.java:146)
              > > at
              > > weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLo
              > > calClass(RecursiveReloadOnModifyClassLoader.java:109)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              > > cClassLoader.java:316)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              > > Loader.java:172)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              > > Loader.java:146)
              > > at
              weblogic.servlet.jsp.OneOffJspLoader.loadClass(JspStub.java:429)
              > > at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
              > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
              > > at jsp_servlet._index._jspService(_index.java:58)
              > > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > > pl.java:105)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > > pl.java:123)
              > > at
              > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > > textImpl.java:742)
              > > at
              > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > > textImpl.java:686)
              > > at
              > > weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              > > ContextManager.java:247)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              > > a:361)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > >
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

  • Problem with Relative URLs in Forwarding

    Hi all, hope someone can help me with this one:
    is it possible to do this : <jsp:forward page="../index.html" />
    I've tryed it on Tomcat and Orion but they both don't seem to like it, get the exception below:
    java.lang.IllegalArgumentException: Resource /test/forwardtest/abc/../index.html not found at __jspPage9_test_forwardtest_abc_f2index_jsp._jspService(__jspPage9_test_forwardtest_abc_f2index_jsp.java:29) at com.orionserver.http.OrionHttpJspPage.service(.:56) at com.evermind._cp._vhc(.:5639) at com.evermind.server.http.JSPServlet.service(.:31) at com.evermind._deb._lnc(.:514) at com.evermind._deb._wmb(.:170) at com.evermind._co._wbb(.:581) at com.evermind._co._fs(.:189) at com.evermind._bt.run(.:62)
    Note the: " Resource /test/forwardtest/abc/../index.html not found " , it would seem that it hasn't navigated back a directory, but is looking for the "/../" directory? Is this a bug?
    Any ideas?

    yes, but
    ../index.html relative to /test/forwardtest/abc would be
    /test/forwardtest/index.html
    which is where the file is located.
    I see now actually, so it is not possible to use "../" in forwards?
    Is there a way to change the web context or will I have to use absolute urls?
    Thanks
    it seems your web context is "/test/forwardtest/abc",
    "../index.html" is relative path to your web context.

  • Choosing a JSP tool

    Hello. Your response would be greatly appreciated.
    We are in the process of choosing a JSP Development tool.
    It must be very robust and capable of handling a copmlex database application.
    It must be intuitive and easy to use.
    I has to be very visual and user-friandly.
    It should have capability to be used by a team of developers on one project, in other words it has to have check in/out capabilities.
    It needs to have capapility for debugging.
    It also needs to have ability to allow for quick testing of developed stuff.
    If anybody knows a tool/tools that can handle requirements listed above, please let your opinion be expressed. This would be VERY helpful for me as well as thousands of other developers out there.
    I am looking forward to the replies.
    Sincerely,
    Alexander.

    I use Homesite 4.5 from allaire for JSP/HTML development. It is very user friendly and has a variety of expansion features as well as deployment options. I just got JBuilder foundation edition with a book I bought. You can search the Apache/Jakarta web site for CVS to get check in/ check out capabilities. I have also downloaded both Tomcat and orion-server for development. Of all of the aforementioned items, only Homesite and potentially JBuilder come with a price-tag (also orion-server for deployment). This is what I would consider an economical yet very robust solution.

  • Advice Wanted (Converting from MS to Linux)

    Fellow Developers,
    Your advice and input it wanted... the more info the better. Thanx, in advance, for your time.
    I am a senior Microsoft developer (specializing in C# and .NET) and I am getting sick of Microsoft-centric development. My typical development environment is as follows...
    Back end development tools:
    IDE: Microsoft Visual Studio .NET
    Language: C# (c sharp) and XML
    RDBMS: SQL Server 2000
    Front end development tools:
    Front Page 2000/XP
    Microsoft Visual Studio .NET
    Internet Explorer v6.0
    What are the equivilent tools and programs would use to duplicate my development abilities, but on a Linux platform?
    Thanx,
    Fred Lackey
    Orlando, Florida

    1) Get a book on Linux - it's not as "friendly" an environment as Winblows. Learn to use the system first so it won't bite you later.
    2) There's quite a large number of Java IDE's available (both Windows and Linux), so you might want to try your hand on your known platform. At this point, asking about IDE's can get you into a "religious" war rivaling the Vi vs. Emacs "feud." Here's a starting list (in no particular order): NetBeans/Forte/SunOne, JCreator, JBuilder, JEdit, IDEA, Eclipse.
    3) Plenty of free (or nearly so) database server software out there: you can use MySQL, PostgreSQL, SAP, DB/2, Oracle, and some that are not done as a server but are "embedded" into your programs (I don't use any like this, so no real idea).
    4) Plenty of freely available web/application servers for Java-centric programming: Tomcat, JBoss, Orion, Resin, etc.
    Caveat: none of the programs listed above hold your hand through any part of the process. You have to really, really, really learn what you're actually doing. Even if you use them on Windoze.
    I will freely admit that M$ does wonderful development tools that makes your (apparent) productivity soar. However, it also hides a lot of what's going on behind the scenes from the developer so that you may not be entirely sure of exactly what it's doing. Some of the Java IDE's do this, too, but you do have to be much more aware of what the consequences of this type of behavior are.

  • Orion Vs Tomcat

    Hi,
    Currently, I am using Orion as web server and running with no problem but need to ask the following as my network administrator request me to change to Tomcat:
    1. Do I need to change a lot of coding in jsp and java files if I am told to change from Orion to Tomcat web server ?
    2. Are there any good reasons to change from Orion to Tomcat ?
    3. Which web server is better between Orion and Tomcat for Insurance Web Application ?
    Kindly advise soon.
    Best Regards,
    yckok.

    Sorry, missed out two points, ie were the following true ?
    http://www.orionserver.com/benchmarks/benchmark.html
    http://archives.real-time.com/rte-tomcat/2000/Jul/msg01904.html

  • Can not parse the xml in orion server.

    Hi, can anyone help me on this.
    I have some configuration file which should be parsed when start the server. It works fine in tomcat , JRun, and some other server, now when I test it using the orion server, It throws out the
    org.apache.commons.digester.xmlrules.XmlLoadException: Relative URI "digester-rules.dtd"; can not be resolved without a document URI.
    I put the dtd and xml together in web-root and specify the location using
    <!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN" "digester-rules.dtd">
    can anyone tell me how to resolve this.
    following is a code snippet of init the digester
    Digester ruleDigester = new Digester();
    ruleDigester.setUseContextClassLoader(true);
    System.out.println(ruleURL);
    FromXmlRuleSet ruleSet = new FromXmlRuleSet(ruleURL, ruleDigester);
    Digester digester = new Digester();
    digester.setUseContextClassLoader(true);
    ruleSet.addRuleInstances(digester);
    rules = digester.getRules();

    I think you'd better ask this question in apache user mailing list
    http://jakarta.apache.org/site/mail2.html#Commons

  • Tomcat servlet/JSP container default files on 10gAS(10.1.2.0.2)

    Hi Friends,
    I am using Oracle Application Server 10g (10.1.2.0.2) on windows
    I have the Vulnerability: Apache Tomcat servlet/JSP container default files.
    and the fix is Review the files and delete those that are not needed.
    i would like to know the location of the files to review and delete.Please suggest?
    Regards,
    DB

    Apache/Tomcat is not related to OAS, where did you get this info? OAS is based in a Orion Web Server and Apache HTTP Server, not Tomcat.
    For this kind of problems there are the CPU you may want to check in Metalink for them.
    Can you clarify also what default files?
    Greetings.

  • Netbeans with Orion

    Hi folks
    I am trying to configure netbeans with orion server. But, always the netbeans tries to access the tomcat server. I want to disable tomcat forever.
    Do anyone know how ?
    Thanks
    Payal

    I don't understand your problem. I use orion with netbeans and it is excelent. You will have to write a little script to start the server for debugging:
    cd /opt/orion
    JAVA_HOME=/opt/jdk1.3.1
    JAVA_PATH=/opt/jdk1.3.1
    $JAVA_HOME/bin/java -classic -Xdebug -Xnoagent -Djava.compiler=NONE \
         -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000 \
         -Xbootclasspath/a:$JAVA_HOME/lib/tools.jar \
         -jar orion.jar
    Now you can attach to the server on port 5000 and debug away! If you have jsp's to debug configure the orion server to be in "development" mode (server.xml) and then mount the directory containing the jsp classes and .java files. You can then debug your jsp's and servlets interactively.
    wcn

  • Migrating from Tomcat to OC4J

    We are currently just using Tomcat for both HTTP and Servlet engine duties on our web server. The HTTP side is quite slow so
    we have just purchased the 9iAS with OC4J (v.1.0.2.2). The documentation say OC4J is "100%" Tomcat compatible. That's great but current setup uses HTML to build 3 frames then puts an HTML menu in one which has the javascript commands to run java classes via a servlet. We have our index.html in the top level folder, then the menu files in a sub-folder (menu), graphics in another (misc), javascript in another (lib), then the class files are below that in :
    /Web-inf/classes/html...
    /Web-inf/classes/database
    /Web-inf/classes/objecttypes
    /Web-inf/classes/Utils
    Anyone set up this style of application? as the examples only show running servlets directly.

    Sure. Are you having a specific problem, or just wondering if it will work? YOu class files are fine in those subdirectories so long as they correspond correctly with the package names. As far as referencing a servlet whose class is in a package, you do it in OC4J just like in Tomcat - by defining the servlet name and class and mappings in the web.xml file. If you can build a war using Ant and deploy that war to Tomcat, you will find that that war will deploy very nicely to Orion. The only additional work is to add any custom application setup to the Orion configuration files (server.xml, default-web-site.xml, etc) similar to what you would do in the Tomcat server.xml and worker.xml files.
    John H.

  • Migrating from Orion to JBOSS

    Dear All,
    I am migrating my Application Server from Orion 2.0.6 to Jboss 4.x I am getting following while running my application. Kindly help me out.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 21 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    DetectBrowser cannot be resolved to a type
    An error occurred at line: 21 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    DetectBrowser cannot be resolved to a type
    An error occurred at line: 21 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    DetectBrowser cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    CommonBean cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    CommonBean cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    SessionBean cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    SessionBean cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    SearchHome cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    SearchHome cannot be resolved to a type
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 21 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    DetectBrowser cannot be resolved to a type
    An error occurred at line: 21 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    DetectBrowser cannot be resolved to a type
    An error occurred at line: 21 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    DetectBrowser cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    CommonBean cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    CommonBean cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    SessionBean cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    SessionBean cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    SearchHome cannot be resolved to a type
    An error occurred at line: 22 in the jsp file: /Search/csearch/border/index.jsp
    Generated servlet error:
    SearchHome cannot be resolved to a type
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17

    DetectBrowser cannot be resolved to a type
    CommonBean cannot be resolved to a type
    SearchHome cannot be resolved to a typeWhatever these classes are they need to be added to your web application classpath. - web-inf/classes directory, or the jar file that contains them into the web-inf/lib directory.

  • Problem with JNI and Tomcat (and threads???)

    Howdy,
    Here is the issue - I would like some help on HOW to debug and fix this problem:
    2 test use cases -
    1)
    a)User goes to Login.jsp, enters user and password
    b) User submits to LoginServlet
    c) login calls JNI code that connects to a powerbuilder(Yes I know this is ugly) PBNI code module (this is a .dll) that authenticates the user with the database
    d) the servlet then redirects to another .jsp page
    e) user then submits to LogoutServlet - also a JNI call to a powerbuilder PBNI code module
    f) REPEAT STEPS a-e over a few times (inconsistent) and then the call to the JNI code hangs
    2)
    a) users does NOT goto Login.jsp, but rather calls LoginServlet and passes the userid and password as GET parms
    b) user does NOT get redirected to a page (redirect code commented out)
    c) user calls LogoutServlet
    d) repeat steps a-c at will and no failure, no hanging
    The only difference is that in case 1 (with JSP), there is a redirect and it afffected the JNI call by haniging inside JNI code.
    In case 2 (without JSP) there is still a JNI call, but it does not hang. In addition, when it hangs and I stop Tomcat, the logs show cleanup entries that say:
    Oct 19, 2004 9:17:09 AM org.apache.catalina.core.StandardWrapper unload
    INFO: Waiting for 1 instance(s) to be deallocated
    Oct 19, 2004 9:17:10 AM org.apache.catalina.core.StandardWrapper unload
    INFO: Waiting for 1 instance(s) to be deallocated
    Oct 19, 2004 9:17:11 AM org.apache.catalina.core.StandardWrapper unload
    INFO: Waiting for 1 instance(s) to be deallocated
    Is this a threading issue in Tomcat???
    On would assume that the JNI code is not cleaning up after itself, but I don't believe this is the case,
    and even if it was, why would I get the tomcat log cleanup entries above???
    What do those cleanup entries imply about the state of Tomcat????

    hi ,
    I met the same problem this morning, and searched the www.google.com in order to solve it, as a result, your article was shown on my screen. :)
    Till now I have read some technical information and solved my problems. Maybe the solution be useful to you:
    ==============================
    error message : (Environment : Tomcat 5, Windows 2003, Mysql5)
    2006-3-29 11:53:48 org.apache.catalina.core.StandardWrapper unload
    message: Waiting for 2 instance(s) to be deallocated
    ==============================
    cause: the number of connection to database exceeded.another word,too many connections.
    ==============================
    solution: close the connection when it becomes useless for your program. :)
    ==============================
    ps. Sorry for my weak English . hehe ....

  • Web Service Security is not working when migrating application from Tomcat

    Hi,
    We have a application running successfully in tomcat6 It calls a Webservice call through TIBCO BW interface.
    When we deployed the same WAR file in Weblogic 10.3.2, it gives me a error on Prefix[ds] not able to locate namespace URI not found error.
    IN Tomcat, its a existing application uses AxilUtility to get the soap messages after signing document for bothe encyption and decryption.
    Please anybody help me out, is there any other jars needs to be locate in Weblogic to run this application. Its fine with Tomcat and gives error in Weblogic10.3.2
    Please help me out
    Thanks in advance

    Hi Rajkumar,
    Thanks for you reply. Please let me now if you have any ideas..thnks a lot....
    Below is the error message what i am getting through weblogic console.
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.io.IOException: error:weblogic.xml.stream.XMLStreamException: Pr
    efix [ds] used without binding it to a namespace URI
    at weblogic.xml.xmlnode.XMLNode.read(XMLNode.java:744)
    at weblogic.xml.xmlnode.XMLNode.readChildren(XMLNode.java:1054)
    at weblogic.xml.xmlnode.XMLNode.read(XMLNode.java:742)
    at weblogic.xml.xmlnode.XMLNode.readChildren(XMLNode.java:1054)
    at weblogic.xml.xmlnode.XMLNode.read(XMLNode.java:742)
    at weblogic.xml.xmlnode.XMLNode.readChildren(XMLNode.java:1054)
    at weblogic.xml.xmlnode.XMLNode.read(XMLNode.java:742)
    at weblogic.xml.xmlnode.XMLNode.readInternal(XMLNode.java:713)
    at weblogic.xml.xmlnode.XMLNode.readInternal(XMLNode.java:722)
    at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:44)
    at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:24)
    at weblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImp
    l.java:154)
    at weblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.j
    ava:200)
    ... 78 more
    java.lang.NullPointerException
    at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
    at com.db.alat.wss.WSSClient.postSoapMessage(WSSClient.java:358)
    at com.db.alat.wss.WSSClient.WSSEncDec(WSSClient.java:102)
    at com.db.alat.service.CollateralAccounts.getAccountsSummary(CollateralA
    ccounts.java:55)
    at com.db.alat.CH.CHMapper.getGroup(CHMapper.java:281)
    at com.db.alat.BackingBeans.BorrowerDetailsBean.getClientDataCH(Borrower
    DetailsBean.java:1034)
    at com.db.alat.BackingBeans.BorrowerDetailsBean.<init>(BorrowerDetailsBe
    an.java:766)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:186
    at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:106)
    at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:368)
    at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:222)
    at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver
    .java:86)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELRe
    solver.java:72)
    at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:107)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    And i have the loggers which gives the system out statements. You can identify the difference in both logs is the sys out ...Convert Signed Document back to Soap Message.
    IN tomcat i am getting the return object after calling the method
    SOAPMessage signedMsg = (SOAPMessage) AxisUtil.toSOAPMessage(signedDoc);
    But in Weblogic i am getting NULL. You can c in SOAPMessageImpl[SOAPPartImpl[null]]
    Tomocat Logs:
    Message Context..................1.........................org.apache.axis.MessageContext@c393a1
    2011-04-21 05:35:56,906 8672 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) Unsigned Envelop............2.........................<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><RqDetail xmlns="http://schemas.db.com/esb/emf/pwm/ALAT/Services/CLIENT-getCandidateCollateralAccounts-RR" xmlns:cli="http://schemas.db.com/esb/emf/pwm/ClientElements" xmlns:com="http://schemas.db.com/esb/emf/pwm/CommonAggregates" xmlns:com1="http://schemas.db.com/esb/emf/pwm/CommonElements">
    <cli:ClientID BusinessUnit="CH">7cf8e78f86212a65398d50766de95a762318d3eee1350c1105d4b751825a690b</cli:ClientID>
    <cli:ClientType>B</cli:ClientType>
    <com:Field>
    <com1:Name>INITIALPAGE</com1:Name>
    <com1:Value>YES</com1:Value>
    </com:Field>
    </RqDetail></SOAP-ENV:Body></SOAP-ENV:Envelope>
    2011-04-21 05:35:56,906 8672 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) DOCUMENT is .......:[#document: null]
    2011-04-21 05:35:56,906 8672 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) KEYSTORE is .......:java.security.KeyStore@127fa03
    2011-04-21 05:35:57,078 8844 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) ..................................3.........................
    2011-04-21 05:35:57,094 8860 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) ..................................4.........................
    2011-04-21 05:35:57,297 9063 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) Signed Document is .......:[#document: null]
    2011-04-21 05:35:57,437 9203 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) Convert Signed Document back to Soap Message .......:[email protected]33662
    2011-04-21 05:35:57,469 9235 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) ..................................5.........................
    Weblogic Logs:
    Message Context..................1.........................org.apache.axis.MessageContext@460d4
    2011-04-26 01:15:45,859 2640 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) Unsigned Envelop............2.........................<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><RqDetail xmlns="http://schemas.db.com/esb/emf/pwm/ALAT/Services/CLIENT-getCandidateCollateralAccounts-RR" xmlns:cli="http://schemas.db.com/esb/emf/pwm/ClientElements" xmlns:com="http://schemas.db.com/esb/emf/pwm/CommonAggregates" xmlns:com1="http://schemas.db.com/esb/emf/pwm/CommonElements">
    <cli:ClientID BusinessUnit="CH">2b285aa27f1899d87de00f04099506ad24aaf1c18b0b6b071a8acd19b1732fb9</cli:ClientID>
    <cli:ClientType>B</cli:ClientType>
    <com:Field>
    <com1:Name>INITIALPAGE</com1:Name>
    <com1:Value>YES</com1:Value>
    </com:Field>
    </RqDetail></SOAP-ENV:Body></SOAP-ENV:Envelope>
    2011-04-26 01:15:45,875 2656 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) DOCUMENT is .......:[#document: null]
    2011-04-26 01:15:45,875 2656 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) KEYSTORE is .......:java.security.KeyStore@167d3c4
    2011-04-26 01:15:45,984 2765 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) ..................................3.........................
    2011-04-26 01:15:46,016 2797 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) ..................................4.........................
    2011-04-26 01:15:46,234 3015 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) Signed Document is .......:[#document: null]
    2011-04-26 01:15:46,313 3094 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) Convert Signed Document back to Soap Message .......:SOAPMessageImpl[SOAPPartImpl[null]]
    2011-04-26 01:15:46,328 3109 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) ..................................5.........................

  • URgent !!!!!!!!! How do i add information to server.xml of tomcat

    Hi ,
    I want to add the conext information to my server.xml of tomcat for my hibernate configuration.....
    the conext information is as follows ....
    <Context path="/quickstart" docBase="quickstart">
    <Resource name="jdbc/quickstart" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/quickstart">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <!-- DBCP database connection settings -->
    <parameter>
    <name>url</name>
    <value>jdbc:postgresql://localhost/quickstart</value>
    </parameter>
    <parameter>
    <name>driverClassName</name><value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>quickstart</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>secret</value>
    </parameter>
    <!-- DBCP connection pooling options -->
    <parameter>
    <name>maxWait</name>
    <value>3000</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>100</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>10</value>
    </parameter>
    </ResourceParams>
    </Context>
    Where in my server.xml should i put
    the server.xml looks like this :
    <!-- Example Server Configuration File -->
    <!-- Note that component elements are nested corresponding to their
    parent-child relationships with each other -->
    <!-- A "Server" is a singleton element that represents the entire JVM,
    which may contain one or more "Service" instances. The Server
    listens for a shutdown command on the indicated port.
    Note: A "Server" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <Server port="8005" shutdown="SHUTDOWN">
    <!-- Comment these entries out to disable JMX MBeans support used for the
    administration web application -->
    <Listener className="org.apache.catalina.core.AprLifecycleListener" />
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
    <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <!-- Editable user database that can also be used by
    UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved"
    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
    pathname="conf/tomcat-users.xml" />
    </GlobalNamingResources>
    <!-- A "Service" is a collection of one or more "Connectors" that share
    a single "Container" (and therefore the web applications visible
    within that Container). Normally, that Container is an "Engine",
    but this is not required.
    Note: A "Service" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Catalina">
    <!-- A "Connector" represents an endpoint by which requests are received
    and responses are returned. Each Connector passes requests on to the
    associated "Container" (normally an Engine) for processing.
    By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
    You can also enable an SSL HTTP/1.1 Connector on port 8443 by
    following the instructions below and uncommenting the second Connector
    entry. SSL support requires the following steps (see the SSL Config
    HOWTO in the Tomcat 5 documentation bundle for more detailed
    instructions):
    * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
    later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
    * Execute:
    %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
    $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
    with a password value of "changeit" for both the certificate and
    the keystore itself.
    By default, DNS lookups are enabled when a web application calls
    request.getRemoteHost(). This can have an adverse impact on
    performance, so you can disable it by setting the
    "enableLookups" attribute to "false". When DNS lookups are disabled,
    request.getRemoteHost() will return the String version of the
    IP address of the remote client.
    -->
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector
    port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to 0 -->
         <!-- Note : To use gzip compression you could set the following properties :
                   compression="on"
                   compressionMinSize="2048"
                   noCompressionUserAgents="gozilla, traviata"
                   compressableMimeType="text/html,text/xml"
         -->
    <!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector port="8443" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" disableUploadTimeout="true"
    acceptCount="100" scheme="https" secure="true"
    clientAuth="false" sslProtocol="TLS" />
    -->
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
    enableLookups="false" redirectPort="8443" 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" connectionTimeout="20000"
    proxyPort="80" disableUploadTimeout="true" />
    -->
    <!-- An Engine represents the entry point (within Catalina) that processes
    every request. The Engine implementation for Tomcat stand alone
    analyzes the HTTP headers included with the request, and passes them
    on to the appropriate Host (virtual host). -->
    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost">
    <!-- The request dumper valve dumps useful debugging information about
    the request headers and cookies that were received, and the response
    headers and cookies that were sent, for all requests received by
    this instance of Tomcat. If you care only about requests to a
    particular virtual host, or a particular application, nest this
    element inside the corresponding <Host> or <Context> entry instead.
    For a similar mechanism that is portable to all Servlet 2.4
    containers, check out the "RequestDumperFilter" Filter in the
    example application (the source for this filter may be found in
    "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
    Request dumping is disabled by default. Uncomment the following
    element to enable it. -->
    <!--
    <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
    -->
    <!-- Because this Realm is here, an instance will be shared globally -->
    <!-- This Realm uses the UserDatabase configured in the global JNDI
    resources under the key "UserDatabase". Any edits
    that are performed against this UserDatabase are immediately
    available for use by the Realm. -->
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
    resourceName="UserDatabase"/>
    <!-- Comment out the old realm but leave here for now in case we
    need to go back quickly -->
    <!--
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    -->
    <!-- Replace the above Realm with one of the following to get a Realm
    stored in a database and accessed via JDBC -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm"
    driverName="org.gjt.mm.mysql.Driver"
    connectionURL="jdbc:mysql://localhost/authority"
    connectionName="test" connectionPassword="test"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm"
    driverName="oracle.jdbc.driver.OracleDriver"
    connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
    connectionName="scott" connectionPassword="tiger"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm"
    driverName="sun.jdbc.odbc.JdbcOdbcDriver"
    connectionURL="jdbc:odbc:CATALINA"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!-- Define the default virtual host
    Note: XML Schema validation will not work with Xerces 2.2.
    -->
    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    <!-- Defines a cluster for this node,
    By defining this element, means that every manager will be changed.
    So when running a cluster, only make sure that you have webapps in there
    that need to be clustered and remove the other ones.
    A cluster has the following parameters:
    className = the fully qualified name of the cluster class
    name = a descriptive name for your cluster, can be anything
    mcastAddr = the multicast address, has to be the same for all the nodes
    mcastPort = the multicast port, has to be the same for all the nodes
    mcastBindAddr = bind the multicast socket to a specific address
    mcastTTL = the multicast TTL if you want to limit your broadcast
    mcastSoTimeout = the multicast readtimeout
    mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
    mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
    tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes
    tcpListenAddress = the listen address (bind address) for TCP cluster request on this host,
    in case of multiple ethernet cards.
    auto means that address becomes
    InetAddress.getLocalHost().getHostAddress()
    tcpListenPort = the tcp listen port
    tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
    has a wakup bug in java.nio. Set to 0 for no timeout
    printToScreen = true means that managers will also print to std.out
    expireSessionsOnShutdown = true means that
    useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
    false means to replicate the session after each request.
    false means that replication would work for the following piece of code: (only for SimpleTcpReplicationManager)
    <%
    HashMap map = (HashMap)session.getAttribute("map");
    map.put("key","value");
    %>
    replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
    * Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
    * Synchronous means that the thread that executes the request, is also the
    thread the replicates the data to the other nodes, and will not return until all
    nodes have received the information.
    * Asynchronous means that there is a specific 'sender' thread for each cluster node,
    so the request thread will queue the replication request into a "smart" queue,
    and then return to the client.
    The "smart" queue is a queue where when a session is added to the queue, and the same session
    already exists in the queue from a previous request, that session will be replaced
    in the queue instead of replicating two requests. This almost never happens, unless there is a
    large network delay.
    -->
    <!--
    When configuring for clustering, you also add in a valve to catch all the requests
    coming in, at the end of the request, the session may or may not be replicated.
    A session is replicated if and only if all the conditions are met:
    1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
    2. a session exists (has been created)
    3. the request is not trapped by the "filter" attribute
    The filter attribute is to filter out requests that could not modify the session,
    hence we don't replicate the session after the end of this request.
    The filter is negative, ie, anything you put in the filter, you mean to filter out,
    ie, no replication will be done on requests that match one of the filters.
    The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
    filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
    ending with .gif and .js are intercepted.
    The deployer element can be used to deploy apps cluster wide.
    Currently the deployment only deploys/undeploys to working members in the cluster
    so no WARs are copied upons startup of a broken node.
    The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
    When a new war file is added the war gets deployed to the local instance,
    and then deployed to the other instances in the cluster.
    When a war file is deleted from the watchDir the war is undeployed locally
    and cluster wide
    -->
    <!--
    <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
    managerClassName="org.apache.catalina.cluster.session.DeltaManager"
    expireSessionsOnShutdown="false"
    useDirtyFlag="true"
    notifyListenersOnReplication="true">
    <Membership
    className="org.apache.catalina.cluster.mcast.McastService"
    mcastAddr="228.0.0.4"
    mcastPort="45564"
    mcastFrequency="500"
    mcastDropTime="3000"/>
    <Receiver
    className="org.apache.catalina.cluster.tcp.ReplicationListener"
    tcpListenAddress="auto"
    tcpListenPort="4001"
    tcpSelectorTimeout="100"
    tcpThreadCount="6"/>
    <Sender
    className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
    replicationMode="pooled"
    ackTimeout="15000"/>
    <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
    filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
    <Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
    tempDir="/tmp/war-temp/"
    deployDir="/tmp/war-deploy/"
    watchDir="/tmp/war-listen/"
    watchEnabled="false"/>
    </Cluster>
    -->
    <!-- Normally, users must authenticate themselves to each web app
    individually. Uncomment the following entry if you would like
    a user to be authenticated the first time they encounter a
    resource protected by a security constraint, and then have that
    user identity maintained across all web applications contained
    in this virtual host. -->
    <!--
    <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, 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 either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    -->
    <!--
    <Valve className="org.apache.catalina.valves.AccessLogValve"
    directory="logs" prefix="localhost_access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, 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 either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    This access log implementation is optimized for maximum performance,
    but is hardcoded to support only the "common" and "combined" patterns.
    -->
    <!--
    <Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
    directory="logs" prefix="localhost_access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>
    -->
    </Host>
    </Engine>
    </Service>
    </Server>
    Can Some one Help me pleaseeeeee

    Please don't cross-post in multiple forums. I have answered
    this in your other thread.

  • Error connecting to an EJB 3.0 Remote on OC4J 10.1.3.2 from Tomcat

    Hi, I want to connect to a Remote Session Bean running on the OC4J 10.1.3 and it doesn´t work.
    I have connected to it from a java standalone application using:
    public static void main(String [] args) {
    try {
    final Context context = getInitialContext();
    SessionEJB sessionEJB = (SessionEJB)context.lookup("java:comp/env/ejb/SessionEJB");
    System.out.println(sessionEJB.mergeEntity(""));
    System.out.println( "hola" );
    } catch (Exception ex) {
    ex.printStackTrace();
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    // Standalone OC4J connection details
    env.put( Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.naming.ApplicationClientInitialContextFactory" );
    env.put( Context.SECURITY_PRINCIPAL, "oc4jadmin" );
    env.put( Context.SECURITY_CREDENTIALS, "passw" );
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791/ejb3jar");
    return new InitialContext( env );
    with this application-client.xml file:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <application-client xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <display-name>Model-app-client</display-name>
    <ejb-ref>
    <ejb-ref-name>ejb/SessionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <remote>ar.com.eds.ejb3.model.SessionEJB</remote>
    <ejb-link>SessionEJB</ejb-link>
    </ejb-ref>
    thats works fine, but when I try to use the same solution from a jsf proyect running on a Tomcat 5.5.20, it fails with this error:
    Caused by: java.lang.RuntimeException: Error while creating home.
         at ar.com.mcd.fawkes.ui.locator.EJB3Locator.get(EJB3Locator.java:32)
         at ar.com.mcd.fawkes.ui.locator.ServiceLocator$1.get(ServiceLocator.java:12)
         at net.sf.opentranquera.web.jsf.locator.ServiceLocatorBean.get(ServiceLocatorBean.java:42)
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:79)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         ... 80 more
    Caused by: javax.naming.NameNotFoundException: Name ejb is not bound in this Context
         at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
         at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at ar.com.mcd.fawkes.ui.locator.EJB3Locator.get(EJB3Locator.java:28)
         ... 87 more
    Could you please help me with any tip?
    Mauricio
    Message was edited by:
    Mauricio

    Hi, Rick
    Thanks for your help.
    I deleted de application-client.xml file, added the following lines to the web.xml file:
         <ejb-ref>
              <ejb-ref-name>ejb/SessionEJB</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <remote>ar.com.eds.ejb3.model.SessionEJB</remote>
         </ejb-ref>
    and now I´m using oracle.j2ee.rmi.RMIInitialContextFactory
    there is no error, and it doesn´t throw any exception but the following line returns null.
    SessionEJB sessionEJB = (SessionEJB)context.lookup("java:comp/env/ejb/SessionEJB");
    Its seems the lookup method finds the remote ejb because it doesn´t fail, but it returns null.
    Any idea what is wrong?
    Mauricio.

Maybe you are looking for