Deploying to shared tomcat instance

Hi All
I'm new to servlet, and even newer to Creator. I'm trying to deploy a relatively simple two page application (Compiles and deploys with no problem locally on sun app server) to a shared instance of tomcat. This means that I can't simply send over the WAR file and the the jstl.jar and standard.jar files, but i have to copy the class files directly into the remote ~/public_html/WEB-INF/classes/ dir. what i've done is basically copied the entire local /build/web/ directory into my public_html directory. All dependant libraries and (i think)xml config files are in the correct places. When I try to get to the app I get redirected to a page with a null pointer exception originating at the constructor of the Page1 of the app (bottom of page). Where (Page1.java:166) is the constructor of the main page of the app. I'm guessing that its something that I'm missing in the xml config files which are simply the ones generated by creator.
Thanks in advance for any help.
andy
java.lang.NullPointerException
     com.sun.rave.web.ui.appbase.AbstractPageBean.<init>(AbstractPageBean.java:85)
     pnp_census.Page1.<init>(Page1.java:166)
     sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     java.lang.reflect.Constructor.newInstance(Constructor.java:494)
     java.lang.Class.newInstance0(Class.java:350)
     java.lang.Class.newInstance(Class.java:303)
     org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:369)
     org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Going through the code, I'm seeing that the exception is being thrown here: in the constructor of AbstractPageBean (Super of Page1) :
Map map = FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
Does anybody have any Idea which xml conf file may effect this? or why it would be different between SunAppServer and Tomcat?
Thanks

