Ant tools: converter java card -  class file  not belonging to the package!

Hi
I have another problem with converter. Could you help me please again if you have the time?
I have created a directory when I save the class files generated by javac. After That , I use convert in this way:
<convert
JCA="true"
EXP="true"
CAP="true"
packagename="testUn/classes/testUn"
packageaid="0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x02:0x00"
majorminorversion="1.0"
verbose = "true">
<AppletNameAID
appletname="testUn.classes.testUn.PorteAppUn"
aid="0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x02:0x00:0x00"/>
<classpath refid="classpath"/>
</convert>
Here is the answer of the computer:
[echo] Generation of the CAP,JCA and EXP files...
[convert] Java Card Ant Tasks, Version 1.0
[convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
[convert] Note: Usage of Java Card Ant Tasks is optional. Java Card Ant Tasks are not supported by Sun Microsystems, Inc.
[convert] Java Card 2.2.2 Class File Converter, Version 1.3
[convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
[convert] parsing /home/ehoudart/app-manager/VersionZero/src/testUn/classes/testUn/PorteAppUn.class
[convert] converting testUn.PorteAppUn
[*convert] error: class PorteAppUn does not belong to package testUn.classes.testUn.*
[convert] conversion completed with 1 errors and 0 warnings.
I do not understand why this unique applet class file does not belong to its own package. Is someone an idea?
Thanks very much in advance for your answer.

Here is a complete example build.xml (I think I have posted this before).
<?xml version="1.0" encoding="UTF-8" ?>
<project default="convert" name="javacard-starter">
  <!-- Build specific properties -->
  <property name="target.classes" location="${basedir}/target/classes" />
  <property name="target.javacard" location="${basedir}/target/javacard" />
  <property name="source.java" location="${basedir}/src/main/java" />
  <!-- Must point to the folder containing the JAR files from the JCDK -->
  <property name="javacard.libs" location="${basedir}/lib" />
  <!-- Must point to the folder containing the JAR file from the JCDK ant task -->
  <property name="javacard.ant-task" location="${basedir}/lib" />
  <!-- Must point to the folder containing the API export files from the JCDK -->
  <property name="javacard.export" location="${basedir}/src/main/export" />
  <property name="verbose" value="true" />
  <property name="noverify" value="false" />
  <!-- Path for JC tasks -->
  <path id="classpath">
    <fileset dir="${javacard.ant-task}">
      <include name="*.jar" />
    </fileset>
    <fileset dir="${javacard.libs}">
      <include name="*.jar" />
    </fileset>
  </path>
  <!-- set the export path to the Java Card export files -->
  <path id="export" description="set the export file path">
    <fileset dir="${javacard.export}">
      <include name="**/*.exp" />
    </fileset>
    <pathelement path="${javacard.export}" />
    <pathelement path="${target.classes}" />
    <pathelement path="${target.javacard}" />
  </path>
  <!-- Definitions for tasks for Java Card tools -->
  <taskdef name="capgen" classname="com.sun.javacard.ant.tasks.CapgenTask" classpathref="classpath" />
  <taskdef name="deploycap" classname="com.sun.javacard.ant.tasks.DeployCapTask" classpathref="classpath" />
  <taskdef name="convert" classname="com.sun.javacard.ant.tasks.ConverterTask" classpathref="classpath" />
  <taskdef name="verifyexport" classname="com.sun.javacard.ant.tasks.VerifyExpTask" classpathref="classpath" />
  <taskdef name="verifycap" classname="com.sun.javacard.ant.tasks.VerifyCapTask" classpathref="classpath" />
  <taskdef name="verifyrevision" classname="com.sun.javacard.ant.tasks.VerifyRevTask" classpathref="classpath" />
  <typedef name="appletnameaid" classname="com.sun.javacard.ant.types.AppletNameAID" classpathref="classpath" />
  <typedef name="jcainputfile" classname="com.sun.javacard.ant.types.JCAInputFile" classpathref="classpath" />
  <target name="init">
    <mkdir dir="${target.classes}" />
    <mkdir dir="${target.javacard}" />
  </target>
  <target name="clean">
    <delete dir="${target.classes}" />
    <delete dir="${target.javacard}" />
    <delete dir="${javacard.eeprom}" />
  </target>
  <target name="compile" depends="init" description="Compile source code to class files">
    <!-- Compile the java code from ${src} to ${classes} -->
    <javac debug="yes" optimize="no" srcdir="${source.java}" destdir="${target.classes}" source="1.5" target="1.5">
      <classpath refid="classpath" />
    </javac>
  </target>
  <target name="convert" depends="compile" description="Convert class files to cap files">
          <convert packagename="chaining" packageaid="0xF0:0x00:0x00:0x01:0x00:0x01" majorminorversion="1.0" classdir="${target.classes}" outputdirectory="${target.classes}" jca="true" exp="true" cap="true" debug="true" verbose="${verbose}" noverify="${noverify}">
               <appletnameaid aid="0xF0:0x00:0x00:0x01:0x00:0x01:0x00:0x01" appletname="chaining.ChainingApplet" />
               <exportpath refid="export" />
               <classpath refid="classpath" />
          </convert>
  </target>
  <target name="copy-debug">
    <mkdir dir="${target.debug}" />
    <echo>Copying cap files</echo>
    <copy flatten="true" todir="${target.debug}" verbose="true">
      <fileset dir="${target.classes}" includes="**/*.cap" />
      <fileset dir="${target.classes}" includes="**/*.exp" />
      <fileset dir="${target.classes}" includes="**/*.jca" />
    </copy>
  </target>
  <target name="all" depends="clean, convert" />
</project>

Similar Messages

  • Ant tools: converter java card

    Hi,
    I have already a problem with the ant tools for java card.
    I build a build.xml file which has for aim to generate the CAP,EXP, JCA and the *.script files before downloading them on cref.
    I have a problem with the command converter. Here you can find my code:
    <!--generation of the JCA,EXP and CAP file-->
              <echo message = "Generation of the CAP,JCA and EXP files..."     />
              <convert
                   JCA="true"
                   EXP="true"
                   CAP="true"
                   packagename="versionZero"
                   packageaid="0xB0:0x02:0x03:0x04:0x05:0x06:0x07:0x08:0x09:0x00"
                   majorminorversion="1.0"
                   verbose = "true">               
                   <AppletNameAID
                        appletname="versionZero.VersionZero"
                        aid="0xB0:0x02:0x03:0x04:0x05:0x06:0x07:0x08:0x09:0x00:0x00"/>
                   <classpath refid="classpath"/>
              </convert>
         My problem is the following: the command converter say mys package is empty and it is not the case: it contains all the *.java file.
    Must I compile the files with javac before using the convert command or it is another problem?
    Here is the trace of my build.xml file:
    Buildfile: /home/ehoudart/app-manager/VersionZero/src/build.xml
    testinit:
    [echo] Deleting the old generated files...
    [echo] Generation of the CAP,JCA and EXP files...
    [convert] Java Card Ant Tasks, Version 1.0
    [convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    [convert] Note: Usage of Java Card Ant Tasks is optional. Java Card Ant Tasks are not supported by Sun Microsystems, Inc.
    [convert] Java Card 2.2.2 Class File Converter, Version 1.3
    [convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    [convert] error: versionZero: empty package.
    [convert] conversion completed with 1 errors and 0 warnings.
    BUILD FAILED
    /home/ehoudart/app-manager/VersionZero/src/build.xml:115: Conversion failed
    Total time: 384 milliseconds
    Thanks in advance for your answer.

    Hi,
    Please use &#123;code} tags for posting code etc.
    <!--generation of the JCA,EXP and CAP file-->
              <echo message = "Generation of the CAP,JCA and EXP files..."     />
              <convert
                   JCA="true"
                   EXP="true"
                   CAP="true"
                   packagename="versionZero"
                   packageaid="0xB0:0x02:0x03:0x04:0x05:0x06:0x07:0x08:0x09:0x00"
                   majorminorversion="1.0"
                   verbose = "true">               
                   <AppletNameAID
                        appletname="versionZero.VersionZero"
                        aid="0xB0:0x02:0x03:0x04:0x05:0x06:0x07:0x08:0x09:0x00:0x00"/>
                   <classpath refid="classpath"/>
              </convert>
         My problem is the following: the command converter say mys package is empty and it is not the case: it contains all the *.java file.
    Must I compile the files with javac before using the convert command or it is another problem?That is correct. You can make your convert task depend on a compile task for this.
    Cheers,
    Shane

  • ANT tools and java card

    Hi,
    I used the ant tools going with the java card development kit 2.2 and I have the following errors when I run the build.xml
    testinit:
    [apdutool] Java Card Ant Tasks, Version 1.0
    [apdutool] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    [apdutool] Note: Usage of Java Card Ant Tasks is optional. Java Card Ant Tasks are not supported by Sun Microsystems, Inc.
    [apdutool] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/javacard/apdutool/Main
    If you have ever had this error, can you help me please to solve it?
    Thanks in advance.

    Hi,
    You are missing a JAR file. Check to make sure you have your classpath setup in your build file with the required libraries.
    Cheers,
    Shane

  • Problems converting java to class file

    I copied a chat applet, but whenever i try to convert the chat.java to chat.class i get the following.
    C:\Program Files\Apache Group\Apache\htdocs>c:\jdk12~1.1\bin\javac chat.java
    chat.java:13: Public class Chat must be defined in a file called "Chat.java".
    public class Chat extends Applet implements Runnable {
    ^
    Note: chat.java uses or overrides a deprecated API. Recompile with "-deprecation" for details.
    1 error, 1 warning
    Any assistance will be greatly appreciated.

    Please check for the case in the file name.Check if you have saved the file as Chat.java and not as chat.java

  • Java.lang.AssertionError: WSDL not found in the class file "processes

    Hi,
    I am using WLI 10.3 workshop to build process application. I have designed one JPD which inturn call another process JPD. So i have used worklist process control to create the process and tried to access the process. When i am executing the code, i am getting below error message.
    13-Jun-2011 14:13:00 o'clock BST> <Error> <WLI> <BEA-000000> <Exception processing processes.ISPSSQMsgLisnt
    Java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.bea.wli.knex.runtime.core.dispatcher.DispUnit.loadDispFile(DispUnit.java:219)
    Truncated. see log file for complete stacktrace
    Java.lang.AssertionError: WSDL not found in the class file "processes.ISPSSQMsgLisnt", annotated class = processes.ISPSSQMsgLisnt
    --ClassAnnotations:
    --Method Annotations:
    --Field Annotations:
    can't continue
    at com.bea.wli.knex.runtime.jws.dispatcher.JwsDispClass.<init>(JwsDispClass.java:392)
    at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:65)
    at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:55)
    at com.bea.wli.bpm.runtime.JpdDispFile.createPrimaryDispClass(JpdDispFile.java:382)
    at com.bea.wli.knex.runtime.core.dispatcher.DispFile.<init>(DispFile.java:154)
    Truncated. see log file for complete stacktrace
    xception processing processes.ISPSSQMsgLisnt
    ava.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.bea.wli.knex.runtime.core.dispatcher.DispUnit.loadDispFile(DispUnit.java:219)
    at com.bea.wli.knex.runtime.core.dispatcher.DispUnit.<init>(DispUnit.java:153)
    at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:628)
    at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:1029)
    at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:950)
    at com.bea.wli.broker.JWSSubscriber.getDispClass(JWSSubscriber.java:231)
    at com.bea.wli.broker.JWSSubscriber.getRequest(JWSSubscriber.java:184)
    at com.bea.wli.broker.JWSSubscriber.doDispatch(JWSSubscriber.java:358)
    at com.bea.wli.broker.JWSSubscriber.doDispatch(JWSSubscriber.java:348)
    at com.bea.wli.broker.SubscriptionDispatcher.doDispatch(SubscriptionDispatcher.java:87)
    at com.bea.wli.broker.MessageBroker$PrivilegedSubscriptionDispatcher.run(MessageBroker.java:179)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at com.bea.wli.security.authentication.AuthenticationService.runAs(AuthenticationService.java:108)
    at com.bea.wli.broker.MsgBrokerSecurityHelper.doDispatch(MsgBrokerSecurityHelper.java:231)
    at com.bea.wli.broker.MessageBroker$PrivilegedSubscriptionDispatcher.doDispatch(MessageBroker.java:165)
    at com.bea.wli.broker.MessageBroker.publishMessage(MessageBroker.java:984)
    at com.bea.wli.mbconnector.jms.JmsConnMDB.publishMBMessage(JmsConnMDB.java:343)
    at com.bea.wli.mbconnector.jms.JmsConnMDB.onMessage(JmsConnMDB.java:475)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    aused by: java.lang.AssertionError: WSDL not found in the class file "processes.ISPSSQMsgLisnt", annotated class = processes.ISPSSQMsgLisnt
    --ClassAnnotations:
    --Method Annotations:
    --Field Annotations:
    can't continue
    at com.bea.wli.knex.runtime.jws.dispatcher.JwsDispClass.<init>(JwsDispClass.java:392)
    at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:65)
    at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:55)
    at com.bea.wli.bpm.runtime.JpdDispFile.createPrimaryDispClass(JpdDispFile.java:382)
    at com.bea.wli.knex.runtime.core.dispatcher.DispFile.<init>(DispFile.java:154)
    at com.bea.wli.knex.runtime.jws.dispatcher.JwsDispFile.<init>(JwsDispFile.java:24)
    at com.bea.wli.bpm.runtime.JpdDispFile.<init>(JpdDispFile.java:108)
    ... 34 more

    Hi
    Are you using wli process control?
    That uses wsdl and could cause the issue.
    I also saw couple of internal bugs CR264315 and CR288904 on the same issue on 9.2.
    Since this is a wli issue could you post in the wli newsgroup to get more answers http://forums.bea.com/forum.jspa?forumID=2047 ?
    Also you can open a BEA support case at http://support.bea.com and an wli support engineer would help you. Please refer to the Cr numbers above in your support case.
    Thanks
    Vimala

  • Could not find .java and .class files...

    I am working on Windows Vista operating system.
    I am able to access the .java which I created and also .class files from the command prompt.
    But I am not able to find those files in the bin folder in Windows Explorer.
    I want to delete some .java and .class files. When I use the delete command on the command prompt , I am getting ---- could not find the file.
    Can anyone help me...

    Hey everyone,
    I found the answer!
    If the command prompt application is run as administrator(since it is windows vista), the created .java files as well as .class files will be stored and can be seen in the bin folder.
    However, I could not locate the .java files (and also corresponding .class files) which I created previously.

  • How to convert JSP Compiled class file back to JSP

    Is their any way to convert the JSP converted class file back into JSP file, I have few JSP files missing in my application but i do have class files deployed corresponding to the JSP file. Is their any way where i can convert my JSP class file back to JSP. I tried used decompliers but it conerts the class file into JAVA files, Is their any such decompiler that converts the JSP converted class file into Java files.
    Thanks in Advance.

    nope...its not et al possible...!!!
    You cant convert class file back to JSP....!!

  • Verifying .java and .class files match

    I have a bit of a strange situation in a team-working environment where many developers copy code to a production server. None of this code is in a Version Control System and I have been given the task of getting it into one (I've chosen Subversion, but that isnt important)
    The problem is, its not as simple as doing a full commit of the production server because developers may have copied edited .class files onto the server, but not copied edited .java (therefore the .java file is not the same as the .class file)
    Because the server has hundreds (if not thousands) or java and class files, I cant just decompile each of the class files and manually see if they match the java files, so I'm asking, is there a tool that can verify a java file matches a class file of the same name in terms of version (or if not is there an easier way of doing it than the decompile method)?
    Thanks in advance

    Years ago I had to do something very much like this...and now I'm trying to recall how we did it (and for that matter whether it worked)...and I'm having trouble recalling. Ah, that's what happens when you read forums out of insomnia.
    Of course, you can do a baseline check by just checking the file timestamps. Also instead of decompiling the class files you can try re-compiling the source code, and then generating checksums on both class files to see if they're the same.
    You might be able to use BCEL (http://jakarta.apache.org/bcel/) to extract some useful information out of the class files. As I recall I tried this but the data wasn't useful for this kind of project, but maybe I'm misremembering. It's worth looking into.

  • How to prepare Java Card Assembly files

    Hi,
    If we rebuilt the API's in Java Card then how could be Java card Assembly files be generated
    thanks
    murali

    Thank you Lee and paulcw. Good to know that
    information and thank you for your suggestion as
    well. Like what paulcw mentioned, not to put
    sensitive information in my code. I wrote those
    because I need to connect to MS SQL. I just have no
    idea how to connect to the database without writing
    those codes in the file. Could anyone explain little
    bit more on it? Thank you.Create a password file that is accessed by your program. It keeps the passwords out of the developers' hands. (Mandatory practice implemented by our DBAs).

  • Web dynpro dc compoent controller method call from Java dc class file

    Hi All,
    Is it possible to call a wd java component controller method from a java dc class file?
    I have declared wd java dc as used dc in java dc.Any poiters for the same would be really helpful.
    Thanks in Advance.
    regards
    Radhika Kuthiala

    Hi,
    short answer: No.
    1. using WD references outside of WD DCs is unsupported and will at least show a warning when you try to deploy. Correct usage of runtime dependencies is not predictable.
    2. WebDynpro Controllers have a lifecycle that is controlled by the Framework. Even if you manage to initialize a Controller via "new" and use a method, the Controller will never have all the state-information it contains when started regualary. (think of mapped context, context attributes in general, code called in wdInit ...) I would suppose it is possible to implement a runnable low-profile example that still works, but as soon as you try to use "higher" concepts of WD (which would be the only reason to use a WD Component Controller at all), you will definitely fail.
    3. Think of it as calling EJBs Session Beans via "new", but more complex.
    hope that helps
    Jan

  • My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any

    My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any advice is helpful. This has never happened in 6 years

    answered in your other thread LR 4 suddenly no longer recognizes files.

  • BI Java-Client Class wizard not started

    Hi all,
    I follow the steps described in http://www.oracle.com/technology/obe/obe_bi/bibeans/bibeans_1012/buildbibeansapps/generatejavaapp.htm
    to build BI Beans Java client application.
    But when I create new Business Intelligence Beans --> Client Tier for OLAP --> Java-Client Class, the BI Java-Client Class wizard not displayed.
    Has anyone get this situation? Please help me.
    The version of Jdeveloper is 10.1.2.2.0 (build 1929) and BI Beans is 10.1.2.2
    Thanks very much.

    That's because a bug in BI bean 10.1.2.2.
    I have to use Jdeveloper 10.1.2.1 with BI Bean 10.1.2.1. I pass that error but another occur :(

  • XML File not found for the Container model.cpx

    I can run my application from JDeveloper without receiving the error. But when I deploy the application I get the following:
    500 Internal Server Error
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container model.cpx     at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:751)     at oracle.jbo.uicli.mom.JUMetaObjectManager.createPool(JUMetaObjectManager.java:457)     at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:541)     at oracle.jbo.html.struts11.BC4JRequestProcessor.initPageFromPath(BC4JRequestProcessor.java:233)     at oracle.jbo.html.struts11.BC4JRequestProcessor.processMapping(BC4JRequestProcessor.java:123)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:234)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)     at java.lang.Thread.run(Thread.java:479)
    Any Ideas?

    Hi,
    please explicitly "make" the project. One reason for this problem could be that the model.cpx isn't created properly. Select the model project and compile the complete project before deploying it. Sometimes it helps to clear the "class" directory of the project on teh file system before re-compiling
    Frank

  • "XML File not found for the Container DataBindings.cpx" error after deploy

    Hello,
    I have a problem with my JSP-Javaproject. Local works all fine but when i deploy my project to a Oracle Aplication Server i allway get this XML-File-Not-found exception:
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container DataBindings.cpx
    In my EAR-File the DataBindings.cpx is at:
    \WEB-INF\classes\
    My JSP-File:
    <jbo:ApplicationModule id="AippackageModule" definition="DataBindings.DataModule" releasemode="Stateful" />
    My web.xml:
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>DataBindings</param-value>
    </context-param>
    My DataBindings.cpx:
    <?xml version='1.0' encoding='windows-1252' ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application" id="DataBindings"
    Package="" ClientType="Generic">
    <pageMap>
    </pageMap>
    <pageDefinitionUsages>
    <page id="eonerrorPageDef"
    path="de.avacon.ahb.system.tools.pageDefs.eonerrorPageDef"/>
    </pageDefinitionUsages>
    <dataControlUsages>
    <BC4JDataControl Configuration="AppModuleLocal"
    Package="model.data"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="DataModule">
    <Parameters/>
    </BC4JDataControl>
    </dataControlUsages>
    </Application>
    What can i do?
    Thanks, steve

    Adding the dependency in the ViewController fixed this for me.
    I'm using two AppModules in the controller and the second one wasn't being picked up.
    I was able to fix this by:
    Go to the Project Properties, select Dependencies, edit the Dependent Projects and Archives, find the model that's failing and add a tick in the Build Output box.
    The model should now be picked up in the ViewController's DataBindings.cpx source file, though I did have to restart JDev for this to be picked up.
    HTH
    Phil

  • XML File not Found for the Container BC4J.cpx

    Hi,
    Have following error when I start a BC4J-JSP/Struts application (with Embedded and standalone OC4J) :
    500 Internal Server Error
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container BC4J.cpx
         oracle.jbo.mom.ContainerDefImpl oracle.jbo.mom.DefinitionManager.loadProjectDefinition(java.lang.String)
              DefinitionManager.java:751
         oracle.jbo.mom.ContainerDefImpl oracle.jbo.mom.DefinitionManager.loadProjectDefinition()
              DefinitionManager.java:793
         void oracle.jbo.mom.DefinitionManager.initManager()
              DefinitionManager.java:137
         void oracle.jbo.uicli.mom.JUMetaObjectManager.<init>()
              JUMetaObjectManager.java:57
         oracle.jbo.uicli.mom.JUMetaObjectManager oracle.jbo.uicli.mom.JUMetaObjectManager.getJUMom()
              JUMetaObjectManager.java:131
         oracle.jbo.common.ampool.SessionCookie oracle.jbo.http.HttpContainer.findSessionCookie(javax.servlet.http.HttpSession, java.lang.String, java.lang.String, java.util.Properties)
              HttpContainer.java:541
         boolean oracle.jbo.html.struts11.BC4JRequestProcessor.initPageFromPath(oracle.jbo.html.struts11.BC4JActionMapping, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              BC4JRequestProcessor.java:222
         org.apache.struts.action.ActionMapping oracle.jbo.html.struts11.BC4JRequestProcessor.processMapping(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              BC4JRequestProcessor.java:124
         void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RequestProcessor.java:234
         void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:1292
         void org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:492
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              HttpServlet.java:740
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:721
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484
    Then I make a Reload and it's ok.
    I have a Workspace with two Projects :
    BC4J.jpr for Businnes Components
    Web.jpr for JSP Struts
    In /classes I have the file Web.cpx, but no BC4J.cpx.
    From which does this name come ? Can I change this name ?
    Thanks
    Yves

    I found this on Metalink...
    JBO-26001: NoXMLFileException
    Cause: Could not open the named XML file for read.
    The following is from Note 137429.1. Hope this helps.
    Raja.
    JBO-26001: NoXMLFileException
    Cause: Could not open the named XML file for read.
    Action: 1. Make sure that the file is present. In particular, if the file is to be found in a zip/jar file, make sure that the Zip/JAR file is included in the CLASSPATH.
    2. This error is also reported if the name of the XML file does not match the object Name specified in the XML file. If the file system support case insensitive file names (e.g., Windows NT), make sure that the file name matches the object Name in the XML file in case-sensitive fashion.
    3. For a .JPX file, this error is reported if the JPX file is missing the JboProject XML tag. Check the JPX file to make sure that the valid tag is in there.
    4. One XML file may be extending another XML file (specified by the Extends element in this XML file). This error is reported if the base XML file is not found.
    5. When loading the XML file for a package (JboPackage tag), this error is reported if some unexpected error occurs while loading a containee.
    In all of the above cases, a more descriptive message may be printed on Diagnostic. If you are not seeing Diagnostic messages, you can run your application with Diagnostic turned on, as in "java -Djbo.debugoutput=console ...", to see Diagnostic messages.

Maybe you are looking for

  • After uninstalling nightly, I can no longer set firefox as default browser for email links and they no longer open.

    When I try to change the default firefox protocols in windows, only the nightly shows and I can not unclick it. When I attempt to click on a link in an email (Windows Live) I get "Class not registered" I presently have IE set as my default because it

  • Downloading files on a Windows 2008 R2 server using IE 9

    Hi. Trying to download some fiels from Microsoft download center, but receiving the following message: "Your current security settings do not allow this file to be downloaded" Have tried the following in IE 9: Turned off Protected mode. The page is a

  • Linked Image with border on hover

    I have a page of tiled image that link to project pages on the website. My boss found a website that he likes how the images appear when you hover over them with the mouse. I know of a way to do this, but I'm not sure what the best way would be: 1) c

  • Best Practice: Data Binding

    Each non-trivial Swing application needs to bind GUI elements (windows and components) to data. Ten years back in my MFC times, the typical solution was to initialize the GUI with fixed data, show the window, and read back the modified data after win

  • Flash CC crashes after launching

    Hey, I just installed Flas CC on my MacBookPro... after launching Flash, the Application freezes and crashes... I searched the forum... still ihave no idea... every other CC-Application works just fine Error Log: Process:         Adobe Flash CC [1121