JDev 10.1.3 / Ant / element classes not defined in parent war

I tried to build a WAR file with Ant in JDeveloper 10.1.3 (Preview). The source of the build.xml:
<?xml version="1.0" encoding="windows-1252" ?>
<project name="MyApp" default="war" basedir=".">
<target name="init">
<tstamp/>
</target>
<!-- ... -->
<target name="war" depends="init">
<war destfile="../deploy/myApp.war" encoding="Cp1252" webxml="../public_html/WEB-INF/web.xml">
<classes dir="../classes"/>
<lib dir="../public_html/WEB-INF/lib"/>
<webinf dir="../public_html/WEB-INF"/>
<metainf dir="public_html/META-INF"/>
</war>
</target>
</project>
I got 3 error messages, which do not correspond to the Ant documentation:
- element classes not defined in parent war
- element lib not defined in parent war
- element webinf not defined in parent war
That's why I'm not able to build a war file for deployment.
Is there any chance to bypass/correct the errors?

This bug has been fixed for the Production Release. There is no workaround in the Preview Release. However, these errors should only appear while editing the Ant buildfile. They should not prevent you from running the buildfile.
-Matt Hawkins
Oracle JDeveloper

Similar Messages

  • Error message TD427 (A text element is not defined for form J_1IEWT_CERT)

    Hello,
    Q> I assign the SAP script form J_1IEWT_CERT to 'SPRO=>Withholding Tax Certificates for Vendor and Customers' and was trying to see the print preveiw. But once I press printpreview button error comes "ELEMENT TITLEDET WINDOW TITLEDET IS NOT DEFINED FOR FORM J_1IEWT_CERT" and i can't see the printprview.
    Same thing I tried with the copy of J_1IEWT_CERT from 000 client to ZJ_1IEWT_CERT; but same error is coming.
    If i try the printpreview through SE71 it shows without error.
    Thank You.

    "test printing" via SE71 only prints what exists in the form. Here your form is missing TITLEDET window and element.
    The print program tries to print TITLEDET but it does not exist. Could you check SAP notes to get correct versions of print program and sapscript form.

  • How to accept xml even when elements are not defined in its schema

    Hi,
    I got this requirement where i need to accept xmls even though its schema definition is not available note that i am storing the xmls into obejection-relational mode in oracle xmltype column table.
    How can i register schamas which has a perticular element defined conditionally to refer to two schemas based on its elementname (pct:CompanyName and CompanyName), please go through the below given scenario for further clarity on the same
    Oracle Version
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE 11.2.0.3.0 Production
    *Sample XML
    * <CabInfo>
         <pct:CabName>Yellow Cab</pct:CabName>
         <CompanyName>Taxi4You<CompanyName>
    </CabInfo>
    Schema Definition
    Cab.xsd
    <xsd:All minOccur="0">
    <xsd:element name="CabInfo" type="pct:Cabs" minOccurs="0"/>
    </xsd:All>
    pct points to a commontype.xsd file
    <xsd:complexType name="Cabs">
    <xsd:all minOccurs="0">
    <xsd:element name="CabName" type="xsd:string" minOccurs="0"/>
    <xsd:element name="CompanyName" type="xsd:string" minOccurs="0"/>
    </xsd:all>
    </xsd:complexType>
    Now when a xml comes with both the tags pct:CabName and pct:CompanyName then its not an issue however i need to accept xmls which can come as pct:CabName and only CompanyName without the pct namespace referrence.
    I was considering choice tags a method to acheive this but i read it cannot be used with ALL i cant remove ALL either from my schema.
    Please suggest if this can be acheived.

    Hello,
    You can use module pool to design the screen, all the fields will then remain fixed in the position defined.
    CALL SCREEN 100. " 3 fields declared P_NAME p_ROL and P_SUBJECT
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
      LOOP AT SCREEN.
        IF screen-name = 'P_ROL'.
          screen-active = '0'.
          screen-invisible = '1'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Regards,
    Mansi.
    Edited by: SAP USER on Apr 22, 2009 1:02 PM

  • Root element charts not defined in schema error??

    My xsd file is
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema targetNamespace="http://www.datastay.com/schema" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:target="http://www.datastay.com/schema">
         <xs:element name="time" type="xs:positiveInteger" default="1"/>
         <xs:element name="timeType" default="weeks">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="days"/>
                        <xs:enumeration value="weeks"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="refresh">
              <xs:complexType>
                   <xs:all>
                        <xs:element ref="target:time"/>
                        <xs:element ref="target:timeType"/>
                   </xs:all>
              </xs:complexType>
         </xs:element>
         <xs:element name="query">
              <xs:complexType>
                   <xs:simpleContent>
                        <xs:extension base="xs:string">
                             <xs:attribute name="series" type="xs:string" use="required"/>
                        </xs:extension>
                   </xs:simpleContent>
              </xs:complexType>
         </xs:element>
         <xs:element name="chartDefinition">
              <xs:complexType>
                   <xs:all>
                        <xs:element ref="target:refresh"/>
                        <xs:element ref="target:query"/>
                   </xs:all>
                   <xs:attribute name="id" type="xs:ID" use="required"/>
                   <xs:attribute name="title" type="xs:string" use="required"/>
                   <xs:attribute name="type" type="xs:string" use="required"/>
                   <xs:attribute name="xaxislabel" type="xs:string" use="required"/>
                   <xs:attribute name="yaxislabel" type="xs:string" use="required"/>
                   <xs:attribute name="classType" default="com.dms.chart.DefaultChartBusinessHandler">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="com.dms.chart.DefaultChartBusinessHandler"/>
                                  <xs:enumeration value="com.dms.chart.PieChartBusinessHandler"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="width" type="xs:int" default="500"/>
                   <xs:attribute name="height" type="xs:int" default="500"/>
                   <xs:attribute name="chartColor" type="xs:string" default="#FFFFFF"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="charts">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="target:chartDefinition"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    My xml file is
    <?xml version="1.0"?>
    <charts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Tomcat4\webapps\chart\WEB-INF\files\chartdefs.xsd">
    <chartDefinition id="1" title="Monthly Logins" type="verticalbar3d" xaxislabel="Month" yaxislabel="Logins" classType="com.dms.chart.DefaultChartBusinessHandler" width="500" height="750" chartColor="#FFFFFF">
    <refresh>
    <timeType>
    minutes
    </timeType>
    <time>
    1
    </time>
    </refresh>
    <query series="john">
              select * from defaultchart where name = 'john'
    </query>
    <query series="max">
              select * from defaultchart where name = 'max'
    </query>
    </chartDefinition>
    <chartDefinition id="2" title="Average Workflow life span" type="pie3d" xaxislabel="Workspace" yaxislabel="Days" classType="com.dms.chart.PieChartBusinessHandler" width="500" height="500" chartColor="#FFFFFF">
    <refresh>
         <timeType>
    minutes
    </timeType>
         <time>
    5
    </time>
    </refresh>
    <query series="john">
         select * from defaultchart where name = 'mike'
    </query>
    </chartDefinition>
    </charts>

    Copy the schema and the XML document to the same directory.
    The root element of the XML document specifies the location of the schema.
    <?xml version="1.0"?>
    <charts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="chartdefs.xsd">The xs:schema element:
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

  • Class not defined

    Hi,
    The following is coming up with no classes defined. What have I missed?
    thank you, your help is most appreciated.
    * Main.java
    * Created on 24 April 2006, 23:20
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package wimax;
    import java.io.*;
    import java.rmi.*;
    * @author Robert J Holdcroft
    class Distance {
    // The input to the program - ie the distance
    Distance () throws IOException {
    BufferedReader in = new BufferedReader
    (new InputStreamReader(System.in));
    System.out.println("Please enter the distance you are from the base" +
    " station ");
    String Distance = in.readLine();
    System.out.println("You have entered " + Distance);
    public void main(String args) throws IOException {
    new Distance();
    }

    Hi,
    Put the public in, ran from the command line and
    got....
    Exception in thread "main"
    java.lang.NoClassDefFoundError:
    Javapedia: Classpath
    How Classes are Found
    Setting the class path (Windows)
    Setting the class path (Solaris/Linux)
    Understanding the Java ClassLoader
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • F:verbatim is not defined in parent f:facet

    Hi,
    I tried coping the panelBorder demo .jspx to my own project to play around with the layout a little.
    Somehow, the my project is not allowing the f:verbaltim to be under the f:facet. The same code seem to be functioning fine on the demo project. What do I need to be to fix this?
    TIA,
    <f:facet name="innerTop" >
    <f:verbatim>
    <table width="100%" >
    <tr>
    <td height="30pt" align="center"
    style="background-color:lightgreen;" >
    innerTop
    </td>
    </tr>
    </table>
    </f:verbatim>
    </f:facet>

    Sorry, that was just at typo on the email. as you can see from the snippet from the first post. It is the correct spelling.
    I just copied the panelBorder.jspx from the demo application that you guy put out and pasted it into another file to play around with the layout. Nothing was changed.
    Here is another snippet from that code.
    <f:facet name="left" >
    <f:verbatim>
    <table width="100%" >
    <tr>
    <td height="100pt" align="center"
    style="background-color:pink;" >
    left
    </td>
    </tr>
    </table>
    </f:verbatim>
    </f:facet>
    Thanks,

  • I'm getting a 'The Management Pack element is not declared' error when trying to import CSV data into my *extended* WindowsComputer class

    Background:
    I have a class called SUS_WindowsComputerMP, that is an extension of the Microsoft class, Microsoft.Windows.Computer
    I'm trying to import CSV data into this extended class and to the base class as well.
    Question:
    What am I doing wrong? I have a feeling that the Import CSV Format file is different for importing data into *extended* classes like mine, because the XML structure below would work for non-extended classes.
    "...Creating new CSVImporter
    Data Filename: D:\Peter\CMDB II\Exported MPs\TestMPs\SUS_WindowsComputer.csv
    Format Filename: D:\Peter\CMDB II\Exported MPs\SUS_WindowsComputerMP.xml
    Validating against XSD schema...
    The 'ManagementPack' element is not declared.
    Validation completed.
    Format file D:\Peter\CMDB II\Exported MPs\SUS_WindowsComputerMP.xml contains an invalid root element. Expected: root node with name \"CSVImportFormat\"
    Could not initialize a Management Object Creator from format file D:\Peter\CMDB II\Exported MPs\SUS_WindowsComputerMP.xml. Import thread exiting.
    My import format XML is this:
    <CSVImportFormat>
    <Class Type="ClassExtension_a3ae3e0f_d578_43dc_aa3e_9037a094763c" >
    <Property ID="WindowsServerID" />
    <Property ID="PrincipalName" />
    <Property ID="NetbiosComputerName" />
    <Property ID="IPAddress" />
    <Property ID="NetbiosDomainName" />
    <Property ID="DNSName" />
    <Property ID="OSVersionDisplayName" />
    <Property ID="SerialNo" />
    <Property ID="ServerDescription" />
    <Property ID="AssetTagNo" />
    <Property ID="ServerNameRow" />
    <Property ID="ChassisType" />
    <Property ID="InstallDate" />
    <Property ID="IsVirtualMachine" />
    <Property ID="BusinessUnitCustomersEnum" />
    <Property ID="RegionLocationEnum" />
    <Property ID="OtherFunctionRoleEnum" />
    <Property ID="ProductTypeEnum" />
    <Property ID="ObjectStatus" />
    <Property ID="AssetStatus" />
    <Property ID="CriticalityEnum" />
    <Property ID="EnvironmentEnum" />
    <Property ID="CostCodeClassEnum" />
    <Property ID="DataClassificationEnum" />
    <Property ID="Manufacturer" />
    </Class>
    </CSVImportFormat>

    Hello,
    Can anyone please help me out with this weird issue.
    thanks,
    orton

  • Callback class not found

    Hi
    I am getting following error "Missing class" after invoking my BPEL process. The callback class is not found even though it is deployed.
    <2009-04-24 10:53:44,982> <ERROR> <oracle.bpel.services.workflow> <::>
         Missing class: BusinessProcess.MyCallback
         Dependent class: oracle.bpel.services.workflow.task.impl.RoutingSlipCallbackInvoker
         Loader: oracle.bpel.common:10.1.3
         Code-Source: /D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar
         Configuration: <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
    This load was initiated at oracle.bpel.common:10.1.3 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
    oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: BusinessProcess.MyCallback
         Dependent class: oracle.bpel.services.workflow.task.impl.RoutingSlipCallbackInvoker
         Loader: oracle.bpel.common:10.1.3
         Code-Source: /D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar
         Configuration: <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
    This load was initiated at oracle.bpel.common:10.1.3 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2068) [D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1679) [D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at java.lang.Class.forName0 (Native method) [unknown, by unknown]     
    <2009-04-24 10:53:45,011> <ERROR> <default.collaxa.cube.services> <::> ORABPEL-30016
    The call back class has been deployed. Not sure if any setting is missing.
    Thanks
    Badri

    Hi,
    I also tried the pcl.jar in the shared lib in server.xml however still it gives Callback class not found.
    Also, I am using JDEV - 10.1.3.4.0 to deploy my BPEL process on the SOA - 10.1.3.1.
    I get the following exception while deploying the process. Can this be a cause of the issue ?? Any hints ?
    Buildfile: D:\KABKP\BPELWorkspace\132.1.UserTasks\build.xml
    [java] Java Result: 1
    validateTask:
    [echo]
    | Validating workflow
    [validateTask] url is file:/D:/KABKP/jdevstudio10134/integration/bpm/support/files/WorkflowTaskDefinition.xsd
    [validateTask] Validation of workflow task definitions is completed without errors
    deployProcess:
    [echo]
    | Deploying bpel process UserTaskSample on iflmud6dlf5jn, port 8889
    [deployProcess] Deploying process D:\KABKP\BPELWorkspace\132.1.UserTasks\output\bpel_UserTaskSample_1.0.jar
    [deployProcess] [Fatal Error] :2:4: The content of elements must consist of well-formed character data or markup.
    [deployProcess] [Fatal Error] :2:4: The content of elements must consist of well-formed character data or markup.
    [deployProcess] Successfully deployed the process "UserTaskSample" on server "iflmud6dlf5jn" and port "8889"
    deployTaskForm:
    [echo]
    | Deploying workflow form for UserTaskSample on iflmud6dlf5jn, port 8889
    [deployTaskForm] 09/05/04 14:04:42 Notification ==>Uploading file default_UserTaskSample_1_0_StockReview.ear ...
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:42 Notification ==>Application Deployer for default_UserTaskSample_1_0_StockReview STARTS.
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:42 Notification ==>Copy the archive to D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\default_UserTaskSample_1_0_StockReview.ear
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:42 Notification ==>Initialize D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\default_UserTaskSample_1_0_StockReview.ear begins...
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:42 Notification ==>Unpacking default_UserTaskSample_1_0_StockReview.ear
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Done unpacking default_UserTaskSample_1_0_StockReview.ear
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Unpacking workflowform.war
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Done unpacking workflowform.war
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Initialize D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\default_UserTaskSample_1_0_StockReview.ear ends...
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Starting application : default_UserTaskSample_1_0_StockReview
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Initializing ClassLoader(s)
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Initializing EJB container
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Loading connector(s)
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Starting up resource adapters
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Initializing EJB sessions
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Committing ClassLoader(s)
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Initialize workflowform begins...
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Initialize workflowform ends...
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Started application : default_UserTaskSample_1_0_StockReview
    [deployTaskForm]
    [deployTaskForm] 09/05/04 14:04:43 Notification ==>Application Deployer for default_UserTaskSample_1_0_StockReview COMPLETES. Operation time: 391 msecs
    [deployTaskForm]
    [deployTaskForm]
    [deployTaskForm] BindWebApp error: javax.management.ReflectionException
    [deployTaskForm]
    BUILD FAILED
    D:\KABKP\BPELWorkspace\132.1.UserTasks\build.xml:98: Error while deploying the form on server "iflmud6dlf5jn" Error message :
    java.lang.SecurityException
         at oracle.ide.IdeCore$7.checkExit(IdeCore.java:177)
         at java.lang.Runtime.exit(Runtime.java:88)
         at java.lang.System.exit(System.java:868)
         at oracle.oc4j.admin.deploy.cmdline.Oc4jAdminCmdline.executeCommand(Oc4jAdminCmdline.java:141)
         at com.collaxa.cube.ant.taskdefs.DeployForm.deployIAS(DeployForm.java:818)
         at com.collaxa.cube.ant.taskdefs.DeployForm.deployForm(DeployForm.java:578)
         at com.collaxa.cube.ant.taskdefs.DeployForm.deployForms(DeployForm.java:849)
         at com.collaxa.cube.ant.taskdefs.DeployForm.execute(DeployForm.java:875)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
         at oracle.jdevimpl.ant.runner.AntLauncher.launch(AntLauncher.java:321)
         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:585)
         at oracle.jdevimpl.ant.runner.InProcessAntStarter.runAnt(InProcessAntStarter.java:295)
         at oracle.jdevimpl.ant.runner.InProcessAntStarter.mav$runAnt(InProcessAntStarter.java:43)
         at oracle.jdevimpl.ant.runner.InProcessAntStarter$1.run(InProcessAntStarter.java:71)
    Total time: 1 minute 0 seconds

  • Class Not Found instantiating IP

    [Portal 4.0 on WLS 6.1 on Win2K... ]
    I'm getting 'Class Not Found' when instantiating my IP class. The only way I can
    work around it is to put "WEB-INF/classes" in the startup classpath, which makes
    it not re-deployable.
    I've read newsgroups/docs extensively and believe that:
    * IPs (as opposed to PCs) are scoped to the web app, not to the enterprise app
    * For web apps, the WEB-INF/classes (for exploded files) and WEB-INF/lib (for
    Jar'd files) should be 'auto-included' in the classpath, hence the classloader
    that portal is using for IP instantiation should find my class...
    But that's not what's happening... so where is my understanding faulty and, more
    importantly, how can I make portal find my IP class and still have it be hot redeployable?
    Thanks in advance,
    Mike

    Hi,
    We actually use a third approach, which is: package your pipeline components
    with a dummy EJB into a separate JAR (unless you programmed the actual EJBs
    which you want to package with your PCs) and deploy as a separate component
    to your enterprise app.
    We include pipeline.jar and p13n_util.jar into the classpath in the ANT
    script only. WLP starts without these jars in the class path with no
    problems.
    Just for a reference: we use WLS 6.1 sp2, WLP 4.0 sp2.
    Best regards,
    Michael Goldverg
    "Peter Laird" <[email protected]> wrote in message
    news:3db4de07$[email protected]..
    >
    Mike,
    "The set-environment.bat had been modified to include the WEB-INF/classesunder
    the 'sandbox dir' in the classpath. I'm confident removing theseclasspath elements
    is the right thing to do; I no longer get the 'class ... can not bedeployed'
    messages, which was my original problem."
    Yes, putting anything in the enterprise application or the web applicationin
    the system classpath is not a good idea.
    "So, the (very cool & useful) diag tool"
    Glad you like it! I wrote that a year ago, and it has helped me onnumerous occasions.
    Whenever you have a classloader problem, this thing works magic.
    " 'You need to either put your PC in pipeline.jar or reference your ownJAR from
    the pipeline.jar's classpath entry in its manifest.' I'm not sure Iunderstand
    this. Are we really expected to modify BEA supplied JAR files?"
    Regretably, yes. There have been several ideas on a better solution, butit hasn't
    found its way into the product yet. Until that happens, the secondapproach (changing
    the manifest classpath entry) is the preferred approach.
    "Thank you *very* much for your help!"
    I'm happy to help!
    PJL

  • Ant deploy from Jdev works fine - same ant deploy from command line fails

    Hi
    I'm using Jdev 10.1.3 and OAS 10.1.3 and created some web services. I can deploy using the Wizard in JDev - works fine, created a build.xml file using the <oracle:deploy> ant task. Also work fine from JDeveloper.
    But when running from command line (windows) I get the following:
    d:\>ant deploy
    Buildfile: build.xml
    init:
    compile:
    copy:
    ear:
    [war] Building war: D:\invision\source\INVisionWebService1013\INVisionWebService.war
    [war] Warning: selected war files include a WEB-INF/web.xml which will be ignored (please use webxml attribute to war task)
    [ear] Building ear: D:\invision\source\INVisionWebService1013\deploy\INVisionWebService.ear
    [delete] Deleting: D:\invision\source\INVisionWebService1013\INVisionWebService.war
    deploy:
    BUILD FAILED
    D:\invision\source\INVisionWebService1013\build.xml:282: The following error occurred while executing this line:
    jar:file:/D:/apache/apache-ant-1.6.5/lib/ant-oracle-classes.jar!/oracle/antlib.xml:27: taskdef class oracle.j2ee.ws.tools.wsa.cli.ant.GenProxy cannot be found
    I have studied the web for suggestion also http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14431/anttasks.htm#sthref164 but nothing seems to work. Tried copying oracle jars to my ant directory (ant version 1.6.5) but still no success (above error message disappered but other came instead).
    Why must this process be so complex. Can anyone help?

    Hi,
    You need to have the following jars in your classpath before firing the ant deploy task.
    ${Oracle_Home}\j2ee\utilities\ant-oracle-classes.jar;
    ${Oracle_Home}\j2ee\home\lib\adminclient.jar;
    ${Oracle_Home}\2ee\home\lib\oc4j-internal.jar;
    ${Oracle_Home}\j2ee\home\lib\javax77.jar;
    ${Oracle_Home}\j2ee\home\lib\javax88.jar;
    ${Oracle_Home}\j2ee\home\lib\jmxri.jar;
    ${Oracle_Home}\OracleAS_1\webservices\lib\wsa.jar;
    Please check your classpath and add the above jars, if not present and try ant deploy task now.
    I suppose it should work fine.
    Hope its helpful.
    Rgds,
    Prashanth Babu.

  • Error: initialization error: file java\lang\Object.class not found

    when the error listed my classpath's its not the same list that is in my Windows XP environment variable list?
    I am on 9.0.3
    I am assuming I have to set some varible to my new jdk\bin directory. I reinstalled it. I have set it to use jdk 1.4 using the ojvm tool a while back.

    Please help!!
    I did change the jdev.conf file setting:
    SetJavaHome /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home
    and I still get this error:
    initiallization erro: file java/lang/Object.class not found in classpath
    I am usgin Oracle JDeveloper 10g 10.1.2 on a Mac OS X Tiger
    Could someone please help?
    thanks a bunch!!!

  • Class not Found when accessing Proxy class from backing bean in VC.

    Hi All,
    I'm attempting to access a class of a webservice(generated as a proxy) within my ADF application and invoke the method within a backing bean of the View Controller(bean scope : backing bean). The proxy has generated an ObjectFactory class among other classes. When I access this Object factory class from within the backing bean, the application throws a Class not found error.
    I don't know where the error lies since I've declared the View Controller of the ADF application dependent on the Proxy and I've imported the class and accessing it within a backing bean. How would you suggest I approach resolveing this.
    JDev : 1.1.1.4
    Thank you.
    Regards
    PP.

    Hello Arun,
    Thank you for suggesting a Data control, but my requirement isn't to drag and drop the method as a button. It's more of a behind the scnes updating data via a database adapter requirement.
    I've resolved the issue. turns out, my deployment archive didn't include the proxy.jpr. Once included it works likea charm.
    Thanks
    PP.

  • Oracle 10g (10.1.3.1.0) ant-oracle-classes.jar

    Hi,
    I dint find Ant Task for stopping/starting/restarting the Oracle Application Server, but the http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28951/anttasks.htm#BEIHFIIC specifies that you can do so with the Ant Tasks. I went through "ant-lib.xml" present in the ant-oracle-classes.jar, even it does not have these tasks.
    Is it by any chance that Oracle shipped a wrong library of "ant-oracle-classes.jar" in Oracle 10g (10.1.3.1.0) is with that of Oracle 10g Release 3 (10.1.3), since this Release 3 does not support the stopping and starting of the server with the Ant tasks.
    If any one has any idea, please let me know.
    Whom should I report/ask?
    Can anyone give some pointers for the same. I would be very very thankful.
    Rgds,
    Prashanth Babu.

    Thanks a lot Mike.
    But then, the problems donot stop there.
    I went though the decompiled code of JSR88StartServer.java and JSR88ShutdownServer.java and found that doStartServer() of JSR88StartServer and doShutdownServer() of JSR88ShutdownServer, both call only one method ie deploymentManager.shutdown(), which is present in J2EEDeploymentManager class.
    Ideally, JSR88StartServer should start the server by invoking deploymentManager.restart(). But then, looks like there is a problem here too, since both these methods simply call shutdown only.
    And also, whenever I tried restarting the App Server from EnterpriseManager Console, it never restarts. It simply stops and does not do anything apart from that.
    Iam in a project where our applications have to be up and running on OAS 10g through automation of deployment ie either thru Ant Tasks or the J2EE Deployment API provided by Oracle. But, both the ways, it looks like there are one-too-many hurdles.
    Any inputs to the same would be of great help.
    I would just like to know, if any one has done the above. Please let me know.
    Rgds,
    Prashanth Babu.

  • Class Not Found Exception - applet won't run anywhere outside of IDE

    I have an applet that runs perfectly in the netbeans IDE, but won't run from command prompt (I'm using windows) or from a browser. I've been banging my head against the wall for a few days on this one. Here's the HTML I'm using:
    <applet width="400" height="525" code="musicapplet.class" archive="crypticgraffiti.jar">
    <param name="bgcolor" value="ffffff"> <param name="fontcolor" value="000000">
    </param> </param> Your browser is not Java enabled. </applet>
    Here is the structure of the jar file's contents:
    META-INF/
    META-INF/MANIFEST.MF
    com/
    com/crypticgraffiti/
    com/crypticgraffiti/music/musicapplet
    com/crypticgraffiti/music/GetNotes.class
    com/crypticgraffiti/music/InstList.class
    com/crypticgraffiti/music/Mode.class
    com/crypticgraffiti/music/MusicCreator.class
    com/crypticgraffiti/music/OctaveTransformer.class
    com/crypticgraffiti/music/Phrase.class
    musicapplet/MusicApplet$playerThread.class
    musicapplet/MusicApplet.class
    (Musicapplet.class is the main class)
    When I attempt to run from command prompt, I get:
    "Error: Could not find or load main class crypticgraffiti.MusicApplet"
    When I attempt to load via html:
    "basic: load: class musicapplet.class not found.
    load: class musicapplet.class not found.
    java.lang.ClassNotFoundException: musicapplet.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: musicapplet.class
    security: Accessing keys and certificate in Mozilla user profile: null"
    I have tried every possible variation for the 'code' element of the applet tag (package.mainclass.class, mainclass, mainclass.class, etc). I have also tried compiling with JDK 1.6 and this didn't change anything. I've tried clearing out the cache of temporary files using the java control panel settings, and have verified that my browser can run other applets using JRE 6 and 7.
    I've tried some different ways of distributing the applet, also: putting all the class files in the folder with the html file, putting the classes in a source folder in the same folder as the html file, and finally putting a jar in the same folder as the html file (which really seems the simplest).
    Any help at all would be most appreciated! This applet is a very cool and original music creating app that draws heavily on the JFugue API. It's a shame that I can't get it online for people to play with!

    Cryptic Graffiti wrote:
    Here is the structure of the jar file's contents:
    META-INF/
    META-INF/MANIFEST.MF
    com/
    com/crypticgraffiti/
    com/crypticgraffiti/music/musicapplet
    com/crypticgraffiti/music/GetNotes.class
    com/crypticgraffiti/music/InstList.class
    com/crypticgraffiti/music/Mode.class
    com/crypticgraffiti/music/MusicCreator.class
    com/crypticgraffiti/music/OctaveTransformer.class
    com/crypticgraffiti/music/Phrase.class
    musicapplet/MusicApplet$playerThread.class
    musicapplet/MusicApplet.class
    (Musicapplet.class is the main class)
    Please note that class names are case sensitive so "MusicApplet" is not same as "Musicapplet" or "musicapplet". Your applet tag should have fully qualified class name (without quotes) and should look like this:
    <applet width=400 height=525 code=musicapplet.MusicApplet archive="crypticgraffiti.jar">
    </applet>
    The JAR should be in the same directory as your HTML file. While launching from command line, you can also check if your JAR file is getting included in classpath.
    Thanks,
    Nitin

  • How do I safely and correctly override equals in a generic element class?

    (I posted this in the collection forum, but it was suggested I should take it here instead.)
    I've written an OrderedPair element class, (OrderedPair<K,V>), so I can have a set of ordered pairs.
    To get the container to treat OrderedPairs as values instead of objects, I had to override OrderedPair<K,V>.equals(Object) (as hashCode too).
    So I've written the equals(Object) below in the naive way and I'm now getting warnings about an unsafe cast at line (a) and an unsafe assignemtn at line (b).
    I do understand why this is a problem, but I'm not sure what the best solution is.
    How does one ask about instanceof for the otherObject, and how does one cast an Object to an OrderedPair<K,V> in a safe way?
        public boolean equals (Object otherObject) {
         if (otherObject == null || ! (otherObject instanceof OrderedPair<K,V>)) {    //line (a)
             return false;
         } else {
             OrderedPair<K,V> otherPair = (OrderedPair<K,V>) otherObject;      // line (b)
                return this.key.equals(otherPair.key)  && this.value.equals(otherPair.value);
        }or, more to the point, how does one write a version of equals(Object) for a generic class?
    It seems that this overriding of equal will have to be done for many generic element types, so there must be some approach that is safe, yes?
    It was pointed out to me that AbstractMap does something similar

    <warning: thread hijack>
    public class OrderedPair<A,B> {
    final A a;
    final B b;
    A first() {
            return a;
    B second() {
       return b;
    another question about generic code is this:
    is it possible that , most of the time, a generic code may looks like this
    (please note that this is not a criticism of the above code which is perfectly ok to me):
    public class OrderedPair<A,B> {
      public final A a;
      public final B b; // no accessor such as getA(), getB()
    my point : unless you want specific behaviour linked to value consultation
    the actual type of members a and b is not hidden: encapsulation seldom makes sense.
    it is known to the user of the parametrized type, it is not subject to maintenance change
    so it is public ..... (if it is final)
    any remark?

Maybe you are looking for