Deploying multiple wars within an ear (including web services) - pls advise

**Apologies - this post also appears in the standard Java forums, before I realised there was a separate Enterprise forum!**
Hello all
I am working on an application that receives XML messages from sending systems, processes them and forwards them to receiving systems. There is a set of rules concerning who can send what to who. The entry and exit points to the application are web services.
I would be very grateful for some general advice on best practice for packaging this application. I have done a lot of browsing and read some articles, but I understand the whole picture has changed recently with the growing popularity of web services and that many of the articles I have read are probably out of date.
The whole thing could be packaged into a single war, but it would be ideal to treat the different components separately as in the future they may be modified and deployed separately. I therefore envisaged having 3 wars in an ear as follows: -
a. A set of incoming web services to receive messages from the sending system. This is like a hook into b (below). The sending systems will be clients to these web services.
b. A web application that takes the messages from a and processes, authenticates and transforms them.
c. A set of outgoing web services that sends the message on to the receiving system. These will be like facades to the receiving systems and b will be a client to them.
The whole thing would then work in reverse to process the response.
A few questions: -
1. I know I haven't given much info here, but does this seem like a reasonable basic packaging strategy? Any other suggestions?
2. Is it good practise to package multiple wars together into an ear? If anyone could send me an example ant script that does this, I would be so grateful.
3. Wars a and c above will both need to have full visibility and access to b, which is the "brains" of the whole thing. How is this best achieved when packaging?
4. If you could point me in the direction of a best practice guide, examples or tutorials, I would be very grateful.
Many thanks for taking the time to read my post - and for any replies.
Kind regards
Jon

That is a viable method to package your application, pending the architecture of your application supports this.
Each WAR file will be packaged as a seperate web application and all web applications on that web server will be able to communicate with each other over sockets by having the URL of the web component that you wish to communicate with. This interface needs to be there mind you.
EAR files are generally deployed to an application server so if you happen to have an application server like Weblogic or Websphere then this would be an ideal setting for hosting your application. Packaging in an EAR file and also hosting on an application server gives you the benefit of using J2EE constructs, like EJB's to provide an alternative means of communication between different web components.
Packaging seperate wars into an ear file really wouldn't work out too well with just a standard servlet container like Tomcat.

