How to protect an application running on Apache Tomcat app server with OAM 11gR2

Gurus,
We have an Apache Tomcat based application named "ABCD" here at client site that we want OAM 11gR2 PS1 to integrate with for SSO purposes. I have successfully configured OHS to reverse proxy requests to Apache Tomcat server whenever somebody tries to access the application URL but still, I am getting the application login page once I have successfully authenticated on OAM SSO login page. The Tomcat based application is authenticating users against a "UserDatabase realm".
I know in terms of weblogic application, there is an OAM identity asserter provider which then populates the User Principal for the java environment with the authenticated OAM user. But there is no such OAM identity provider for Tomcat.
So my question is, is there an provider (or Tomcat equivalent) which will entrust authentication to a header, that could be used to populate the Java User Principal from the OAM_REMOTE_USER header? Is the weblogic equivalent of authentication providers present in tomcat as well? Are those called valves?
Please advise to the earliest.
Thanks !!

Aakash,
I did follow the 4 steps that you mentioned to me. Out of the 4 that you had mentioned, I already had the webgate in place on OHS server and I was already passing the remote_user http header in oam policy as action.
As part of Step #2: Install mod_jk plugin on OHS server that you mentioned
1.) I downloaded the tomcat connector - tomcat-connectors-1.2.37-src
2.) I had to run ./configure,make, make install on my OHS server which runs on RHEL 6. It created the mod_jk.so file. I pasted it in the needed folder.
3.) I then created the httpd.conf file and workers.properties file as said in the connector docs.
4.) Restarted OHS.
As part of Step #3: Configure tomcat's ajp connector that you mentioned and I went through all the links pasted below but didn't find actually what needs to be in place to configure tomcat's ajp connector. I do see in the server.xml of tomcat app server that the ajp 1.3 protocol is supported:
http://tomcat.apache.org/tomcat-4.0-doc/config/ajp.html
http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s8
http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html
http://www.mulesoft.com/understanding-tomcat-connectors
<!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
Do we need to disable the HTTP protocol in Tomcat and keep only AJP connector enabled? If yes, how to do that?
I am trying to connect to the application from OHS server like so I am using the http protocal right? How should I use the ajp protocol to connect to tomcat application? 
http://ohs-host:ohs-port/abcd
Thanks !!!!!

