Deploy web application with exploded directory format

I am quite new with Oracle9iAS Containers for J2EE. Currently, my project is not using EJB, only JSP and Servlets. I want to deploy the war file with exploded directory format. I don't want to use the default web application directory j2ee/home/default-web-app. The "Using Oracle9iAS Containers for J2EE" get start documentation only explained how to deploy J2ee application. What about the web application without EJB jar file? Anybody knows how to do that. Please let me know.
Thanks in advance.

Though you don't have ejbs, you can still use the ear file format. This would be most convenient way of deploying.
Use of a tool like Ant is recommended if you are not using JDeveloper.
Also, you can findinfo on deploying using a exploded directory
http://otn.oracle.com/docs/tech/java/oc4j/htdocs/getstart.htm#1027810
But recommed having ear file as it is convenient. If you want to see an example of use of Ant and deploying using ear file
check out one of the recently posted how-tos E.g. http://otn.oracle.com/tech/java/oc4j/htdocs/how-to-servlet-events.html

Similar Messages

  • Any tool to help deploy with Exploded Directory Format

    I read through the "Oracle9iAS Containers for J2EE" Getting Started document and saw the section on "Deploying with Exploded Directory Format". I would like to take the Petstore1.1.2 code and put it in exploded directory format so that OC4J can easily pick up changes to servlets and EJBs. But the codebase for Petstore is complicated enough that I would like to have a tool (possibly ant) that can automate the process of going from either the source directory or even ear file to the "exploded directory format".
    Are there any tools available to help automate this process??

    Never mind. This stuff is a lot simpler than I initially thought. There is no need for a tool because it is easy enough to do by hand.
    Sorry for bothering everyone

  • Can i deploy web application with WEB-INF as war and leave others as it is

    i'm asked to deploy my web application with WEB-INF in a war and leave all the others as it is, but i'm getting error that "resource not found"
    what shld i do?
    this is the command i used to create war
    jar cvf WEB-INF.war *.*
    i entered this command from command prompt from the directory
    c:/tomcat/webapps/myapplication/WEB-INF/>jar cvf WEB-INF.war *.*
    please help!!!!!

    can u please elaborate...because i need to speak about that to the manager who is asking me to do so. he will not listen to me until i explain with true reasons.

  • Failed to deploy web application with same name twice

    Hello-
    On Oracle 10g Application server I deployed an WAR file called "anbadmin", then undeployed it. The undepoloyment failed from the OEM so I undeployed it manually via removing its entries from server.xml.
    When I tried to deploy it again with the same name I got this:
    Failed to deploy web application "anbadmin". Failed to deploy web application "anbadmin". . The evaluate phase failed. The Adapter used in the evaluate may have thrown an exception.
    Resolution:
    Please call Oracle support.
    Base Exception:
    java.lang.NoSuchMethodError
    null. java.lang.NoSuchMethodError
    Is there a solution for this?
    Regards

    I think I know the solution. We encountered exactly same message and no further deployment could be made. It appeared message in "dcmctl" utility was much more helpfull than the one in EM (though you still have to use "getError" command...)
    If you are using file-based repository, you have to issue command in dcmctl utility "resetFileTransaction". This closes repository and opens it again.
    Myrra

  • Serious problems deploying web application with enterprise manager

    Hi all,
    First I have to say that this thing that has happened to me today is freaking bizarre... I was trying to make a new deployment of a web application on OAS 10.1.2, using the Enterprise Manager. The application is using Spring and DWR, therefore it has some XML files included. The application worked perfect in JDeveloper 9.0.4, our development tool, and I've previously developed very similar applications in the past, and deployed them on the same server without any problem.
    Today, when I was trying to deploy my .ear file, I got this error message:
    The file specified, "FindAnExpert.ear" is not a valid ear file.
    I tried with the .war file, and this happened:
    Base Exception:
    java.util.zip.ZipException
    invalid END header (bad central directory offset). invalid END header (bad central directory offset)
    I checked that all the included .jar files were fine, I even replaced them with new ones. I started to remove files from the .war file and discovered that without the XML files I was able to deploy the application. Then I copied over those XML files through FTP and the application is working correctly, but I was not able to use the Enterprise Manager to deploy it!!! The XML files are well formed, on of them contains the details of a data source that I also reviewed to be sure that it was correctly configured... This is nuts... any ideas over there???
    Thanks in advance,
    Luis

    Luis,
    If all of the files uploaded piecemeal worked fine, then I believe your problem to be with your deployment descriptor(s). Also, note that the .war file lives in a different directory:
    C:\oc4j\j2ee\home\applications\Application-Name
    Perhaps if you have time you could post all of the associated deployment descriptor files. Log files from the C:\oc4j\j2ee\home\log\oc4j directory would also help to troubleshoot your deployment issues. You can turn up the logging level to "FINEST" for maximum output to your log file.
    -Michael

  • Urgent:Please Help. Need to deploy web application with servlet:(

    Tomcat 4.0 is already installed.
    Trying to deploy a web application and invoke a servlet through it.
    Here is the command I am using for deploying the application:
    http://localhost:8080/manager/install?path=/NewApplication&war=file:d:\Tomcat4\webapps\NewApplication
    The application get deployed. However, I have a problem. As soon I stop and restart the server, this application is gone.
    1. Please someone help: How should I make it permanent so that the application stays even if I restart the server.
    2. I am not able to access the servlets placed in the /WEB-INF/classes/ sub-directory under NewApplication directory.
    If you need I can cut and paste the web.xml file which will show the deployment descriptor.
    Please help: How do I make this work. I need it urgent.
    Any help will be appreciated.
    Thanks,
    Indrasish.

    The simplest solution would be to put the war file inside the webapps directory and restart the server. You should be able to access the app using the http://servername/app

  • Deploying web application in OAS Release 3 (10.1.3.1.0) in exploded format

    How to deploy a web application in exploded format in OAS server.

    Refer these:
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b28221/depapp003.htm#JIEJB00906
    http://download.oracle.com/docs/cd/B31017_01/migrate.1013/b31269/servlets_weblogic.htm#i1018012
    Thanks
    Shail

  • Deploying Enterprise application in exploded format

    ewsgroup: to weblogic.developer.interest.webserver
    For simplification and to make changes easier
    we want to deploy our EJB's
    and web application in exploded format.
    I created the following directory structure
    in my home area:
    Application/
    deploy/
    META-INF/
    application.xml
    web/
    jsps, html
    WEB-INF/
    *.xml
    classes/
    servlet
    .class files
    lib/
    ejb/
    META-INF/
    *.xml
    com/ .... directory
    structure for EJB.
    I deployed the application using the admin
    console and referencing
    myhome/application/deploy. This results in
    the following error in the log:
    <Dec 18, 2001 5:25:46 PM MST> <Error> <HTTP>
    <[web] Error reading
    Web application "/myhome/application/deploy/web"
    java.net.ConnectException: Tried all: '1' addresses,
    but could not connect
    over HTTP to server : 'java.sun.com', port:
    '80'
    None of my WLS servers are configured to use
    port 80. This particular
    server is configured to listen on port 7009.
    Any help or insight would be greatly appreciated.

    I think I ran into the same problem with using the localhost address on our
    application. Are you using the ip of one of your managed servers?
    Are you upgrading or using WLS 6.1 SP1 ..by the way?
    "Terry Jahelka" <[email protected]> wrote in message
    news:3c20c99e$[email protected]..
    >
    For simplification and to make changes easier we want to deploy our EJB'sand web
    application
    in exploded format.
    I created the following directory structure in my home area:
    Application/
    deploy/
    META-INF/
    application.xml
    web/
    jsps, html
    WEB-INF/
    *.xml
    classes/
    servlet .class files
    lib/
    ejb/
    META-INF/
    *.xml
    com/ .... directory structure for EJB.
    I deployed the application using the admin console and referencingmyhome/application/deploy.
    This results in the following error in the log:
    <Dec 18, 2001 5:25:46 PM MST> <Error> <HTTP> <[web] Error reading Webapplication
    "/myhome/application/deploy/web"
    java.net.ConnectException: Tried all: '1' addresses, but could not connectover
    HTTP to server
    : 'java.sun.com', port: '80'
    None of my WLS servers are configured to use port 80. This particularserver
    is configured
    to listen on port 7009.
    Any help or insight would be greatly appreciated.

  • Issue of deploying a fusion Web Application with integrated Weblogic server

    Hi,
    i'm using Jdev 11.1.1.3.0 to develop a fusion web application, with a model and ViewController Projects.
    When i try to deploy this application with the integrated server, i have any issues.
    The origin seems to be that it builds an application with 3 profiles. The model application is recognized and deployed as a webapp and not an ADF library as it should be..
    [11:00:45 PM] Retrieving existing application information
    [11:00:45 PM] Running dependency analysis...
    [11:00:45 PM] Deploying 3 profiles...
    [11:00:46 PM] Wrote Web Application Module to /home/david/.jdeveloper/system11.1.1.3.37.56.60/o.j2ee/drs/easygestionV2.0/ViewControllerWebApp.war
    *[11:00:48 PM] Wrote Web Application Module to /home/david/.jdeveloper/system11.1.1.3.37.56.60/o.j2ee/drs/easygestionV2.0/ModelWebApp.war*
    [11:00:48 PM] Wrote Enterprise Application Module to /home/david/.jdeveloper/system11.1.1.3.37.56.60/o.j2ee/drs/easygestionV2.0
    [11:00:48 PM] Deploying Application...
    <27 déc. 2010 23 h 00 CET> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application easygestionV2.0 is not versioned.>
    <JpsDstCredential><setCredential> Impossible de migrer le dossier/la clé d'informations d'identification et de connexion ADF/anonymous#easygesprod. Raison : oracle.security.jps.service.credstore.CredentialAlreadyExistsException: JPS-01007: Les informations d'identification et de connexion avec la correspondance ADF et la clé anonymous#easygesprod existent déjà..
    <TrinidadFilter><init>
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
         at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:725)
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)
         at oracle.adfinternal.view.faces.util.rich.ConverterValidatorRegistrationUtils.register(ConverterValidatorRegistrationUtils.java:36)
         at oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator.init(RegistrationConfigurator.java:79)
         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.init(GlobalConfiguratorImpl.java:400)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.init(RegistrationFilter.java:53)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.init(TrinidadFilterImpl.java:103)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.init(TrinidadFilter.java:54)
         at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:332)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:98)
         at weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:59)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1867)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    How can i fix the model project to be deployed as an ADf library and not a webapp with the integrated weblogic server ? Because with me it doesn't do it by itself.
    Thanks a lot for help

    duplicate to Issue of deploying a fusion Web Application with integrated Weblogic server

  • Deploying APEX application with web host

    Hi guys,
    Whats the process of deploying APEX application with a webHost?
    We got a good deal from a web host with dedicated database, it still being processed.
    Currently we have a domain name hosted elsewhere (non APEX host) . What I am planning to do is, create a subdomain with our existing web host and point it to the IP address of the DB machine the apex host will give us.
    So I am guessing the process will involve:
    1) getting the IP address of the database machine
    2) configure the my existing web hosting setup to create a sub-domain and make it point to the IP address (for example 174.184.223.441)
    Would I need Port number of the machine running Oracle DB with APEX and the local IP address (the one starts with 10.0.0.xxx) etc?
    Would be grateful if someone can share what you did given you already have a domain hosted and need to create a subdomain to make it point to another APEX host.

    Hi Jim,
    Try to replace,
    <jnlp spec="1.0+" codebase="http://localhost:8080/fileviewer" href="index.jnlp">
    with
    <jnlp spec="1.0+" codebase="$$codebase" href="index.jnlp">
    But i was using JNlpdownload servlet to do the task
    Regards
    Leo

  • Re: Exploded directory format in an EAR

              I am now trying to deploy the ear file in v6.1 sp2. Has anyone managed to deploy
              an ear where util / third party classes are stored in a lib directory of the ear
              and referenced in EJB-jar manifest.mf files using the classpath header?
              ie as documented in bea weblogic server bible on page 614/615
              EntApp/
              accountEJB.jar
              accountManager.war
              /lib/
              xerces.jar
              xalan.jar
              log4j.jar
              /META-INF/
              application.xml
              "erik" <[email protected]> wrote:
              >
              >This is hearsay but I was recommended to use v 6.1 SP 2.
              >/erik
              >
              >"Ivan" <[email protected]> wrote:
              >>
              >>I have a problem wrapping up an exploded directory format application
              >>into an ear
              >>file running weblogic 6.0sp2 on winnt 4. One of the things I would like
              >>to do
              >>is load a config file from a helper class without specifying a path.
              >>
              >>
              >>EAR APP statementapp.ear contains: META-INF/MANIFEST.MF statement.jar
              >>statementwebapp.war
              >>META-INF/application.xml lib/log4j.jar (and other third party jar files
              >>crimson.jar,
              >>jaxp.jar etc.)
              >>
              >>The third party jar files have been manually unjar'ed and re-jar'ed
              >without
              >>compression
              >>(after reading that a suggestion to someone else).
              >>
              >>WEB APP statementwebapp.war contains: all my jsp's at root level WEB-INF/classes/uk/.../servlets
              >>- servlets WEB-INF/classes/uk/.../util - helper classes WEB-INF/tlds
              >>- tag library
              >>descriptors WEB-INF/web.xml & weblogic.xml - deployment descriptors
              >
              >>
              >>Some of the helper classes make use of configuration files (for example
              >>I have
              >>a Logger class that uses Log4j). Here is how I would like to access
              >the
              >>config
              >>file
              >>
              >>... private static final String config = "config.properties" ; PropertyConfigurator.configure(
              >>config ) ; ...
              >>
              >>I have tried putting the config.properties file in the WEB-INF/classes
              >>directory
              >>and in the WEB-INF directory, however they don't seem to be found by
              >>the class
              >>loader.
              >>
              >>EJB statement.jar contains an ejb with the following: uk...business.statement...
              >>- Statement ejb classes with ejbc generated stub and skeleton classes
              >>uk...util
              >>- Several Helper classes
              >>
              >>One such helper is Logger for which the Log4j jar file is needed. I
              >deploy
              >>the
              >>statement.jar file in the ear (as listed above). Weblogic throws an
              >error
              >>message
              >>saying cannot deploy statement (NoClassDefFound...): java.lang.NoClassDefFoundError:
              >>org/apache/log4j/Category ie it cannot find the log4j package which
              >is
              >>referenced
              >>in the Class-Path header of the manifest.mf file and located in the
              >ear
              >>file under
              >>the lib directory.
              >>
              >>The manifest.mf file contains a line with the following: Class-Path:
              >>lib/log4j.jar
              >>lib/crimson.jar lib/jaxp.jar which I have read should allow the enterprise
              >>classloader
              >>to pick up the log4j.jar and xml parsing classes (ref. weblogic server
              >>bible chap
              >>18) without needing to be referenced in the weblogic start up class
              >path.
              >>
              >>
              >>Can manifest class-path references be used like this in weblogic 6.0?
              >>Where should
              >>I put the application properties files in the war and jar files?
              >>
              >>Clarification much appreciated. Ivan.
              >>
              >>PS: I had this application working in exploded directory format with
              >>the jar files
              >>in the system classpath and the properties file locations hardcoded
              >in
              >>the class
              >>files. (not ideal for a clustered production environment!)
              >>
              >
              

              This is hearsay again.
              These people did as you did no compression etc. they were able to put the application's
              utility classes in a lib but not the third party jars. They suspected that the
              ear where to big to deploy so they put all thirdparty jars in the system classpath
              and then the internal utility classes were loaded by using CLASSPATH in the manifest
              file.
              I gave up because I could deploy everything except servlets and I went back to
              exploded deployment. That bloody EAR thing took to much time.
              If you succeed in everything including warfiles with JSPs and servlets (those
              I was talking about only had EJBs)
              let me know.
              I also had a peculiar problem with EARs that a cascading stylesheet was not found
              in the ear but it worked in an exploded it worked fine
              Otherwise I must recommend Orion, which I had up and running in a matter of days
              when ported from WLS 5.1.
              Good luck.
              "Ivan" <[email protected]> wrote:
              >
              >I am now trying to deploy the ear file in v6.1 sp2. Has anyone managed
              >to deploy
              >an ear where util / third party classes are stored in a lib directory
              >of the ear
              >and referenced in EJB-jar manifest.mf files using the classpath header?
              >
              >ie as documented in bea weblogic server bible on page 614/615
              >EntApp/
              > accountEJB.jar
              > accountManager.war
              > /lib/
              > xerces.jar
              > xalan.jar
              > log4j.jar
              > /META-INF/
              > application.xml
              >
              >"erik" <[email protected]> wrote:
              >>
              >>This is hearsay but I was recommended to use v 6.1 SP 2.
              >>/erik
              >>
              >>"Ivan" <[email protected]> wrote:
              >>>
              >>>I have a problem wrapping up an exploded directory format application
              >>>into an ear
              >>>file running weblogic 6.0sp2 on winnt 4. One of the things I would
              >like
              >>>to do
              >>>is load a config file from a helper class without specifying a path.
              >>>
              >>>
              >>>EAR APP statementapp.ear contains: META-INF/MANIFEST.MF statement.jar
              >>>statementwebapp.war
              >>>META-INF/application.xml lib/log4j.jar (and other third party jar files
              >>>crimson.jar,
              >>>jaxp.jar etc.)
              >>>
              >>>The third party jar files have been manually unjar'ed and re-jar'ed
              >>without
              >>>compression
              >>>(after reading that a suggestion to someone else).
              >>>
              >>>WEB APP statementwebapp.war contains: all my jsp's at root level WEB-INF/classes/uk/.../servlets
              >>>- servlets WEB-INF/classes/uk/.../util - helper classes WEB-INF/tlds
              >>>- tag library
              >>>descriptors WEB-INF/web.xml & weblogic.xml - deployment descriptors
              >>
              >>>
              >>>Some of the helper classes make use of configuration files (for example
              >>>I have
              >>>a Logger class that uses Log4j). Here is how I would like to access
              >>the
              >>>config
              >>>file
              >>>
              >>>... private static final String config = "config.properties" ; PropertyConfigurator.configure(
              >>>config ) ; ...
              >>>
              >>>I have tried putting the config.properties file in the WEB-INF/classes
              >>>directory
              >>>and in the WEB-INF directory, however they don't seem to be found by
              >>>the class
              >>>loader.
              >>>
              >>>EJB statement.jar contains an ejb with the following: uk...business.statement...
              >>>- Statement ejb classes with ejbc generated stub and skeleton classes
              >>>uk...util
              >>>- Several Helper classes
              >>>
              >>>One such helper is Logger for which the Log4j jar file is needed. I
              >>deploy
              >>>the
              >>>statement.jar file in the ear (as listed above). Weblogic throws an
              >>error
              >>>message
              >>>saying cannot deploy statement (NoClassDefFound...): java.lang.NoClassDefFoundError:
              >>>org/apache/log4j/Category ie it cannot find the log4j package which
              >>is
              >>>referenced
              >>>in the Class-Path header of the manifest.mf file and located in the
              >>ear
              >>>file under
              >>>the lib directory.
              >>>
              >>>The manifest.mf file contains a line with the following: Class-Path:
              >>>lib/log4j.jar
              >>>lib/crimson.jar lib/jaxp.jar which I have read should allow the enterprise
              >>>classloader
              >>>to pick up the log4j.jar and xml parsing classes (ref. weblogic server
              >>>bible chap
              >>>18) without needing to be referenced in the weblogic start up class
              >>path.
              >>>
              >>>
              >>>Can manifest class-path references be used like this in weblogic 6.0?
              >>>Where should
              >>>I put the application properties files in the war and jar files?
              >>>
              >>>Clarification much appreciated. Ivan.
              >>>
              >>>PS: I had this application working in exploded directory format with
              >>>the jar files
              >>>in the system classpath and the properties file locations hardcoded
              >>in
              >>>the class
              >>>files. (not ideal for a clustered production environment!)
              >>>
              >>
              >
              

  • Exploded directory format in an EAR

              I have a problem wrapping up an exploded directory format application into an ear
              file running weblogic 6.0sp2 on winnt 4. One of the things I would like to do
              is load a config file from a helper class without specifying a path.
              EAR APP statementapp.ear contains: META-INF/MANIFEST.MF statement.jar statementwebapp.war
              META-INF/application.xml lib/log4j.jar (and other third party jar files crimson.jar,
              jaxp.jar etc.)
              The third party jar files have been manually unjar'ed and re-jar'ed without compression
              (after reading that a suggestion to someone else).
              WEB APP statementwebapp.war contains: all my jsp's at root level WEB-INF/classes/uk/.../servlets
              - servlets WEB-INF/classes/uk/.../util - helper classes WEB-INF/tlds - tag library
              descriptors WEB-INF/web.xml & weblogic.xml - deployment descriptors
              Some of the helper classes make use of configuration files (for example I have
              a Logger class that uses Log4j). Here is how I would like to access the config
              file
              .. private static final String config = "config.properties" ; PropertyConfigurator.configure(
              config ) ; ...
              I have tried putting the config.properties file in the WEB-INF/classes directory
              and in the WEB-INF directory, however they don't seem to be found by the class
              loader.
              EJB statement.jar contains an ejb with the following: uk...business.statement...
              - Statement ejb classes with ejbc generated stub and skeleton classes uk...util
              - Several Helper classes
              One such helper is Logger for which the Log4j jar file is needed. I deploy the
              statement.jar file in the ear (as listed above). Weblogic throws an error message
              saying cannot deploy statement (NoClassDefFound...): java.lang.NoClassDefFoundError:
              org/apache/log4j/Category ie it cannot find the log4j package which is referenced
              in the Class-Path header of the manifest.mf file and located in the ear file under
              the lib directory.
              The manifest.mf file contains a line with the following: Class-Path: lib/log4j.jar
              lib/crimson.jar lib/jaxp.jar which I have read should allow the enterprise classloader
              to pick up the log4j.jar and xml parsing classes (ref. weblogic server bible chap
              18) without needing to be referenced in the weblogic start up class path.
              Can manifest class-path references be used like this in weblogic 6.0? Where should
              I put the application properties files in the war and jar files?
              Clarification much appreciated. Ivan.
              PS: I had this application working in exploded directory format with the jar files
              in the system classpath and the properties file locations hardcoded in the class
              files. (not ideal for a clustered production environment!)
              

              This is hearsay but I was recommended to use v 6.1 SP 2.
              /erik
              "Ivan" <[email protected]> wrote:
              >
              >I have a problem wrapping up an exploded directory format application
              >into an ear
              >file running weblogic 6.0sp2 on winnt 4. One of the things I would like
              >to do
              >is load a config file from a helper class without specifying a path.
              >
              >
              >EAR APP statementapp.ear contains: META-INF/MANIFEST.MF statement.jar
              >statementwebapp.war
              >META-INF/application.xml lib/log4j.jar (and other third party jar files
              >crimson.jar,
              >jaxp.jar etc.)
              >
              >The third party jar files have been manually unjar'ed and re-jar'ed without
              >compression
              >(after reading that a suggestion to someone else).
              >
              >WEB APP statementwebapp.war contains: all my jsp's at root level WEB-INF/classes/uk/.../servlets
              >- servlets WEB-INF/classes/uk/.../util - helper classes WEB-INF/tlds
              >- tag library
              >descriptors WEB-INF/web.xml & weblogic.xml - deployment descriptors
              >
              >Some of the helper classes make use of configuration files (for example
              >I have
              >a Logger class that uses Log4j). Here is how I would like to access the
              >config
              >file
              >
              >... private static final String config = "config.properties" ; PropertyConfigurator.configure(
              >config ) ; ...
              >
              >I have tried putting the config.properties file in the WEB-INF/classes
              >directory
              >and in the WEB-INF directory, however they don't seem to be found by
              >the class
              >loader.
              >
              >EJB statement.jar contains an ejb with the following: uk...business.statement...
              >- Statement ejb classes with ejbc generated stub and skeleton classes
              >uk...util
              >- Several Helper classes
              >
              >One such helper is Logger for which the Log4j jar file is needed. I deploy
              >the
              >statement.jar file in the ear (as listed above). Weblogic throws an error
              >message
              >saying cannot deploy statement (NoClassDefFound...): java.lang.NoClassDefFoundError:
              >org/apache/log4j/Category ie it cannot find the log4j package which is
              >referenced
              >in the Class-Path header of the manifest.mf file and located in the ear
              >file under
              >the lib directory.
              >
              >The manifest.mf file contains a line with the following: Class-Path:
              >lib/log4j.jar
              >lib/crimson.jar lib/jaxp.jar which I have read should allow the enterprise
              >classloader
              >to pick up the log4j.jar and xml parsing classes (ref. weblogic server
              >bible chap
              >18) without needing to be referenced in the weblogic start up class path.
              >
              >
              >Can manifest class-path references be used like this in weblogic 6.0?
              >Where should
              >I put the application properties files in the war and jar files?
              >
              >Clarification much appreciated. Ivan.
              >
              >PS: I had this application working in exploded directory format with
              >the jar files
              >in the system classpath and the properties file locations hardcoded in
              >the class
              >files. (not ideal for a clustered production environment!)
              >
              

  • Problem with tutorial; "Build a Web Application with JDeveloper 11g Using "

    I've got a rather new installation of Vista Business x64 on my developer rig, and last week I installed the new JDeveloper 11g version. The installation was all-inclusive, no customization on my end.
    In addition I've got a test installation of an Oracle DB 11gR1 on an available server here.
    To familiarize myself with the new JDeveloper I decided to spend some time with the JDeveloper 11g tutorials found here: http://www.oracle.com/technology/obe/obe11jdev/11/index.html.
    I've started twice on the second tutorial, "Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces", and find myself repeatedly stuck at step 19 in section "Creating the Data Model and Testing it".
    It seems impossible to deploy the application to the default application server. The server starts fine on its own, I can access it via the admin console on port 7001 and it looks good. However, when I try to run the HRFacadeBean funny things are happening, symptomized by the following error messages seen in the IDE log-area:
    The "Messages" pane displays:
    "Compiling...
    Context: MakeProjectAndDependenciesCommand application=HR_EJB_JPA_App.jws project=EJBModel.jpr
    C:\Oracle\Middleware\jdk160_05\jre\bin\java.exe -jar C:\Oracle\Middleware\jdeveloper\jdev\lib\ojc.jar -g -warn -nowarn:320 -nowarn:372 -nowarn:412 -nowarn:413 -nowarn:415 -nowarn:486 -nowarn:487 -nowarn:489 -nowarn:556 -nowarn:558 -nowarn:560 -nowarn:561 -nowarn:705 -Xlint:-fallthrough -Xlint:-serial -Xlint:-unchecked -source 1.6 -target 1.6 -noquiet -encoding Cp1252 -d C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\classes -namereferences -make C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\classes\EJBModel.cdi -classpath C:\Oracle\Middleware\jdk160_05\jre\lib\resources.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\rt.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\jsse.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\jce.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\charsets.jar;C:\JDeveloper\mywork\HR_EJB_JPA_App\.adf;C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\classes;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\toplink.jar;C:\Oracle\Middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_1-0.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.xdk_11.1.1\xmlparserv2.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.xdk_11.1.1\xml.jar;C:\Oracle\Middleware\modules\javax.jsf_1.2.0.0.jar;C:\Oracle\Middleware\modules\javax.ejb_3.0.1.jar;C:\Oracle\Middleware\modules\javax.enterprise.deploy_1.2.jar;C:\Oracle\Middleware\modules\javax.interceptor_1.0.jar;C:\Oracle\Middleware\modules\javax.jms_1.1.1.jar;C:\Oracle\Middleware\modules\javax.jsp_1.1.0.0_2-1.jar;C:\Oracle\Middleware\modules\javax.jws_2.0.jar;C:\Oracle\Middleware\modules\javax.activation_1.1.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.mail_1.1.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.soap_1.3.1.0.jar;C:\Oracle\Middleware\modules\javax.xml.rpc_1.2.1.jar;C:\Oracle\Middleware\modules\javax.xml.ws_2.1.1.jar;C:\Oracle\Middleware\modules\javax.management.j2ee_1.0.jar;C:\Oracle\Middleware\modules\javax.resource_1.5.1.jar;C:\Oracle\Middleware\modules\javax.servlet_1.0.0.0_2-5.jar;C:\Oracle\Middleware\modules\javax.transaction_1.0.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.stream_1.1.1.0.jar;C:\Oracle\Middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.registry_1.0.0.0_1-0.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\wlserver_10.3\common\lib -sourcepath C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src;C:\Oracle\Middleware\jdk160_05\src.zip;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\toplink-src.zip;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink-src.zip C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\Dept.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\Emp.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacadeLocal.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacadeClient.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacade.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacadeBean.java
    [11:45:27 PM] Successful compilation: 0 errors, 0 warnings.
    [Application HR_EJB_JPA_App is bound to Server Instance DefaultServer]
    [Starting Server Instance DefaultServer]
    #### Server Instance DefaultServer could not be started: Server Instance was terminated.
    The "Running: DefaultServer" displays:
    "C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    [Server Instance DefaultServer is shutting down.  All applications currently running will be terminated and undeployed.]
    Process exited.
    C:\Oracle\Middleware\user_projects\domains\base_domain\bin\stopWebLogic.cmd
    Stopping Weblogic Server...
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Connecting to t3://localhost:7101 with userid weblogic ...
    This Exception occurred at Wed Oct 29 23:47:40 CET 2008.
    javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7101: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:365)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at weblogic.management.scripting.WLSTHelper.populateInitialContext(WLSTHelper.java:512)
         at weblogic.management.scripting.WLSTHelper.initDeprecatedConnection(WLSTHelper.java:565)
         at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:305)
         at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:203)
         at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:60)
         at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:125)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
         at org.python.core.PyMethod.__call__(PyMethod.java:96)
         at org.python.core.PyObject.__call__(PyObject.java:248)
         at org.python.core.PyObject.invoke(PyObject.java:2016)
         at org.python.pycode._pyx4.connect$1(<iostream>:16)
         at org.python.pycode._pyx4.call_function(<iostream>)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyTableCode.call(PyTableCode.java:404)
         at org.python.core.PyFunction.__call__(PyFunction.java:184)
         at org.python.pycode._pyx16.f$0(C:\Oracle\Middleware\user_projects\domains\base_domain\shutdown.py:1)
         at org.python.pycode._pyx16.call_function(C:\Oracle\Middleware\user_projects\domains\base_domain\shutdown.py)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyCode.call(PyCode.java:14)
         at org.python.core.Py.runCode(Py.java:1135)
         at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
         at weblogic.management.scripting.WLST.main(WLST.java:129)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.WLST.main(WLST.java:29)
    Caused by: java.net.ConnectException: t3://localhost:7101: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:203)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:344)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
         ... 38 more
    Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
         at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
         at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
         at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:225)
         at weblogic.rjvm.RJVMFinder.findOrCreateRemoteCluster(RJVMFinder.java:303)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:193)
         ... 43 more
    Problem invoking WLST - Traceback (innermost last):
    File "C:\Oracle\Middleware\user_projects\domains\base_domain\shutdown.py", line 1, in ?
    File "<iostream>", line 22, in connect
    WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running at t3://localhost:7101 Use dumpStack() to view the full stacktrace
    Done
    I'm not that familiar with these things but it seems to me that there is an issue with port numbers here. The application seems to expect a app.server service at port 7101, but does'nt find one.
    Any suggestions on how to fix this problem would be appreciated?
    LA$$E

    Jupp,
    It fails in a similar way.
    What I did was; create a simle 'Hello World' html file, saving it with the jsp extension. In Jdev11g i made a new application and an emtpy project, then loaded the jsp file and made it the default run-target. This compiles nicely.
    When running the project it first attempts to start the WebLogicServer (WLS). After a few minutes it is started as seen in the "Running: DefaultServer" pane:
    C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
    WLS Start Mode=Development
    CLASSPATH=;C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.5/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\Middleware\jdeveloper\modules\features\adf.share_11.1.1.jar;;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar;;
    PATH=C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.5\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\oracle_client\product\11.1.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_05"
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
    Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -DproxySet=false -Djbo.34010=false -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1 -Doracle.home=C:\Oracle\Middleware\jdeveloper -Doracle.security.jps.config=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\oracle\jps-config.xml -Doracle.dms.context=OFF -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar>
    <30.okt.2008 kl 19.20 CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun Microsystems Inc.>
    <30.okt.2008 kl 19.20 CET> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3 Mon Aug 18 22:39:18 EDT 2008 1142987 >
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <30.okt.2008 kl 19.20 CET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <30.okt.2008 kl 19.20 CET> <Notice> <Log Management> <BEA-170019> <The server log file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.>
    <30.okt.2008 kl 19.20 CET> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddi.war'.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddiexplorer.war'.>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <30.okt.2008 kl 19.20 CET> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <30.okt.2008 kl 19.20 CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Server> <BEA-002611> <Hostname "Kromp.lan", maps to multiple IP addresses: 10.0.0.8, 127.0.0.1>
    <30.okt.2008 kl 19.20 CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.0.0.8:7001 for protocols iiop, t3, ldap, snmp, http.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Server> <BEA-002611> <Hostname "127.0.0.1", maps to multiple IP addresses: 10.0.0.8, 127.0.0.1>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Development Mode>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    DefaultServer startup time: 121552 ms.
    DefaultServer started.
    In the "Messages" pane, however, things are not looking so good:
    Context: MakeProjectAndDependenciesCommand application=TestAppJsp.jws project=TestProjJsp.jpr
    [7:20:49 PM] Successful compilation: 0 errors, 0 warnings.
    [Application TestAppJsp is bound to Server Instance DefaultServer]
    [Starting Server Instance DefaultServer]
    #### Server Instance DefaultServer could not be started: Server Instance was terminated.
    But, of course, the server is actually running as I can access it via its Admin Console.
    So, I try to run the project again, and this time the following is shown in the "Messages" pane:
    Compiling...
    Context: MakeProjectAndDependenciesCommand application=TestAppJsp.jws project=TestProjJsp.jpr
    [7:26:39 PM] Successful compilation: 0 errors, 0 warnings.
    [Application TestAppJsp is bound to Server Instance DefaultServer]
    [Starting Server Instance DefaultServer]
    #### Server Instance DefaultServer could not be started: Server Instance was terminated.
    The "Running: DefaultServer" now comes up with:
    C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    [Server Instance DefaultServer is shutting down.  All applications currently running will be terminated and undeployed.]
    Process exited.
    The WLS is still running though as I can still access its adm console.
    To me it seems that it is attempting to start a separate instance of the WLS for each run attempt, but then I could be wrong.....:(
    Later I'll try to change the default WLS port from 7001 to 7101 as suggested in another port here.
    I must admit that I'm a bit surprised that the JDev11g doesn't work fine at this very simple level when performing a default install.

  • Weblogic 10.0 web application with CLIENT-CERT suddenly redirect with 401

    Hi everybody,
    we currently have a Weblogic Portal 10.2 web application with an integrated Windows authentication.
    I configured a Negociate Identity Asserter and an Active Directory provider.
    I configure Kerberos services, so we have succefully access to our application through the Windows session.
    But, most of time we have 401 errors on any page when navigating. In fact, the error occures when clicking on a link when a page is not fully loaded.
    For our tests, we use the security webapp provided by BEA/Oracle, and it just work.
    The web.xml used in our webapp :
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>sso</web-resource-name>
    <description>Desc</description>
    <url-pattern>/appmanager/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <description>desc</description>
    <role-name>ssoRole</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>CLIENT-CERT</auth-method>
    <realm-name/>
    </login-config>
    <security-role>
    <description>Authenticated user</description>
    <role-name>ssoRole</role-name>
    </security-role>

    which version of web server r u using here ? 6.1 or 7.0 ? if it is 6.1 then there is no easy <If> syntax. if u r using 7.0, then u need to be aware that the processing of 'ppath' is slightly different in 7.0
    in any case, this would be the syntax
    <Object name="weblogic" ppath="/hw/">
    Service fn="wl_proxy" WebLogicHost="------------------" WebLogicPort="------"
    # gateway timeout - back end web logic not responding handle differently
    <If code='504'>
    # send it to a different post..
    Service fn="wl_proxy" WebLogicHost="------------------" WebLogicPort="------"
    </If>
    </Object>
    - sriram

  • Deploying web applications - jsp generated servlet's may be written over the same file!

    Hi, I have made the following test:
    Created two simple web applications with one jsp page, and deployed it
    with different context names, in weblogic.properties I have:
    weblogic.httpd.webApp.weirdApp=\java\weblogic\myserver\weirdApp.war
    weblogic.httpd.webApp.weirdAppTwo=\java\weblogic\myserver\weirdAppTwo.war
    (Note: I have used two diferent war files, because I have a different
    implementation of the jsp page, I could have used the same warfile, and
    deployed it two times with the same different names I have used)
    These two applications have a jsp named myHomePage.jsp
    If I access the first application, like this:
    http://myServer:7001/weirdApp/myHomePage.jsp
    the servlet for myHomePage is created in
    /java/weblogic/myserver/WEB-INF/_tmp_war/jsp_servlet/_myhomepage.class
    If I access the second application, like this:
    http://myServer:7001/weirdAppTwo/myHomePage.jsp
    the servlet for myHomePage is created in
    /java/weblogic/myserver/WEB-INF/_tmp_war/jsp_servlet/_myhomepage.class
    It overrides the first one! Because the servlets are keeped in memory by
    a different class loader this seems to not affect the other servlet, but
    I am wondering what may happen with this strange beaver from weblogic!
    Bruno Antunes,
    Java Software Engineer
    email: mailto:[email protected]
    Phone: +351.21.7994200
    Fax : +351.21.7994242
    WhatEverSoft - Java Center
    Centro de Competencia Java
    Praca de Alvalade, 6 - Piso 4
    1700-036 Lisboa - Portugal
    URL: http://www.whatevernet.com
    ****************** Internet Mail Footer ****************************
    A presente mensagem pode conter Informação considerada Confidencial.
    Se o receptor desta mensagem não for o destinatário indicado, fica
    expressamente proibido de copiar ou endereçar a mensagem a terceiros.
    Em tal situação, o receptor deverá destruir a presente mensagem e
    por gentileza informar o emissor de tal facto.
    Privileged or Confidential Information may be contained in this
    message. If you are not the addressee indicated in this message,
    you may not copy or deliver this message to anyone. In such case,
    you should destroy this message and kindly notify the sender by
    reply email.

    I have a separate java class that gets my data and returns a Result object. Do you mean java.sql.ResultSet?
    In my main servlet I do the following:
    request.setAttribute("supporttracker",
    supporttracker.findsupporttracker(monthYear));
    and then in my JSP I can iterate through the Result
    like the following with no problems:
    <c:forEach var="supporttracker" begin="0"
    items="${supporttracker.rows}" varStatus="counter">
    My problem is that I can only iterate through this
    once in the page whereas I have no problem doing
    multiple forEach loops through other types of
    lists/collections such as an ArrayList. Right, because a ResultSet is a database cursor and doesn't act the same way that an ArrayList does. It's more like an InputStream - once you read it, you close it. If you want to re-read it, you have to re-initialize it again.
    Iterators behave that way, too. Once you walk through them, you have to re-initialize them.
    I've looked
    on the web and in a couple of books, I first thought
    it may be scope or some attribute in forEach that I
    was missing but I'm stumped. It seems like it's
    because the pointer to the result set is at the end
    of the result set when trying the second iteration,
    but I thought by using the begin="0" would put the
    pointer at the first row again, on my second
    iteration I'm getting no rows/data outputed.
    Please help and thanks in advance!The better thing to do is for your method to return a List of objects, one per row, that represent what the ResultSet returns. Have that method iterate through the ResultSet, loading the rows into the List, and close it before you leave in a finally block. A database cursor is a scarce resource, so it's a good idea to close it as soon as you can.
    %

Maybe you are looking for