War generation Jdev 10

Hi everybody,
I'm trying to deploy a web application with Jdev 10.1.3.3 (target webserver will be OC4J 10.1.3.5).
My project has the classical structure, with a "Model" project for ADF-BC and a "ViewController" project for the view layer.
To create a web archive, I use "new->development profile"->WAR archive" and double clicking on it I have the following
file groups:
web files __ project html root directory
|_ project dependencies
web-inf/classes _ project output directory
|_project dependencies
web-inf/lib
The archive is generated without errors; I igot an .ear and .war files and I'm able to deploy it.
The problem is that the archive file seemed too big, so I opened it and I discovered that under web-inf/lib there are
directories that shouldn't be there:
WEB_INF/lib _____ public-html ______ .......
|____ classes |____ WEB_INF
|____ src
The 3 directories public-html. classes and src shouldn't be there!!!
I tried a lot of different deployment descriptors, adding and removing file groups and contributors but this problem
persist, unless I don't put the libraries section: At the moment I'm editing manually the war with winrar to remove
the unecessary files.
Has anyboby coped with this kind of problems and found a work-around?
Greetings.
Antonio.

Hi Onur, thanks for your reply.
Actually, when I create a War in my view project also A Ear is automatically generated by JDev and the classes
from the Model project are added automatically, since the View project is dependent from the model project
(this is done dy selecting "project dependencies" in the "web-inf/classes" file group of the deplyment profile.
If I have to generate a Jar for the Model, a War for the view and then build an Ear every time I deploy, it takes
more effort that deleting the extra files from the final archive that I got automatically from JDev.
I think that there is some configuration im my projects that "confuses" Jdev or maybe this is just a bug in Jdev.
Greetings.
Antonio

Similar Messages

  • How to create custom images c.war, similar to i.war.  --context not working

    ORDS beta 3.0..65.09.31
    I am trying to create a custom images c.war file, similar to the way one creates the i.war file for the APEX satic images.
    The directions say:
    java -jar ords.war static [--context] <location>
    Options:
               [--context]           The context path at which the
                                     WAR will be deployed,
                                     defaults to: /i
    Arguments:
               <location>            The location where the Oracle
                                     Application Express static
                                     resources are stored
    but I have yet to find any combination of syntax that will give me a war that maps to /c instead of /i, the default.
    For example:
    C:\oracle\ords3.0.0.65.09.31>java -jar ords.war static --context /c   C:\oracle\custom_htmldb
    WAR Generation complete
    WAR location     : C:\oracle\ords3.0.0.65.09.31\i.war
    Context path     : /i
    Static resources : C:\oracle\custom_htmldb
    Ensure the static resources are available at path: C:\oracle\custom_htmldb
    on the server where the WAR is deployed
    and
    C:\oracle\ords3.0.0.65.09.31>java -jar ords.war static --/c   C:\oracle\custom_ht
    mldb
    java -jar ords.war static [--context] <location>
    Options:
               [--context]           The context path at which the
                                     WAR will be deployed,
                                     defaults to: /i
    Arguments:
               <location>            The location where the Oracle
                                     Application Express static
                                     resources are stored
    --/c is not a valid option
    and variations using quotes and single quotes - all result in the same, either /i gets mapped or I get the directions again/
    This has to be something really simple.
    Please help!
    Thank you

    hi Jose,
    thanks for your answers, i tried to emulate the same but during step create time constraint in OOVK i am getting an error below:
    Specify the key within the work area
    Message no. SV033
    Diagnosis
    You have attempted to create an entry whose key is not in the range defined for this area.
    System Response
    The entry cannot be created.
    Procedure
    Please check your entry.
    below are the steps i executed upto now.
    Create infotype smilar to IT 1001 (ppci)
    Created new object type (ooot)
    created new relationship along with allowed relationship (oovk)
    Do you have any idea where it went wrong?
    Mani

  • Can not create i.war using java -jar ords.war static

    C:\glassfish4\ords>java -jar ords.war static "c:\app\sybrandb\apex_4.2.6\apex\im
    ages"
    WAR Generation complete
    WAR location     : C:\glassfish4\ords\i.war
    Context path     : /i
    Static resources : c:\app\sybrandb\apex_4.2.6\apex\images
    Ensure the static resources are available at path: c:\app\sybrandb\apex_4.2.6\ap
    ex\images
    on the server where the WAR is deployed
    I downloaded ORDS from OTN yesterday
    Needless to say this directory does exist (it works when I run the listener standalone, providing this path)
    Why is everything which Oracle releases in this area always broken and badly documented?
    HELP!
    Sybrand Bakker
    Senior Oracle DBA

    To create the manifest, you use the constructor
    JarOutputStream(OutputStream out, Manifest man).
    However, I am having problems with creation of my files and I came here to look for answers. No .war file i have created has been deployable.

  • How to convert Java code to Webservice and deploy in to JBOSS via JDEV11g

    Hi All,
    Greetings. I am trying to develop Java Web service from JDeveloper 11g which has 2 basic methods. I can able to develop the WS out of the Java through Jdev and can able to test the webservice with the help of "Test Web Service" menu option under .JPR.
    But when I am trying to deploy the WS.War file in to JBOSS app server (which is our project default server) from JDEV I couldn't able to get the option thought I have created the JBOSS server connection in Jdev. I can see only weblogic server connection under DEPLOY menu. Even if I edit the SOAP URL in WSDL to point JBOSS host and port and manually deploy the WAR in to JOBSS, it is not working, getting deployment error.
    Anyone please guide me how to edit the WDSL which should point my JBOSS server (http://localhost:8080) and how to deploy the WAR and access the webservice from my Browser. Step by step help will be really appreciated since I am new to WS. Make this WS work is very important and urgent task in our project. But no luck so far.
    Thanks in advance for each of you. Waiting for the position help.
    klogube

    Hi Shay,
    Thanks for providing the blog URL which helped me to solve my first project. Now I have changed my WebServices deployment server from JDEV Default Apps server (Weblogic) to JBOSS. Now I can directly deploy Ws.WAR from JDEV to JBOSS. But I am getting the error in the JBOSS log as soon as I deploy the WAR.
    2009-02-02 17:21:29,985 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/opt/jboss-4.2.3.GA/server/default/deploy/Testing-SampleWebServices-context-root.war
    java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=Testing-SampleWebServices-context-root,endpoint=DateTestingWSSoapHttpPort
         at org.jboss.wsf.framework.management.DefaultEndpointRegistry.register(DefaultEndpointRegistry.java:89)
         at org.jboss.wsf.framework.management.ManagedEndpointRegistry.register(ManagedEndpointRegistry.java:59)
         at org.jboss.wsf.framework.deployment.EndpointRegistryDeploymentAspect.create(EndpointRegistryDeploymentAspect.java:49)
    .................etc
    2009-02-02 17:21:29,987 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@a99914c8{ url=file:/opt/jboss-4.2.3.GA/server/default/deploy/Testing-SampleWebServices-context-root.war, deployedLastModified=0 }
    org.jboss.deployment.DeploymentException: Could not create deployment: file:/opt/jboss-4.2.3.GA/server/default/deploy/Testing-SampleWebServices-context-root.war; - nested throwable: (java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=Testing-SampleWebServices-context-root,endpoint=DateTestingWSSoapHttpPort)
         at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
         at org.jboss.deployment.MainDeployer.create(MainDeployer.java:991)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
         at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    .....etc
    Please help me, how to overcome this error and invoke my WS from http://localhost:8080...... (JBOSS path). I am trying to create client application too for invoke my WS and I failed to create the same while I am mapping the WSDL path in to the client application. Getting error, WSDL path is not available under localhost. (Note: I can able to see the list of WS's deployed in to JBOSS under: http://localhost:8080/jbossws/services which display the Endpoint name and address. But cant able to access the URL)
    Thanks
    klogube

  • Unable to depoly Web Serivce for the source code written in other editors

    Hi all,
    I am planning to implement webservice with the following code. But I am facing few problems with this can some body help me with this.
    The code looks like this AND IS NOT WRITTEN IN Jdeveloper BUT EDITPLUS
    package package1;
    public class Sum
    public int getSum(int a, int b)
              return a+b;
    package package2;
    public class Sub
    public int getSub(int a, int b)
              return a-b;
    package package3;
    import package1.*;
    import package2.*;
    public class Mul implements TestInterface
         Sum sm = new Sum();
         Sub sb = new Sub();
    public int getMul(int a, int b)
              return sm.getSum(a,b)*sb.getSub(a,b);
    public static void main(String [] args)
              Mul ml = new Mul();
              System.out.println(“The result of (3+6)*(3-6) is “+ ml.getMul(3,6));
    package package3;
    interface TestInterface extends java.rmi.Remote;
         public int getMul(int a, int b) throws java.rmi.RemoteException;
    I have written this in editplus. Not in Jdeveloper.
    Now I want publish getMul() as web service using Jdeveloper.
    I have created a new application work space. And from File--&gt;New
    I have choose project from existing source and imported “package3”.
    At this stage it was unable to find the class files Sum and Sub so I placed Sum.class and Sub.class in Appliction1-Project1-classes-
    Now the Mul class did not have any errors and it compiled fine. When run it gave the correct output.
    Using the web service wizard I was able to generate wsdl file , deployment descriptors etc.
    The problem I was facing was form this stage when I am trying to deploy it on to a standalone oc4j server it is not able generate the WebServices.war file and hence is not deployed on to the server.
    With the same code written in Jdeveloper everything is working fine.
    My doubts are
    1)     why is it not able to generate WebService.war file?
    2)     It is giving some ClassNotFound exception during the deployment. But when compiled and run its giving the correct output.
    3)     Even when everything was written from within the Jdevelper it did not include Sum.calss and Sub.class in WebSevice.war. Is there any way we could mention during its (WebService.war) generation , the class files to be Included.
    The other issue is how to add an existing source code to already existing project. In my case Once I have imported package3 I also want to import package2 and package1 in different steps.
    I thank in advance for helping me.
    Raja Vamshi k Gopu

    Can you tell us what you mean by correct type of project?
    You can start with an empty project. Then, you have to create an "EAR file" deployment profile (New Gallery / General / Deployment Profiles).
    So when I deploy a J2SE module onto oc4j server should I specify the class path? If so where ? How can I solve this problem?
    Once you deploy your code into oc4j, it becomes a J2EE application. You don't need to deal with the classpath - just make sure that all the required code is included in your .war file. To do so, check the list of classes packaged under the deployement properties dialog.
    Can you send me the links of few articles where I can learn more about these kind of stuff?
    If you want to assemble applications without to use JDeveloper wizard, you have another option: using the WebServiceAssembler tool that is par of the oc4j bits will help you to do this from a command line promt, and will handle the J2EE packaging aspect for you.
    See online documentation (10.1.2): http://download-west.oracle.com/docs/cd/B14099_04/web.htm
    In the "Developer's Guide", chapter 9 is about "Web Services Tools"
    For JDeveloper J2EE samples, you can start by looking at the OBE: http://www.oracle.com/technology/obe/obe_as_1012/j2ee/index.html
    Hope this helps,
    Eric

  • Java Web Start and BC4J/OC4J

    Hi all developers,
    This is my first forum message, and I hope that there is someone that can help me.
    Problem: A JClient using BC4J in a 3tier situation work perfectly well when run from within the IDE, however using the Web Start Wizard and deployed to the Application server and run from Java Web Start, it does not work.
    Is there any HowTo or documentation on the right settings, roles, security, procedures, etc. with regard to Jclient, BC4J and Java WebStart?
    Thanks
    Craig

    Ant build file which does the signing
    Please make sure you make a backup of the existing bc4jlibs.ear before you use this build file.
    <!--Ant build file to create bc4jlibs.ear. bc4jlibs.ear is used in
    JClient WebStart application
    <property name="jdeveloper.root" value="D:\JDev9i\"/>
    <property name="ear.file.name" value="D:\JDev9i\jlib\bc4jlibs.ear"/>
    <property name="alias" value="mykey"/>
    <property name="storepass" value="secretcode"/>
    -->
    <project name="buildear" basedir="." default="ear">
    <!--define home for the libraries-->
    <property name="lib.home" value="${jdeveloper.root}/lib"/>
    <property name="ord.home" value="${jdeveloper.root}/ord"/>
    <property name="j2ee.home" value="${jdeveloper.root}/j2ee"/>
    <property name="jlib.home" value="${jdeveloper.root}/jlib"/>
    <property name="jdev.home" value="${jdeveloper.root}/jdev"/>
    <property name="vbroker4.home" value="${jdeveloper.root}/vbroker4"/>
    <property name="jdbc.home" value="${jdeveloper.root}/jdbc"/>
    <property name="BC4J.home" value="${jdeveloper.root}/BC4J"/>
    <!--temp directories-->
    <property name="temp.dir" value="${jdeveloper.root}/jdev/temp"/>
    <property name="temp.war.dir" value="${temp.dir}/warroot"/>
    <property name="temp.ear.dir" value="${temp.dir}/earroot"/>
    <!--define war names for the various libraries-->
    <property name="lib.war.name" value="${temp.ear.dir}/lib.war"/>
    <property name="ord.war.name" value="${temp.ear.dir}/ord.war"/>
    <property name="j2ee.war.name" value="${temp.ear.dir}/j2ee.war"/>
    <property name="jlib.war.name" value="${temp.ear.dir}/jlib.war"/>
    <property name="jdev.war.name" value="${temp.ear.dir}/jdev.war"/>
    <property name="vbroker4.war.name" value="${temp.ear.dir}/vbroker4.war"/>
    <property name="jdbc.war.name" value="${temp.ear.dir}/jdbc.war"/>
    <property name="BC4J.war.name" value="${temp.ear.dir}/BC4J.war"/>
    <taskdef name="appxml" classname="oracle.jbo.dt.jclient.ant.taskdefs.ApplicationXmlGenerator"/>
    <target name="init">
    <mkdir dir="${temp.dir}"/>
    <mkdir dir="${temp.war.dir}"/>
    <mkdir dir="${temp.ear.dir}"/>
    </target>
    <target name="clean">
    <delete dir="${temp.dir}"/>
    </target>
    <target name="sign_jar" if="signing.enabled">
    <signjar jar="${jarname}" alias="${alias}" storepass="${storepass}"/>
    </target>
    <!-- create war for lib jars.-->
    <target name="lib_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${lib.home}">
    <include name="xmlparserv2.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/xmlparserv2.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/lib.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for ord jars.-->
    <target name="ord_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${ord.home}">
    <include name="jlib/jmf.jar"/>
    <include name="jlib/ordhttp.jar"/>
    <include name="jlib/ordim.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/jmf.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/ordhttp.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/ordim.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/ord.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for j2ee jars.-->
    <target name="j2ee_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${j2ee.home}">
    <include name="home/lib/ejb.jar"/>
    <include name="home/lib/jaas.jar"/>
    <include name="home/lib/jms.jar"/>
    <include name="home/lib/jndi.jar"/>
    <include name="home/lib/jta.jar"/>
    <include name="home/oc4jclient.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/lib/ejb.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/lib/jaas.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/lib/jms.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/lib/jndi.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/lib/jta.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/oc4jclient.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/j2ee.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for jlib jars.-->
    <target name="jlib_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${jlib.home}">
    <include name="LW_PfjBean.jar"/>
    <include name="bigraphbean.jar"/>
    <include name="jdev-cm.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/LW_PfjBean.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/bigraphbean.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jdev-cm.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/jlib.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for jdev jars.-->
    <target name="jdev_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${jdev.home}">
    <include name="lib/jdev-rt.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/jdev-rt.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/jdev.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for vbroker4 jars.-->
    <target name="vbroker4_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${vbroker4.home}">
    <include name="lib/vbjorb.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/vbjorb.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/vbroker4.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for jdbc jars.-->
    <target name="jdbc_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${jdbc.home}">
    <include name="lib/classes12.jar"/>
    <include name="lib/nls_charset12.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/classes12.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/nls_charset12.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/jdbc.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for BC4J jars.-->
    <target name="BC4J_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${BC4J.home}">
    <include name="jlib/bc4jctvb.jar"/>
    <include name="jlib/bc4jdatum.jar"/>
    <include name="jlib/bc4jdomgnrc.jar"/>
    <include name="jlib/bc4jimjui.jar"/>
    <include name="jlib/bc4jmtvb.jar"/>
    <include name="jlib/bc4jui.jar"/>
    <include name="lib/bc4jct.jar"/>
    <include name="lib/bc4jctejb.jar"/>
    <include name="lib/bc4jdomorcl.jar"/>
    <include name="lib/bc4jimdomains.jar"/>
    <include name="lib/bc4jmt.jar"/>
    <include name="lib/bc4jmtejb.jar"/>
    <include name="lib/collections.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jctvb.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jdatum.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jdomgnrc.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jimjui.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jmtvb.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jui.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jct.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jctejb.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jdomorcl.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jimdomains.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jmt.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jmtejb.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/collections.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/BC4J.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <target name="create_application_xml" depends="init">
    <appxml appxml="${temp.ear.dir}/application.xml">
    <displayname name="bc4j"/>
    <webmodule weburi="lib.war" contextroot="/lib"/>
    <webmodule weburi="ord.war" contextroot="/ord"/>
    <webmodule weburi="j2ee.war" contextroot="/j2ee"/>
    <webmodule weburi="jlib.war" contextroot="/jlib"/>
    <webmodule weburi="jdev.war" contextroot="/jdev"/>
    <webmodule weburi="vbroker4.war" contextroot="/vbroker4"/>
    <webmodule weburi="jdbc.war" contextroot="/jdbc"/>
    <webmodule weburi="BC4J.war" contextroot="/BC4J"/>
    </appxml>
    </target>
    <target name="ear">
    <antcall target="lib_war"/>
    <antcall target="ord_war"/>
    <antcall target="j2ee_war"/>
    <antcall target="jlib_war"/>
    <antcall target="jdev_war"/>
    <antcall target="vbroker4_war"/>
    <antcall target="jdbc_war"/>
    <antcall target="BC4J_war"/>
    <antcall target="create_application_xml"/>
    <ear earfile="${ear.file.name}" appxml="${temp.ear.dir}/application.xml">
    <fileset dir="${temp.ear.dir}">
    <include name="*.war"/>
    </fileset>
    </ear>
    </target>
    <!--target for signing wars-->
    <target name="sign">
    <property name="signing.enabled" value="true"/>
    <antcall target="ear"/>
    </target>
    </project>

  • Eclipse -- jDeveloper   ((why wont jsp compile))??

    Error(6,20): Attribute 'xmlns:xalan' used but not declared.
    Above error is given.... the xalan.jar in my class path..., but it still doesn't work..
    I have a project that compiles great in Eclipse v3.0 but when I import the war into jDev i get several errors when compiling JSP's that use struts tag libraries.
    (I thought migrating war's would be easier than this)
    Pls help!!
    Don Lykins

    The xalan namespace attribute is used in a Stylesheet.
    xmlns:xalan="http://xml.apache.org/xalan"Are you using taglibs?
    If the <taglib> element in a tld has the xmlns:xalan attribute, remove the xmlns:xalan attribute.

  • JSP Deployment problem

    I kow this topic has been posted but there seems to be no resolution to it. I am having the same problem.
    After deploying the JDev Auction example to Tomcat, I get an error 500: unable to compile ...oracle.jbo.common.appmgr.*.
    Which jar/zip needs to be included to get rid of this error ?
    Thanks,
    Rajendra V Auradkar

    Following is full error message which i received in Message-Log
    panel when unsuccessfully tried to deploy a WAR file to 9iAS.
    Or please let me know how can i deploy/copy it manually to 9iAS
    when all .war & .ear & .jar files are created and ready to
    deploy.
    Please advice. This is a critical time for me.
    Beginning deployment to Oracle9i Application Server...
    Wrote .war file to
    D:\jdev\mywork\AlexusWebWorkspace\TouchProject\webapp1.war
    D:\jdev\jdk1.3\jre\bin\javaw.exe -jar D:\jdev\lib\admin.jar
    ormis://204.147.12.227/ admin **** -deploy -file
    D:\jdev\mywork\AlexusWebWorkspace\TouchProject\webapp1.ear -
    deploymentName webapp1
    Wrote web EAR file to
    D:\jdev\mywork\AlexusWebWorkspace\TouchProject\webapp1.ear
    Invoking Oracle9iAS admin tool...
    Error: javax.naming.NamingException: Lookup error:
    java.net.ConnectException: Connection refused: connect; nested
    exception is:
    java.net.ConnectException: Connection refused: connect
    D:\jdev\jdk1.3\jre\bin\javaw.exe -jar D:\jdev\lib\admin.jar
    ormis://204.147.12.227/ admin **** -bindWebApp webapp1 webapp1
    default-web-site /webapp1
    Exit status of Oracle9iAS admin tool: 0
    ---- Deployment finished. ----
    Error: javax.naming.NamingException: Lookup error:
    java.net.ConnectException: Connection refused: connect; nested
    exception is:
         java.net.ConnectException: Connection refused: connect

  • Wait Cursor issue in JFrame / JButton

    Hi i am Creating some Archive which takes 2 to 3 min . I had set Wait Cursor
    applet.getFrame().setCursor( new Cursor(Cursor.WAIT_CURSOR));
    but after i Click Button (which shows Hand Cursor during Click) after that my wait Cursor is not shown.
    The cursor remains as Hand Cursor??

    Following Code worked for Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
    But not Fixed for 1.5.x or JRE version 1.6.0_10 Java HotSpot(TM) Client VM
    Issue 1:
    The hand Cursor still remain as it is.
    myFrame.setWaitCursor();
                SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                              // business logic for Creating WAR (which takes around 5 min)
                   }Issue 2: When it takes take to create Archive , if we toggle different window 7 come back in my Application Window it shows Blank Window (or half Desktop Window / half my APplication title Window) till it doesnt creates WAR Generation. Is there some paint Issue ??
    After my War is generated I am able to view my UI

  • Did I had a dream?

    Somewhere out of the net I found something like a JDev11 demo along with JHeadstart... (somehow jheadstart was manualy installed) ...
    Did i had a dream or what? I've seen some screenshots of jheadstart in action and they ware with JDev 11g

    Hi,
    best way to figure this out is to ask the JHeadstart guys on their forum if their version 11 is ready for prime
    JHeadstart
    Frank

  • Deploying my fist JSP page

    I use linux's Application Server 10g. I created a JSP page in JDeveloper. Now :
    1.. In which directory I copy it
    2.. What changes will required in configuration files
    3.. How to access the page using http

    You might want to check the online help of JDeveloper for the deployment chapter.
    Basically you create a new deployment profile of type WAR in JDev.
    then you right click it and choose deploy to... and define a connection to your Application Server.
    JDeveloper will deploy the JSP for you to the right location.

  • How Get JDev to Omit data-sources.xml from every .war deployment

    I want a global data-sources.xml file to be used for all deployments. I do not want a copy of my standard data-sources.xml file to be included in every single deployment. I want my global data-sources.xml file to reside in the standard J2EE location of:
    oc4j_home/oc4j_instance_name/j2ee/config/data-sources.xml
    JDeveloper, for whatever reason, includes a data-sources.xml into every .war file. How do we configure JDev to omit the data-sources.xml? How do we set up JDev to automatically configure the .xml files (orion-application.xml, application.xml, etc) to use the global data-sources.xml? I do not want to manually do this for every deployment.
    I've been trying hard to find the answer in JDev online help and other OAS manuals. I read everywhere that I can have a "global" data-sources.xml, but I find no way to easily configure JDeveloper to do it this way.
    I would be grateful for you insights/help.
    thanks
    -Paul Janda

    I found the answer:
    In JDeveloper, Go to Tools | Preferences
    Select Deployment
    Uncheck the option for "Bundle default data-sources.xml during deployment"
    Upon the next generation of the .ear or .war file (including the next deployment), data-sources.xml will be omitted.
    -paul janda

  • ADFBindingFilter error while deploying a war to WLS server using jdev 12c

    I've a OSB Server setup using XBUS_MAIN_GENERIC_120131.1402.S which is using JDEVADF_MAIN_GENERIC_120102.0032.6211.
    Launched the 12c Jdev and created a simple adfc web application with a test.jspx page and deployed in the OSB Server. The web app deployed and could launch the test page.
    I have added the page definition for that test page by 'Go to Page Definition' option.
    Now, If I try to deploy this web app war to the OSB Server, I'm getting the following exception in the jdev (Error1) and in the server log I could see the error (Error2).
    Any Idea how to resolve this issue?
    Error1 ( on Jdev )
    [03:15:08 AM] ---- Deployment started. ----
    [03:15:08 AM] Target platform is (Weblogic 10.3).
    [03:15:09 AM] Retrieving existing application information
    [03:15:09 AM] Running dependency analysis...
    [03:15:09 AM] Building...
    [03:15:15 AM] Deploying profile...
    [03:15:16 AM] Wrote Web Application Module to /scratch/sansrini/OSB_DEV/OSBMgmtTestApp/OSBMgmtTaskflowsTestApp/deploy/newosb2.war
    [03:15:16 AM] Deploying Application...
    [03:15:18 AM] [Deployer:149193]Operation "deploy" on application "newosb2" has failed on "AdminServer".
    [03:15:18 AM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application newosb2 on AdminServer.: [HTTP:101371]There was a failure when processing annotations for application /scratch/sansrini/view_storage/sansrini_xbus2/xbus/build/MW_HOME/user_projects/domains/base_domain/servers/AdminServer/upload/newosb2/app/newosb2.war. Ensure that the annotations are valid. The error is oracle.adf.model.servlet.ADFBindingFilter.
    [03:15:18 AM] weblogic.application.ModuleException: [HTTP:101371]There was a failure when processing annotations for application /scratch/sansrini/view_storage/sansrini_xbus2/xbus/build/MW_HOME/user_projects/domains/base_domain/servers/AdminServer/upload/newosb2/app/newosb2.war. Ensure that the annotations are valid. The error is oracle.adf.model.servlet.ADFBindingFilter
    [03:15:18 AM] Deployment cancelled.
    [03:15:18 AM] ---- Deployment incomplete ----.
    [03:15:18 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    Error2 ( on wls log )
    <Feb 3, 2012 3:15:18 AM PST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: [HTTP:101371]There was a failure when processing annotations for application /scratch/sansrini/view_storage/sansrini_xbus2/xbus/build/MW_HOME/user_projects/domains/base_domain/servers/AdminServer/upload/newosb2/app/newosb2.war. Ensure that the annotations are valid. The error is oracle.adf.model.servlet.ADFBindingFilter
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:732)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:188)
    at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:93)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
    at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: oracle.adf.model.servlet.ADFBindingFilter
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    Truncated. see log file for complete stacktrace

    I guess you should be asking on an internal forum somewhere, because we, the unwashed masses, don't have access to JDev 12c.
    John

  • JDEV 10.1.3 EA1 - Error in running Imported war file (war file is correct)

    Hi
    Thank you for reading my post.
    I have an Odd problem with Jdev EA1
    I have a war file , I import it into Jdev (new /project/projects from war file)
    I should mention that this war file developed in Rational application developer (Struts based ,database, higly use of other Taglibs)
    Now when i try to run my imported application , it does not run at all, it stops with some errors :
    for example in compiler log it return error for following line :
         <logic:redirect page="<%=session.getAttribute("LastPage").toString() %>" />
    the error is :
         Error(29): Attribute: LastPage").toString() is not a valid attribute name
    Error(29): Attribute: % is not a valid attribute name
    Error(30): Encountered end tag </logic:present> without corresponding start tag.
    Also it returns :
         Error(32): Tag attempted to define a bean which already exists: currentModel
    Error(33): Tag attempted to define a bean which already exists: currentName
    for the following code :
    <logic:equal name="Language" value="en">
         <SCRIPT SRC="language-en.js"></SCRIPT>    /////line 32
         <SCRIPT SRC="ctst.js"></SCRIPT>               ////line 33          
    </logic:equal>
    I import it into netbeans and it run correctly on tomcat, i deploy it inot sun Java apps and it works ok.
    Even i tried Jboss , geronimo to test my application corectness
    Can you tell me what is wrong ?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Allen,
    A JSP with web.xml web-app element
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    runs in JDeveloper 10.1.3
    thanks,
    Deepak

  • Are JDev autogenerated paths needed to create ear, war and jar files ?

    Hi
    We want to create ear, war and jar files from Ant build script generated from JDeveloper 11.1.1.7.
    We also like to use ojdeploy with it.
    In the process of creating build.xml files from projects, we see these paths.
    We also have standalone Weblogic installed with ADF runtime 11.1.1.7
    Questions:
    1- Do we need these path ids to generate ear, jar, war files properly and then deploy the ear to our standalone Weblogic so that our webapp can run ok ?
    2- Why are they generated, if they are not needed
    From research, it appears that we don't need these paths except to keep ant targets of init, compile, exec etc with ojdeploy.
    3- Is that true ?
    We are afraid that because no paths are listed in the build.xml, then when we deploy the ear app, it cant use the ADF runtime on the standalone WLS.
    Thanks in advance for answering.
    Sincerely
    eg of paths generated below:
      <path id="library.SOA.Designtime"/>
      <path id="library.SOA.Runtime"/>
      <path id="library.BPEL.Runtime"/>
      <path id="library.Mediator.Runtime"/>
      <path id="library.MDS.Runtime">
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar"/>
      </path>
      <path id="library.BC4J.Service.Runtime">
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc-share.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/commonj.sdo_2.1.0.jar"/>
        <pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.webservices_11.1.1/wsclient.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.web-common_11.1.1.jar"/>
      </path>
      <path id="library.TopLink">
        <pathelement location="{oracle.middleware}/modules/com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar"/>
        <pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
        <pathelement location="{oracle.middleware}/modules/com.bea.core.antlr.runtime_2.7.7.jar"/>
        <pathelement location="{oracle.middleware}/modules/javax.persistence_1.0.0.0_2-0-0.jar"/>
      </path>
      <path id="library.Oracle.Rules"/>
      <path id="classpath">
        <path refid="library.SOA.Designtime"/>
        <path refid="library.SOA.Runtime"/>
        <path refid="library.BPEL.Runtime"/>
        <path refid="library.Mediator.Runtime"/>
        <path refid="library.MDS.Runtime"/>
        <path refid="library.BC4J.Service.Runtime"/>
        <path refid="library.TopLink"/>
        <path refid="library.Oracle.Rules"/>
      </path>

    There are two different things here. Using ant to build the class files and then building an ear from the class files and other resources.
    The building part needs the libraries if you use javac as compiler. Building an ear file only needs the path to the jar files which are packed into the ear.
    In this sense you need the pages you see in the build.xml.
    Then Jdev offers another way: ojdeploy. This tool is a Jdev without a gui.
    You can use this tool and build the classes for each project of a workspace and to build build war and ear file. This is just like you click the rebuild button for each project and then the deploy the projects and application. If you use this approach you don't need the generated path ids as the whole build process is done inside Jdev as it's done on your developer pc.
    Timo

Maybe you are looking for