J2EE Tomcat vs. Tomcat

I need some information regarding the integrated Tomcat.
Does it have all features of the full Tomcat ? And can you update it normally from Apache or do you need a special J2EE Tomcat update ?
In short, I need to know if there is any downside to using J2EE Tomcat compared to Full Tomcat.

The J2EE Tomcat is the same as the regular Tomcat. However, keep in mind that Tomcat comes out with patches fairly often, whereas the J2EE reference implementation is pretty stable and no updates are issued unless there is a critical issue. If I'm not mistaken, the integrated Tomcat in the J2EE 1.3 reference implementation is version 4.0 beta 7. If you go to Jakarta's website, you will notice that Tomcat 4.0 is already past beta and at version 4.0.4.

Similar Messages

  • I am working on Security scan(to avoid cross site forgery) with the CSRF approach of tomcat(apache-tomcat-6.0.32) but I am getting following issue with firefox:

    I am working on Security scan(to avoid cross site forgery) with the CSRF approach of tomcat(apache-tomcat-6.0.32) but I am getting following issue with firefox:
    1. Firefox is not supporting CSRF provided by tomcat in a proper way firefox creating multiple sessions.
    2. Whenever any exception (like JSP exception) comes on page. Firefox redirects it to CSRFPreventionFilter and this filter creates new session.
    3. Sometimes while traversing through application also CSRFPreventionFilter filter creates new session.

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • J2EE, Eclipse and Tomcat for Beginners

    Please teach us a simple project using above technology as its tough for many people while starting.
    So please could you help the fresher?

    Rameshglb wrote:
    Please teach us a simple project using above technology as its tough for many people while starting.
    So please could you help the fresher?There are many books on the many facets of Java enterprise technology, esp. servlets and JSPs.
    There are also quite a few good web sites that can teach you about the more commonly used APIs.
    If I were you, and I am glad I am not as you display no industry, I would go over to amazon.com to buy a book or coreservlets.com to do some reading.
    Jaa beta. Apna aap se kaam karo.

  • Undeploy and redeploy in tomcat without tomcat manager

    My host is running Tomcat 4.1.24 on an Apache 1.3.29 server, and tomcat (supposedly) refreshes its servlets every twelve hours. If I upload a new .war file it will deploy it to a folder of the same name almost instantly, however if I then make changes to that .war file it will not deploy it over the old installation. This would lead me to believe I need to undeploy the old version of my webapp before the updated .war file can be deployed.
    It doesn't even deploy the updated .war file when tomcat refreshes, as I've waited over 12 hours without the updated .war file being deployed.
    Bearing in mind that I do not have access to my host's tomcat config files and, to make matters worse, they say they don't run the tomcat manager tool on their servers, how can I undeploy my old version of my webapp so that I can deploy the new one?
    Thanks,
    Andrew.

    Hmm, the crude way won't work, as the server won't let
    me overwrite the files, just as it won't let me delete
    them, and I can't get into my host's server.xml!
    You'd think they'd have servlet reloading on already.
    Don't think I'll be using them again.You can define your own Context fro each WAR without editing the server.xml
    For Tomcat 4, this means creating an XML that contains the <Context ...> element as defined HERE. You would make that context reloadable. The XML file will have to have the same name as the WAR. For existance, you want to make a Web App called MyCalendar. The War would be called MyCalendar.war and the XML file called MyCalendar.xml. The Contents of the MyCalendar.xml migh be as simple as:
    <Context docBase="MyCalendar" path="MyCalendar" reloadable="tru"></Context>

  • Configurate Oracle 9.0.2 with Tomcat jakarta-tomcat-5.5.7

    Hi all,
    After installing Oracle 9.0.2 as a standalone db on my PC, some Java and Jsp classes don't run properly. I get the following error msg:
    java.lang.NoClassDefFoundError: javax/xml/transform/Source
    I think it may be a problem with path. For Java programs, I now use a bat file to set path to ignore "C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;" in system's path like this:
    set PATH_BAK=%PATH%
    set Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Executive Software\Diskeeper\;"C:\Program Files\Symantec\Norton Ghost 2003\";C:\j2sdk1.4.2_06\bin;C:\j2sdk1.4.2_06\jre\lib\ext
    java %1
    SET PATH=%PATH_BAK%
    The Java classes run properly with the bat file now. But would there be some better solutions? And how can I run the JSP programs again?
    Really appreciate for any suggestion / help. Thanks very much in advance.

    The oracle\jre\1.3.1\bin is installed, and used by component of the Oracle Database that are built with Java.
    This would be things like the installer, the network config manager, etc.
    If you remove it, then chances are these things will still work, but they'll be running on an unknown version of Java (for them anyway).
    But give it a go. If you find you have problems running the installer, or the network manager later on, then you can always put the Oracle JRE back into the path to launch the utility you need.
    I tend to change mine around as you've done by setting some environment variables ORACLE_JRE=... and then switch the order of them in the PATH as I need. It's sort of self documenting in that way.
    -steve-

  • FAM 8.0, Tomcat J2EE agent installation problem

    Hello:
    I was able to install FAM 8.0 in Tomcat 6.0.14 on Ubuntu (7.04) Linux. Everything seems fine. In the end, the applications I want to use with OpenSSO also make use of Tomcat 6.0.14. I noticed on the opensso users email list that the Tomcat 3.0 agent won't be available until early next year; but that the 2.2 agents should work with FAM 8.0. So, I got the the J2EE agent for Tomcat - SJS_Tomcat_Server_55_agent_2.2-01.tar.gz. The documentation makes no references to Tomcat 6, and I'm hoping this is due to the fact that Tomcat 6 was not available when the documentation was written.
    Does this agent work with Tomcat 6? I have this problem when installing the agent (agentadmin --install):
    $CATALINA_HOME environment variable is the root of the tomcat
    installation.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the $CATALINA_HOME environment variable: /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14
    Invalid directory specified for the $CATALINA_HOME environment variable
    Invalid CATALINA_HOME directory :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14I can see in debug/agentadmin.log the following:
    [05/24/2008 13:06:37:684 PDT] FileSystemValidator : Is directory : /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14 valid ? true
    [05/24/2008 13:06:37:686 PDT] HomeDirValidator : Is $CATALINA_HOME directory /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14 valid ? false
    [05/24/2008 13:06:37:686 PDT] Invalid CATALINA_HOME directory : /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14This directory does indeed exist, and is accessible by the user I'm logged in as. It appears FileSystemValidator agrees with me, but HomeDirValidator has a problem. I tried this on both Ubuntu 6.04 and Mac OS X 10.5.2. Does this indicate that Tomcat 6 is not supported? Or is it indicative that neither OS on which I've tried to install the agent is officially supported?
    Thanks!
    Jeff

    Hi Denis:
    Before being redirected to another short term task, I did indeed get the Tomcat 6 agent to work. I probably won't be able to look at OpenSSO again seriously for another couple of months. :(
    I have the OpenSSO server running on Tomcat 6.0.14 on Ubuntu 6.x Linux running in a virtual machine on my Mac. I was not able to get the server to run directly on the Mac, and I cannot remember the reason at this time.
    But, as far as the agent goes, I run it again using Tomcat 6.0.14 on my Mac (Mac OS X 10.5.2), using the 1.5 JRE. I do have the agentapp war deployed as well as the agentsample web application to play with. In my catalina.out file:
    Jun 18, 2008 10:07:20 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
    Jun 18, 2008 10:07:20 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive agentapp.war
    Jun 18, 2008 10:07:21 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive agentsample.war
    Jun 18, 2008 10:07:22 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8090
    Jun 18, 2008 10:07:22 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8011
    Jun 18, 2008 10:07:22 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/16  config=nullI have no error messages is any Tomcat log file.
    I checked out the source code for the Tomcat v6 agent (2.2) on May 27, so I don't know how that compares to yours or what's been checked into CVS since my build. I also don't know what the OpenSSO NamingService is.
    I assume you used fully qualified domain names to specify the web application to be protected by agent as well as the OpenSSO server itself. The following is the output of the conversation when I run the agent installer script on my system. It has been redacted a bit (domain name and encryption key) to protect my client, but otherwise this is what I supplied to the installer:
    Enter the complete path to the directory which is used by Tomcat Server to
    store its configuration Files. This directory uniquely identifies the
    Tomcat Server instance that is secured by this Agent.
    [ ? : Help, ! : Exit ]
    Enter the Tomcat Server Config Directory Path
    [/opt/apache-tomcat-6.0.14/conf]: /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf
    Enter the fully qualified host name of the server where Access Manager
    Services are installed.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services Host: login.opensso.example.com
    Enter the port number of the Server that runs Access Manager Services.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services port [80]: 8080
    Enter http/https to specify the protocol used by the Server that runs Access
    Manager services.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services Protocol [http]:
    Enter the Deployment URI for Access Manager Services.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services Deployment URI [/amserver]: /opensso
    Enter the fully qualified host name on which the Application Server
    protected by the agent is installed.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Agent Host name: analysis.opensso.example.com
    $CATALINA_HOME environment variable is the root of the tomcat
    installation.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the $CATALINA_HOME environment variable: /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14
    Choose yes to deploy the policy agent in the global web.xml file.
    [ ? : Help, < : Back, ! : Exit ]
    Install agent filter in global web.xml ? [true]:
    Enter the preferred port number on which the application server provides its
    services.                          
    [ ? : Help, < : Back, ! : Exit ]
    Enter the port number for Application Server instance [80]: 8090
    Select http or https to specify the protocol used by the Application server
    instance that will be protected by Access Manager Policy Agent.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Preferred Protocol for Application Server instance [http]:
    Enter the deployment URI for the Agent Application. This Application is used
    by the agent for internal housekeeping.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Deployment URI for the Agent Application [/agentapp]:
    Enter a valid Encryption Key.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Encryption Key [XXmyencryptionkeyXX]:
    Enter a valid Agent profile name. Before proceeding with the agent
    installation, please ensure that a valid Agent profile exists in Access
    Manager.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Agent Profile name: testagent1
    Enter the path to a file that contains the password to be used for identifying
    the Agent.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the path to the password file: /Users/jas/Development/opensso/tryout/agent_password
    SUMMARY OF YOUR RESPONSES
    Tomcat Server Config Directory :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf
    Access Manager Services Host : login.opensso.example.com
    Access Manager Services Port : 8080
    Access Manager Services Protocol : http
    Access Manager Services Deployment URI : /opensso
    Agent Host name : analysis.opensso.example.com
    $CATALINA_HOME environment variable :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14
    Tomcat global web.xml filter install : true
    Application Server Instance Port number : 8090
    Protocol for Application Server instance : http
    Deployment URI for the Agent Application : /agentapp
    Encryption Key : XXmyencryptionkeyXX
    Agent Profile name : testagent1
    Agent Profile Password file name :
    /Users/jas/Development/opensso/tryout/agent_password
    Verify your settings above and decide from the choices below.
    1. Continue with Installation
    2. Back to the last interaction
    3. Start Over
    4. Exit
    Please make your selection [1]: 1
    Updating the
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/bin/setclasspath.sh
    script with the Agent classpath ...DONE.
    Creating directory layout and configuring Agent file for Agent_001
    instance ...DONE.
    Reading data from file
    /Users/jas/Development/opensso/tryout/agent_password and encrypting
    it ...DONE.
    Generating audit log file name ...DONE.
    Creating tag swapped AMAgent.properties file for instance Agent_001 ...DONE.
    Creating a backup for file
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/server.xml
    ...DONE.
    Creating a backup for file
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/web.xml
    ...DONE.
    Adding SJS Tomcat Agent Realm to Server XML file :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/server.xml
    ...DONE.
    Adding filter to Global deployment descriptor file :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/web.xml
    ...DONE.
    Adding SJS Tomcat Agent Filter and Form login authentication to selected Web
    applications ...DONE.
    SUMMARY OF AGENT INSTALLATION
    Agent instance name: Agent_001
    Agent Configuration file location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/Agent_001/config/AMAgent.properties
    Agent Audit directory location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/Agent_001/logs/audit
    Agent Debug directory location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/Agent_001/logs/debug
    Install log file location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/logs/audit/install.log
    Thank you for using Access Manager Policy Agent
    [jaslap:tryout/tomcat_v6_agent/bin] jas% Can you post the exception details you're getting. That might help someone diagnose the problem.
    Take it easy,
    Jeff

  • Structuring a JSP/J2EE (Tomcat) application

    If anyone can give some direction on this, then I'd be very happy.
    I am trying to rewrite an application I previously developed in PHP using JSP/J2EE in a Tomcat enviroment. I am rather unsure about how the application and related files should be organised. For instance, should my "own" application-related configuration files (whatever.xml) be stored in the WEB-INF directory? Also, should application-specific log files be stored somewhere in the application structure, or would those typically be located where the server logs are? For application-specific logging, should I use java.util.Logging or something like log4j?
    I will be using three different environments (dev, staging and production) for this, and would ideally like to make the application easily configurable to move it between these environments.
    Sincerely,
    Nils Hagner

    hagner wrote:
    If anyone can give some direction on this, then I'd be very happy.
    I am trying to rewrite an application I previously developed in PHP using JSP/J2EE in a Tomcat enviroment. I am rather unsure about how the application and related files should be organised. For instance, should my "own" application-related configuration files (whatever.xml) be stored in the WEB-INF directory? Also, should application-specific log files be stored somewhere in the application structure, or would those typically be located where the server logs are? For application-specific logging, should I use java.util.Logging or something like log4j?
    I will be using three different environments (dev, staging and production) for this, and would ideally like to make the application easily configurable to move it between these environments.Usually you put your own configuration files in the /WEB-INF/classes directory because then they will be in the classloader's classpath.
    Log files go in the same log directory as the server logs (in tomcat this is just ${CATALINA_HOME}/logs/)
    You can use either the java logging or log4j that is up to you (I think log4j is better personally because it has more features)

  • Tomcat , JMS & J2ee RI

    anyone here knows if there is a way to configure Tomcat to support JMS on servlets by using the J2ee Reference Implementation Server as the JMS provider? I know there is openjms and other jakarta components that can help tomcat do jms, but is there a way to do it with the j2ee ri?

    Both The tomcat.jar and j2ee.jar implements apache.* classes, and they are conflicting with each other. If you add "j2ee.jar" to Tomcat's classpath, you'll get an error message trying to start Tomcat.
    The work around I made on my W2K box (Tomcat 3.3a with J2EE 1.3.1):
    I created a temporary directory: d:\mine_j2ee_classes and unzip j2ee.jar to this directory. Then I renamed d:\mine_j2ee_classes\org\apache to d:\mine_j2ee_classes\org\apache_orig. After that, I added d:\mine_j2ee_classes to my Tomcat classpath, and it works fine. By doing this, I use J2EE as the JMS provider, but only use Tomcat's apache.* implementation.
    Ye

  • Issue on running a java application on tomcat 6.0.43 with error filter mappings

    Hi ,
    I am new to Java.
    I am facing an issue on running J2EE application in Tomcat Server 6.0.43, I am getting the below error for which 404 page is displayed.
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\CapgeminiScripts\Support Tools\;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jre6\bin;;.
    Jan 27, 2015 4:21:57 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:gui' did not find a matching property.
    Jan 27, 2015 4:21:57 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 420 ms
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.43
    Jan 27, 2015 4:21:57 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(D:\Users\sparipoo\workspace_KTW\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\gui\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Jan 27, 2015 4:21:57 PM org.apache.tomcat.util.digester.Digester endElement
    SEVERE: End event threw exception
    java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:928)
      at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:192)
      at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
      at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1158)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)
      at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1045)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:265)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4616)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> /exportHandler/*.jsp in filter mapping
      at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2531)
      ... 37 more
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Parse error in application web.xml file at jndi:/localhost/gui/WEB-INF/web.xml
    java.lang.IllegalArgumentException: Invalid <url-pattern> /exportHandler/*.jsp in filter mapping
      at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2839)
      at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2865)
      at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1161)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)
      at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1045)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:265)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4616)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> /exportHandler/*.jsp in filter mapping
      at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2531)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:928)
      at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:192)
      at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
      at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1158)
      ... 29 more
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Occurred at line 27 column 20
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.ContextConfig start
    SEVERE: Marking this application unavailable due to previous error(s)
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [/gui] startup failed due to previous errors
    Jan 27, 2015 4:21:57 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jan 27, 2015 4:21:57 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Jan 27, 2015 4:21:57 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/10  config=null
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 607 ms
    Please find the web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>gui</display-name>
      <error-page>
        <error-code>500</error-code>
        <location>/errorpage.jsp</location>
      </error-page>
      <error-page>
        <error-code>404</error-code>
        <location>/errorpage.jsp</location>
      </error-page>
      <filter>
        <filter-name>exportHandler</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>exportHandler</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>exportHandler</filter-name>
        <url-pattern>/exportHandler/*.jsp</url-pattern>
      </filter-mapping>
       <filter>
        <filter-name>importHandler</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>importHandler</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>importHandler</filter-name>
        <url-pattern>/importHandler/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>importMonitor</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>importMonitor</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>importMonitor</filter-name>
        <url-pattern>/importMonitor/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>notificationHandler</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>notificationHandler</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>notificationHandler</filter-name>
        <url-pattern>/notificationHandler/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>npAgreement</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>npAgreement</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>npAgreement</filter-name>
        <url-pattern>/npAgreement/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>numberSearch</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>numberSearch</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>numberSearch</filter-name>
        <url-pattern>/numberSearch/*.jsp</url-pattern>
      </filter-mapping>
       <filter>
        <filter-name>shared</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>shared</param-value>
        </init-param>
        </filter>
      <filter-mapping>
        <filter-name>shared</filter-name>
        <url-pattern>/shared/*.jsp</url-pattern>
      </filter-mapping>
      <servlet>
        <servlet-name>Login</servlet-name>
        <servlet-class>security.SecurityServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>Login</servlet-name>
        <url-pattern>/login</url-pattern>
      </servlet-mapping>
    <resource-ref>
        <description>DB Connection</description>
        <res-ref-name>ds/NPAS</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>
      <session-config>
        <session-timeout>480</session-timeout>
      </session-config> 
      <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
      </mime-mapping>
      <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
      </mime-mapping>
      <welcome-file-list>
        <welcome-file>login.jsp</welcome-file>
        <welcome-file>sample.jsp</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
    </web-app>
    I don't understand as to why this error is appearing. For easy purpose marking the error part BOLD.
    Please help me out if there is any solution for the same.
    Regards,
    Sirisha

    nies out there right now that are offering all kinds of policies that are no doubt great and beneficial, it can also be confusing and overwhelming.
    https://plus.google.com/communities/103681647604159596708
    https://plus.google.com/communities/103681647604159596708
    https://plus.google.com/communities/103681647604159596708
    http://plus.google.com/communities/103681647604159596708
    http://plus.google.com/communities/103681647604159596708
    http://plus.google.com/communities/103681647604159596708
    https://plus.google.com/communities/103681647604159596708?hl=en
    https://plus.google.com/communities/103681647604159596708?hl=en
    https://plus.google.com/communities/103681647604159596708?hl=en

  • Tomcat error message on startup

    Hi,
    This is in a Crystal Reports Server 2008.
    I think I have had this problem since installation, but have never noticed it.  Every time tomcat starts up, this message is in the logs:
    25-Apr-2014 11:16:26 org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /PMC_Help threw load() exception
    java.lang.ClassNotFoundException: com.businessobjects.webutil.ForwardServlet
    Am I missing a classpath setting, or similar?  I don't know which jar this class is in....
    Thanks,
    Jaime

    put the j2ee.jar into tomcat/shared/lib and restart it. this works.
    Venu Alla
    AegisUSA

  • Can't get some LCDS ES Test Drive samples to work in Tomcat

    I can't get many of the Sample Test Drive examples included
    with Livecycle Data Services ES 2.5.1 to work properly with Tomcat
    (both version 5.5.25 and 6.0.14). I've tried both on Windows XP SP2
    and Mac OSX (10.4), but I get the same errors on both platforms. I
    can however get the Sample Test Drive from LCDS to work fine with
    the JRun server on Windows (included with the Windows version of
    LCDS). I've setup the JRun server in a similar fashion as Tomcat
    (see my steps below) and everything works fine. I haven't been as
    successful with Tomcat. Can anyone point out where I'm going wrong
    with my Tomcat setup?
    I am using Java 1.5.0.
    Here are the error messages I get when trying out the LCDS
    Test Drive examples on Tomcat:
    Sample 1 - Accessing data using an HTTP service (after
    pressing the "Get Data" button):
    [RPC Fault faultString="HTTP request error"
    faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
    type="ioError" bubbles=false cancelable=false eventPhase=2
    text="Error #2032: Stream Error. URL:
    http://localhost:8080/samples/testdrive/sample1/catalog.jsp"
    URL: catalog.jsp"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()
    at mx.rpc::Responder/fault()
    at mx.rpc::AsyncRequest/fault()
    at DirectHTTPMessageResponder/errorHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/redirectEvent()
    Samples 3, 4 and 5 all produce the following error:
    [RPC Fault faultString="flex.samples.DAOException :
    java.sql.SQLException: Connection is broken"
    faultCode="Server.Processing" faultDetail="null"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()
    at mx.rpc::Responder/fault()
    at mx.rpc::AsyncRequest/fault()
    at NetConnectionMessageResponder/statusHandler()
    at mx.messaging::MessageResponder/status()
    Sample 8 - Data Management Service:
    [RPC Fault faultString="Unable to invoke a fill operation on
    destination 'inventory' due to the following error: class
    flex.samples.DAOException:java.sql.SQLException: Connection is
    broken." faultCode="Server.Processing" faultDetail="null"]
    at mx.data::ConcreteDataService/
    http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
    at DataListRequestResponder/fault()
    at mx.rpc::AsyncRequest/fault()
    at NetConnectionMessageResponder/statusHandler()
    at mx.messaging::MessageResponder/status()
    Samples 2, 6 and 7 work fine.
    Here are the steps I took to setup Tomcat. I've tried this on
    both MacOSX and WinXP:
    1. Download and extract Tomcat from tomcat.apache.org (I've
    tried both version 5.5.25 and 6.0.14)
    2. Install Livecycle Data Services ES 2.5.1 and copy
    flex.war, flex-admin.war and samples.war to [tomcat-root]/webapps/
    3. Prepare tomcat for Livecycle Data Services by following
    the instructions here:
    http://help.adobe.com/en_US/livecycle/es/lcds_installation.html
    3a. Add Java Open Transaction Manager (JOTM) from
    http://jotm.objectweb.org/.
    Copy the JAR files from [jotm-root]/lib to
    [tomcat-root]/common/lib/.
    3b. Create a context file for your web application and
    register JOTM using the Transaction element, e.g. for the samples
    WAR create a [tomcat-root]/conf/Catalina/localhost/samples.xml file
    and add the following lines:
    <Context docBase="${catalina.home}/webapps/samples"
    privileged="true"
    antiResourceLocking="false" antiJARLocking="false">
    <Transaction
    factory="org.objectweb.jotm.UserTransactionFactory"
    jotm.timeout="60"/>
    </Context>
    3c. Increase the maximum memory to at least 512MB. For
    Tomcat, this is achieved by specifying the maximum heap size for
    the JVM in the JAVA_OPTS variable in [tomcat-root]/bin/catalina.sh:
    -Xmx512m
    4. Run the tomcat server ([tomcat-root]/bin/startup.sh for
    Mac OS or [tomcat-root]\bin\startup.bat for WinXP) which extracts
    the 3 .war files into their respective directories in
    [tomcat-root]/webapps/
    5. Goto the Samples Test Drive in your web browser at
    http://localhost:8080/samples/testdrive/

    Thanks Leif,
    Yes, set it to the location jndi path.
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • Upgrade from tomcat to OC4J 10.1.3 jsp parser exception in tag lib

    i have problem in oc4j jsp parser
    but it work ok on tomcat as tomcat using jasper-compiler.jar
    when run on oc4j it give me the exception
    OracleJSP: oracle.jsp.parse.JspParseException: /jsp/layouts/elec/pageheading.jsp: Line # 3, <aa:h1 wrapped="true" labelKey="${heading1BundleKey}"/>
    Error: Errors parsing tag :h1 oracle.jsp.parse.JspParseException: /jsp/layouts/elec/pageheading.jsp: Line # 3, <aa:h1 wrapped="true" labelKey="${heading1BundleKey}"/>
    Error: oracle.jsp.provider.JspCompileException: <H3>Errors compiling:E:\oc4j\j2ee\home\application-deployments\default\sc40\persistence\_tagfiles\_oracle\_jsp\_tag\_aacom\_h1_2e_tag.java</H3><TABLE BORDER=1 WIDTH=100%><TR><TH ALIGN=CENTER>Line #</TH><TH ALIGN=CENTER>Error</TH></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>191</TD><TD> non-static variable _jspFragWriter cannot be referenced from a static context
    _jspFragWriter = null;
    -------------------------------------------------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    and i have problem in web.xml
    as i using jsp servlet in jasper-compiler.jar in tomcat package
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    ------------------------------------>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    i try to use this package in oc4j but i can not
    i put this servlet in global-web-application.xml instead of
    <servlet>
         <servlet-name>jsp</servlet-name>
    <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
    ------------------>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    to make oc4j depend on tomcat parser it give me
    classnotfound mean that (oc4j can not found package) this printed in global-application.log
    i make
    <library path="E:/oc4j/j2ee/home/applib/jasper-compiler.jar"/>
    and still have problem
    any 1 have idea using tomcat parser in oc4j
    or have idea solve this problem
    thanx
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

    OC4J 10.1.3 does support JSP 2.0, as well as custom tag libraries (including JSTL 1.1).
    There are two approaches to configuring a custom tag library for use in JSPs served by OC4J:
    1) Package the JSTL or custom tag library with your application:
    i. include the necessary JAR file in your web app's /WEB-INF/lib folder
    ii. include the relevant Tag Library Descriptor (TLD) file(s) in your web app's /WEB-INF folder
    iii. for each TLD, add a <tag-lib> element to web.xml referencing the TLD file's location and taglib URI
    2) Place the JSTL or custom tag library in an Application Server instance-level directory ($ORACLE_HOME/j2ee/home/jsp/lib/taglib) to make them available to multiple applications (in all OC4Js installed in the Oracle Home)
    For example, if you'd like to use the JSTL 1.1 Core and Internationalization Tag Libraries, do one of the following:
    1) Package the JSTL or custom tag library with your application:
    i. Obtain an implementation of JSTL (e.g. Jakarta Taglibs) and include the standard.jar and jstl.jar files in your web module's /WEB-INF/lib directory
    ii. From the JSTL implementation you're using, also copy the c.tld and fmt.tld Tag Library Descriptors to your web module's /WEB-INF/lib directory
    iii. Add the following elements to your web module's web.xml file:
    <jsp-config>
    <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
    <taglib-location>/WEB-INF/fmt.tld</taglib-location>
    </taglib>
    </jsp-config>
    OR
    2) Copy the standard.jar and jstl.jar libraries from the JSTL implementation you're using to $ORACLE_HOME/j2ee/home/jsp/lib/taglib

  • Tomcat is acting weird!

    Hi,
    I had tomcat 3.2.3 and j2sdk 1.3.1 and everything was working fine and I developed a number of projects in jsp. One fine morning I decided to install j2ee as well as upgrade j2se. I installed j2sdk 1.4.0_03 and j2sdkee 1.3.1. Since then the Tomcat server wont start, it quits by giving the following error;
    2003-03-30 00:14:09 - ContextManager: Adding context Ctx( /examples )
    Starting tomcat. Check logs/tomcat.log for error messages 2003-03-30 00:14:09 -
    ContextManager: Adding context Ctx( /admin )
    2003-03-30 00:14:22 - ContextManager: Adding context Ctx( )
    2003-03-30 00:14:23 - ContextManager: Adding context Ctx( /test )
    Exception in thread "main" java.lang.AbstractMethodError: org.apache.tomcat.faca
    de.ServletContextFacade.getResourcePaths(Ljava/lang/String;)Ljava/util/Set;
    at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocations
    Cache.java:202)
    at org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocationsCache
    .java:139)
    at org.apache.jasper.EmbededServletOptions.<init>(EmbededServletOptions.
    java:345)
    at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
    at org.apache.tomcat.core.Handler.init(Handler.java:215)
    at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
    at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
    StartupInterceptor.java:130)
    at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
    :491)
    at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
    at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
    at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
    What could be wrong? Is that the Tomcat is looking for an older mouse (older version of j2se)? Please help me as I am totally stuck!
    Thanking you,
    Rajesh

    Hi,
    My poor little cat is still dead... :(
    Could any one please help me?
    Thank you,
    Rajesh

  • OC4J config file like tomcat-users.xml

    Hi,
    We are attempting to migrate a customer from tomcat to OC4J. For the demo, the customer has asked to use the listing of roles and users in the tomcat-users.xml file it has. Despite our pleas about security, they want this.
    Is there any file in OC4J that corresponds to this file in tomcat???
    We are configuring web.xml <login-config>, and assume that there is a similar type of redirect to a user's list in OC4J as is found in tomcat with tomcat-users.xml.
    Any help?
    Thanks,
    Scott Rappoport, OCP

    I found the file. Does one have to go through JAZNUserManager to alter the file, or is there a way to add users straight into the jazn-data.xml file? I tried to alter the file and add the roles and users from the tomcat file, but I still get a 403 error --
    Error initializing security, security-role not found: auth-user-2.
    I also altered the principal.xml file, but to no avail.
    I am using the OC4J stand-alone version; I note in the J2EE User's Guide (chap 8, security) that there is a User Manager page available from the OC4J home page. Is this available in stand-alone? I have opened the http server port 7778, but found no mod_oc4j in the list; Going to the OC4J port 8888 gives me the samples one would find in tomcat.
    One wonders if we need the core 9iAS with EM? Is there any way to stay with the lightweight stand-alone version for now to config this?
    Any ideas?
    Thanks,
    scott

  • Configureing built in Tomcat server

    Hello everyone. Here is my problem:
    I am trying to deploy a page called "index.html" using J2EE 1.4 The page code is stored in "C:\Program Files\netbeans-4.0\nb4.0\jakarta-tomcat-5.0.28\ shared\classes\forbestest", which is part of a project titled "forbestest". The progect is stored in the "shared/classes" folder of the built in Tomcat's default instalation environment.
    I have already set up the JAVA_HOME variable, changed the listen port to localhost:8080 and provided the correct path for the <Context> tag in server.xml in the config folder of the default instalation for the J2EE built in Tomcat Server.
    When I hat the run button back in the environment with the "index.html" open the Tomcat starts with no problem. But when it tryes to deploy the web project it produces an error:
    C:\Program Files\netbeans-4.0\nb4.0\jakarta-tomcat-5.0.28\
    shared\classes\forbestest\nbproject\build-impl.xml:279:
    org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment$DeploymentException:
    Deployment error: null. See the messages.log file for details.
    Also thre is no such thing as messages.log any where on the system.
    To help our I provide a snipit from build-impl.xml that includes line 279 below with an arrow (==>) pointing to the trouble spot:
    ======================
    EXECUTION SECTION
    ======================
    -->
    <target name="run" depends="run-deploy,run-display-browser" description="Deploy to server and show in browser."/>
    <target name="run-deploy" depends="init,compile,compile-jsps,-do-compile-single-jsp">
    ==> <nbdeploy forceRedeploy="${forceRedeploy}" clientUrlPart="${client.urlPart}" debugmode="false"/>
    </target>
    <target if="do.display.browser" name="run-display-browser" depends="run-deploy">
    <nbbrowse url="${client.url}"/>
    </target>
    <target name="run-main" depends="init,compile-single">
    <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
    <webproject:java xmlns:webproject="http://www.netbeans.org/ns/web-project/1" classname="${run.class}"/>
    </target>
    Any help is appriciated!
    Thanks

    What does Jakarta support say about this? (By the way, maybe it fails shutdown because it's not running.)

  • Mutual authentication on Tomcat 5

    Hello,
    For the moment I'm experimenting with J2EE security with Tomcat 5.
    So far I was able to get BASIC authentication to work and also server Authentication (SSL with certificate).
    The next step I wanted to take was to configure Tomcat to use Mutual authentication but so far without success.
    Here are the steps I take:
    1. Create a client keystore with one certificates using the java keytool
    2. Create a server keystore with one certificate using the java keytool (my CN name is localhost and I also
    use this in my test URL: https://localhost:8443)
    3. Export the client certificate from the client keystore to a .cer certificate
    4. Export the server certificate fomr the server keystore to a .cer certifciate
    5. Import my .cer server certificate in my trust store (%JRE_HOME%\lib\security\cacerts)
    Now the client should trust the server's certificate.
    6. Import my .cer client certificate in my server's keystore
    This way the server should trust the client.
    7. In my server.xml file I have put clientAuth to true and used the -keystore parameter to point to the correct
    certificate.
    <Connector port="8443" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" disableUploadTimeout="true" acceptCount="100" debug="0" scheme="https"
    secure="true" clientAuth="true" sslProtocol="TLS" keystoreFile="c:/keys/serverKeys"
    keystorePass="password"/>
    As a test I also imported the 2 .cer certificates (client + server) in my IE but I don't think this is needed.
    When I start tomcat and check if it is running http://localhost:8080 then this works, but when I want to use https://localhost:8443 I get the message that the page could not be displayed ...
    I'm trying for several days to solve this but without success ...
    Can someone help me please ?
    Many thanks !
    Best regards,
    Tom.

    With truststore file you mean cacerts.jks in %JAVA_HOME%/JRE/LIB/SECURITY ?
    To avoid misunderstanding, the only thing I try to do is to establish mutual authentication bewteen a client (IE) and a server (localhost) on the same machine (without using any java code) ?
    Is that possible ?
    Do I need to configure anything in my web.xml ?
    Does there exist a step by step guideline to get it to work ?
    By javax.net.debug system property, you mean that this must be done in java code ?

Maybe you are looking for

  • Weirdness with SanDisk compact flash

    I just purchased a SanDisk usb flash drive. I inserted (into the [usb 1] port on the mac keyboard), and formatted with Mac OS Extended/Journaled, I reboot and get: "The disk you inserted was not readable by this computer", it then gives the "ignore"

  • Input date format

    Can anyone tell me where can I configure to have the input data for date format be dd-mm-yy. This is only possible when formatting the cell. I'm use to enter date starting by day, month.. in this order. Every time I apply my input date it comes with

  • I keep getting a "not enough memory"  comment on my computer.  Where can I look to find out what is taking up the memory while i'm working?

    I keep getting a "not enough memory"  comment on my computer.  Where can I look to find out what is taking up the memory while i'm working?

  • Websites wont finish loading.

    The page wont finish loading. This is a new problem for me. This is the first time that this has happened to me. == URL of affected sites == https://www.govone.com/usbank/welcome.asp

  • Customer's material

    Hello Gurus, suppose i would like from customer 1 the list of materials or goods he already paid. how to do it? and with which T.code could i list them. Thanks