Tomcat 4.1.24 with jikes

How to correctly use tomcat with jikes? I change the web.xml of tomcat like this:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>compiler</param-name>
<param-value>jikes</param-value>
</init-param>
<init-param>
<param-name>javaEncoding</param-name>
<param-value>ISO-8859-1</param-value>
</init-param>
<init-param>
<param-name>logVerbosityLevel</param-name>
<param-value>WARNING</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
When i start the tomcat and goto a page, i get this errror:
Generated servlet error:
[javac] Since compiler setting isn't classic or modern,ignoring fork setting.
[javac] Compiling 1 source file
[javac] Since compiler setting isn't classic or modern,ignoring fork setting.
[javac] use: jikes [options] [@files] file.java...
[javac] For more help, try -help or -version.
[javac] Error: The option "-encoding" is unsupported in this build.
at org.apache.jasper.compiler.DefaultErrorHandler.javacError.......
What do i miss here? Pls provide the working way.

Okay I just finished doing this so I am not sure it actually works.
I am assuming this is on Windows.
I am using tomcat 4.1.12 and the jikes-1.18 jikes.exe for windows.
1: Add the path to the jikes bin directory to your system PATH variable.
2: Edit the tomcat bin\catalina.bat to add the following line:
rem Added line
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;;%JAVA_HOME%\lib\tools.jar
3: Edit the tomcat conf\web.xml. Add the following under the <servlet-name>jsp</servlet-name>
<init-param>
<param-name>jspCompilerPlugin</param-name>
<param-value>org.apache.jasper.compiler.JikesJavaCompiler</param-value>
</init-param>
Stop tomcat and use a new DOS window to restart tomcat.
Let me know if it works. It seems to be working for me.