Similar Messages

  • How to protect an application running on IIS with OAM 11gR2

    Hello Gurus,
    I have a question regarding protecting an application running on IIS with OAM 11gR2. We have an OHS server running and all the requests from the users are coming to this OHS server webgate for them to login using the SSO login page. These is all solaris. I am protecting other applications like pplsoft moduels with this OHS instance and OAM server. There is another application that I need to protect which is itself running on IIS windows machine. I need guidance as to -
    1.) Do I need to install a windows version of webgate to protect this IIS based application?
    2.) Or I can still protect and proxy requests from this application to current OHS instance? How can I do this?
    3.) Or Do I need to proxy requests directly from IIS to OAM weblogic server?
    Please advise to the earliest as this is an urgent issue.
    Thanks !!

    From your description it is not clear how exactly architecture looks like
    We have an OHS server running and all the requests from the users are coming to this OHS server webgate for them to login using the SSO login page.
    is this OHS centralized login farm ? (Case 1)
    OR is this OHS server (with webgate) acting as virtual web server hosting multiple web sites so that request to any site passes through this OHS/webgate (Case 2)
    1.) Do I need to install a windows version of webgate to protect this IIS based application?
    If case 1 then you need to install 10g webgate on top of IIS server to protect this application
    If case 2 then you can just proxy request from OHS to IIS server. As every request passes through OHS user will be authenticated before request hits IIS
    Look at Product documentation for virtual web sites : http://docs.oracle.com/cd/E27559_01/admin.1112/e27239/shared.htm#autoId12
    It has steps to protect virtual web sites.
    Also you need to make sure no one hits IIIS web sites directly.
    Hope this helps

  • How to protect an application running on weblogic through OAM

    I have a requirement where in I need to protect an application (URL/root) deployed on weblogic through Oracle Access Manager.
    Here's what I did:
    Installed webgate on the Host where the application is deployed.
    Configured the webgate on Access System Console.
    Configured the policy domain -
    a) Mentioned the Resource type and URL to be protected
    b) Authentication Type (Basic)
    c) Autherization Rules (Anyone can acess)
    Issue: When I try to access the application http://<hostname>:7001/myapp
    I expect the webgate/OAM to intercept this request and challenge the user with the basic authentication
    but the request is carried through and the Home page of myapp is displayed.
    Do I need to do some configurations in the webserver (httpd.conf) or deployment descriptors in the application server to get the authentication?
    The application above can also be substituted with Oracle Identity Manager, where I'm getting the same result. I'm able to view OIM Home page without prior authentication. I tried protecting with the following pattern <host variation>/xlWebApp
    I am new to Oracle Access Manager and looking for some guidance.
    Thanks

    Hi Joe,
    1. Please elaborate step2 or guide me to a link where I can configure reverse proxy from Apache Webserver to weblogic. I think here's where I'm going wrong.
    For more details on proxy refer to these links:
    http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs90/plugins/apache.html#119517
    OHS to Weblogic Reverse Proxy configuration Problem
    After this configuration, won't I be able to access the application /myapp running on weblogic through port 7001 and will I have access to it only on port 80 (web s erver default port)?
    You will be able to access the application through 7001, but the request will not be intercepted by OAM. The request will be processed directly by your myApp.
    2. I did some reading and found some instructions on using weblogic SSPI plugin. Is this required at all? When is this used?
    You can use SSPI Connector if you want to protect the weblogic port. i.e., OAM intercepts the request when you access the application on 7001 port.
    Hope this helps
    Hrushi

  • How to init an application scope backing bean once app server startup?

    Hi guys,
    I got an application scope backing bean but I don't know how to initialize it once the app server startup ! I need all the webpage to be able to get the 'defaultCountry' value once the app server startup !
    <managed-bean>
    <managed-bean-name>applicationScopeBean</managed-bean-name>
    <managed-bean-class>com.borneo.webapp.action.ApplicationScopeBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    <managed-property>
    <property-name>defaultCountry</property-name>
                   <property-class>java.lang.String</property-class>
    <value>Singapore</value>
    </managed-property>
    </managed-bean>
    Pls help, Thanks !
    regards,
    Mark

    write a context listener and set up your web.xml as such
    <listener>
    <listener-class>com.package.ContextListener</listener-class>
    </listener>
    Then your class should inmplement ServletContextListener interface.
    The 2 methods need to be implemented
    public void contextDestroyed(ServletContextEvent sc_event) { }
    public void contextInitialized(ServletContextEvent sc_event) { }
    Hope that helps

  • How to protect custom applications using oracle access manager?

    Can someone brief me on how to protect custom applications using oracle access manager?

    Is the Custom application a Web Application running on certified platform? If its Web Application then its no different you have to configure the access policies with http(s) as resource type.
    If its not a web application you can write Custom access Gate and then implement. You would configure the policies similar to Web application (you can define your ouwn resource type if you like) and in the custom web gate you will use Access server SDK API to validate the access rules.
    Thanks
    Ram

  • How can you play applications run on flash player

    How you can play applications run on flash player

    This topic with suggestions as to alternatives and workarounds has been covered here many times already. Search this forum for "Flash" and you will find many threads on the issue.
    Regards.

  • How do I show applications running in the background? And how do I close them down? In class, the instructor press something but she did not go into Settings. Does anyone know?

    How do I show applications running in the background? And how do I close them down? In class, the instructor press something but she did not go into Settings. Does anyone know?

    Double-click the home button that will bring up all the applications in the background.
    To close then you swipe the application upward and it will close.

  • How to protect web application from piracy?

    I m looking for solution to protect Web application from piracy.
    I want my application run on web server for which it is built, &
    it musn't run on any other web server.
    how can i protect my web application from piracy?.
    Our .Net applications we protect using Hardware ID binding ,
    How can i protect J2EE applications?

    Run it on your own server is the simple and only secure solution.

  • How to protect java application

    Hello all,
    Could you give me some clues on how to protect a java application?
    By license keys ? how to protect application by license keys? I am not sure about Signing JAR Files, is it what I need?
    Any better way than using license keys to protect a java application?
    Thanks.

    >
    Could you give me some clues on how to protect a java application?
    >
    You might want to look into obfuscators. They won't stop decompiling but they can make it hard to understand the decompiled code.
    Proguard has a good reputation
    http://proguard.sourceforge.net/
    >
    ProGuard is a free Java class file shrinker, optimizer, obfuscator, and preverifier. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. Finally, it preverifies the processed code for Java 6 or for Java Micro Edition.

  • How to avoid of application running on Oracle 10g to be copied?

    I am a newbie to the security issues, so I need your help, please, where to start / what to read:
    I have an application running across many customers on Oracle 10g. I have faced lately that our users
    can use their daily backups to establish a totaly new database on a same / different server
    and point our application to use it as well.
    Is there any way to avoid it? F.e. I thought to use SELECT * FROM v$instance; to get the server instance details, and
    in result with some other function to obtain, let say, local server's (WIN2003) details,
    such as HD Serial Number, MAC number or so and then to check these values each time user runs the application.
    Is it the correct way? What are the basics here at all?
    Many thanks in advance to all!

    A lot of enterprises, however, actively avoid systems which are locked down to a particular server for very legitimate reasons. If my data center dies in the middle of the night, I sure don't want to have to call your mobile phone so that you can get to a computer, log in to the office network, and get me a new key so that I can finish my emergency failover. If I've got dozens of applications, I absolutely don't want to do that with dozens of different vendors.
    It sounds like your problem, though, isn't that users are installing your software on multiple computers it's that they are accessing functionality they haven't licensed. That is generally a much easier problem to solve and doesn't require you to lock anything down to a particular machine. You can create a table LICENSED_CONTENT, for example,
    CREATE TABLE licensed_content (
      client_id    NUMBER,
      content_type VARCHAR2(30),
      key          RAW(128)
    )In this case, KEY is, say, a hash (using the DBMS_CRYPTO or DBMS_OBFUSCATION_TOOLKIT packages if you'd like) of the client_id, content_type, and a bit of salt (i.e. a fixed string that only you know). When you sell a license to manage diamond content, you provide a script that inserts the appropriate row in the LICENSED_CONTENT table. When your application starts up, it reads the LICENSED_CONTENT table and verifies the hash before allowing users to access that type of content. This allows legitimate customers to move the software from one system to another but prevents them from accessing new functionality without a new license.
    Justin

  • How to protect SAP Application Tables and Reports in R/3

    Hi Gurus,
                 Any one please explain me detail how to protect tables in R/3 with different senarios.
                  How to protect reports in SAP R/3 without assigning SA38 transaction access
                  How to protect Program in SAP R/3 in R/3

    Hello Happyman,
    <b>What do you mean by Protect Table, Program and Report?</b>
    Let me ask you one base Question, On which area are you working? Are you from functional side or Technical side (Developement or Basis guy)?
    This is very clear cut answer that with the restricted autorization you can protect table and programs. Do not provide the change autorization.
    CATCH your BASIS guy and he will do rest of the things. Just explain him what are you want to protect.
    Hope this helps.
    Regards
    Arif Mansuri

  • How to set Different applications running on the same computer to use different Gateways?

    Dear All,
    I would like to have different applications running on the same computer to use different Gateways (both gateways are in the same subnet).
    Is it possible in Windows7 with / without a third-party utility?
    Current scenario & requirements:
    I have two internet connections. Both are in the same subnet (192.168.1.0/24) and connected to the same LAN switch
    Gateway for the first connection is 192.168.1.1
    Gateway for the second connection is 192.168.1.2
    I need to set my chrome browser & google talk to use the gateway 192.168.1.1
    I need to set my IE & skype to use the gateway 192.168.1.2
    Is it possible? Answers are appreciated!!
    Regards,
    Anees

    Hi,
    I agree with Bill. Gateway is essentially an IP address for one network to other networks. For example, you have two networks: network A and network B, to make the two networks communicate with each other, you must go through Gateway. That is, as long
    as you set Gateway, then you can make the two networks communicate with each other. The ip address for Gateway is the ip of device with routing enabled. One host machine can own multiple gateways. 
    Andy Altmann
    TechNet Community Support

  • Cannot run application in JSC - Cannot start app server

    I have 4 separate JSF applications developed in JSC.
    On occasion, I have a problem starting the application server and get a popup saying to check for misassigned port names and contents of domain.xml.
    Whenever this happens, a system reboot seems to clear up the problem until now.
    Now, rebooting does not help.
    I have tried all 4 projects after rebooting and none of them will start.
    I do not know anything about the workings of the server, so I have not changed any of the server files since the time that it was working.
    I have attached the server log below.
    Does anyone have a clue as to what the problem is and how to resolve it?
    Thanks
    ==========================================================
    Server log file
    [#|2007-06-21T12:37:04.618-0500|WARNING|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER005:Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop.  Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components.  |#]
    [#|2007-06-21T12:37:04.628-0500|INFO|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|
    C:/Program Files/Sun/Creator2_1/java\bin\java
    -client
    -Xmx512m
    -XX:NewRatio=2
    -Dcom.sun.aas.defaultLogFile=C:/Program Files/Sun/Creator2_1/SunAppServer8/domains/creator/logs/server.log
    -Djava.endorsed.dirs=C:/Program Files/Sun/Creator2_1/SunAppServer8/lib/endorsed
    -Djava.security.policy=C:/Program Files/Sun/Creator2_1/SunAppServer8/domains/creator/config/server.policy
    -Djava.security.auth.login.config=C:/Program Files/Sun/Creator2_1/SunAppServer8/domains/creator/config/login.conf
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Djavax.net.ssl.keyStore=C:/Program Files/Sun/Creator2_1/SunAppServer8/domains/creator/config/keystore.jks
    -Djavax.net.ssl.trustStore=C:/Program Files/Sun/Creator2_1/SunAppServer8/domains/creator/config/cacerts.jks
    -Djava.ext.dirs=C:/Program Files/Sun/Creator2_1/java/jre/lib/ext;C:/Program Files/Sun/Creator2_1/SunAppServer8/domains/creator/lib/ext;C:/Program Files/Sun/Creator2_1/SunAppServer8/derby/lib
    -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
    -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
    -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    -Dcom.sun.aas.configName=server-config
    -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
    -Ddomain.name=creator
    -Djmx.invoke.getters=true
    -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
    -Dcom.sun.aas.promptForIdentity=true
    -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
    -Dcom.sun.aas.instanceRoot=C:/Program Files/Sun/Creator2_1/SunAppServer8/domains/creator
    -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    -Dcom.sun.aas.domainName=creator
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Dproduct.name=Sun-Java-System/Application-Server
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.faces,javax.servlet.jsp.jstl,javax.xml.bind,javax.help
    -Dcom.sun.aas.configRoot=C:/Program Files/Sun/Creator2_1/SunAppServer8/config
    -Djava.library.path=C:\Program Files\Sun\Creator2_1\java\jre\bin\client;C:\Program Files\Sun\Creator2_1\SunAppServer8\lib;C:\Program Files\Sun\Creator2_1\SunAppServer8\lib;C:\Program Files\Sun\Creator2_1\java\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Sun\Creator2_1\SunAppServer8\lib;C:\Program Files\Sun\Creator2_1\SunAppServer8\bin;C:\Program Files\Sun\Creator2_1\SunAppServer8\lib;C:\Program Files\Sun\Creator2_1\SunAppServer8\bin;C:\Program Files\Sun\Creator2_1\SunAppServer8\bin;C:\Program Files\Sun\Creator2_1\SunAppServer8\bin;C:\oracle\ora92\bin;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Common Files\Sonic Shared;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\PROGRA~1\CA\Common\SCANEN~1;C:\Program Files\Visual Networks\Dial Analysis\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\oracle\ora92\bin;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Common Files\Sonic Shared;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\PROGRA~1\CA\Common\SCANEN~1;C:\Program Files\Visual Networks\Dial Analysis\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Sun\AppServer\bin;C:\j2sdk1.4.2_03\bin
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -cp
    C:/Program Files/Sun/Creator2_1/java/lib/tools.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib/appserv-rt.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\activation.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\admin-cli.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-admin.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-assemblytool_es.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-assemblytool_fr.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-assemblytool_ja.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-assemblytool_ko.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-assemblytool_zh.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-assemblytool_zh_CN.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-cmp.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-cmp_es.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-cmp_fr.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-cmp_ja.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-cmp_ko.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-cmp_zh.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-cmp_zh_CN.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-env.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-ext.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-jstl.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-rt_es.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-rt_fr.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-rt_ja.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-rt_ko.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-rt_zh.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-rt_zh_CN.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\appserv-upgrade.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\commons-launcher.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\commons-launcher_es.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\commons-launcher_fr.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\commons-launcher_ja.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\commons-launcher_ko.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\commons-launcher_zh.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\commons-launcher_zh_CN.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\commons-logging.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\deployhelp_es.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\deployhelp_fr.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\deployhelp_ja.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\deployhelp_ko.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\deployhelp_zh.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\deployhelp_zh_CN.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\dom.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\driveradapter.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\j2ee-svc.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\j2ee.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\j2ee_es.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\j2ee_fr.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\j2ee_ja.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\j2ee_ko.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\j2ee_zh.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\j2ee_zh_CN.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\jax-qname.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\jaxr-api.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\jaxr-impl.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\jaxrpc-api.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\jaxrpc-impl.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\jdic_0_9.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\jmxremote.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\jmxremote_optional.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\jsf-api.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\jsf-impl.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\mail.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\PEtray.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\relaxngDatatype.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\rmissl.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\saaj-api.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\saaj-impl.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\smbase.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\smdb2.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\sminformix.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\smoracle.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\smresource.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\smspy.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\smsqlserver.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\smsybase.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\smutil.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\xalan.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\xercesImpl.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib\xsdlib.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib/install/applications/jmsra/imqjmsra.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/imq/lib/jaxm-api.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/imq/lib/fscontext.jar;C:/Program Files/Sun/Creator2_1/SunAppServer8/lib/ant/lib/ant.jar
    com.sun.rave.tray.RavePEMain
    start
    display
    native|#]
    [#|2007-06-21T12:38:10.633-0500|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5035: Timed out after 60000 milliseconds while trying to verify if the JMS service startup succeeded.|#]
    [#|2007-06-21T12:38:10.633-0500|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5037: Check permissions of MQ instance directory C:\Program Files\Sun\Creator2_1\SunAppServer8\imq\var\instances|#]
    [#|2007-06-21T12:38:10.633-0500|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5036: More details may be available in the log file for the JMS service broker instance imqbroker. Please refer to the JMS provider documentation for the exact location of this log file.|#]
    [#|2007-06-21T12:38:10.643-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|UnknownException during startup. Disable quick startup by setting system property com.sun.enterprise.server.ss.ASQuickStartup to false
    com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation [127.0.0.1:28676]. - cause: java.net.ConnectException: Connection refused: no further information
         at com.sun.enterprise.jms.JmsProviderLifecycle.checkProviderStartup(JmsProviderLifecycle.java:427)
         at com.sun.enterprise.server.ss.ASLazyKernel.startASSocketServices(ASLazyKernel.java:54)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:274)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
         at com.sun.rave.tray.RavePEMain.main(RavePEMain.java:37)
    Caused by: com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [127.0.0.1:28676]. - cause: java.net.ConnectException: Connection refused: no further information
         at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSConnectException(ExceptionHandler.java:233)
         at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleConnectException(ExceptionHandler.java:180)
         at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:191)
         at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:116)
         at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:54)
         at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:61)
         at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:102)
         at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionOld(ConnectionInitiator.java:291)
         at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:113)
         at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:98)
         at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:613)
         at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:1194)
         at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1949)
         at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:745)
         at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:315)
         at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
         at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
         at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:72)
         at com.sun.messaging.jmq.admin.jmsspi.JMSAdminImpl.pingProvider(JMSAdminImpl.java:783)
         at com.sun.enterprise.jms.JmsProviderLifecycle.waitForJmsProvider(JmsProviderLifecycle.java:335)
         at com.sun.enterprise.jms.JmsProviderLifecycle.checkProviderStartup(JmsProviderLifecycle.java:396)
         ... 4 more
    Caused by: java.net.ConnectException: Connection refused: no further information
         at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
         at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:525)
         at com.sun.enterprise.server.ss.ASClientSocketImpl.connect(ASClientSocketImpl.java:181)
         at java.net.Socket.connect(Socket.java:507)
         at java.net.Socket.connect(Socket.java:457)
         at java.net.Socket.<init>(Socket.java:365)
         at java.net.Socket.<init>(Socket.java:178)
         at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:171)
         ... 22 more
    |#]
    [#|2007-06-21T12:38:10.663-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|Exception while stoppping Lifecycle.
    com.sun.appserv.server.ServerLifecycleException: MQ startup failed :[C4003]: Error occurred on connection creation [127.0.0.1:28676]. - cause: java.net.ConnectException: Connection refused: no further information
         at com.sun.enterprise.jms.JmsProviderLifecycle.checkProviderStartup(JmsProviderLifecycle.java:376)
         at com.sun.enterprise.jms.JmsProviderLifecycle.onShutdown(JmsProviderLifecycle.java:445)
         at com.sun.enterprise.server.ss.ASLazyKernel.stopLifecycle(ASLazyKernel.java:178)
         at com.sun.enterprise.server.ss.ASLazyKernel.stopMQ(ASLazyKernel.java:172)
         at com.sun.enterprise.server.ss.ASLazyKernel.exitServer(ASLazyKernel.java:74)
         at com.sun.enterprise.server.ss.ASLazyKernel.startASSocketServices(ASLazyKernel.java:67)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:274)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
         at com.sun.rave.tray.RavePEMain.main(RavePEMain.java:37)
    |#]

    I'm having the same problem again.
    I tried using pe-start.bat -reset and it worked once, but not any more.
    Here is the result from running pe-start.bat -reset.
    If anyone has any clue as to why I cannot get the app server to start in JSC and how I can fix it, PLEASE let me know.
    I really don't want to do a reinstall.
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Administrator>cd \
    C:\>cd \Program Files\Sun\Creator2_1\bin
    C:\Program Files\Sun\Creator2_1\bin>pe-start -reset
    The domain (creator) isn't running.
    CLI157 Could not stop the domain creator.
    WARNING: The --adminpassword option is insecure and should not be used since it
    can compromise your password. Please use either the command prompt or the --pas
    swordfile option.
    Domain creator created.
    WARNING: Existing user preference file .asadminprefs has been detected in your h
    ome directory. Application Server administration commands will attempt to use a
    dmin user name and password stored in this file and this may cause unexpected be
    havior and security issues. It is recommended that you delete this file prior t
    o using this new domain, creator.
    Compiler warnings:
    line 44: Attribute 'debug-options' outside of element.
    line 62: Attribute 'port' outside of element.
    line 73: Attribute 'port' outside of element.
    line 84: Attribute 'port' outside of element.
    line 87: Attribute 'address' outside of element.
    line 108: Attribute 'port' outside of element.
    line 111: Attribute 'address' outside of element.
    line 122: Attribute 'port' outside of element.
    line 133: Attribute 'port' outside of element.
    line 151: Attribute 'start-args' outside of element.
    line 162: Attribute 'port' outside of element.
    line 165: Attribute 'host' outside of element.
    line 179: Attribute 'port' outside of element.
    Starting Domain creator, please wait.
    Log redirected to C:\Program Files\Sun\Creator2_1\SunAppServer8\domains\creator\
    logs\server.log.
    Domain creator is ready to receive client requests. Additional services are bein
    g started in background.
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Unable to connect to admin-server. Please check if the server is up and running
    and that the host and port provided are correct.
    CLI137 Command create-jdbc-connection-pool failed.
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Unable to connect to admin-server. Please check if the server is up and running
    and that the host and port provided are correct.
    CLI137 Command create-jdbc-resource failed.
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Unable to connect to admin-server. Please check if the server is up and running
    and that the host and port provided are correct.
    CLI137 Command create-jdbc-connection-pool failed.
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Unable to connect to admin-server. Please check if the server is up and running
    and that the host and port provided are correct.
    CLI137 Command create-jdbc-resource failed.
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Oct 4, 2007 9:43:07 AM com.sun.appserv.management.client.ProxyFactory getInstanc
    e
    SEVERE: ProxyFactory.getInstance: Failure trying to create a new ProxyFactory: j
    ava.io.IOException: Unable to connect to admin-server. Please check if the serv
    er is up and running and that the host and port provided are correct.
    CLI171 Command deploy failed : Deployment of application failed - java.io.IOExce
    ption: Unable to connect to admin-server. Please check if the server is up and
    running and that the host and port provided are correct.; requested operation ca
    nnot be completed
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Oct 4, 2007 9:43:23 AM com.sun.appserv.management.client.ProxyFactory getInstanc
    e
    SEVERE: ProxyFactory.getInstance: Failure trying to create a new ProxyFactory: j
    ava.io.IOException: Unable to connect to admin-server. Please check if the serv
    er is up and running and that the host and port provided are correct.
    CLI171 Command deploy failed : Deployment of application failed - java.io.IOExce
    ption: Unable to connect to admin-server. Please check if the server is up and
    running and that the host and port provided are correct.; requested operation ca
    nnot be completed
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Oct 4, 2007 9:43:39 AM com.sun.appserv.management.client.ProxyFactory getInstanc
    e
    SEVERE: ProxyFactory.getInstance: Failure trying to create a new ProxyFactory: j
    ava.io.IOException: Unable to connect to admin-server. Please check if the serv
    er is up and running and that the host and port provided are correct.
    CLI171 Command deploy failed : Deployment of application failed - java.io.IOExce
    ption: Unable to connect to admin-server. Please check if the server is up and
    running and that the host and port provided are correct.; requested operation ca
    nnot be completed
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Oct 4, 2007 9:43:55 AM com.sun.appserv.management.client.ProxyFactory getInstanc
    e
    SEVERE: ProxyFactory.getInstance: Failure trying to create a new ProxyFactory: j
    ava.io.IOException: Unable to connect to admin-server. Please check if the serv
    er is up and running and that the host and port provided are correct.
    CLI171 Command deploy failed : Deployment of application failed - java.io.IOExce
    ption: Unable to connect to admin-server. Please check if the server is up and
    running and that the host and port provided are correct.; requested operation ca
    nnot be completed
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Oct 4, 2007 9:44:10 AM com.sun.appserv.management.client.ProxyFactory getInstanc
    e
    SEVERE: ProxyFactory.getInstance: Failure trying to create a new ProxyFactory: j
    ava.io.IOException: Unable to connect to admin-server. Please check if the serv
    er is up and running and that the host and port provided are correct.
    CLI171 Command deploy failed : Deployment of application failed - java.io.IOExce
    ption: Unable to connect to admin-server. Please check if the server is up and
    running and that the host and port provided are correct.; requested operation ca
    nnot be completed
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Oct 4, 2007 9:44:26 AM com.sun.appserv.management.client.ProxyFactory getInstanc
    e
    SEVERE: ProxyFactory.getInstance: Failure trying to create a new ProxyFactory: j
    ava.io.IOException: Unable to connect to admin-server. Please check if the serv
    er is up and running and that the host and port provided are correct.
    CLI171 Command deploy failed : Deployment of application failed - java.io.IOExce
    ption: Unable to connect to admin-server. Please check if the server is up and
    running and that the host and port provided are correct.; requested operation ca
    nnot be completed
    WARNING: The --password option is insecure and should not be used since it can c
    ompromise your password. Please use either the command prompt or the --password
    file option.
    Oct 4, 2007 9:44:42 AM com.sun.appserv.management.client.ProxyFactory getInstanc
    e
    SEVERE: ProxyFactory.getInstance: Failure trying to create a new ProxyFactory: j
    ava.io.IOException: Unable to connect to admin-server. Please check if the serv
    er is up and running and that the host and port provided are correct.
    CLI171 Command deploy failed : Deployment of application failed - java.io.IOExce
    ption: Unable to connect to admin-server. Please check if the server is up and
    running and that the host and port provided are correct.; requested operation ca
    nnot be completed
    C:\Program Files\Sun\Creator2_1\bin>

  • Multiple applications running on the same portal server

    Environment : EP 7.0 SPS12
    We have multiple portal applications running on the same portal with different login page for each application. On one of our employee portal, we want to put a login page link for another portal application running on the same portal which requires a different user ID and password to access that application.
    The problem we are encountering is, the login page link we put in our employee portal is bypassing the login page for the other application and using the same session as the employee portal. What can I do to make sure application login page show up when accessing the link from employee portal?
    Your help is really appreciated.
    Thanks
    Bhabesh Patel

    Hi,
    thanks for the clarification. I think I do understand now and the only thing I can think of is to delete the session cookie.
    The problem with that is that you would not be able to use "simple" links (e.g. you could not just call the URL of the other application, but you would have to create some application (a simply JSP would probably be fine) that deletes the cookie and redirects you to the new application.
    An other option would be to create DNS aliases that so that the session cookie is not sent (but depending on your setup this might have other drawbacks). Since the cookies are not valid for the other domains you would always start with a new login when you access a new application (e.g. the employee portal has the url portal.employee.company.com and the customer portal has portal.cutomer.company.com. Then (if the settings for ume.logon.security.relax_domain.level,see http://help.sap.com/saphelp_nw70/helpdata/en/5e/473d4124b08739e10000000a1550b0/frameset.htm is correct)
    Hope this helps,
    Holger.

  • Exception when access JSF application deployed on apache tomcat

    Hi,
    hopefully u all will b fine.
    I am new in Java Web developement and working on JSF... I made my first hello application of JSF... but when i try to access that from browser, following exception is shown in the browser window... (I am using apache tomcat 5.5.17 and JSF 1.1)
    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: Servlet.init() for servlet Faces Servlet threw exception
         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:802)
    root cause :
    javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:47)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         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:802)
    root cause:
    java.lang.NullPointerException
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:47)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         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:802)
    note: The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    I placed the jsp files in "apache-tomcat-5.5.17\webapps\MyProject\"
    and web.xml and faces-config file at "apache-tomcat-5.5.17\webapps\MyProject\WEB-INF\"
    library files of JSF ("jsf-api.jar", "jsf-impl.jar" and "jstl.jar") at "apache-tomcat-5.5.17\common\lib" also i tried by placing these at "apache-tomcat-5.5.17\webapps\MyProject\WEB-INF\lib"
    Please help me out here...
    Thanks
    Imran

    Maybe your web.xml is wrong. Doublecheck it.

Maybe you are looking for