Similar Messages

  • Unable to deploy a war(includes web services)packaged into EAR on jboss 5.0

    I am new to web services and wanted to develop one
    I used the following softwares / IDE
    Eclipse 3.4.2
    Apache Ant 1.7
    Jboss AS 5.0.1
    JBoss ws 2.0
    jbossws-native-bin-dist 3.2.1GA
    sun jdk 1.6.0_12
    So i started off quite well configuring all that is required to create a web service
    i took the help of eclipse ide tools like create web service and create web service clients.
    when i created the web project in eclipse i selected the option add project to ear.
    and finally i start the jboss server with in eclipse and add project the ear file that contains the war file.
    just when i thought all is fine the server throws an error
    13:01:52,929 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/ state=PreReal mode=Manual requiredState=Real
    org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/TempWs.war/
    I have searched jira to find a solution for this , but i think i couldnt find an appropriate solution
    I am not sure if the search critirea i entered was close to the issue.
    The log pasted below is the one when i start jboss from with in eclipse .
    13:01:52,929 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/ state=PreReal mode=Manual requiredState=Real
    org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/TempWs.war/
    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NoSuchMethodError: org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit.getMetaDataFiles(Lorg/jboss/virtual/VirtualFileFilter;)Ljava/util/List;
    at org.jboss.webservices.integration.deployers.deployment.AbstractDeploymentModelBuilder.newDeployment(AbstractDeploymentModelBuilder.java:119)
    at org.jboss.webservices.integration.deployers.deployment.AbstractDeploymentModelBuilder.newDeploymentModel(AbstractDeploymentModelBuilder.java:62)
    at org.jboss.webservices.integration.deployers.deployment.WSDeploymentBuilder.build(WSDeploymentBuilder.java:82)
    at org.jboss.webservices.integration.deployers.WSDeploymentDeployer.internalDeploy(WSDeploymentDeployer.java:66)
    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
    ... 24 more
    13:01:52,945 WARN [HDScanner] Failed to process changes
    org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
    DEPLOYMENTS IN ERROR:
    Deployment "vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/" is in error due to the following reason(s): java.lang.NoSuchMethodError: org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit.getMetaDataFiles(Lorg/jboss/virtual/VirtualFileFilter;)Ljava/util/List;
    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:806)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    Please help.

    When you say:
    I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
    startup the OC4J instance.
    We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
    It sounds like you have some funky issues there with those missing XML files -- that is not expected or normal.
    Do you mean you copied the same oc4j_extended.zip to the server and unzipped it, or you zipped up the directories you were using on the Windows box, copied that over, and unzipped it?
    I don't know of any problems with Solaris, JDK5, U12.
    What about if you do this to remove any issues with the remote copy aspect of the deployment.
    1. Stop OC4J.
    2. Manually copy CISS.ear to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/
    3. Edit the j2ee/home/config/server.xml file and add the entry to deploy the application
    4. Edit the j2ee/home/config/default-web-site.xml and bind any web-modules you need.
    5. Start the server and see what happens -- the application should be deployed.
    Also, what happens if you use the $JAVA_HOME/bin/jar to try and view the contents of the CISS.ear file?
    -steve-

  • Merge multiple WAR to single EAR for deployin JDev 11.1.1. & WLS 10.3.1

    Greetings Experts,
    First of all, i've read so many threads here in this forum and i rarely find threads regarding Merging multiple WAR to a single EAR for deployment (CMIIW).
    Anyway, i have an issue reagarding my applications.
    Currenty, I have a lot of web applications, and each of them is deployed as a single EAR file into the weblogics 10.3.1. And lots of EAR is then deployed to a single Managed Server in WLS.
    From reading many references, it seems that what i have done is not entirely correct, because of the inefficient use of resources in a single Managed server in WLS (lots of EAR in a single Managed Server (MS) may takes more overhead cost).
    Therefore, i am planning to merge those small applications (EAR) to a single bigger EAR, so that it will reduce the numbers of EAR in a single managed server.
    Currently, we are trying to merge the small application as WAR and combine them to EAR. FYI, we are using ADF based web application, thus, each web application (WAR) will have its own adfc and each.
    At this moment, we are able to deploy a single EAR with 2 WARs inside it. However, when we try to run the application, only 1 application is able to be run. The other one is giving me "404 Page not Found".
    By reading the forum, there is a lead on using adfc-setting.xml. We've tried using that but still did not work (probably our adfc-settings.xml is not correct).
    My question is, are there any more references on how to merge WAR files to a single EAR from JDEV and deploy it to WLS 10.3.1. or anybody want to share their experiences?
    Thank you in advanced...

    Is a different context root specified for the 2 web apps.
    <application>
    <display-name>test</display-name>
    <module>
    <web>
    <web-uri>webapp1.war</web-uri>
    <context-root>webapp1</context-root>
    </web>
    </module>
    <module>
    <web>
    <web-uri>webapp2.war</web-uri>
    <context-root>webapp2</context-root>
    </web>
    </module>
    </application>

  • Deploy pre-compiled client proxy with a web service

    When a web service is deployed on an OAS server, the page at the endpoint URL includes a link to a proxy jar file (<endpoint url>?proxy_jar). I have a proxy jar that I've built and I'd like to be able to include it in my war file so that the proxy jar URL will download it instead of the server-generated one. Is there a way to do that?
    I did something similar with the wsdl file: I included it in the war file in the same folder and filename as the web service interface class, but that didn't work for the proxy jar file.
    -Peter

    Hi Peter,
    You cannot replace the proxy jar generated by the Oracle Web Services runtime with your own version. If you want to provide your own version, you will have to handle it as a classic resource in your .ear file, and advertize the location of this resource using some other mechanism.
    -Eric

  • Including web service jaras in final jar file

    Hello all.
    Im using netbeans 4.0. I have used JAXB code in my program, ie. Ive used a few packages I created with the XJC compiler so i can unmarshall some XML documents. I have included the four JAXB Jar files from the Java Web Services Developer Pack in my project by including them in the projects "Classpath for compiling sources". This works fine when running in netbeans. But when I try running the project outside netbeans by double clicking on the generated JAR file I get a
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    Im guessing this is because it can't see the jaxb jar files when not run from within netbeans. How would I include the jaxb jars in the jar file that netbeans generates?
    I know this is partly an IDE related question but I thought it must be a fairly common problem when creating JAR files so i posted it here.
    Any help is appreciated.
    thanks

    Im guessing this is because it can't see the jaxb jar
    files when not run from within netbeans. How would I
    include the jaxb jars in the jar file that netbeans
    generates? You wouldn't include them in that jar file. You would include Class-Path entries (which refer to the jaxb jars) in the manifest of the jar file that Netbeans creates.
    Don't ask me how to do that, I don't use Netbeans. I assume that Netbeans must support it somehow, but if you can't find out how then a Netbeans forum would be a good place to ask.
    I know this is partly an IDE related question but I
    thought it must be a fairly common problem when
    creating JAR files so i posted it here.

  • Multiple selection in value help  with Web service

    Hi All,
    I want to get data from web service and store in data base. I created input form with set of inputfields. For some input filds in that input form, I want to get value from web service.So I have used value help wizard. I followed below link to create value help wizard for web service.
    Value help wizard working with java web service ?
    While creating value help, it is only showing 'single selection' option. It does not showing any other options. Here I want to get multiple values from value help. How can I acheive this?.
    Thanks,
    Venkatesh R

    Hi Venkat,
    Try the below links for value help in visual composer.
    Visual Composer: Value Help Data Service
    Choosing Multiple Values within Visual Composer
    http://help.sap.com/saphelp_nw04s/helpdata/en/50/91db4238bbf140e10000000a1550b0/frameset.htm
    Regards
    Basheer

  • Deploy "command-line like" argument to a web-service possible?

    Hi,
    I have an axis web-service, and I need to give it a kind of "argument parameter" when I deploy it, like which configuration file it has to use.
    I don't know if this is possible, but just like a java Main method takes "String arg[ ]" params, would it be possible to pass a String argument to a web service when I deploy it and then the web-service can access the string during run-time?
    Any solution, like maybe putting something special in the axis .wsdd deployement file?
    Any help welcome!
    Lokakuu

    Hi Peter,
    You cannot replace the proxy jar generated by the Oracle Web Services runtime with your own version. If you want to provide your own version, you will have to handle it as a classic resource in your .ear file, and advertize the location of this resource using some other mechanism.
    -Eric

  • Populating datagrid using web service. pls help me...

    i don't know why i cant populate my data grid using data on a
    web service, i try to access web service by a simple return string
    like helloworld and it is working but when i try to get data in web
    service nothing happens there is no error on my builder and web
    page, but it dont display the data.. bellow is my web service and
    code. pls help i need this to work.. thanks..
    <DataTable>

    <xs:schema id="NewDataSet">

    <xs:element name="NewDataSet" msdata:IsDataSet="true"
    msdata:MainDataTable="Customer" msdata:UseCurrentLocale="true">

    <xs:complexType>

    <xs:choice minOccurs="0" maxOccurs="unbounded">

    <xs:element name="Customer">

    <xs:complexType>

    <xs:sequence>
    <xs:element name="num" type="xs:string" minOccurs="0"/>
    <xs:element name="name" type="xs:string"
    minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>

    <diffgr:diffgram>

    <DocumentElement>

    <Customer diffgr:id="Customer1" msdata:rowOrder="0"
    diffgr:hasChanges="inserted">
    <num>1</num>
    <name>String1</name>
    </Customer>

    <Customer diffgr:id="Customer2" msdata:rowOrder="1"
    diffgr:hasChanges="inserted">
    <num>2</num>
    <name>String2</name>
    </Customer>

    <Customer diffgr:id="Customer3" msdata:rowOrder="2"
    diffgr:hasChanges="inserted">
    <num>3</num>
    <name>String3</name>
    </Customer>
    </DocumentElement>
    </diffgr:diffgram>
    </DataTable>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.controls.Alert;
    [Bindable] private var ArrayData:ArrayCollection;
    private function getString(event:ResultEvent):void{
    Alert.show(event.result.toString());
    private function getStringError(event:FaultEvent):void{
    Alert.show("Error");
    private function button_click():void{
    Test.HelloWorld.send();
    private function getData(event:ResultEvent):void{
    grid.dataProvider =
    event.result.diffgram.DocumentElement.Customer;
    private function getDataError(event:FaultEvent):void{
    Alert.show("Error");
    private function button1_click():void{
    Test.getData.send();
    ]]>
    </mx:Script>
    <mx:WebService id="Test" wsdl="
    http://localhost/HawkWeb/Hawkeye.asmx?wsdl">
    <mx:operation name="HelloWorld" result="getString(event)"
    fault="getStringError(event)" />
    <mx:operation name="getData" result="getData(event)"
    fault="getDataError(event)" />
    </mx:WebService>
    <mx:Button x="10" y="10" label="Get String"
    click="button_click()"/>
    <mx:Button x="10" y="40" label="Get Data" width="83"
    click="button1_click()"/>
    <mx:DataGrid id="grid" x="10" y="70" width="501">
    <mx:columns>
    <mx:DataGridColumn headerText="Num" dataField="col1"/>
    <mx:DataGridColumn headerText="Name"
    dataField="col2"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>

    the datafield in my code is wrong, i change it to num and
    name. but nothing happens..

  • Multiple wars in an ear

    Hello,
    I am having a questionabout mutilple wars in a single ear.
    Can someone explain me the advantages and disadavantages in it?
    And also is it possible to have a seperate ear in a war ??
    Thanks

    Can someone explain me the advantages and
    disadavantages in it?well, the advantage is that if you have 2 web applications, you can logically separate them into separate wars so that you can reuse and it's more organized. disadvantage is that you cannot (easily) share sessions across wars. there are more advantages and disadvantages than just that, but that's what comes to mind.
    And also is it possible to have a seperate ear in a
    war ??No.

  • How to develop and deploy multiple worker roles in single azure cloud services?

    I am Manikandan, From Myeasydocs.com.
    We have developed our application as web projects.  Now we are going to move to azure cloud services, i have successfully migrated our application in cloud services and it worked fine. I am having difficulties with back ground task. i have nearly 12
    schedule tasks in our applications. I need assist on creating multiple worker role creation and deployment.
    Is there is any site on explaining the worker role process in details?
    Thanks in advance .. !!

    Hi,
    In Worker role, Applications hosted within worker roles can run asynchronous, long-running or perpetual tasks independent of user interaction or input. It is a service component that is useful for generalized development, and may perform background processing
    for a web role. A worker role is frequently used for long-running tasks that are non-interactive, but you can host any type of workload.
    I suggest you to follow the below article which explains about Creating and Deploying of Web Roles and Worker Roles in Azure Cloud Service using Visual Studio.
    https://msdn.microsoft.com/en-us/magazine/jj618299.aspx
    Hope this helps !
    Regards,
    Sowmya

  • Deploying a jsp with calls to CS Web Services to OC4J 10.1.2.0.2

    Hi
    My jsp (with CS webservices calls) works fine when deployed in the embedded oc4j that comes with jdev 10.1.2.0.0 but when I deploy the jsp to OC4J 10.1.2.0.2 with a preconfigured jpdk (available for download from otn at http://download.oracle.com/otndocs/tech/ias/portal/files/pdk101202_oc4j_extended.zip) I get the following error
    Any thoughts?
    500 Internal Server Error
    java.lang.IncompatibleClassChangeError     at org.apache.axis.message.MessageElement.addTextNode(MessageElement.java:1387)     at org.apache.axis.message.SOAPHandler.addTextNode(SOAPHandler.java:148)     at org.apache.axis.message.SOAPHandler.endElement(SOAPHandler.java:112)     at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)     at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1257)     at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)     at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)     at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)     at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:288)     at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)     at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)     at org.apache.axis.client.Call.invokeEngine(Call.java:2765)     at org.apache.axis.client.Call.invoke(Call.java:2748)     at org.apache.axis.client.Call.invoke(Call.java:2424)     at org.apache.axis.client.Call.invoke(Call.java:2347)     at org.apache.axis.client.Call.invoke(Call.java:1804)     at oracle.ifs.fdk.RemoteLoginManagerSoapBindingStub.login(RemoteLoginManagerSoapBindingStub.java:242)     at oracle.ifs.examples.ws.WsConnection.login(WsConnection.java:210)     at oracle.ifs.examples.ws.WsConnection.login(WsConnection.java:132)     at oracle.ifs.examples.ws.SearchOperations.<init>(SearchOperations.java:106)     at htdocs.contentportlet._ContentPortletShowPage._jspService(_ContentPortletShowPage.java:51)     [SRC:/htdocs/contentportlet/ContentPortletShowPage.jsp:8]     at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:534)

    I have found the solution:
    The Content Services Libraries include a saaj-api.jar (for soap messages between the cs client java code and the server side webservices api).
    Unfortunately, the preconfigured oc4j container downloaded from otn included an older version of saaj.jar in its j2ee/home/applib directory, which of course was found before the cslib version according to the default order in which class paths are read.
    All I had to do was remove he saaj.jar from the oc4j/j2ee/home/applib directory so that content services could find its own (more upto date) version

  • How can i expose a stateless session bean with in .ear as web service?

    This is my situation.
    I have an .ear file and in that i have several other .jar files which are
    inter-dependant, lets say
    A.jar
    B.jar
    C.jar files
    and i want to expose only A.jar as
    webservice, how can i do that ?
    Does WLS8.1 provided any way how to do that?
    I Appreciate any suggestions and advices.
    Thanks
    kk

    I used a different method...
    I used servicegen with only a.jar to create the ear.
    I touch-ed my own application.xml to make it newer than the one already in the
    newly created ear.
    I used the ant <ear> task to add b.jar, c.jar, and application.xml to the ear.
    Worked like a charm.
    Mike
    Bruce Stephens <[email protected]> wrote:
    Hello,
    See if Neal's answer here helps solve your problem using servicegen's
    service element "IncludeEJBs" attribute:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=2932&utag=
    HTHs,
    Bruce
    kk wrote:
    This is my situation.
    I have an .ear file and in that i have several other .jar files whichare
    inter-dependant, lets say
    A.jar
    B.jar
    C.jar files
    and i want to expose only A.jar as
    webservice, how can i do that ?
    Does WLS8.1 provided any way how to do that?
    I Appreciate any suggestions and advices.
    Thanks
    kk

  • Deployment step of testing an app or web service

    We're running into a snag, and after much rveiew of the docs, the forum and google, I thought I better give the community a chance to address my snag head-on:
    Upper mgmt has asked that we switch JDev 11g from going to Weblogic to Tomcat6 when in testing mode. I find plenty that speaks to end-phase deployment, but nothing that says how to move midstream deployment (during dev/testing) to use a different app server, and our need is for Tomcat6.
    On another thread (Re: jdeveloper 11g and Apache tomcat 6.0.x it seemed that I had some useful info for deployment of a finished app, but could not tell if this was also needed (or needed at all with 11g) for testing.
    Help!

    The basics of using another server instead of the integrated WLS are:
    Set up a connection to Tomcat from inside JDeveloper - you can then use this connection to package and deploy your application.
    Alternatively you can use Ant scripts in JDeveloper to do the deploy for you.
    You can set up remote debugging for your project and debug the code while it is running on the Tomcat server.

  • Is it possible to define multiple web services in one project?

    I'd like to publish multiple components within one project as web services. but when I try to create it using the project New menu, it only prompts me and allows me to select one component . So does this mean only one web service can exist in one project?

    Sunil
    Thanks for the prompt reply.
    I think I should have worded my question more clearly.
    I have a project with multiple Java classes. I'd like to convert two of them into web services.
    There are two ways to co this.
    1. I right click on each class and select the Generate J2EE Web Service option. This will work correctly and allow multiple web services to be generated.
    but this is not what I want to do .
    What we are trying to do is to generate web services at the project level. I am following instructions in OTN web services tutorial :
    http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    So , this is what I do :
    1. Right-click on my project and select New from the context menu.
    2. In the New Gallery, expand Business Tier in the Categories list and select Web Services, then select Java Web Service from the Items list. Click OK.
    3. In the Select J2EE Web Service Version dialog, select J2EE 1.4 (JAX-RPC) Web Service, then click OK.
    4. Click past the welcome page
    5. This brings me to the page where I can select the web service and class.
    This is where I am stuck - it seems I can only select one web service here . Unless I am missing something.
    Or should I just repeat the process multiple times - running the wizard once for each class ?
    Thanks for the help.

  • Deployment of multiple webapp's within an ear

    I am trying to deploy an ear file with multiple webapps in OC4J, but without success.
    I have build an ear file containing all the webapps of the UIX 2.0 Demo bundle, which I want to deploy as UIX development documentation. The ear and wars are extracted successfull and there is no single message which indicates a problem of the deployed ear.
    When accessing the webapps I get an HTTP 500 Internal Server Error. I always get this error when the http-web-site.xml is configured wrong, so I assume it is not configured in the rightway. Because of the multiple webapps within the ear.
    Here is some code from those files:
    server.xml
    <application name="uixdemobundle" path="../applications/uix20demobundle.ear" auto-start="true"/>
    http-web-site.xml
    <web-app application="uixdemobundle" name="uixdemobundle" root="/uixdemobundle"/>
    Normally this is enough to configure single webapp. Do I have to add more lines to http-web-site.xml for each webapp ? Something like the following for instance or does the above line work recursively.
    <web-app application="uixdemobundlehome" name="uixdemobundlehome" root="/uixdemobundle/home"/>
    <web-app application="uixdemobundledocs" name="uixdemobundledocs" root="/uixdemobundle/docs"/>
    Can somebody help me out on this issue ?
    Regards Michel

    Hi,
    I managed to fix this problem. For those who mite come across the same issue in the future, this is how i did it.
    I put the applets code in the war file under an applet dir. That the the index.html is in the root (of the war dir) and the applets code is in a /applet dir.
    Hence the codebase simply reads, codebase="applet/"
    Cheers
    EnterpriseJavaBones

Maybe you are looking for

  • Mixing RAM Mac Pro

    Hello! I have read the other posts about this issue but I want to make sure I understand it correctly. Do not mix 4 & 8gb RAM with 16gb and higher RAM. That part I get, but what I want to be sure of is that I can configure the RAM as follows... 2 slo

  • I am having trouble viewing the entire content of a PDF opened with adobe reader on my ipad.

    I am having trouble viewing the entire content of a PDF opened with adobe reader on my ipad. Mi am able to view the file in its entirety on my Mac but not on my ipad.  I have tried saving it to acrobat but that doesn't work either.  Any suggestions p

  • Motion 3 and animating vector files using match move

    I'm having trouble animating a vector file using MatchMove. The problem is the vector file (Ai file exported as PDF and imported into Motion3) becomes rasterized when is moves. I have Fixed resolution unchecked and i changed the Pixel Aspect Ratio to

  • Multiple instances in Windows 7. & Adding Administrator in DBA group

    i have installed two databases Using DBCA in win7, & den used set oracle_sid= <old instance name> then when i said  sqlplus / as sysdba The new instance is starting.. then i tried sqlplus  sys/sys  as sysdba previous instance password.. it's asking f

  • Create Favourate for table content

    Hi, Jdev 11.1.1.5.0 I've created a tree structure from a single DB table using self-reference. I can select the required nodes from this tree and clcik on command button, then will display a table with the selected nodes information. Till this part,