Similar Messages

  • Installing BlazeDS on shared tomcat instance

    Is it possible to successfully install BlazeDS on a shared Tomcat instance, where I may not be able to add files to the tomcat/lib folder or modify the catalina.properties file? I need tu support custom authentication, as described here:
       http://opensource.adobe.com/wiki/display/blazeds/Installation+Guide#InstallationGuide-Addi tionalserverspecificconfiguration
    which seems to require modification to the lib folder and the catalina.properties file.
    -JM

    Do you get any error messages on the Tomcat logs when the app is started?
    Johnking08 wrote:
     I created a simple Java testing class and put it in BlazeDS war file.
    What do you mean by this? Have you deployed the blazeds.war and your own war file to the server or did you somehow put your code inside the blazeds.war?

  • Deploying servlet on Tomcat using "ant install" not working. Please help.

    Hello. Normally I can find answers by using search, but I can't today for some reason. So please bare with me if this has been mentioned before. I will try to provide as much info as possible so that helping me isn't too much a chore. Thank you.
    I have downloaded and installed the JWSDP 1.3. and Tomcat is running. I am also using Ant 1.5.4 (previous installation - not one included with JWSDP) and modeled my build.xml file after the template provided here:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt.
    When I run ant on my respository, everything builds fine. But when I run Ant with the install target, I get the following error:
    BUILD FAILED
    file:C:/owl/build.xml:366: java.io.IOException: Server returned HTTP response co
    de: 401 for URL: http://localhost:8080/manager/deploy?path=%2Fowl&war=file%3A%2F
    %2FC%3A%5Cowl%2Fbuild
    Here is line 366 build.xml:
    localWar="file://${build.home}"/>
    ...which is included in this block for the target "install":
    <target name="install" depends="compile"
    description="Install application to servlet container">
    <deploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"
    localWar="file://${build.home}"/>
    </target>
    When I point my brower to the url located in the error verbose, I get the following:
    FAIL - Encountered exception java.lang.NullPointerException
    I am trying to get my environment set up correctly before I start spending time developing servlets, but I am getting tempted to just develop to servlets and "manually" installing/deploying them either by copying and pasting or by using the Tomcat manager. I would really like to do everything from Ant though if possible. Please help.

    I don't think this is at all correct:
    localWar="file://${build.home}"/>You've got to create a real WAR file - a JAR file with WEB-INF and all its minions inside it:
    http://access1.sun.com/techarticles/simple.WAR.html
    That's the file you need to refer to there. You can manage that with Ant too, of course.
    Here's what my Ant build.xml looks like for Web apps (there's a build-web.properties file that follows):
    build-web.xml
    <project name="Tomcat Build Tasks" default="clean" basedir=".">
        <target name="init-props">
            <tstamp>
                <format property="touch.time" pattern="MM/dd/yyyy hh:mm aa" />
            </tstamp>
            <filterset id="ant.filters">
                <filter token="DATE" value="${TODAY}" />
                <filter token="TIME" value="${TSTAMP}" />
            </filterset>
            <!-- Load in all the settings in the properties file -->
            <property file="build.properties" />
            <!-- Load in all Tomcat settings in the properties file -->
            <property file="build-web.properties" />
        </target>
        <target name="prepare" depends="init-props">
            <mkdir dir="${war.classes}"/>
            <mkdir dir="${war.lib}"/>       
            <mkdir dir="${manifest}" />
        </target>
        <target name="clean" depends="init-props" description="clean up temporary files">
            <delete file="${project}.war" />   
            <delete dir="${war.root}"/>
            <delete dir="${manifest}" />
        </target>
        <target name="set-tomcat-classpath" depends="prepare">
            <path id="tomcat.class.path">                  
                <fileset dir="${tomcat.home}/bin">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${tomcat.home}/shared/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${tomcat.home}/common/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${tomcat.home}/server/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${ant.home}/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
            </path>              
        </target>
        <target name="create" depends="set-tomcat-classpath" description="create the war file">
            <!-- All files at root level -->       
            <!-- Temporarily put the JSPs at root until you figure this out -->
            <copy todir="${war.root}">
                <fileset dir="${src.jsp}"/>
            </copy>
    <!--
            <copy todir="${war.root}">
                <fileset dir="${src.html}" includes="*.html"/>
            </copy>
    -->
            <copy todir="${war.root}/css">
                <fileset dir="${src.css}"/>
            </copy>
            <copy todir="${war.root}/images">
                <fileset dir="${src.images}"/>
            </copy>
            <copy todir="${war.root}/js">
                <fileset dir="${src.js}"/>
            </copy>
            <!-- All files at the WEB-INF level and below -->       
            <copy todir="${war.web}">
                <fileset dir="${src.etc}" includes="web.xml"/>
            </copy>
            <!-- All files in the CLASSPATH lib -->
            <copy todir="${war.web}/lib">
                <fileset dir="${src.lib}" includes="**/*.jar" excludes="**/*-tests.jar, **/junit.jar"/>
            </copy>
            <!-- Put the dispatcher XML in WEB-INF/config -->
            <copy todir="${war.web}/config">
                <fileset dir="${src.etc}" includes="${project}-config.xml"/>
            </copy>
            <!-- Put XSL stylesheets in WEB-INF/xsl -->
            <copy todir="${war.web}/xsl">
                <fileset dir="${src.xsl}" includes="**/*.xsl"/>
            </copy>
            <!-- Put the project JAR file in WEB-INF/lib -->
            <copy todir="${war.web}/lib">
                <fileset dir="${deploy}" includes="**/${project}.jar"/>
            </copy>
            <!-- Create the manifest -->
            <buildnumber />
            <manifest file="${manifest}/manifest.mf">
                <attribute name="Implementation-Title"      value="${project}" />
                <attribute name="Built-By"                  value="${user.name}"/>
                <attribute name="Build-Date"                value="${TODAY}" />
                <attribute name="Major-Version"             value="${major}" />
                <attribute name="Minor-Version"             value="${minor}" />
                <attribute name="Build-Number"              value="${build.number}" />
            </manifest>
            <!-- Create the WAR file -->
            <jar jarfile="${project}.war"
                 manifest="${manifest}/manifest.mf">
                <fileset dir="${war.root}"/>
                <metainf dir="${src.etc}" includes="context.xml"/>
            </jar>
        </target>
        <target name="create-tomcat-admin-tasks" depends="set-tomcat-classpath">
    <!--
            <pathconvert targetos="windows" refid="tomcat.class.path" property="converted.class.path" />
            <echo message="CLASSPATH: ${converted.class.path}" />
    -->       
            <taskdef name="install"     classname="org.apache.catalina.ant.InstallTask"     classpath="tomcat.class.path"/>
            <taskdef name="remove"      classname="org.apache.catalina.ant.RemoveTask"      classpath="tomcat.class.path"/>       
            <taskdef name="reload"      classname="org.apache.catalina.ant.ReloadTask"      classpath="tomcat.class.path"/>
            <taskdef name="deploy"      classname="org.apache.catalina.ant.DeployTask"      classpath="tomcat.class.path"/>       
            <taskdef name="undeploy"    classname="org.apache.catalina.ant.UndeployTask"    classpath="tomcat.class.path"/>       
            <taskdef name="start"       classname="org.apache.catalina.ant.StartTask"       classpath="tomcat.class.path"/>       
            <taskdef name="stop"        classname="org.apache.catalina.ant.StopTask"        classpath="tomcat.class.path"/>       
            <taskdef name="list"        classname="org.apache.catalina.ant.ListTask"        classpath="tomcat.class.path"/>       
            <taskdef name="resources"   classname="org.apache.catalina.ant.ResourcesTask"   classpath="tomcat.class.path"/>       
            <taskdef name="roles"       classname="org.apache.catalina.ant.RolesTask"       classpath="tomcat.class.path"/>
        </target>
        <target name="install" depends="create-tomcat-admin-tasks" description="install the war file on Tomcat">
            <install    url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}"
                        config="file:/${basedir}/${src.etc}/context.xml"
                        war="file:/${basedir}/${project}.war" />
        </target>
        <target name="remove" depends="create-tomcat-admin-tasks" description="remove the war file on Tomcat">
            <remove     url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="reload" depends="create-tomcat-admin-tasks" description="reload the war file on Tomcat">
            <reload     url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="deploy" depends="create-tomcat-admin-tasks" description="deploy the war file on Tomcat">
            <deploy    url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}"
                        config="file:/${basedir}/${src.etc}/context.xml"
                        war="file:/${basedir}/${project}.war" />
        </target>
        <target name="undeploy" depends="create-tomcat-admin-tasks" description="undeploy the war file on Tomcat">
            <undeploy   url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="start" depends="create-tomcat-admin-tasks" description="start an application on Tomcat">
            <start      url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}"/>
        </target>
        <target name="stop" depends="create-tomcat-admin-tasks" description="stop an application on Tomcat">
            <stop       url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="list" depends="create-tomcat-admin-tasks" description="list all applications running on Tomcat">
            <list       url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"/>
        </target>
        <target name="resources" depends="create-tomcat-admin-tasks" description="list all resources on Tomcat">
            <resources  url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"/>
        </target>
        <target name="data-sources" depends="create-tomcat-admin-tasks" description="list all data sources on Tomcat">
            <resources  url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        type="javax.sql.DataSource"/>
        </target>
        <target name="roles" depends="create-tomcat-admin-tasks" description="list all user roles on Tomcat">
            <roles      url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"/>
        </target>
    </project>
    build.properties
    # Properties file for setting up an Ant build.xml
    # Project specific items that change each time
    project=api-prototype
    major=1
    minor=0
    version=${major}.${minor}
    jar.name=${project}
    versiondate=${TODAY}
    # Directory structure (these should never change)
    bin=bin
    deploy=deploy
    doc=doc
    manifest=META-INF
    xml=xml
    # Everything under src should come out of a repository
    src=src
    src.bin=${src}/bin
    src.config=${src}/config
    src.data=${src}/data
    src.dtd=${src}/dtd
    src.java=${src}/java
    src.lib=${src}/lib
    src.profile=${src}/profile
    src.properties=${src}/properties
    src.schema=${src}/schema
    src.sql=${src}/sql
    src.templates=${src}/templates
    src.testdata=${src}/testdata
    src.xml=${src}/xml
    src.xsl=${src}/xsl
    # These are created and deleted by Ant each time
    javadocs=javadocs
    reports=reports
    output=output
    output.classes=${output}/classes
    output.lib=${output}/lib
    # Required for proper use of XDoclet
    xdoclet.home = C:/Tools/xdoclet-1.2b3
    build-web.properties
    war.root=war-root
    war.pages=${war.root}/pages
    war.web=${war.root}/WEB-INF
    war.classes=${war.web}/classes
    war.css=${war.web}/css
    war.js=${war.web}/js
    war.lib=${war.web}/lib
    war.tld=${war.web}/tld
    # Properties needed by Tomcat tasks
    ant.home =
    tomcat.home         =
    tomcat.manager.url  = http://localhost:8080/manager
    tomcat.username     =
    tomcat.password     = MOD

  • How to deploy JSPs in Tomcat 5.5

    hello all
    i am Mayuresh Trivedi. i don't know how to Deploy Jsps in Tomcat 5.5. i m using MYSql as Backend. i m trying to use "import" command in Jsp so it shows me error like under :
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Syntax error on token "import", delete this token
    Generated servlet error:
    Syntax error on token "import", delete this token
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         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.7 logs.
    so , can any body help me please ?

    hi
    first create a arbitrary folder in \webapp folder in tomcat home foder.
    for instance \webapp\myJSP
    second you must create a folder with this name : \WEB-INF under myJSP folder
    then make a web.xml in that
    so write in web.xml this :
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <description>
    myJSP
    </description>
    <display-name>JSP 2.0 Examples</display-name>

  • Trouble deploying application in Tomcat!

    When I try to open the deployed application in the TomCat webserver, it throws a HTTP 404 error!
    However, the same application is working fine in NetBeans, which has a bundled TomCat server!
    Where am I going wrong? The applications that come with Tomcat are working fine, but no matter whatever appl I deploy, it isnt working!

    First, thanks for the suggestions Nick! And I have tried each of these steps you mentioned!
    1) Check your app is deployed and running in Tomcat Web Application Manager. -- YES, IT IS! I CAN SEE THE APPLICATION, RELOAD IT, STOP IT, ETC!
    2) If not deployed, check log file in logs\stdout.log to find out why it didn't deploy. (How are you deploying? Copying the war file across to \webapps?) - I TRIED DEPLOYING THE WAR FILE, THEN I DEPLOYED AN APPL CREATING THE DIRECTORY STRUCTURE, ETC! STILL NO LUCK!
    3) Make sure you're definitely hitting the correct URL (including the context path, which should also be shown in Web Application Manager) - OF COURSE I AM; EVERY APPL I DEPLOY RETURNS 404! THE NATIVE APPLICATIONS HOWEVER WORK FINE
    4) Can you deploy and run any apps in your standalone Tomcat instance? - I DIDNT GET THIS BUT AN APPL WHICH WORKS PERFECTLY FINE IN NETBEANS, ISNT WORKING IN THE STANDALONE TOMCAT!
    5) Try deploying a really simple app to see if that works. - DID & FAILED!

  • Cannot deploy a shared library from jdeveloper to oracle webcenter spaces

    Hi guys,
    i used oracle jdeveloper 11.1.1.6  with extendwebcenterspaces workspace. I use WebcenterSpacesSharedLibExtension project.
    I have deployed with jdeveloper directly to webcenter by using a connection and deployed as shared library.
    Afther that i used DesignWebcenterSpaces and deployed with ant scripts: clean stage  and deploy as shared lib
    I get an error on deployment:
    Redeploying application webcenter ...
         [exec] <Sep 25, 2013 1:07:10 PM CEST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, webcenter#11.1.1.4.0 [archive: null], to WC_Spaces .>
         [exec] ..Failed to redeploy the application with status failed
         [exec] Current Status of your Deployment:
         [exec] Deployment command type: redeploy
         [exec] Deployment State       : failed
         [exec] Deployment Message     : weblogic.application.ModuleException: Failed to load webapp: '/wcsdocs'
         [exec] No stack trace available.
         [exec] None
         [exec] #########################################################
         [exec] #####     ReDeploy Spaces Failed #########
         [exec] #####     Contact support with Exception Stack #########
         [exec] #########################################################
         [exec]
    Can someone help with some fix for that error?
    I want to override the login page from webcenter spaces using CustomLandingPage project
    Also, i have tried the deployment by using SampleWebcenterSpacesExtensions workspace with WebcenterSpacesSharedLibExtension project and deployed with ant scripts: clean stage  and deploy as shared lib.
    Afther that i used DesignWebcenterSpaces and deployed with ant scripts: clean stage  and deploy as shared lib
    There the deployment succeed but i get an error on browser
    The error is:
    OracleJSP error: oracle.jsp.parse.JavaCodeException: Line # 13, oracle.jsp.parse.JspParseTagScriptlet@1dbc116
    Error: Java code in jsp source files is not allowed in ojsp.next mode.
    Thank you very much for help.

    ####<Sep 27, 2013 9:44:07 AM CEST> <Error> <Deployer> <webcenter-vm> <WC_Spaces> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <11d1def534ea1be0:-3d303652:141559d6da7:-8000-000000000000112a> <1380267847678> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1380267843425' for task '20'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: '/wcsdocs''
    weblogic.application.ModuleException: Failed to load webapp: '/wcsdocs'
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:395)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
        at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
        at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
        at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59)
        at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
        at weblogic.deploy.internal.targetserver.operations.RedeployOperation.createAndPrepareContainer(RedeployOperation.java:104)
        at weblogic.deploy.internal.targetserver.operations.RedeployOperation.doPrepare(RedeployOperation.java:128)
        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
        at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
        at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused By: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext@21596057[app:webcenter module:/wcsdocs path:/wcsdocs spec-version:2.5 version:11.1.1.4.0]", defined in weblogic.xml [Extension-Name: custom.webcenter.spaces, exact-match: false]
        at weblogic.servlet.internal.WebAppServletContext.processWebAppLibraries(WebAppServletContext.java:2750)
        at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:416)
        at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:494)
        at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:418)
        at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:384)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
        at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
        at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
        at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59)
        at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
        at weblogic.deploy.internal.targetserver.operations.RedeployOperation.createAndPrepareContainer(RedeployOperation.java:104)
        at weblogic.deploy.internal.targetserver.operations.RedeployOperation.doPrepare(RedeployOperation.java:128)
        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
        at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
        at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >

  • Multiple Tomcat instances on the same server

    Can we have multiple tomcat instances load balanced on the same physical box without VM. Has there been any such implementations. How can CMS be distributed across. What can the know architecture for the same.
    Regards
    Vijsy

    This can be done, but it really depends on the load balancer you use.
    There is no recommendation from BusinessObjects and you might want to consult the load balancer vendor for instructions and support.
    Regards
    Caroline

  • While deploying ear in home instance ORACLE10G EM console Base Exception

    while deploying ear in home instance through ORACLE10G EM console.
    i am getting this exception
    Deployment failed: Nested exception
    Resolution:
    Base Exception:
    com.evermind.server.rmi.OrionRemoteException
    Disconnected: Connection reset. Disconnected: Connection reset

    Have you tried to logout and login to EM?
    EM has known bugs that I also faced during application deployment.
    Have you tried to deploy from JDeveloper?

  • Deployment error in OC4J_Portal instance during install of o9iASW

    Hi,
    After the installation of the 9.0.2 infrastructure I've installed wireless. During the deployment of the webtool, customization, wirelessSDK in the OC4J_Portal instance I got the following error:
    Deploying application 'webtool' to OC4J instance 'OC4J_Portal'...
    ERROR: Deploy failed.
    Error message returned is: Instance: orawireless.portal.ucc.nl Message: See base exception for details.
    Base Exception:
    java.lang.NullPointerException:nullSee base exception for details.
    Deploying application 'customization' to OC4J instance 'OC4J_Portal'...
    ERROR: Caught exception during deploy.
    Deploying application 'wirelessSDK' to OC4J instance 'OC4J_Portal'...oracle.ias.sysmgmt.exception.TaskException: The
    configuration files for this Oracle9iAS instance are inconsistent with the
    configuration stored in the repository. In order to protect the repository,
    no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem
    is resolved. This condition arises when a prior operation was unsuccessful. Please check the logs located at
    ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating
    the configuration files on disk. Some possible causes are:
    * permissions on files
    * file contention issues on Windows NT
    * EMD and dcmctl running concurrently
    * internal Oracle error
    After resolving the problem that prevented DCM from updating the configuration
    files, you may use the dcmctl resyncInstance command to resolve the problem.
    Alternatively, you can stop and then restart the active dcmctl or EMD
    process and resyncInstance will automatically be performed.
    at oracle.ias.sysmgmt.task.TaskMaster.evaluate(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deployCommon(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.deploy(Unknown Source)
    at oracle.j2ee.tools.deploy.Oc4jDeploy.deploy(Unknown Source)
    at oracle.j2ee.tools.deploy.Oc4jDeploy.main(Unknown Source)
    ERROR: Caught exception during deploy.
    Deploying application 'studio' to OC4J instance 'OC4J_Portal'...oracle.ias.sysmgmt.exception.TaskException: The
    configuration files for this Oracle9iAS instance are inconsistent with the
    configuration stored in the repository. In order to protect the repository,
    no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem
    is resolved. This condition arises when a prior operation was unsuccessful. Please check the logs located at
    ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating
    the configuration files on disk. Some possible causes are:
    * permissions on files
    * file contention issues on Windows NT
    * EMD and dcmctl running concurrently
    * internal Oracle error
    After resolving the problem that prevented DCM from updating the configuration
    files, you may use the dcmctl resyncInstance command to resolve the problem.
    Alternatively, you can stop and then restart the active dcmctl or EMD
    process and resyncInstance will automatically be performed.
    at oracle.ias.sysmgmt.task.TaskMaster.evaluate(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deployCommon(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.deploy(Unknown Source)
    at oracle.j2ee.tools.deploy.Oc4jDeploy.deploy(Unknown Source)
    at oracle.j2ee.tools.deploy.Oc4jDeploy.main(Unknown Source)
    ERROR: Caught exception during deploy.
    Stopping OC4J instance 'OC4J_Portal'...oracle.ias.sysmgmt.exception.TaskException: The configuration files for this
    Oracle9iAS instance are inconsistent with the
    configuration stored in the repository. In order to protect the repository,
    no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem
    is resolved. This condition arises when a prior operation was unsuccessful. Please check the logs located at
    ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating
    the configuration files on disk. Some possible causes are:
    * permissions on files
    * file contention issues on Windows NT
    * EMD and dcmctl running concurrently
    * internal Oracle error
    After resolving the problem that prevented DCM from updating the configuration
    files, you may use the dcmctl resyncInstance command to resolve the problem.
    Alternatively, you can stop and then restart the active dcmctl or EMD
    process and resyncInstance will automatically be performed.
    at oracle.ias.sysmgmt.task.TaskMaster.evaluate(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deployCommon(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.deploy(Unknown Source)
    at oracle.j2ee.tools.deploy.Oc4jDeploy.deploy(Unknown Source)
    at oracle.j2ee.tools.deploy.Oc4jDeploy.main(Unknown Source)
    done.
    DCM Terminated.
    The error in the file "log.xml" at ORACLE_HOME/dcm/logs shows the following error:
    [CDATA[oracle.ias.repository.schema.SchemaException: Unable to retrieve the requested
    attributes:javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient Access Rights]; remaining name
    'orclReferenceName=iasdb.hostname ,cn=IAS Infrastructure Databases, cn=IAS, cn=Products, cn=OracleContext'
    On metalink I've found out that more people have had this problem. I've read about bug 2507365 and a patch in 9.0.3 but I couldn't find a real solution for the problem.
    Does this error has something to do with a confuguration of a previous installation of another user?
    Is there an easy way to work around this problem? Can I change something in the access rights and deploy the wireless administration tools in the OC4J_Portal instance manually? Would safe me a lot of time.
    Thanks in advance for your help.
    Regards,
    Thomas

    I've found a topic on Metalink named "Manually deploy oc4j_portal?" but I couldn't get access to it.
    (http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=FOR&p_id=265286.996)
    I have two application server instances on one machine with the Windows2000 Server OS (sp2)
    The infrastucture instance:
    ora9ias_home
    The wireless instance:
    ora9iasw_home
    * The following services are up and running in ora9ias_home:
    -HTTP Server
    -Internet Directory
    -OC4J_DAS
    -Single Sign-On:orasso:7777
    The Internet Directory instance:
    -Repository <hostname>:1521:iasdb :UP
    -Directory Integration :UP
    -Directory Replication :DOWN
    -LDAP Metrics (Configure) : DOWN
    I'm able to log on the OID via SSO with the orcladmin user
    * The following services are up and running in ora9iasW_home:
    -HTTP Server
    -OC4J_Portal (the instance is UP but the studio/customization/webtool instances need to be deployed)
    -OC4J_Wireless
    -Web Cache
    -Wireless
    The following schema is configured:
    WIRELESS Oracle iAS Wireless <hostname>:1521:iasdb
    So the instances in the OC4J_Portal were not deployed during installation. After trying to manually deploy
    the webtool.ear and associate the usermanager with JAZN LDAP User Manager (ldap://<hostname>:4032). I get the
    following error:
    "An error occurred while redeploying the application. The configuration files for this Oracle9iAS instance
    are inconsistent with the configuration stored in the repository. In order to protect the repository, no
    further configuration or deployment operations are allowed until the problem with the configuration on the
    filesystem is resolved. This condition arises when a prior operation was unsuccessful. Please check the
    logs located at ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating the configuration
    files on disk. Some possible causes are: * permissions on files * file contention issues on Windows NT *
    EMD and dcmctl running concurrently * internal Oracle error After resolving the problem that prevented DCM
    from updating the configuration files, you may use the dcmctl resyncInstance command to resolve the
    problem. Alternatively, you can stop and then restart the active dcmctl or EMD process and resyncInstance
    will automatically be performed".
    Associating the instance with the JAZN XML User Manager gives the same error.
    In the emctl batch file I've created I can see the following error during the deployment:
    OBJECT CACHE: HttpSession=c7d93daf948143ffa173bd73ae6b0a60; getObject() name=Ins
    tanceAdminObject_oc4j_orawireless.<hostname>OC4JPortal, return value=oracle
    .sysman.eml.ias.oc4j.InstanceAdminObject@49153e
    EMSDK DEBUG: Global Tabs
    EMSDK DEBUG: Link[name=targets,text=Targets,destination=/emd/console/targets,image=null]
    Link name : ias/oc4j/deployWiz/roles
    Invalid Bread Crumbs, linkname = ias/oc4j/deployWiz/roles
    EMSDK DEBUG: Global Tabs
    EMSDK DEBUG: Link[name=targets,text=Targets,destination=/emd/console/targets,image=null]
    EMSDK DEBUG: Global Tabs
    EMSDK DEBUG: Link[name=targets,text=Targets,destination=/emd/console/targets,image=null]
    Link name : ias/oc4j/deployWiz/publishServices
    Invalid Bread Crumbs, linkname = ias/oc4j/deployWiz/publishServices
    EMSDK DEBUG: Global Tabs
    EMSDK DEBUG: Link[name=targets,text=Targets,destination=/emd/console/targets,image=null]
    EMSDK DEBUG: Global Tabs
    EMSDK DEBUG: Link[name=targets,text=Targets,destination=/emd/console/targets,image=null]
    Link name : ias/oc4j/deployWiz/summary
    Invalid Bread Crumbs, linkname = ias/oc4j/deployWiz/summary
    EMSDK DEBUG: Global Tabs
    EMSDK DEBUG: Link[name=targets,text=Targets,destination=/emd/console/targets,ima
    ge=null]
    oracle.ias.sysmgmt.exception.TaskException: The configuration files for this Oracle9iAS instance are inconsistent with the configuration stored in the repository. In order to protect the repository,
    no further configuration or deployment operations are allowed until the problem
    with the configuration on the filesystem is resolved. This condition arises when
    a prior operation was unsuccessful. Please check the logs located at
    ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating
    the configuration files on disk.......
    Do you have any suggestions of things I could try? Do I have to check out the settings of the OC4J_portal instance? I've also checked the Access Rights for cn=IAS Infrastructure Databases, cn=IAS, cn=Products, cn=OracleContext user the Oracle Directory Manager.
    Instance Properties
    Server Properties
    Website Properties
    JSP Container Properties
    Replication Properties
    Advanced Properties
    Application Defaults
    Data Sources
    Security
    Global Web Module
    UDDI Registry
    Thanks!
    Regards,
    Thomas.

  • Urgent!! How to setup Tomcat instance in windows??

    Urgent!! How to setup Tomcat instance in windows??
    I have the next problem when execute tomcat.bat start:
    sin espacion en entorno
    you must set java_home to point at your java development kit installation

    You need to set the following two environment variables after you install tomcat on windows
    set JAVA_HOME= {Java directory path}
    set TOMCAT_HOME= {Tomcat directory path}
    Do this and try running start.bat again. It should get past this error.

  • Error deploying Opensso im Tomcat

    Hi,
    i tried to deploy Opensso in Tomcat:
    Tomcat 5.5 on port 8080 or Tomcat 6 on port 8081.
    With each version i start config and after go on time-out:
    Register service:famLibertyInteraction.xml
    ...Success.
    Register service:famLibertySecurity.xml
    ...Success.
    Register service:famSAML2Config.xml
    ...Success.
    Progress Log timed out
    Someone can help me?
    I

    Hi,
    the error in Access log for OPENDS is:
    [15/May/2008:00:13:47 +0200] SEARCH conn=5 op=8 msgID=435 result="No Such Entry" message="The search base entry 'uid=amadmin,ou=people,dc=opensso,dc=java,dc=net' does not exist" nentries=0 etime=0
    [15/May/2008:00:13:47 +0200] SEARCH conn=5 op=9 msgID=436 base="uid=amadmin,ou=people,dc=opensso,dc=java,dc=net" scope=baseObject filter="(|(objectclass=*)(objectclass=ldapsubentry))" attrs="iplanet-am-user-login-status"
    [15/May/2008:00:13:47 +0200] SEARCH conn=5 op=9 msgID=436 result="No Such Entry" message="The search base entry 'uid=amadmin,ou=people,dc=opensso,dc=java,dc=net' does not exist" nentries=0 etime=0
    [15/May/2008:00:13:47 +0200] SEARCH conn=5 op=10 msgID=437 base="uid=amadmin,ou=people,dc=opensso,dc=java,dc=net" scope=baseObject filter="(|(objectclass=*)(objectclass=ldapsubentry))" attrs="inetuserstatus"
    [15/May/2008:00:13:47 +0200] SEARCH conn=5 op=10 msgID=437 result="No Such Entry" message="The search base entry 'uid=amadmin,ou=people,dc=opensso,dc=java,dc=net' does not exist" nentries=0 etime=0
    [15/May/2008:00:13:47 +0200] SEARCH conn=3 op=399 msgID=438 base="ou=users,ou=default,ou=GlobalConfig,ou=1.0,ou=sunidentityrepositoryservice,ou=services,dc=opensso,dc=java,dc=net" scope=singleLevel filter="(&(objectclass=top)(ou=*))" attrs="ou"
    [15/May/2008:00:13:47 +0200] SEARCH conn=3 op=399 msgID=438 result="Success" nentries=5 etime=2
    [15/May/2008:00:13:47 +0200] SEARCH conn=3 op=400 msgID=439 base="ou=users,ou=default,ou=GlobalConfig,ou=1.0,ou=sunidentityrepositoryservice,ou=services,dc=opensso,dc=java,dc=net" scope=singleLevel filter="(&(objectclass=top)(ou=*))" attrs="ou"
    [15/May/2008:00:13:47 +0200] SEARCH conn=3 op=400 msgID=439 result="Success" nentries=5 etime=2
    WhY??

  • Deployment BO in Tomcat

    Post Author: Mahmoud Muhsen
    CA Forum: Deployment
    how can deploying BO with Tomcat?

    Hi,
    This is a question to ask in the Apache forums if you plan to use it as load balancer.
    I presume that you should set the method accordingly to your needs:
    http://tomcat.apache.org/connectors-doc/reference/workers.html
    Regards,
    Julian

  • Session Tracking between two tomcat instances

    Hi.
    Am using two different tomcat instances. i want to pass a username from one context to another thru jsp/servlet. can anybody help me without the knowledge of cookies...
    for ex:
    webapps
    - app1
    - app2
    i want to pass username from app1 to app2.
    thanks

    Yep,
    In the servlet on ServerA have setSession and getSession methods.
    When you create the session and when you add to it, call setSession:
    setSession(session);This is what the setSession method looks like
    public void setSession(HttpSession session)
      this.session = session;
    }When servletA calls servletB, pass an instance of servletA to it.
    ServletB b = new ServletB(servletA);servletB's contructor:
    public ServletB(servletA)
      this.servletA = servletA;
    }Now you can call ServletA's getSession method from ServletB:
    session = servletA.getSession();and this is what ServletA's getSession looks like:
    public HttpSession getSession()
      return session;
    }

  • Multiple tomcat instances in one zone

    I would like to install multiple tomcat instances in the same zone. the first instance starts without an issue. The second instance fails and gives an error message that it 'could not reserve enough space for object heap'. We are able to run multiple instances of tomcat on our solaris servers without a problem. Is there something I'm missing or is this a feature of zones? I've tried it in two separate zones with the same result.

    Don't set the environment variable in your profile, that sets the env variable the same in every terminal session you launch. You need to set the WSHOME variable differently in each terminal depending on which instance you are working with.
    I believe that should work.
    Xoth wrote:I am running idm on rhel 4. I want to run mulitple instance of tomcat 5.5.25. I have another instance set up ok but have run into a snag. In my /etc/profile I state for my first idm/tomcat instance...
    WSHOME=/usr/local/apache-tomcat-5.5.25/webapps/2008110601_idm7.1
    export WSHOME
    PATH=$WSHOME/bin:$PATH
    export PATH
    How to I set WSHOME for mulitple instances? I dont think I can add another WSHOME variable pointing to the other instance. I want them running at the same time.

  • Uncaught exception: shared webkit instance unavaliabl​e: null

    whenever i open the browser i get this "uncaught exception: shared webkit instance unavaliable: null" i have tried all that crackberry tells me to pull batterie ect can anyone help

    Hi and Welcome to the Forums!
    I suggest the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2 each should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    2) Delete and Resend Service Books
    KB05000Delete the service book for the BlackBerry Internet Service email account from the BlackBerry smartphone
    KB02830 Send the service books for the BlackBerry Internet Service
    3) Batt Pull Reboot
    Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then please think back as to what changed just before this started. A new app? Any updates? The tiniest thing could be causal, so please think carefully.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for