Classpath problems when generating deployment xml

Hi,
I am new to using Toplink (9.0.4), but not new to CMP. I'm using the Toplink Mapping Workbench and have created my CMP Entity. I right-click on my project and export the Java Source. Everything (homes, local, remote) generates successfully. I then try to export the project deployment XML. However, I get a classpath error stating that it can't find my bean classes. My classpath is set to the area where the Java/Class files are. Do I have to compile my generated classes before creating the deployment XML? It appears as if I do because it works when I compile first, then generate the deployment XML. Is this the correct way to use the tool (generate Java, compile, generate XML)?
Also, Is there a way this can all be generated via Ant (i.e. something similar to EJBGen)?
Thanks,
Mike

Generating Java using the Mapping Workbench is good only for the initial Java Objects.
After the initial Java Objects has been generated TopLink recommend to generate / modify Java Objects using IDE -> compile -> And in the Mapping Workbench 'Add or Refresh classes' -> Map -> generate XML is the right way of using TopLink.

Similar Messages

  • Class not found when generating deployment xml in MW

    any ideas anyone?
    java.lang.RuntimeException: Class not found:
         at oracle.toplink.workbench.persistence.BldrProjectToRuntimeProjectConverter.convert(Unknown Source)
         at oracle.toplink.workbench.ui.BldrSession.generateDeploymentXML(Unknown Source)
         at oracle.toplink.workbench.ui.BldrMainView.generateDeploymentXMLForSelectedProjects(Unknown Source)
         at oracle.toplink.workbench.ui.BldrActionManager$61.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    Hi,
    'Class not found' in the Mapping Workbench usually means that one of your classes was not included in the 'class path' panel. In the Mapping Workbench select the project -> Class Path -> Add Entry...
    For example, in my case I have Person.class, which is part of the package com.toplink.course. 'C:\dev\tl400\classes\com\toplink\course>Person.class'
    So in the Mapping Workbench -> Class Path I put 'C:\dev\tl400\classes'
    Raanan.

  • _pageflow folder creation problems with generated build.xml

    I currently have a Workshop project with a web app that builds my ear file just fine. But the problem is, when I export the build.xml file from the project and try to run it with ant, it doesn't generate the _pageflow folders that I would expect.  Consequently, it doesn't get packaged in and causes errors when I deploy it.  The funny thing is that if I generate the ear file from Workshop, it builds, deploys, and runs just fine.
    Anybody encountered this before? Does anyone know how the pageflow folders get built?  I narrowed it down the to build.xml <apt> task which seems to be one responsible for creating the pageflow folders. It also seems to be looking for jar file references in the .factorypath file, but I don't quite know which ones I'm supposed to use.
    Any help?

    No help from anyone?

  • Problem in generating a xml

    i am developing a application in which i am creating a xml when i am doing it with tomcat it is working but when i am doing it with sun application server it is not creating xml i think it is because of all the files are bundled in war file.i am attaching that file also if u have some sol. plz. tell me thanks in advanced.
    package view.action;
    import datasources.*;
    import view.*;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Text;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import org.w3c.dom.ProcessingInstruction;
    import org.w3c.dom.Attr;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    public class BeanGenerateXML
    private String sfilename = "";
    private String sSQLWhere = "";      //To store the Filename
    private Document doc;               //To store the XML doc
              private ResultSet rst;               //Recordset from which the XML doc has to be built
              private FileWriter fs;               //File writer
              private BrowseSession session;
              private DBConnectorImpl dbDataSource;     //This for using database API's
              public BeanGenerateXML(BrowseSession session){
              this.session = session;
              //Set the Condition
         public void setSQLWhere(String pSQLWhere) {
                   if (pSQLWhere!=null && pSQLWhere != "")
                        sSQLWhere = " WHERE " + pSQLWhere;
              //Set the filename
         public void setFileName(String pfilename) {
                   sfilename = pfilename;
              //Get the filename
         public String getFileName(String x) {
                   return sfilename;
              //Generate XML Document from the recordset
         public void Generate()
         try
    //Create Document
    DocumentBuilderFactory dbf =DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    doc = db.newDocument();
         Element main,root,item;
         //the Top element
         main = doc.createElement("faqs");
         main.appendChild(doc.createTextNode("\n"));
         String nfaqid = "";
         String sfaq = "";
         String sfaqans = "";
    //               String sfaqgroup = "";
                   int icounter=1;
                   String field = "";
                   while (rst.next())
         //should check whether there is data not implemented
         nfaqid = rst.getString(1);
         sfaq = rst.getString(2);
         sfaqans = rst.getString(3);
    //                    sfaqgroup = rst.getString(4);
         root = doc.createElement("faq");
         root.appendChild(doc.createTextNode("\n"));
         //add nfaqid Element
         item = doc.createElement("nfaqid");
         item.appendChild(doc.createTextNode(nfaqid));
         root.appendChild(item);
         root.appendChild(doc.createTextNode("\n"));
         //add sfaq Element
         item = doc.createElement("sfaq");
         item.appendChild(doc.createTextNode(sfaq));
         root.appendChild(item);
         root.appendChild(doc.createTextNode("\n"));
         //add sfaqans Element
         item = doc.createElement("sfaqans");
         item.appendChild(doc.createTextNode(sfaqans));
         root.appendChild(item);
         root.appendChild(doc.createTextNode("\n"));
         //add sfaqroup Element
    //      item = doc.createElement("sfaqgroup");
    //      item.appendChild(doc.createTextNode(sfaqgroup));
    //      root.appendChild(item);
    //     root.appendChild(doc.createTextNode("\n"));
                        field = "idMenuItem" + icounter;
         //add sfaqans Element
         item = doc.createElement("lfaqname");
         item.appendChild(doc.createTextNode(field));
         root.appendChild(item);
         root.appendChild(doc.createTextNode("\n"));     
                        field = "idMenuItem" + icounter + "Detail";
         //add sfaqans Element
         item = doc.createElement("lfaqans");
         item.appendChild(doc.createTextNode(field));
         root.appendChild(item);
         root.appendChild(doc.createTextNode("\n"));          
                        icounter = icounter + 1;
         //add to the Top Element
         main.appendChild(root);
         main.appendChild(doc.createTextNode("\n"));
         }//end of for
         doc.appendChild(main);
                   //close the resultset and connection after the use
                   rst.close();
                   dbDataSource.Close();
         catch(Exception e)
         System.out.println("Error " + e);
         }//end of generate
         //walk the DOM tree and Build as you go
         private void Walk(Node node) throws IOException
         int type = node.getNodeType();
         switch(type)
         case Node.DOCUMENT_NODE:
         fs.write("<?xml version=\"1.0\" encoding=\""+ "UTF-8" + "\"?>");
         break;
         }//end of document
         case Node.ELEMENT_NODE:
         fs.write('<' + node.getNodeName() );
         NamedNodeMap nnm = node.getAttributes();
         if(nnm != null )
    int len = nnm.getLength() ;
    Attr attr;
    for ( int i = 0; i < len; i++ )
    attr = (Attr)nnm.item(i);
    fs.write(' ' + attr.getNodeName() + "=\"" + attr.getNodeValue() + '"' );
         fs.write('>');
         break;
         }//end of element
         case Node.ENTITY_REFERENCE_NODE:
         fs.write('&' + node.getNodeName() + ';' );
         break;
         }//end of entity
         case Node.CDATA_SECTION_NODE:
    fs.write( "<![CDATA[" + node.getNodeValue() + "]]>" );
    break;
         case Node.TEXT_NODE:
         fs.write(node.getNodeValue());
         break;
         case Node.PROCESSING_INSTRUCTION_NODE:
         fs.write("<?" + node.getNodeName() ) ;
         String data = node.getNodeValue();
         if ( data != null && data.length() > 0 ) {
         fs.write(' ');
         fs.write(data);
         fs.write("?>");
         break;
         }//end of switch
         //recurse
         for(Node child = node.getFirstChild(); child != null; child = child.getNextSibling())
         Walk(child);
         //without this the ending tags will miss
         if ( type == Node.ELEMENT_NODE )
         fs.write("</" + node.getNodeName() + ">");
         }//end of Walk
         private void LoadData()
         try {
                        dbDataSource = new DBConnectorImpl(this.session);
                        //open database connection
                        dbDataSource.DBConnect();
                        //Set SQL to be executed
                        dbDataSource.setSQL("SELECT nFAQid, sFAQ, sFAQans FROM FAQ" + sSQLWhere);
                        //Store the result for in a local copy
                        rst = dbDataSource.getResultSet();
         catch (ClassNotFoundException ex) {
         System.out.print(ex.getMessage());
         catch (SQLException ex) {
         System.out.print(ex.getMessage());
         catch (Exception ex) {
         System.out.print(ex.getMessage());
         }//end of LoadData
              //Build the XML file
         public void BuildXML() throws IOException
         fs = new FileWriter(sfilename); //Enter the file name
                   LoadData();     //Load data fro FAQ
                   Generate(); //Generate the XML File
         Walk(doc); //Output the Doc XML into a file
                   fs.close();
         }//end of BuildXML
    }

    To achieve what you'd like to do, you will need to use Data Templates as a data source. The data template can then reference the JDBC connection to the BI Server. Using data templates will allow you to solve both of your problems (non-flat result sets and linked queries).
    Using Answers as a data source or using SQL against the BI Server will always result in a flat XML structure getting generated.
    Bryan
    Message was edited by:
    bwise

  • Problem when generating web service client using eclipse JavaEE

    Hi,
    I have created a subservience in SAP .. and the WSDL endpoint is :http://10.130.105.8:8000/sap/bc/srt/wsdl/flv_10002A111AD1/srvc_url/sap/bc/srt/rfc/sap/ztm_ws_get_emp_holidays/520/offici…
    But there is problem when I set the service definition. Can you help me, in how to generate the  Java classes for SAP web service ?

    Hi,
    Hello again .
    Have you tried your service using soapui ?
    You can use your WSDL as input .
    In order to eliminate eclipse problem try this service:(I just did)
    http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL
    Regards.
    package main;
    import java.io.FileInputStream;
    import java.rmi.RemoteException;
    import java.util.Properties;
    import org.oorsprong.www.websamples_countryinfo.CountryInfoServiceSoapType;
    import org.oorsprong.www.websamples_countryinfo.CountryInfoServiceSoapTypeProxy;
    import org.oorsprong.www.websamples_countryinfo.TCountryCodeAndName;
    public class Main {
    public static void main(String[] args) {
      try {
       final Properties properties = new Properties();
       properties.load(new FileInputStream("properties.ini"));
       System.getProperties().putAll(properties);
      } catch (final Exception exception) {
       exception.printStackTrace();
      new Main();
    public Main() {
      try {
       final CountryInfoServiceSoapType infoServiceSoapType = new CountryInfoServiceSoapTypeProxy();
       final TCountryCodeAndName[] tCountryCodeAndNames = infoServiceSoapType.listOfCountryNamesByName();
       for (final TCountryCodeAndName tCountryCodeAndName : tCountryCodeAndNames) {
        System.out.println(tCountryCodeAndName.getSName());
      } catch (final RemoteException exception) {
       exception.printStackTrace();

  • I met a problem when I deploy a entity bean!

    I had developed a simple entity--only have
    two columns use Jbuilder 6.0 Enterprise,
    when I deploy it with weblogic 6.1,I met
    the following error :
    weblogic.j2ee.DeploymentException: Error deploying application mpassword:
    Unable to deploy EJB: Password1 from mpassword.jar:
    The DataSource with the JNDI name: Oracle could not be located. Please
    ensure that the DataSource has been deployed successfully and that the JNDI
    name in your EJB Deployment descriptor is correct.
    at weblogic.deploy.deploy(deploy.java:665)
    at weblogic.deploy.runBody(deploy.java:358)
    at weblogic.utils.compiler.Tool.run(Tool.java:79)
    at weblogic.deploy.main(deploy.java:1601)
    Error deploying application mpassword:
    Unable to deploy EJB: Password1 from mpassword.jar:
    The DataSource with the JNDI name: Oracle could not be located. Please
    ensure that the DataSource has been deployed successfully and that the JNDI
    name in your EJB Deployment descriptor is correct.

    Hi,
    Within you weblogic-cmp-rdbms-jar.xml file you will have an entry:
    <data-source-name>Oracle</data-source-name>
    This links to a DataSource deployed on WebLogic which in turn links to a
    connection pool to the database where you persist the entity.
    So do you have a DataSource called Oracle?
    Is this correctly deployed?
    Gareth
    "mrliuz" <[email protected]> wrote in message
    news:[email protected]..
    I had developed a simple entity--only have
    two columns use Jbuilder 6.0 Enterprise,
    when I deploy it with weblogic 6.1,I met
    the following error :
    weblogic.j2ee.DeploymentException: Error deploying application mpassword:
    Unable to deploy EJB: Password1 from mpassword.jar:
    The DataSource with the JNDI name: Oracle could not be located. Please
    ensure that the DataSource has been deployed successfully and that theJNDI
    name in your EJB Deployment descriptor is correct.
    at weblogic.deploy.deploy(deploy.java:665)
    at weblogic.deploy.runBody(deploy.java:358)
    at weblogic.utils.compiler.Tool.run(Tool.java:79)
    at weblogic.deploy.main(deploy.java:1601)
    Error deploying application mpassword:
    Unable to deploy EJB: Password1 from mpassword.jar:
    The DataSource with the JNDI name: Oracle could not be located. Please
    ensure that the DataSource has been deployed successfully and that theJNDI
    name in your EJB Deployment descriptor is correct.

  • Generate Deployment XML with Ant or Build

    I'm looking for a way to generate the deployment xml through a build script rather than through the mapping workbench.
    Anyone know if there are command-line type options available?

    Not that I'm aware of, but why would you want to not use the MW, it's a huge productivity gain as far as development is concerned. It saves you from writing out all that XML.
    Remember that typically in a development team, this XML is generated just 1 time for a given release (unless you're continually changing the object model or data model - which is a bad idea anyway)
    my 2 cents,
    Darren

  • How do you include a DTD when generating an XML document

    Hi
    I have just started to use the Java XML Pack to generate a XML document.
    How do you put the dtd element
    <!DOCTYPE Controller SYSTEM "controller.dtd">
    in the generated document.
    I am using the following piece of code
    public void generate(...)
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.newDocument();
    Element rootElement = createElement("Controller");
    // Fill out the nodes etc
    // Save the result
    TransformerFactory tFactory =
    TransformerFactory.newInstance();
    Transformer transformer = Factory.newTransformer();
    File f = new File("dummy.xml");
    FileWriter fw = new FileWriter(f);
    DOMSource d1 = new
    DOMSource(rootElement,"controller.dtd");
    StreamResult result = new StreamResult(fw);
    transformer.transform(d1, result);
    Thanks
    Greg

    Hello,
    I had to go through quite some pain to get this done about a year ago,anyways,here is the solution.
    all the import files are in jaxp1.1 bundle.
    below is a test class code.
    import org.apache.crimson.tree.XmlDocument;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import java.io.*;
    public class CreateDTDInXMLFile {
    public CreateDTDInXMLFile() {
    public static void main(String[] args) {
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.newDocument();
    Element root = document.createElement("root");
    Element name = document.createElement("name");
    name.appendChild(document.createTextNode("Khalid"));
    Element address = document.createElement("address");
    address.appendChild(document.createTextNode("2022 11th Ave SW"));
    root.appendChild(name);
    root.appendChild(address);
    document.appendChild(root);
    ((XmlDocument)document).write(System.out);
    //the above will print the simple xml doc,now add the dtd
    //suppose the dtd is [<!DOCTYPE root SYSTEM "address.dtd">]
    ((XmlDocument)document).setDoctype(null,"address.dtd",null);
    //now print the xml doc again
    System.out.println("\n");
    ((XmlDocument)document).write(System.out);
    } catch(ParserConfigurationException pce) {
    pce.printStackTrace();
    return;
    }catch (IOException ioe) {
    ioe.printStackTrace();
    This will take care of the agony..
    Khalid

  • Classpath problem when deploying a persistence unit (in JBoss)

    Hello,
    I have a JAR file containing an EJB with a persistence.xml file.
    I also have another JAR project containing a persistent annotated POJO class that the persistence unit is supposed to map.
    I defined the class in the persistence unit using a class XML element, but because it's in another JAR, the persistence unit implementation cannot find it. I tried to use a jar-file element instead and specify the name of the JAR containing the POJO, and from the log it seems the class is found and identified as persistent, but then the actual mapping operation fails because of the same reason! I also tried to edit the classpath property in the EJB JAR's manifest fileto include the POJO JAR, but that did not help too...
    Does anyone know what I'm missing here and how to make the persistence unit succeed in mapping the POJO class?
    Thanks.

    Ok, some more details regarding the problem:
    Here is the persistence unit definition:
    <persistence-unit name="NorthwindPU" transaction-type="JTA">
              <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <jta-data-source>jdbc/NorthwindDB</jta-data-source>
              <!-- <class>personal.test.domain_layer.Product</class> -->
              <jar-file>TestProjectPersistence.jar</jar-file>
              <properties>
                   <property name="hibernate.transaction.factory_class"
                        value="org.hibernate.transaction.CMTTransactionFactory"/>
                   <property name="hibernate.transaction.manager_lookup_class"
                        value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
                   <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
                   <property name="hibernate.current_session_context_class" value="jta"/>
              </properties>
    </persistence-unit>Here is the stack trace I get when starting the server and deploying the application:
    javax.persistence.PersistenceException: [PersistenceUnit: NorthwindPU] class or package not found
         at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1093)
         at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:871)
         at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:758)
         at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)
         at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
         at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
         at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
         at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
         at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
         at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
         at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
         at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
         at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
         at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
         at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
         at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
         at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
         at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
         at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
         at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
         at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
         at org.jboss.Main.boot(Main.java:209)
         at org.jboss.Main$1.run(Main.java:547)
         at java.lang.Thread.run(Unknown Source)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • EJB classpath problem when refering a DAO in library jar file

    Hi
    When I tried to deploy an EJB jar file in 10g which references the DAO for getting database[SQL Server2000] query results.Its not retriving data nor throwing any exceptions.Other DAO business methods which do not access database are working well.
    When I tried to import the DAO inside a JSP and calling the DAO data access method which is working fine. Even I have set the resource-ref [datasource JNDI Name] in ejb-jar.xml files for the EJB beans, but its not referencing. If you have any ideas, how to resolve this problem, please forward me your suggestion.
    Thanks in Advance
    Best Regards
    Venugopal Balu

    Hi
    When I tried to deploy an EJB jar file in 10g which references the DAO for getting database[SQL Server2000] query results.Its not retriving data nor throwing any exceptions.Other DAO business methods which do not access database are working well.
    When I tried to import the DAO inside a JSP and calling the DAO data access method which is working fine. Even I have set the resource-ref [datasource JNDI Name] in ejb-jar.xml files for the EJB beans, but its not referencing. If you have any ideas, how to resolve this problem, please forward me your suggestion.
    Thanks in Advance
    Best Regards
    Venugopal Balu

  • Have problem when generate Web Service from bapi function

    Dear all,
    Please kindly help me about generating Web Service from BAPI function, It does not success only this attached function.
    I have done so many function without any problems.
    I found 1 case that I use specific variable to be an import/ export then, it can't create as well.
    As for this one, I try so many changes but I can't success it as well.
    This is my function on R/3 4.6C, Dot net connector 2.0, Dot net Frame Work 1.1.
    FUNCTION Z_BAPI_ATTACHMENT_CREATE.
    ""Local interface: Type: Remote-enabled module
    *"  IMPORTING
    *"     VALUE(P_BOTYPE) LIKE  BORIDENT-OBJTYPE
    *"     VALUE(P_BO_ID) LIKE  BORIDENT-OBJKEY
    *"     VALUE(P_MSGTYP) LIKE  SOFM-DOCTP
    *"     VALUE(P_DOCTY) LIKE  BORIDENT-OBJTYPE
    *"     VALUE(P_RELTYP) LIKE  BRELTYP-RELTYPE
    *"     VALUE(P_FNAME) LIKE  RLGRAP-FILENAME
    *"     VALUE(P_OBJDES) TYPE  SO_OBJ_DES
    *"  EXPORTING
    *"     VALUE(RETURNMESSAGE) TYPE  CHAR50
    INCLUDE : <cntn01>.
    P_BOTYPE  TYPE  BORIDENT-OBJTYPE DEFAULT 'BUS2105'
    P_BO_ID   TYPE  BORIDENT-OBJKEY
    P_MSGTYPE TYPE  SOFM-DOCTP DEFAULT 'URL'
    P_DOCTY   TYPE  BORIDENT-OBJTYPE DEFAULT 'MESSAGE'
    P_RELTYP  TYPE  BRELTYP-RELTYPE DEFAULT 'ATTA'
    P_FNAME   TYPE  RLGRAP-FILENAME
    P_OBJDES  TYPE  SO_OBJ_DES
    TYPES: BEGIN OF ty_message_key,
    foltp TYPE so_fol_tp,
    folyr TYPE so_fol_yr,
    folno TYPE so_fol_no,
    doctp TYPE so_doc_tp,
    docyr TYPE so_doc_yr,
    docno TYPE so_doc_no,
    fortp TYPE so_for_tp,
    foryr TYPE so_for_yr,
    forno TYPE so_for_no,
    END OF ty_message_key.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line
    WITH HEADER LINE.
    First derive the Attachment's ( MESSAGE )document type.
    p_docty = 'MESSAGE'.
    CASE p_reltyp.
    In case of URls
      WHEN 'URL'.
        p_msgtyp = 'URL'.
    In case of Notes / Private Notes
      WHEN 'NOTE' OR 'PNOT'.
        p_msgtyp = 'RAW'.
      WHEN 'ATTA'.
    Take given parameter e.g. 'DOC', 'PDF' etc.
    P_MSGTYP = 'EXT'.
      WHEN OTHERS.
    ....exit
        EXIT.
    ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    define container to pass the parameter values to the method call
    in next step.
    swc_container lt_message_container.
    Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' p_objdes.
    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    swc_set_element lt_message_container 'NO_DIALOG' 'X'.
    swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    In case of URLs..it should be concatenated with &KEY& in the begining.
    CASE p_msgtyp.
      WHEN 'URL'.
      lt_doc_content = '&KEY&http://www.rmtiwari.com' .
        CONCATENATE '&KEY&' p_fname INTO lt_doc_content.
        APPEND lt_doc_content.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
      WHEN 'RAW'.
        lt_doc_content = p_fname.
        APPEND lt_doc_content.
    In case of PC File attachments
      WHEN OTHERS.
        OPEN DATASET p_fname FOR INPUT IN BINARY MODE.
        IF sy-subrc EQ 0.
          DO.
            READ DATASET p_fname INTO lt_doc_content.           "2 of 27
            IF sy-subrc EQ 0.
              APPEND lt_doc_content.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET p_fname.
        ENDIF.
    ENDCASE.
    'DocumentContent' is a multi-line element ( itab ).
    swc_set_table lt_message_container 'DocumentContent' lt_doc_content.
    Size is required in case of File attachments
    DATA : lv_doc_size TYPE i.
    DATA : l_file_lines TYPE i.
    DESCRIBE TABLE lt_doc_content LINES l_file_lines.
    READ TABLE lt_doc_content INDEX l_file_lines.
    lv_doc_size = ( 255 * ( l_file_lines - 1 ) ) +
    STRLEN( lt_doc_content ).
    swc_set_element lt_message_container 'DOCUMENTSIZE' lv_doc_size .
    Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    swc_call_method lo_message 'CREATE' lt_message_container.
    Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
    data: LO_IS_OBJECT_A type SIBFLPORB. "type SIBFLPORB is unknown, so I
    DATA: lo_is_object_a TYPE borident.
    lo_is_object_a-objkey = p_bo_id.
    lo_is_object_a-objtype = p_botype.
    LO_IS_OBJECT_A-CATID = 'BO'.
    Create attachment BO object_b
    data: LO_IS_OBJECT_B type SIBFLPORB. "type SIBFLPORB is unknown
    DATA: lo_is_object_b TYPE borident.
    lo_is_object_b-objkey = lv_message_key.
    lo_is_object_b-objtype = p_docty.
    LO_IS_OBJECT_B-CATID = 'BO'.
    *TRY.
    *CALL METHOD CL_BINARY_RELATION=&gtCREATE_LINK
    EXPORTING
    IS_OBJECT_A = LO_IS_OBJECT_A
    IS_OBJECT_B = LO_IS_OBJECT_B
    IP_RELTYPE = P_RELTYP.
    CALL FUNCTION 'BINARY_RELATION_CREATE'
      EXPORTING
        obj_rolea    = lo_is_object_a
        obj_roleb    = lo_is_object_b
        relationtype = p_reltyp
      EXCEPTIONS
        OTHERS       = 1.
    Check if everything OK...who cares!!
    COMMIT WORK.
    if sy-subrc = 0.
      RETURNMESSAGE = 'S-Success'.
    else.
      RETURNMESSAGE = 'E-Error'.
    endif.
    ENDFUNCTION.
    Thanks in advance,
    Benjawan
    Edited by: Nitipat Chadchavalpanichaya on Oct 20, 2008 9:02 AM

    There is no any error message show up. It just the class
    Z_BAPI_ATTACHMENT_CREATE  doesn't create autometically as normal. I showed you as below.
    That means I can't call class z_bapi_attachment_create.
    ' <autogenerated>
    '     This code was generated by a SAP. NET Connector Proxy Generator Version 2.0
    '     Created at 21/10/2551
    '     Created from Windows
    '     Changes to this file may cause incorrect behavior and will be lost if
    '     the code is regenerated.
    ' </autogenerated>
    Imports System
    Imports System.Text
    Imports System.Collections
    Imports System.ComponentModel
    Imports System.Runtime.InteropServices
    Imports System.Xml.Serialization
    Imports System.Web.Services
    Imports System.Web.Services.Description
    Imports System.Web.Services.Protocols
    Imports SAP.Connector
      '@ <summary>
      '@ Client SAP proxy class
      '@ </summary>
      <WebServiceBinding(Name:="dummy.Binding", Namespace:="urn:sap-com:document:sap:rfc:functions")> _
      Public Class PRAttachment
        Inherits SAPClient
        '@ <summary>
        '@ Initializes a new PRAttachment.
        '@ </summary>
        Public Sub New()
        End Sub
        '@ <summary>
        '@ Initializes a new PRAttachment with a new connection based on the specified connection string.
        '@ </summary>
        '@ <param name="connectionString">A connection string (e.g. RFC or URL) specifying the system where the proxy should connect to.</param>
        Public Sub New(ByVal ConnectionString As String)
          MyBase.New(ConnectionString)
        End Sub
        '@ <summary>
        '@ Initializes a new PRAttachment and adds it to the given container.
        '@ This allows automated connection mananged by VS component designer:
        '@ If container is disposed, it will also dispose this SAPClient instance,
        '@ which will dispose a contained connection if needed.
        '@ </summary>
        '@ <param name="Cont">The container where the new SAPClient instance is to be added.</param>
        Public Sub New(ByVal Cont As Container)
          MyBase.New(Cont)
        End Sub
      End Class

  • Problem when generating an non-interactive form in Web Dynpro java.

    Hi,
    I'm trying to create a PDFDocument using a creation context in java. Everything works fine when the Interactive property of the creation context is set to true. When I change it to false however, the Web dynpro application hangs and eventually throws the following exception:
    java.net.SocketTimeoutException: Read timed out
       at java.net.SocketInputStream.socketRead0(Native Method)
       at java.net.SocketInputStream.read(SocketInputStream.java:129)
       at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
       at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
       at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.readLine(HTTPSocket.java:806)
    I'm wondering why this exception occurs when i'm generating a non interactive form and never appears when i'm generating a form with the Interactive property set to true.
    Any ideas?
    Edited by: Arjan Nieuwenhuizen on Feb 25, 2008 3:24 PM

    Yeah I know changing the form properties will solve my problem, but since i'm developing a training for Interactive Forms in Web Dynpro Java, I wanted to figure out why the (static / non-interactive) combination didn't work, turned out to be a template problem, which i still didn't figure out, except the fact that having flowed content on your template is not the problem.
    My ideas about your question:
    When we have the layout of an Interactive Form, its clear if it's meant to be static or dynamic, we don't know however, if it's interactive or non-interactive.
    I don't think we can judge a layout to have an Interactive or non-interactive purpose, can depend on the situation in which the same form is shown/used:
    - One moment it can be interactive, e.g. user is filling in the form, can enter data etc.
    - Next moment it can be non-interactive, e.g. form is shown to another user.
    So it's more the scenario/situation that determines if the form is interactive or non-interactive.

  • JDev 10g: Problem when generating database objects from UML diagram

    Hi,
    I have noticed following problem.
    I made some business components through UML diagrammer in 9.0.3. From the diagram I generated database objects. It worked fine.
    When I doing the same thing in 10g, the generation fails on several tables with the message that the "identifier is too long".
    Looking at the SQL produced in one of the failing tables. In 9.0.3 following is produced:
    create table sfs_document_def (
    id number constraint document_definition_id_check not null,
    caption varchar2(100) constraint document_definition_caption_ch not null,
    index1 number,
    owner_type number constraint document_definition_owner_type not null
    alter table sfs_document_def add (constraint documentdefinition_primary_key primary key (id));
    And in 10g following is produced:
    create table sfs_document_def (
    id number,
    caption varchar2(100) constraint sfs_document_def_caption_check not null,
    index1 number,
    owner_type number constraint sfs_document_def_owner_type_ch not null
    alter table sfs_document_def add ( constraint documentdefinition_primary_key primary key (id));
    alter table sfs_document_def add ( constraint document_definition_id_check check ("id" is not null));
    alter table sfs_document_def add ( constraint sfs_document_def_caption_check_10 check ("caption" is not null));
    alter table sfs_document_def add ( constraint sfs_document_def_owner_type_ch_10 check ("owner_type" is not null));
    It seems that column that are set not to be null in 10 g first get a constraint creating the table and then when altering the table. Furthermore, notice that the name of the second constraint is longer than 30 chars, which is reason to the error when creating the tables.

    Thanks for reporting the issue. I have managed to reproduce your problem and logged a bug to get the problem fixed.
    Thanks,
    Lisa Sherriff
    JDev QA

  • Classpath problems when importing my classes

    I'm using a tutorial with sample programs dealing with bank accounts.
    I get this error:
    InterestBearingAccount.java [9:1] '.' expected
    import Account;
    ^
    1 error
    Errors compiling InterestBearingAccount.
    The Account class already exists in the current directory. I've tried everything as far as setting the classpath variable (nothing, just a period, period & slash, the actual complete path for the current directory, nothing works!!!!!). I also tried using -classpath (.) and the end of my javac command and that seemed to not work at all.
    The Java Coffee Break tutorial have some already compiled (*.class) files and they run fine. My *.java files are identical. In fact, I cut and pasted them so I know it's not a typo.
    My path is set to include the jdk1.4.0\bin directory and I've only begun to have problems now that I need to import existing classes into the programs.
    I should mention that I get the same error using Forte environment or doing it at the command prompt window. Please help.

    Thanks ATMGUY. I commented out the import statements in both InterestBearingAccount and AccountDemo and it worked fine. I guess the author of that tutorial was obviously not working with jdk 1.4.
    As far as using packages, com.kusek.bank would make a good package name then??
    The statement:
    package com.kusek.bank; OR a shorter version package kusek.bank;
    should be added to all three classes and no import statements would then be necessary, right??
    I just remember reading that it should be something unique as a good habit to get into.
    I'm trying to learn enough to make a useful GUI program for a special project so I probably should be using packages anyway when I get to that point.
    My programming backround is limited to procredural languages Basic, QBasic, Pascal, and Fortran and I find myself still wanting to think in those terms. I have read several web sites and worked through some basic examples but I still have much to learn. I once I can grasp how to write OOP style it would be nice to look at code for a somewhat detailed application (like a store checkout app) and have every line explained as to why it's there. I can see where it makes sense to have your GUI classes predefined (Swing), File I/O, serial port communications, and even things like this InterestBearingAccount example that extends from the Account class utilizing its basic attributes but overriding the constructors for the additional parameters (interest calculation) that are passed. How to take a common problem and go about creating a solution is what I need to see being done to help me.
    My telemetry project uses VHF radios with packet radio modems to monitor two diesel engines and turn one off if the other turns off. The modems have built in A/D data gathering and can also output control signals, they just need to be told what to do. I can manually use a Windows Hyperterminal session and type in "connect Engine1" and use commands to determine the A/D inputs "analog". The modems have built in end-to-end acknowledgement so the only think I need is an application than can be setup to run in the Startup folder to handle this. It would use a timer class to "poll" engine1 every 5-10 minutes and if it has stopped (based on the response of the "analog" command) I would "disconnect" from engine1 and "connect" to engine2 and send a "ctrl B off" or something similar. The standard responses from the modem should allow me just to send and recieve STRING data to and from the serial port and parse them as needed. I need at least this much but it shouldn't be too much harder to develop a way to reset the system(reverse of this) when that is required. I could also read a water pressure value at one of the locations and display that on the screen along with the current status of the engines (using values obtained from the "analog" command on the modems).
    The hardest part of OOP programming seems to be knowing what classes are already out there and knowing how to find them or apply them. I hope Swing has classes that provide for displaying values on the Windows taskbar (my motherboard monitor freeware displays temperature readings down on the taskbar). I appreciate all the help given here. It's almost like having a private tutor.
    randy

  • Problem when Generating a PDF , from a SPOOL

    Hi,
    I'm using the Standard report RSTXPDFT4 to generate data from a spool to a .pdf file.
    When the program runs online the data is generated correctly, but, when the data has more then 99 pages, it runs in background, give me the return that the PDF was produced correctly but i can't find where.
    I used the path C:\file.pdf but since the server is UNIX, it has got none "C:" Directory.
    Then i tried to use /usr/sap/trans/tmp , but the program don't find this path.
    Does anyone know how to solve this problem?
    Thanks and regards.

    see ...
    go to your desktop   <b>create  one  pdf  file   empty    see  rightclick the file  and see  the properties of the file  ... there the path of the  file</b>  will be there  ..  copy and paste it in the   RSTXPDFT4   file path .
    just  give the file   path as your desktop   and   do  background   ... so that the spool will be downloaded into your   desktop with  the file  name
    i think  problem is  the file  path  ..... see the  properties of the files in your  desktop
    Girish

Maybe you are looking for