Similar Messages

  • Integrating tomcat 5.0.28 with apache web server 2.2

    hi all
    i tried a lot on net but could not get the steps for
    connctivity between tomcat 5.0.28 with apache web server 2.2.
    any one pzl do help me in finding the solution
    pzl do tel me the step by step process for this connectivity
    sus

    hi :-)
    you need jk modules ;-)
    i havent try the integrating the version of apache web
    and tomcat you specify but you can refer to the links below :-)
    gudluck :-)
    http://www.serverwatch.com/tutorials/article.php/2203891
    http://www.onjava.com/lpt/a/2826
    http://raibledesigns.com/tomcat/
    regards,

  • Problem with jikes & EJB

    I've been experiencing a problem using jikes to compile EJBs. Has anyone
    has this type of problem and is there a known fix?
    The beans seem to compile fine, but I get an error when trying to deploy
    them. Here's the error:
    weblogic.ejb.common.DeploymentException: Unexpected I/O exception during
    deployment:
    weblogic.ejb.common.DeploymentException: Problem deploying a bean:
    java.lang.VerifyError: (class:
    com/criatech/contractstation/party/provider/PartyManagerBeanEOImpl_ServiceSt
    ub, method: ensureInitialized signature: ()V) Illegal target of jump or
    branch
    at java.lang.Class.getConstructor0(Native Method)
    at java.lang.Class.getConstructor(Class.java:886)
    Thoughts?
    - Doug

    That seems to be the problem. It only happens on one bean which is a very
    large one. It appears to work ok with the javac 1.3 compiler, but no luck
    with jikes. It's unfortunate, because jikes is SO much faster.
    At least I know someone else is seeing this problem. Thanks for the info.
    - Doug
    "Toby Allsopp" <[email protected]> wrote in message
    news:[email protected]..
    Hi.
    This sounds a bit like a problem we were having when compiling one of the
    generated classes for a bean with a huge number of methods (~400). The
    ensureInitialised method (I think, it might be a different method now -the
    name of the class changes in every WLS version) got so big that some ofthe
    jump instructions needed to become wide jump instructions but both javacand
    jikes got it wrong.
    For us, the workaround was (and still is) to use kjc(http://www.dms.at/kopi/)
    to compile the generated classes.
    This may or may not be your problem, however.
    Toby.
    Doug Cunningham wrote:
    I've been experiencing a problem using jikes to compile EJBs. Has
    anyone
    has this type of problem and is there a known fix?
    The beans seem to compile fine, but I get an error when trying to deploy
    them. Here's the error:
    weblogic.ejb.common.DeploymentException: Unexpected I/O exception during
    deployment:
    weblogic.ejb.common.DeploymentException: Problem deploying a bean:
    java.lang.VerifyError: (class:
    com/criatech/contractstation/party/provider/PartyManagerBeanEOImpl_ServiceSt
    ub, method: ensureInitialized signature: ()V) Illegal target of jump or
    branch
    at java.lang.Class.getConstructor0(Native Method)
    at java.lang.Class.getConstructor(Class.java:886)
    Thoughts?
    - Doug

  • Ejbc error with jikes

    I've been using jikes for several months to do an ejbc compile, but
    just recently it quit working. However, it works with javac. I think
    it may be a classpath problem. Here's the classpath:
    x:\source\classes;c:\xerces-1_4_4\xerces.jar;c:\bea\jdk130\jre\lib\rt.jar;c:\bea\wlserver6.0\lib\weblogic.jar
    (The important part is x:\source\classes, which is the root for the
    western.*.* classes which follow, which it says can't be found.)
    Here's the ejbc command:
    X:\scripts\Wattage>java -classpath %classpath%
    -Dweblogic.home=c:\bea\wls_license.txt weblogic.ejbc20 -compiler jikes
    x:
    \source\build\western\build\std_WattageBean.jar
    x:\source\build\newbuild\config\wattageDomain\applications\ejb_WattageBe
    an.jar
    Here are some of the errors (there's many more similar ones)
    Found 13 semantic errors compiling
    "X:/scripts/Wattage/ejbcgen/western/common/security/SecurityBeanEOImpl.java":
    13. implements western.common.security.Security,
    weblogic.utils.PlatformConstants
    <------>
    *** Error: Type western/common/security/Security was not found.
    18. public java.util.Hashtable
    getPagePermissions(java.lang.String arg0, western.common.UniqueID
    arg1)
    <------>
    *** Error: Type western/common/UniqueID was not found.
    26. western.common.security.SecurityBean bean =
    (western.common.security.SecurityBean)wrap.getBean();
    <---------->
    *** Error: Type western/common/security/SecurityBean was not found.
    89. throws javax.ejb.EJBException,
    western.common.security.PasswordException,
    western.common.security.ActiveUse
    rException, java.rmi.RemoteException
    <--------------->
    *** Error: Type western/common/security/PasswordException was not
    found.
    89. throws javax.ejb.EJBException,
    western.common.security.PasswordException,
    western.common.security.ActiveUse
    rException, java.rmi.RemoteException
    <--------
    --------->
    *** Error: Type western/common/security/ActiveUserException was not
    found.
    115. }else if (e instanceof
    western.common.security.PasswordException) {
    <---------------------------------------------------->
    *** Error: The type of the left-side expression,
    "java/lang/Exception", cannot possibly be an instance of type
    "western/
    common/security/PasswordException".
    116. throw (western.common.security.PasswordException) e;
    ^
    *** Error: An expression of type "Exception" cannot be cast into type
    "PasswordException".
    117. }else if (e instanceof
    western.common.security.ActiveUserException) {
    <------------------------------------------------------>
    *** Error: The type of the left-side expression,
    "java/lang/Exception", cannot possibly be an instance of type
    "western/
    common/security/ActiveUserException".
    The curious thing to me is that it was working, but it's quit for some
    reason, but only for jikes (still works for javac). Anyone had any
    problems like this, or have any ideas?

    it appears that the problem also exists with jikes 1.17,weblogic6.1 sp2 and ant
    1.5.
    can someone tell me when i can download jikes 1.13 for windows. i really like
    to see how much faster jikes is compared to sun.
    thanks.
    "Madhusudan Chaganthi" <[email protected]> wrote:
    >
    [email protected] (Tom Ewall) wrote:
    I've been using jikes for several months to do an ejbc compile, but
    just recently it quit working. However, it works with javac. I think
    it may be a classpath problem. Here's the classpath:
    x:\source\classes;c:\xerces-1_4_4\xerces.jar;c:\bea\jdk130\jre\lib\rt.jar;c:\bea\wlserver6.0\lib\weblogic.jar
    (The important part is x:\source\classes, which is the root for the
    western.*.* classes which follow, which it says can't be found.)
    Here's the ejbc command:
    X:\scripts\Wattage>java -classpath %classpath%
    -Dweblogic.home=c:\bea\wls_license.txt weblogic.ejbc20 -compiler jikes
    x:
    \source\build\western\build\std_WattageBean.jar
    x:\source\build\newbuild\config\wattageDomain\applications\ejb_WattageBe
    an.jar
    Here are some of the errors (there's many more similar ones)
    Found 13 semantic errors compiling
    "X:/scripts/Wattage/ejbcgen/western/common/security/SecurityBeanEOImpl.java":
    13. implements western.common.security.Security,
    weblogic.utils.PlatformConstants
    <------>
    *** Error: Type western/common/security/Security was not found.
    18. public java.util.Hashtable
    getPagePermissions(java.lang.String arg0, western.common.UniqueID
    arg1)
    <------>
    *** Error: Type western/common/UniqueID was not found.
    26. western.common.security.SecurityBean bean =
    (western.common.security.SecurityBean)wrap.getBean();
    <---------->
    *** Error: Type western/common/security/SecurityBean was not found.
    89. throws javax.ejb.EJBException,
    western.common.security.PasswordException,
    western.common.security.ActiveUse
    rException, java.rmi.RemoteException
    <--------------->
    *** Error: Type western/common/security/PasswordException was not
    found.
    89. throws javax.ejb.EJBException,
    western.common.security.PasswordException,
    western.common.security.ActiveUse
    rException, java.rmi.RemoteException
    <--------
    --------->
    *** Error: Type western/common/security/ActiveUserException was not
    found.
    115. }else if (e instanceof
    western.common.security.PasswordException) {
    <---------------------------------------------------->
    *** Error: The type of the left-side expression,
    "java/lang/Exception", cannot possibly be an instance of type
    "western/
    common/security/PasswordException".
    116. throw (western.common.security.PasswordException) e;
    ^
    *** Error: An expression of type "Exception" cannot be cast into type
    "PasswordException".
    117. }else if (e instanceof
    western.common.security.ActiveUserException) {
    <------------------------------------------------------>
    *** Error: The type of the left-side expression,
    "java/lang/Exception", cannot possibly be an instance of type
    "western/
    common/security/ActiveUserException".
    The curious thing to me is that it was working, but it's quit for some
    reason, but only for jikes (still works for javac). Anyone had any
    problems like this, or have any ideas?What is your configuration?
    Weblogic - ??
    JIKES - ??
    JDK - ??
    I have seen something similar to this after switching from Jikes 1.13
    to Jikes
    1.16 a couple of days ago. I switched back to Jikes 1.13 and everything
    works
    fine. My weblogic version is 6.0 SP2 in both cases.
    Regards
    Madhu

  • Tomcat v.4 problem with Oracle

    I've been using Tomcat 3 just fine with Oracle. I executed the same application with Tomcat 4, and I'm geetting the following exception when trying to connect to the database:
    ORA-00988: missing or invalid password(s)
    I'm using the exact same files. I tried playing with the driver files, converting zips to jars... but still.
    Any suggestions or any one who has had the same problem?
    Thanks,
    Sachin.-

    I solved it. the DriverManager.getConnection arguments that I was using had to be changed for some reason. I just tried a simpler database URL format found on the web and it worked. Still I find this strange, since the same statement would work with the same libraries under Tomcat 3 but not Tomcat 4. Any explanations?

  • Tomcat as a Service with -Xms512M -Xmx1024M

    Hello all,
    In order to run successfully my application with Tomcat 5.0.20 on Windows XP I had to change the memory settings.
    So in the System environment variable I've added:
    JAVA_OPTS = -Xms512M -Xmx1024M
    CATALINE_OPTS = -Xms512M -Xmx1024M
    and if I launch Tomcat with the startup.bat, my application runs fine.
    Now I am trying to run Tomcat as a Windows Service (using service.bat install) but this time Tomcat runs out of memory and generates exceptions despite the fact I've changed the following line in service.bat from:
    "%EXECUTABLE%" //IS//%SERVICE_NAME% --Jvm auto etc...
    to
    "%EXECUTABLE%" //IS//%SERVICE_NAME% JvmMs 512M JvmMx 1024M --Jvm auto etc...
    What am I doing wrong?
    Many thanks for your suggestions.
    regards
    denis

    Hello,
    I had the same problem and I found that the tomcat.exe can be used to install a service.
    tomcat -install Tomcat %java_home%\jre\bin\server\jvm.dll "-Djava.endorsed.dirs=%catalina_home%\bin;%catalina_home%\common\endorsed" "-Djava.class.path=%java_home%\lib\tools.jar;%catalina_home%\bin\bootstrap.jar" "-Dcatalina.base=%catalina_home%" "-Dcatalina.home=%catalina_home%" "-Djava.io.tmpdir=%catalina_home%\temp" -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop
    Succes

  • Tomcat 5.0.16 with UIX 2.1.11 / BC4J 9.0.3.3?

    A stable Apache Tomcat 5 release is out (5.0.16). Does anyone has experiences running UIX 2.1.11 / BC4J 9.0.3.3 with it?
    Btw. Tomcat 5.0.16 is a Servlet 2.4 and JSP 2.0 release.
    Thanks, Markus

    It is correct
    -Regards
    ManikantanThanks.It is the continuation of the same doubt.I am unable to get the tomcat running on the console.I get the following erors still,do let me know what could be the problem.
    /********************* Error in the console of tomcat *****************************/
    Feb 2, 2004 12:04:18 AM org.apache.commons.digester.Digester fatalError
    SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction targ
    matching "[xX][mM][lL]" is not allowed.
    org.xml.sax.SAXParseException: The processing instruction target matching "[x
    mM][lL]" is not allowed.
    /********************* Error in the console of tomcat *****************************/
    I havent changed the server.xml fle in the %TOMCAT%/conf/server.xml file.
    /***********************************server.xml file*********************************/
    <Context path="/sampleapp" docBase="sampleapp" debug="0" reloadable="true">
              </Context>
    /***********************************server.xml file*********************************/
    The url-pattern in the web.xml is /sampleapp is this fine??.
    Help would be appreciated.
    Thanks
    AS

  • Tomcat 5.5.12 with Solaris 10 on Sparc SunFire T2000

    I am experiencing difficulty with installing Tomcat 5.5.12 on a Solaris 10 Sparc SunFire T2000 SunOS machine. Can someone please help?
    After I untar the apache-tomcat-5.5.12.tar.gz like this:
    gunzip < apache-tomcat-5.5.12.tar.gz | tar xvf -
    I then tried to start the Tomcat like this:
    [root@sun] ./bin/startup.sh
    Using CATALINA_BASE: /opt/tomcat/apache-tomcat-5.5.12
    Using CATALINA_HOME: /opt/tomcat/apache-tomcat-5.5.12
    Using CATALINA_TMPDIR: /opt/tomcat/apache-tomcat-5.5.12/temp
    Using JRE_HOME: /usr/bin
    [root@sun]
    But the Tomcat is not up, and the log file only says:
    This release of Apache Tomcat was packaged to run on J2SE 5.0
    or later. It can be run on earlier JVMs by downloading and
    installing a compatibility package from the Apache Tomcat
    binary download page.
    I have searched on the Internet and found some similar info that talks about the five steps to install Tomcat on a Solaris (http://johnturner.com/howto/apache2-tomcat4112-sol8-howto.html):
    1. Build/Install Apache
    2. Install JDK
    3. Build/Install Tomcat
    4. Build/Install JK Connector (between Apache and Tomcat)
    5. Configure the whole setup and test both Apache and Tomcat.
    However, I was also told that I should be able to just unzip the Tomcat and startup the sample web page.
    Do I have to go through the whole five major steps to bring up Tomcat 5.5.12 on Solaris 10? I know that I need to use some GNU tools instead of Solaris tool such as tar for this effort. I'd like to avoid the major effort if all I need to just Tomcat.
    I'd appreciate any help that you may have.
    - Andy

    I guess tomcat 5.5.20 be installed on JDK 1.4 using the comaptiblity package given in link http://tomcat.apache.org/download-55.cgi#5.5.20.
    But I have not tried.
    Does any one know how to ?
    Thanks in advance.

  • Tomcat not loading images with mod_jk

    I have images stored in a database which when retrieved have the extension .tmp when I view these images using tomcat they are recognised as being jpeg or bmp files etc. and are displayed as images.
    When the same images are viewed using tomcat through apache using the mod_jk module, the images appear as text.
    If I try viewing the same images in apache on its own they appear fine. To repeat this, take a jpeg file and change its extension to .tmp place the file in a tomcat application, lookat the image using tomcat on its own //localhost:8080/myapp/myimage.tmp it appears fine, look at it using apache using mod_jk //localhost/myapp/myimage.tmp and it appears as text. Has anyone got any clue as to how to fix this.
    I am using apache 2.0 with mod_jk 1.2.15 and jakarta-tomcat-5.0.28
    Any help would be most appreciated, mod_jk drives me mad!!!. Thanks Mike.

    webmail which i access through safari on my imac and ipad. For the last couple of days images have stopped loading with all my emails
    Try emptying the cache on your iMac and iPad.
    One the iMac with Safari open, press Command + Option + E on the keyboard. Quit and relaunch Safari to test.
    On the iPad. Tap Settings > Safari. Tap Clear History then tap Clear Cookies and Data. Restart your iPad.

  • URGENT: Tomcat + Adobe AIR, problem with open .doc

    Hello!
    I've got a web application (Java) in Tomcat.
    I compile using Adobe AIR sdk with this:
    adt -package -storetype pkcs12 -keystore melcos.pfx -target native MELCOS.air
    MELCOS-app.xml MELCOS.html AIRAliases.js icons
    This is my app.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://ns.adobe.com/air/application/2.5">
      <id>project.html.melcos</id>
      <name>
        <text xml:lang="it">Software M.EL.COS. - MME</text>
      </name>
      <versionNumber>1.0.0</versionNumber>
      <filename>Prova</filename>
      <copyright>Copyright</copyright>
      <initialWindow>
        <content>MELCOS.html</content>
        <title>Prova</title>
        <visible>true</visible>
        <width>1024</width>
        <height>768</height>
      </initialWindow>
         <icon>
              <image16x16>icons/logo16.png</image16x16>
              <image32x32>icons/logo32.png</image32x32>
              <image48x48>icons/logo48.png</image48x48>
              <image128x128>icons/logo128.png</image128x128>
         </icon>
         <allowBrowserInvocation>true</allowBrowserInvocation> 
    </application>
    and this is MELCOS.html:
    <html>
    <head>
    <title>M.EL.COS. - MME</title>
      <script type="text/javascript" src="AIRAliases.js"></script>
      <script type="text/javascript">
        function appLoad(){
            window.location="http://localhost:8082/MELCOS";
      </script>
    </head>
    <body onLoad="appLoad()">
    </body>
    </html>
    Now...Tomcat6029 are a Windows service and it start with user SYSTEM.
    In my Java project i build a .doc file and i try to open it directly with default windows application:
    FinalFile = "prova.doc";
    File file = new File("C:\\MELCOS\\run\\web\\tomcat6029\\webapps\\MELCOS\\fronte_quadro\\"+FinalFile);
    Desktop desktop = Desktop.getDesktop();
    desktop.open(file);
    The process start (for example WINWORD.exe) but start with user SYSTEM, and user interface of Microsoft Word don't start.
    (I've try to use getDesktop, ProcessBuilder, getRuntime without results).
    If i try to open directly .doc like browser (stop on url http://localhost:8080/MELCOS/fronte_quadro/prova.doc) Adobe AIR don't open anything.
    I've read that there is a method named openWithDefaultApplication, but i haven't find if it's possible to call this method in java file.
    Can you help me?
    I've got to start Microsoft Word (in this example) and open my files, or i've to open a pop-up like browser's "open - save as - close" window.
    Thanks.
    Morkar88

    Thanks Chris,
    i try to create file "open_document.js":
    import flash.filesystem.File;
    import flash.net.FileFilter;
    var f = air.File.desktopDirectory.resolvePath("preventivo_11.doc");
    f.openWithDefaultApplication();
    when i try to open this file in Adobe AIR (i call http://localhost:8080/MyProject/document/open_document.js"), Adobe Air open new window and with my file .js like a normal text file.
    I try also with "open_document.html":
    <html>
    <head>
    <script language="javascript">
    import flash.filesystem.File;
    import flash.net.FileFilter;
    function opendoc() {
      var f = air.File.desktopDirectory.resolvePath("preventivo_11.doc");
      f.openWithDefaultApplication();
    </script>
    </head>
    <body onLoad="opendoc()">
    </body>
    </html>
    But nothing start....
    (my file "preventivo_11.doc" is in C:\Project\tomcat\webapps\MyProject\document\)
    Why? What i have to do?
    Thanks
    P.S. i've got error with import: flash.ecc... and if i remove import, error with air.File.

  • Tomcat 4.0 setup with Apache 1.3

    I'm trying to set up Tomcat 4.0 and Apache 1.3 to work together. I want Apache to serve html content and forward all requests for jsp pages and servlets to Tomcat. I was wondering once it's set up correctly, do all of the jsp files have to be hosted out of the [tomcat_home]/webapps directory? That seems to be the case on my installation.
    I would like to know how to set it up so I can host jsp files and servlet outside the webapps directory. Does this have something to do with Tomcat's setup or Apache's or what?
    -S-

    Hi,
    Forgetting Apache for a moment, which I have set up with tomcat3.3-b1 previously. The simple way to create jsp directories outside of the webapps directory is to edit the server.xml file in the conf directory.
    You need to add a context like this:
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" />
    <Context path="/message" docBase="c:\jwork\message" debug="0"
    reloadable="true" />
    <Context path="/library" docBase="library" debug="0"
    reloadable="true">
    Notice two things. The last example does not close with /> as the </context> tag is a little further down.
    Second, turn on relaodable ="true" whilst debugging.
    The entry http://localhost//message will find files created in c:\jwork\message
    You can then create a welcome file in htdocs in the Apache build to point at this tomcat build.
    Hope this helps.
    kev

  • After BI install SIA and Tomcat could not start with service account.

    Hi BO Gurus,
    I want to install BO child node (Expand the parent install)
    Client IT prepared a system with MS Server 2012 with Windows 8 as OS, and assigned a Service Account for me.
    I gave service account following permissions -
    Act as a part of operating system
    log on as a batch
    log on as a service
    After this I rebooted the system and logged in with Service Account credentials. Started the installer, performed custom/expand install.
    the install was successful.
    When I opened CCM, both Tomcat and SIA are running under 'localsystem' account.
    I want them to run under service account --> i sopped SIA and changed credentials in 'Log on as' box under SIA properties.--> Click on 'apply' and 'OK'
    When I go on and start SIA I get following error -
    ' The Service did not start due to log on failure'.
    The same service account runs services on 3 other BO boxes including parent node of the above install and 2 other DS boxes and everything apart from this machine works exactly fine.
    Please help!
    Thanks,
    Maitreyee

    Maitreyee,
          BI 4.x Platform will NOT work on Desktop OS like Windows 7 / 8.x / 8.1, it required 64bit Server Operating system.   See attached screenshot.
    Regards,
    Ajay

  • Regarding Tomcat 5.5.25 with Eclipse Europa 3.3.0 Configuration.

    Hi , Friends
    I am using Netbeans 5.5.1 for Development. Since 1 year.
    Now i want to use Eclipse 3.3.0 Europa for developing web applications.
    Please Let me know how to configure it to run it with apache tomcat 5.5.25 ?
    1) I have JDK1.6 installed
    2) I have Tomcat 5.5.25
    3) I have Eclipse 3.3.0 Europa version Installed.
    Now let me know what are the procedure to follow to run the web application in Eclipse IDE ??
    I am new to Eclipse.
    Please Help ME.

    <ol><li>Open the J2EE perspective.</li>
    <li>Switch to the Servers view.</li>
    <li>Right click New.</li>
    <li>Select Apache Tomcat 5.5</li>
    <li>Follow the wizard...</li>
    <li>You are done!</li>
    </ol>

  • More Tomcat 4.0.x with XSQLServlet  problems

    Hey there people, I have been following the discussion about Tomcat4.0 with the XDK package so now it is my turn to have a problem with it. Also Im not sure if anyone have configured this thing correctly?, or maybe I'm wrong??
    My configuration (that almost works) is as follows:
    in TOMCAT_HOME/common/lib I have placed
    xsu12.jar
    oraclexsql.jar
    xmlparserv2.jar
    Now I had problems with the classes12.zip file which I had to extract into
    TOMCAT_HOME/common/classes in order to avoid the "ClassNotFoundException" about the Oracle JDBC.
    Instead the tomcat can now find the JDBC drivers in the classes directory unzipped. ok that worked but.....
    Now the last thing I needed to do was to place the XSQLConfig.xml file into Tomcat classpath. So I put it in TOMCAT_HOME/common/classes. But after extracting the jdbc driver package into that directory this xml file cannot be foud anymore by Tomcat??, (no problem when the jdbc cdrivers where not there!!???)
    I have also edited catalina.bat and setclasspath.bat (using Windows for this one) so that it can search for this xml file but without any luck.
    So if anyone have been able to properly set up XSQLServlet with Tomcat4.0 can you please help me out with this one???
    I got this up running with tomcat 3.2 but the configuration is not the same for Tomcat4.0. It also works with JServ but that too is another story.
    This is strange
    Regards
    /Antonios

    Antonios,
    it's easier to rename the classes12.zip to classes12.jar and put it into common/lib, too. To include the the XSQLConfig.xml i changed the classpath in the catalina.sh. This is working very good for me.
    Uwe

  • URGENT: Tomcat, Connection Pool - Issue with web.xml & server.xml

    Folks,
    I am trying to connect to a MS SQL database using Tomcat/JSP but having issues. The code that I am using is as follows:
    Context ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/test");
    Connection conn = ds.getConnection();
    Statement stmt = conn.createStatement();
    I have added the following code to my Server.xml:
    <Resource name="jdbc/test" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="DB_AW_DATA" password="tester" driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    url="jdbc:microsoft:sqlserver://192.168.0.1\\Newcastle"/>
    And the complete web.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE web-app (View Source for full doctype...)>
    - <web-app>
    - <resource-ref>
    <description>Resource reference to java.sql.Connection factory defined in server.xml</description>
    <res-ref-name>jdbc/test</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    The error message that I am getting is as follows:
    java.sql.SQLException: Cannot load JDBC driver class 'null'
    What confuses me is that I have placed the following files in Tomcat\common\lib...
    mssqlserver.jar
    msbase.jar
    msutil.jar
    I think this is purely an issue with how I configured server.xml and web.xml
    In the Tomcat documentation it states to put the code in the server.xml - but nested inside the Context element. This is something that I have not done as I am clear what the Context should be..
    Can someone assist...
    <Context path="" docBase="ROOT" debug="0"> ???
    what should be the path and the docBase.
    I have deployed the following application:
    http://localhost:8080/SCWAPP/index.jsp
    THANKS IN ADVANCE FOR ALL SUPPORRT

    you should put the code you typed in server.xml into context.xml
    in the META-INF folder and this will fix your problem.
    the latest tomcat docs detail what to do.

Maybe you are looking for