Example xmlBeans not working in Workshop 7.0

Hi,
I have been trying to use the purchase order example for XMLBeans (http://workshop.bea.com/xmlbeans/docindex.html)
in Workshop 7.0.
I have the jar file for the schema and added it in the WEB-INF/lib of my Workshop
7.0 project. When i try to use it in the Java class, it is not able to find the
classes. The wierd part is when i add the package info leading to my class in
my import statement one-by-one, it shows me the packages in the workshop but once
the statement is completed it says "the class not found in import".
The same jar is working in Workshop Beta 8.1.
Does anybody know what is wrong in 7.0?
Raghu

XML Beans needs to run on JDK 1.4 or higher so consequently will not currently
run on Workshop 7.0.
"Raghu Subramaniam" <[email protected]> wrote:
>
Hi,
I have been trying to use the purchase order example for XMLBeans (http://workshop.bea.com/xmlbeans/docindex.html)
in Workshop 7.0.
I have the jar file for the schema and added it in the WEB-INF/lib of
my Workshop
7.0 project. When i try to use it in the Java class, it is not able to
find the
classes. The wierd part is when i add the package info leading to my
class in
my import statement one-by-one, it shows me the packages in the workshop
but once
the statement is completed it says "the class not found in import".
The same jar is working in Workshop Beta 8.1.
Does anybody know what is wrong in 7.0?
Raghu

Similar Messages

  • Classroom in a Book Examples Do Not Work.

    I am working through the Dreamweaver CS4 Classroom in a Book, while working on a MacPro OS X 10.6.1 Snow Leopard.
    Many examples do not function as advertised. This is one example:
    On page 114, the user is asked to insert a Spry menu into the page. When this is done the properties panel should appear, in which the Text, Links, Titles and so on can be entered. On my system the properties panel does not appear as it should. Instead, the properties panel for HTML and CSS remains present. It is not possible to enter the attributes as intended in the lesson. I can enter them manually into the markup, but since this will not result in correctly generated script (it is generated Javascript) it is pointless to do this. The failure of the Dreamweaver GUI makes it impossible to proceed with the lesson.
    I tried to repair this situation be deleting the files and copying them anew from the CD ROM. then started again. The error was repeated.
    My file setup is slightly different from the default. I always make an extra directory for the HTML files, named html
        ~/username/Documents/DW CIB/html/
        ~/username/Documents/DW CIB/css/
        ~/username/Documents/DW CIB/images/
        ~/username/Documents/DW CIB/js/
        ~/username/Documents/DW CIB/SpryAssets/
          and so on.
    But this is not the problem, as the system is seeing this. For example, the links inserted to the pages are automatically correct:
       <link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    Is there an issue here with Mac and Snow Leopard? Or are more people having these problems? Or am I missing something here?

    Benjamin Rossen wrote:
    I have a reason for using a different directory structure. I like to see all the .html files in alphabetic order, and not interrupted by the directories containing images, scripts and other resources. These directories are particularly disturbing if they are open.
    You have two options:
    Buy a Windows computer. Windows organizes files and folders that way by default.
    On your Mac, expand the Files panel so you can see the Type column header. Click Type, and the files will be reorganized the way you prefer.
    I put only the index.html in the site root, with a redirect on it to home.html in the lower directory, so that only one .html file is in the default root directory of the site. Now I know the Dreamweaver will not function correctly when I do this. 
    I think this is not good. I recommend that Adobe augment the system to operate correctly for any file structure built by the user.
    Dreamweaver does operate correctly for  any file structure, but it can't detect a redirect.

  • Labview 7 for Linux on Redhat9,NI example Finder not working.

    I have Labview7 for Linux on Redhat9, installed at /usr/local/lv71. "NI example Finder" is not working, the function of browser, search,submit,none is working. When I try to close it, the window looks dead, cannot close it. I will force to close it. What is the problem? Where are the examples?
    Another question: the simple help text is working, but the details help is not working. I can open the help file by Mozilla. But I want the help could be linked, like what it is in Windows platform.
    Thanks

    Hello �
    If whenever you type �labview� at the prompt, LabVIEW 7.1 is launched, it probably means that the paths are setup to launch 7.1 but it doesn�t necessarily mean that you do not have LabVIEW 7.0 installed.
    If you only installed LabVIEW 7.1 in that computer, it is possible that somebody else had installed LabVIEW 7.0 before.
    What I suggest doing is to run the UNINSTALL scripts for both, LabVIEW 7.0 and 7.1, and reinstall LabVIEW 7.1 as root, not as user.
    Hope that helps!
    S Vences
    National Instruments

  • Drag and drop examples do not work ?!

    Hi guys,
    i want to add drag and drop functionality to one of my programs
    i tried to run the java examples of this page:
    http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html
    but it just does not work ! windows give me the "can't drop" icon when i drag a file in the frame
    do you experience the same problem?
    Thanks in advance

    i tried:
    A Simple Example: Adding DnD to JLabel
    and
    Data Transfer with a Custom Component
    For both of these, i downloaded/compiled/executed the sourcecode ; there was no error. But the drop couldn't be done
    EDIT: in fact i just realised i didn't read the "try this" instructions and i misunderstood what the progs were supposed to do... in fact they work, they just don't do what i thought they would do XD
    sorry..
    EDIT2 I found a package for easy drag and drop operations ( http://iharder.sourceforge.net/current/java/filedrop/ ) so it's useless to answer to this thread any more, tks ^^

  • Message driven bean example is not working

    Hi,
    i tried message driven bean example on J2ee 6.20. I am able to make connection factory, but when i tried to deploy ear file a get an exception:
    Error occurred
    com.inqmy.services.deploy.container.DeploymentException: java.lang.NullPointerEx
    ception
            at com.inqmy.services.ejb20.EJBAdmin.commitDeploy(EJBAdmin.java:604)
            at com.inqmy.services.deploy.server.DeployServiceImpl.commit(DeployServi
    ceImpl.java:2897)
            at com.inqmy.services.deploy.server.DeployServiceImpl.deploy1(DeployServ
    iceImpl.java:524)
            at com.inqmy.services.deploy.server.DeployServiceImpl.deploy(DeployServi
    ceImpl.java:139)
            at com.inqmy.services.deploy.command.DeployCommand.exec(DeployCommand.ja
    va:142)
            at com.inqmy.services.shell.processor.environment.CommandBase.exec(Comma
    ndBase.java:124)
            at com.inqmy.services.shell.processor.Interpreter.applyLineCommand(Inter
    preter.java:391)
            at com.inqmy.services.shell.processor.Interpreter.apply(Interpreter.java
    :150)
            at com.inqmy.services.shell.processor.Shell.work(Shell.java:150)
            at com.inqmy.services.shell.processor.managers.ScriptProcessThread.run(S
    criptProcessThread.java:128)
    in visual administrator I can see the right queue and for few seconds this queue have one consumer.
    thank
    JJ

    Hi,
    but this example was in guide to this version.
    Ok, in case it is not possible to use MDB, how should i handle long time consumpting functions in EP enviroment?
    (customer has only EP6SP2 and he need to send a lot of mails after user request and i dont want to leave user waiting till that function ends. - should i start new thread in portal?)
    JJ

  • Please help ..... simple JAX-WS Example does not work

    I tried out the simple Calculator Example described at http://weblogs.java.net/blog/vivekp/archive/2006/12/webservices_in.html (Vivek Pandey's Blog).
    and got following error message typing apt ...:
    error: Could not get TypeDeclaration for: jaxws_calc.Calculator_Add in apt round
    : 2
    Problem encountered during annotation processing;
    .\jaxws_calc\jaxws\Add.java:11: incompatible types
    found : javax.xml.bind.annotation.XmlAccessType
    required: javax.xml.bind.annotation.AccessType
    @XmlAccessorType(XmlAccessType.FIELD)
    In the code of the Add.java and the AddResponse.java there are only XMLAccessTypes/XmlAccessorTypes.
    My system property java.endorsed.dirs is set to C:\Programme\Java\jre1.6.0\lib\endorsed
    I copied the folowing jars in this directory (as the Java Web Services Developer Pack 2.0 had described) and some additionally from the jwsdp 2.0:
    dom.jar
    jaxp-api.jar
    jaxb-api.jar
    jaxp-api.jar
    jaxws-api.jar
    sax.jar
    xalan.jar
    xercesImpl.jar
    Can you tell me what else I have to do to avoid this mistake?

    Can u give the step that u hav done? & the code plz..?
    I did the same example, & it worked well...

  • Sun Java Communication Suite 5 using example deployment not working

    I download the sun java communication suite 5 for solaris sparc.
    I have a sunfire 280r server with Solaris 9 9/05 HW s9s_u9wos_06b SPARC installed.
    I follow the document 820-0086.pdf to try the product (deployment example), i succesfully installed the product using acasalud.com.ar as the domain.
    The problem arises when i begin to verify the installation(page 16), i sucessfully start the web services but when i put:
    http://fully-qualified-hostname:web-server-port/amconsole
    Nothing happens, the amconsole url doesn't exists.
    Somebody knows how to solve this?

    I found this in the logs:
    Web Server Admin command (/SUNWwbsvr7/bin/wadm) not found!|#]
    [#|2007-12-13T17:53:02-03:00|WARNING|CommsSuite|JavaESInstall|_versionID=1.0;_th
    readID=11;_SourceJavaFile=EntsysConfigurator;_SourceMethodName=executeCmd(cmd,en
    vp,dir);_CommsSuiteMessageID=;_CommsSuiteResourceBundle=|
    ldap_add: Already exists
    ldap_add: Already exists
    ldap_modify: Type or value exists
    ldap_modify: No such attribute
    ldap_modify: No such attribute
    ldap_modify: No such attribute
    ldap_modify: No such attribute
    ldap_modify: Type or value exists
    ldap_modify: Type or value exists|#]
    [#|2007-12-13T17:53:02-03:00|SEVERE|JavaES|JavaESConfig|_versionID=1.0;_threadID
    =11;_SourceJavaFile=IdentityServConfigurator;_SourceMethodName=configure();_Comm
    sSuiteMessageID=JavaES_ConfigIS24;_CommsSuiteResourceBundle=EntSysLoggingResourc
    es;_CommsSuiteArg1=1|Access Manager Configuration Failed ...1|#]

  • Adobe LiveDocs PrintAdvancedGrid Example Does Not Work

    http://livedocs.adobe.com/labs/flex/3/html/printing_043_17.html
    I tried implementing the code found in the Adobe LiveDocs
    into my AdvancedDataGrid application, but when I printed, all that
    was printed was "IB" in the top left corner of the page.
    I thought it might be a problem with something in my
    application, so I tried running the code from the example, and
    received the same result.
    Is this a bug, or am I missing something?

    Hi,
    You need to add the PrintAdvancedDataGrid as a child of the
    Application and after sending it to the PrintJob, it need to be
    removed.
    The modified doPrint() method is posted here -
    // Create a PrintJob instance.
    private function doPrint():void {
    // Create an instance of the FlexPrintJob class.
    var printJob:FlexPrintJob = new FlexPrintJob();
    // Initialize the PrintAdvancedDataGrid control.
    var printADG:PrintAdvancedDataGrid =
    new PrintAdvancedDataGrid();
    printADG.source = adg;
    // Add the print-specific control to the application.
    addChild(printADG);
    // Start the print job.
    if (printJob.start() != true) return;
    // Add the object to print. Do not scale it.
    printJob.addObject(printADG, FlexPrintJobScaleType.NONE);
    // Send the job to the printer.
    printJob.send();
    // Remove the print-specific control to free memory.
    removeChild(printADG);
    Thanks,
    Sameer

  • Multiple group example is not working

    i run the multiple groups example in cocomo
    I subjected to one problem
    me as owner, my friend as guest entered into room
    i created one group group1. myself added into that group.
    my friend was in default.
    if i am trying to send mess. no connection . That was good
    After that i added my friend into group1.
    now there is connection between us. message was sent.
    now i remove my friend from my group1.
    if i am trying to send the message to my friend, still the message was sent to my friend.
    friends i am trying lot to make the disconnection after removing my friend from group1.
    i am not able to do.
    just exactly i run multiple groups without any change.

    Hi,
    But inv_no is diferent for each row, isn't? So, what value do you want to show?
    Example:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL>
    SQL> with pradeep as(
      2  select 1 as re, 2 as zo, 1 as call_no, 1 as inv_no from dual union all
      3  select 1 as re, 2 as zo, 1 as call_no, 2 as inv_no from dual union all
      4  select 1 as re, 2 as zo, 1 as call_no, 3 as inv_no from dual union all
      5  select 1 as re, 2 as zo, 1 as call_no, 4 as inv_no from dual union all
      6  select 1 as re, 3 as zo, 1 as call_no, 5 as inv_no from dual union all
      7  select 1 as re, 3 as zo, 1 as call_no, 6 as inv_no from dual
      8  )
      9  SELECT re,
    10         zo,
    11         call_no,
    12         COUNT(*) AS cnt
    13    FROM pradeep
    14   GROUP BY re,
    15            zo,
    16            call_no
    17  HAVING COUNT(*) > 1;
            RE         ZO    CALL_NO        CNT
             1          2          1          4
             1          3          1          2
    SQL> Regards,

  • Cookbook Example 02 not working

    Hi all,
            I created a very simple search area exactly similar to the example02 of the cookbook with the INIT event in both the Search Area and the Search Result.
    I observe that the query method of the MAC is not called when the GO button is clicked in this case. The same is observed when I run Example 02.
    However example03 calls the QUERY method. Can someone suggest what could be the problem...
    Thanks,
    Mijesh

    Hi Mijesh,
    I too had faced the same problem. The solution is to create a search group and assign it to the Application set. See PCFM_EXAMPLE02 application for reference.
    Reward if helpful.
    Regards,
    Naveen

  • Java_bdk - example code not working against beehive 2.0.1?

    hello,
    following the steps described in http://www.oracle.com/technology/products/beehive/tutorial/java_bdk.htm i managed to compile all java-classes. when i execute Example1Authentication from java_bdk_sample.zip, i get the exception:
    javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.oracle.com/beehive", local:"organizationUser"). Expected elements are <{}accessControlFields>, ...,<{}organizationUser>,...,<{}wikiPageUpdater>
    the same happens when i execute Example2Identifiers.
    i used the command
    xjc.sh schema-obh-xjc.xsd schema-obr.xsd -extension
    to create the value objects.
    did i miss anything?
    tia, gustav

    i am using the jdk shipped with beehive 2.0.1
    java -version
    outputs
    java version "1.5.0_19-rev"
    Java(TM) Platform, Standard Edition for Business (build 1.5.0_19-rev-b03)
    Java HotSpot(TM) Server VM (build 1.5.0_19-rev-b03, mixed mode)
    <classpath>
    <pathelement location="${build.dir}"/> -- the basedir of the compiled classes
    <pathelement path ="lib/activation.jar"/>
    <pathelement path ="lib/jaxb-api.jar"/>
    <pathelement path ="lib/commons-httpclient-3.1.jar"/>
    <pathelement path ="lib/jaxb-impl.jar"/>
    <pathelement path ="lib/commons-httpclient-3.1.jar"/>
    <pathelement path ="lib/commons-logging-1.1.1.jar"/>
    <pathelement path ="lib/commons-codec-1.4.jar"/>
    <pathelement path ="lib/jsr173_1.0_api.jar"/>
    <pathelement path ="lib/xercesImpl.jar"/>
    </classpath>

  • Some tabs and click-on headings are not working. They worked yesterday, and other than updating Firefox AFTER the problems, I've made no changes. Example: headings in Facebook; headings in my library website.

    Some of the browser tabs and headers that are "clickable" are noe working. I click on them, and nothing happens. Part of Facebook works, but the headers do not. My library site headers, which has tabs for "Search" and "Account" as examples, do not work. Up till late yesterday, there were no problems. I did re-install Firefox this morning, and it made no difference.

    The Yahoo! Toolbar extension has been reported to cause this issue.
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Hans Javaserver 3 book example not working

    Hello,
    This is from Hans Javaserver Pages Third edition
    <%-- Verify that the user is logged in --%>
    <c:if test="${validUser == null}">
    <jsp:forward page="login.jsp">
    <jsp:param name="origURL" value="${pageContext.request.requestURL}" />
    <jsp:param name="errorMsg" value="log in first." />
    </jsp:forward>
    </c:if>
    The above example does not seem to work.
    The code below seems to work
    <%-- Verify that the user is logged in --%>
    <c:if test="${validUser.name == null}">
    <jsp:forward page="login.jsp">
    <jsp:param name="origURL" value="${pageContext.request.requestURL}" />
    <jsp:param name="errorMsg" value="log in first." />
    </jsp:forward>
    </c:if>
    Any ideas why his example is not working on Tomcat 5.0?
    Thanks
    Frank

    Hi I was trying the same thing and was wondering why it doesn't accept the origURL, well it never takes the value of it at all and just skips the page that was requested and goes to mail.jsp no matter what.
    <c:choose>
    <c:when test="${! empty param.origURL}" >
    <c:redirect url="${param.origURL}" />
    </c:when>
    <c:otherwise>
    <c:redirect url="main.jsp" />
    </c:otherwise>
    </c:choose>
    The value of origURL is never passed to this authentication page! I would also like to know the reason why?
    Also I have a question to your last piece of code that works: where is the name parameter taken from? Is it the same as userName that is passed as a parameter from the login page? or is it something else? I'd really appreciate your help...
    <c:if test="${validUser.name == null}">

  • Horizontal mapping not working in Kodo 4.1.2

    Hello,
    I am having troubles in trying to get the class mapping I want in Kodo 4.1.2.
    I want to go from Kodo 3.3 to Kodo 4.1, and still in the evaluation process. Basically, all I want is to have my package.jdo files to work in Kodo 4.1, with the minimum modifications, before moving to JPA.
    The mapping is defined is my package.jdo using the <extension vendor-name="kodo" key="jdbc-class-map" value="XXX"/> where XXX can be one of horizontal, base or flat (I dont use vertical in this applicaion). This element does not seem to be properly recognized by the new mapping tool, and all my classes are mapped in the same base table.
    After some digging in the docs and in the examples provided, I found this <inheritance strategy="XXX"/> element, that can be put in my package.jdo file. This is not clearly said in the docs (it seems this element is only mentionned in the new orm DTD), but is used in the sample/jdo/horizontal/package.jdo file.
    Then I modified my package.jdo files, with this new element, where XXX is one of subclass-table, new-table (with no <join/> nested element) or superclass-table. But the result is not the one expected : all the classes are mapped in the same table.
    I then gave a try at the example provided, compiled, enhanced and mapped the sample/jdo/horizontal classes provided with the distribution, since this example covers exactly what I want to do. It seems to me that this example does not work either.
    The package.jdo says :
    <jdo>
    <package name="samples.jdo.horizontal">
    <sequence name="sjvm" factory-class="sjvm" strategy="nontransactional"/>
    <class name="LastModified">
    <inheritance strategy="subclass-table"/>
    </class>
    The mapping file I get says :
    <mapping>
    <package name="samples.jdo.horizontal">
    <class name="LastModified">
    <jdbc-class-map type="base" pk-column="ID" table="LASTMODIFIED"/>
    <jdbc-version-ind type="version-number" column="VERSN"/>
    <jdbc-class-ind type="in-class-name" column="TYP"/>
    <field name="creationDate">
    <jdbc-field-map type="value" column="CREATIONDATE"/>
    </field>
    <field name="lastModificationDate">
    <jdbc-field-map type="value" column="LASTMODIFICATIONDATE"/>
    </field>
    </class>
    The enhancement is made using jdoc, the mapping file is generated using the following command line (the DB is empty) :
    mappingtool -a refresh -f mapping.xml samples.jdo.horizontal.LastModifiedI would expect an horizontal mapping, with a class element containing only a <jdbc-class-map type="horizontal"/> element, as it is the case if I use my Kodo 3.3 mapping tool.
    I tried the enhancement / mapping file generation process with two configuration of the kodo.properties file : the first one with kodo3 as the Mapping Factory and the second with jdo. The result is the same in both cases. I verified by setting the log level to TRACE for the Tool what the factory used. In fact in both case, it is the MappingFileDeprecatedJDOMappingFactory, which seems weird to me.
    Bytheway, setting the MappingFactory to jpa leads to the following IllegalArgumentException during enhancement :
    Exception in thread "main" org.apache.openjpa.lib.util.ParseException: Instantiation of plugin "MetaDataFactory" with value "jpa" caused an error "java.lang.IllegalArgumentException : java.lang.ClassNotFoundException: jpa". The alias or class name may have been misspelled, or the class may not have be available in the class path. Valid aliases for this plugin are: [jdo, kodo3]
    I'd be glad to get any hint if I'm wrong on anything, or any workaround / patch to get my case to work.
    Thank you in advance,
    Jose

    If the same exact app and code works with 4.0 with the same ForeignKeyDeleteAction setting, I suggest that you open a case with support.
    This property hasn't changed since 4.0
    http://e-docs.bea.com/kodo/docs41/full/html/ref_guide_mapping_defaults.html
    Laurent

  • Import package does not work - beginner help

    Hi, I'm a beginner with java. I just trying to figure out how to use packages. I followed everything in the tutorial, but I can't figure out why my simple example does not work.
    I made the following directories three, for the sake of the example.
    in /home/username/Desktop I created a directory named it
    inside it I created prove
    inside prove I created test1 and test2
    Inside test1 I created the following sample class:
    package it.prove.test1;
    public class HelloWorld
         private String message;
         public HelloWorld(String message)
              this.message = message;
         public String getMessage()
              return this.message;
    }in the directory test2 I created this other one:
    package it.prove.test2;
    import it.prove.test1.HelloWorld;
    public class HelloWorldProgram
         public static void main(String[] args)
              HelloWorld hw = new HelloWorld("Guten Tag, Welt!");
              System.out.println(hw.getMessage());
    }So now I have this three:
    it
    it/prove
    it/prove/test1, it/prove/test2
    As I said in test1 there is HelloWorld.java and in test2 HelloWorldProgram.java.
    When I compile HelloWorld.java, it worked fine.
    When I try to compile HelloWorldProgram.java, the compiler says that cannot find package it.prove.test1..
    Why that? What did I make wrong?
    Sorry both for my bad english (it is not my first language) and for the really trivial question (I'm a really beginner).
    Tnx to whoever will help

    Assuming you are running on Windows here.
    Packages are directly tied to the classpath. Before java can find the it.prove.test1 package, it needs to be a part of the classpath. To make this possible, you need to add the root of the path, where the 'it' directory is in, to the classpath, like this:
    javac -cp .;/home/username/Desktop file.java
    the -cp switch tells java which classpath to use; it consists of two elements:
    . = current directory
    /home/username/Desktop = the directory containing the 'it' package root
    When run like this, it should work. The same goes for running the code, you would run it like this:
    java -cp .;/home/username/Desktop it.prove.test2.HelloWorldProgram
    Hope that gives you the hints you need.

Maybe you are looking for

  • Duvida de CTe

    Fernando/Henrique/Bernardo Alguem sabe me informar se a SAP já está disponibilizando alguma solução para a validação do CTe junto ao SEFAZ? Dei uma pesquisada aqui no FORUM e não vi nada significativo a respeito do posicionamento da SAP sobre o assun

  • Illustrator CC crashes

    Hi Adobe I've got a problem with Illustrator - it very often crashes when I copy elements from one document to another and even when I copy an element to the same document - Error message looks as follow Log Name:   Application Source:     Applicatio

  • Can't drag photos an  event

    iPhoto 08 has been loaded and all seems well except for the following When I try to drag photos around in an event they spring back to their original location. While dragging the number of photos to be draqged (usually 1) is displayed in a red circle

  • Invoices posted without good receipt initial posting - please help

    Hi Gurus, I would like to ask you if you have and answer / solution for this situation. I have a release order with 6 invoices + goods receipt. The problem here is that all the invoices were posted, but not the initial goods receipt. a Financial acco

  • Unable to set administrator password

    Well, friends, it all started (sniff) when I tried to use Carbon Copy Cloner to clone my 10.3.9 boot drive. CCC asks me for an administrator password and I didn't know I had one. CCC says: "Authentication error: sudo: no password entry for root! Numb