ClassCastException in deployejb tool

Hi,
We have installed Oracle 8.1.5 on Win NT.
We are trying to run the helloworld demo(sample EJB example) provided by Oracle.
But during the runnning the makeit batch file(which is provided by Oracle) we get a ClassCastException. The stack trace is as follows:
Exception in thread "main" java.lang.ClassCastException: com.sun.CORB
A.iiop.ORB at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:24) at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(IRFinder.java:78) at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.java:499) at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:35) at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java:130) at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(ServiceCtx.java:295) at oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession(ToolImpl.java:101) at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(ToolImpl.java, Compiled Code)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:121) at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:445)
We have configured the listener for IIOP clients. And also set the required environment variables as documented.
Has anyone encountered this problem.
Can someone PLEASE help us???
TIA,
Madhura

Hi,
We have installed Oracle 8.1.5 on Win NT.
We are trying to run the helloworld demo(sample EJB example) provided by Oracle.
But during the runnning the makeit batch file(which is provided by Oracle) we get a ClassCastException. The stack trace is as follows:
Exception in thread "main" java.lang.ClassCastException: com.sun.CORB
A.iiop.ORB at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:24) at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(IRFinder.java:78) at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.java:499) at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:35) at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java:130) at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(ServiceCtx.java:295) at oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession(ToolImpl.java:101) at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(ToolImpl.java, Compiled Code)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:121) at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:445)
We have configured the listener for IIOP clients. And also set the required environment variables as documented.
Has anyone encountered this problem.
Can someone PLEASE help us???
TIA,
Madhura

Similar Messages

  • Output of using Oracle8i "deployejb" tool

    Hi,
    To deploy the EJB successfully, Oracle recommends that we deploy their Sample EJB's, which ships with Oracle8i product,
    before proceeding with our EJBs. This would help us verify the installation.
    The sample EJB's are available at %ORACLE_HOME%\javavm\demo\demo.zip.When the demo.zip file is extracted, a
    folder \examples\ejb\basic\helloworld, is created in the extracted path.The makeit.bat and runit.bat files in this folder
    should run successfully to deploy the EJB in the DB.
    When I attempt to execute, makeit.bat doesnot run properly.The output is pasted here for your reference.As you may notice,
    ClassCastException occurs, when a call is given to deployejb, through the makeit.bat file.
    C:\Oracle8i\javavm\demo\extract\examples\ejb\basic\helloworld>call deployejb -republish -temp temp -u scott -p tiger
    -s sess_iiop://localhost:2481:oracle8i -descriptor hello.ejb
    server.jar
    Exception in thread "main" java.lang.ClassCastException: com.sun.corba.se.internal.iiop.ORB
    at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:24)
    at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(IRFinder.java:78)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.java:499)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:35)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java:130)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(ServiceCtx.java:295)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession(ToolImpl.java:101)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(ToolImpl.java:213)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:121)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:445)
    Any help/comments on this would be appreciated.
    Thanks,
    Sandeep

    I would like to post what I did in fact get to work.
    I took the suggestion to replace single-quotes with double-quotes. What also DID seem to help things was:
    1. removing all XML entities from my markup, even properly escaped ones (like &amp; or &#160;)
    2. ensuring that:
    <xsl:variable name="_XDOFOPOS2" select="number(1)"/>
    <xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
    appeared in the table (before anything else, still not sure what these are controlling or internal Oracle logic is happening).
    I am still not 100% (or even 60%) sure this problem won't crop up if we have to modify our template, but through going through our original markup and adding it to a file that "works", table by table, and
    assessing any errors, our reporting now works.
    However, having entities (especially ampersand, or the non-breaking space [used as a placeholder for NULL database values to ensure the table-cell gets created]) would be useful.
    Thanks for your comments.
    Daniel

  • Output of Oracle8i "deployejb" tool

    Hi,
    To deploy the EJB successfully, Oracle recommends that we deploy their Sample EJB's, which ships with Oracle8i product,
    before proceeding with our EJBs. This would help us verify the installation.
    The sample EJB's are available at %ORACLE_HOME%\javavm\demo\demo.zip.When the demo.zip file is extracted, a
    folder \examples\ejb\basic\helloworld, is created in the extracted path.The makeit.bat and runit.bat files in this folder
    should run successfully to deploy the EJB in the DB.
    When I attempt to execute, makeit.bat doesnot run properly.The output is pasted here for your reference.As you may notice,
    ClassCastException occurs, when a call is given to deployejb, through the makeit.bat file.
    C:\Oracle8i\javavm\demo\extract\examples\ejb\basic\helloworld>call deployejb -republish -temp temp -u scott -p tiger
    -s sess_iiop://localhost:2481:oracle8i -descriptor hello.ejb
    server.jar
    Exception in thread "main" java.lang.ClassCastException: com.sun.corba.se.internal.iiop.ORB
    at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:24)
    at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(IRFinder.java:78)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.java:499)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:35)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java:130)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(ServiceCtx.java:295)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession(ToolImpl.java:101)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(ToolImpl.java:213)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:121)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:445)
    Any help/comments on this would be appreciated.
    Thanks,
    Sandeep

    "Memory"  If you are trying to look at the memory usage of an OS process connected to Oracle you have an issue you need to be aware of, namely, most UNIX/Linux utilities cannot distinguish between private memory used by a process and shared memory.  Since the SGA exists in shared memory the process memory statistics can show as using huge amounts of memory and the sum of all your Oracle connected processed can far exceed the available memory because of this double counting.
    HTH -- Mark D Powell --
    I missed that you had posted two separate questions.  I will just answer in one.  The questions I posted were about what it is you want the script to provide you and what value each column in the display has.  I would point out that if you have issues looking at the OS level is unlikely to identify the problem in many cases.  You may not see a process with extremely high cpu or memory at the OS level.  The problem could be lock waiting or latch waiting.  You will only be able to determine this by looking in the database.  That is not to say that sometimes a problem session will not show up with high cpu only that in many cases the problem may be elsewhere.  Eventually you are going to have to look in the database at the session so why not start there.  After all top/topmonitor etc ... already exist at the OS level to find the high cpu, io, memory sessions.  To find and fix database session issues you have to eventually connect to the database and high cpu, memory, and io sessions can all be found with queries.

  • Deployejb : Oracle 8.1.6 : Errors compiling the communication stubs

    Hi,
    I was able to deploy EJB using JDeveloper 3.1 in the Oracle 8i (1.1.6) DB.However, when I try it manually, it is giving errors.
    I was able to use deployejb tool succesfully with Oracle 8.1.5 DB.Is there some problem with Oracle 8.1.6 DB?
    This is output, I am getting :
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs.....................................done
    Compiling Stubs...Errors compiling the communication stubs
    C:\sandeep\JDeveloper3.0\class\TEMP\EJBPackage\_OracleEJBHomeImplBase.java:24: i
    llegal combination of modifiers: abstract and strictfp
    abstract public class _OracleEJBHomeImplBase extends org.omg.CORBA.portable.Skel
    eton implements EJBPackage.OracleEJBHome {
    ^
    C:\sandeep\JDeveloper3.0\class\TEMP\EJBPackage\_OracleEJBRemoteImplBase.java:24:
    illegal combination of modifiers: abstract and strictfp
    abstract public class _OracleEJBRemoteImplBase extends org.omg.CORBA.portable.Sk
    eleton implements EJBPackage.OracleEJBRemote {
    ^
    2 errors
    Is this a problem with the classpath/path settings?
    Please advise!!
    TIA
    Sandeep
    null

    Thanks,I got it
    -- Sandeep
    null

  • Use of chmod in sess_sh tool

    Hi,
    While trying to use the chmod command in sess_sh tool, I could not see its effect.
    I had deployed my EJB using deployejb tool.
    The published Object in the Session Namespave under test Publishing Context is RentalEJBRemote (i.e /test/RentalEJBRemote)
    I try running my client with user/password as sandeep/sandeep.It works fine.
    Now, I want to revoke the execute right, so that when I try to activate the remote (Home) object, by calling the lookup method, I should get a NO PERMISSION message
    I use the following sequence of commands after that :
    1. sess_sh -user sandeep
    -password sandeep
    -service sess_iiop://sandeep:2481:oracle8i
    2. $ cd test
    $ ls -l shows
    READ WRITE EXEC OWNER SCHEMA
    PUBLIC SANDEEP PUBLIC SANDEEP SYS
    3. Removing the execute permission of sandeep
    for this Published Object
    $ chmod -e sandeep RentalEJBRemote
    (No errors reported)
    4. $ ls - l still shows ....
    READ WRITE EXEC OWNER SCHEMA
    PUBLIC SANDEEP PUBLIC SANDEEP SYS
    5. When, I try to access/activate the Home object, I am still allowed to do so.
    Hence, I am not able to see the effect of chmod.
    Please advise.
    TIA
    Sandeep
    null

    Hi,
    The guide says you would need to use
    chmod -x sandeep RentalEJBRemote , i.e. use -x instead of -e
    The moment I do this, I get an exception trace
    java.util.MissingResourceException: Can't find resource
    at java.util.ResourceBundle.getObject(ResourceBundle.java:282)
    at java.util.ResourceBundle.getString(ResourceBundle.java:258)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.msg(ToolImpl.java:137)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.fail2(ToolImpl.java:48)
    at oracle.aurora.server.tools.sess_iiop.Chmod.invoke(Chmod.java:61)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:12
    2)
    at oracle.aurora.server.tools.sess_iiop.Shell.invoke_command(Shell.java:
    208)
    at oracle.aurora.server.tools.sess_iiop.Shell.invoke(Shell.java:129)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:12
    2)
    at oracle.aurora.server.tools.sess_iiop.Shell.main(Shell.java:232)
    Message [CANNOT_CHMOD] not found in 'oracle.aurora.server.tools.sess_iiop.Messag
    e'.
    I suppose "-x" is a typo in the Java tools reference guide.It should actually be "-e"
    The help on chmod (i.e. $ chmod -help) in the sess_sh tool also shows "-rwe" as the options.
    Please advise.
    TIA
    Sandeep

  • Loading EJB problem with deployejb !

    I am working with Oracle 8.1.5 and jdk 1.1.6,
    when I am running the deployejb tool with the HelloWorld example of the demo directory, I have a problem when loadind EJB files into the database:
    deployejb -v -u workuser ...
    done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file adn Comm Stubs Jar file...loading: helloServer/HelloBean
    ORA-01552: cannot use system rollback segment for non-system tablespace USERS
    SQL Error in loading : helloServer/HelloBean
    ORA-06502: PL/SQL : numeric or value error
    ORA-06512: at "SYS.DBMS_LOB", line 700
    ORA-06512: at "WORKUSER.LOADLOBS", line 1
    ORA-06512: at line 1
    ... [same problem with all objects]
    Can you HELP me ?

    Hard to say, looks like a database configuration problem. Check with your DBA...
    Matthieu

  • Code generation problem with deployejb !

    I am working with Oracle 8.1.5 and jdk 1.1.6,
    when I am running the deployejb tool with the HelloWorld example of the demo directory, I have a problem with the code generation of the EJBHome and EJBObject:
    deployejb -u ...
    ... [deployejb found HelloHome.class]
    done
    Generating EJBHome and EJBObject on the server...
    An exception occured during code generation: Class not found : hello.HelloHome.class
    Note my CLASSPATH variable is correctly set.
    Can you HELP me ?
    null

    Adding -W2,-Rcond_elim to the existing flags does make both the small example and the original code compile correctly.
    --David                                                                                                                                                                                                                                                               

  • Help with deployejb error messages

    i get the following error when running the deployejb tool on one
    ejb:
    Reading Deployment Descriptor...java.lang.NoClassDefFoundError
    then, with another ejb, i get the following:
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm
    Stubs...........................................................
    done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...done
    Generating EJBHome and EJBObject on the server...
    An exception occurred during code generation:
    oracle.aurora.vm.ClassNotResolvedE
    xception : Remote Interface not found:
    com.prc.services.image.ImageManager : com
    .prc.services.image.ImageManager in <Resolver((* SYSTEM)(* SYS)
    (* PUBLIC))>
    any ideas?
    thanks
    null

    Thanks Murray, I worked through the suggested troubleshooting remedies and it wasn't solving the problem, but I was learning quite a lot about the functionality of DW8 as I did it
    Then I uninstalled the program and re-installed it and thankfully the JavaScript themed alerts have stopped.. I haven't reinstalled the DMX extensions yet, but previously de-selecting them hadn't made any difference.
    Very grateful for your help. I'm up and running again.......

  • ClassCastException:  CollaxaConnNode during initialization of JDev 10.1.3.2

    I am getting the following exception during startup/initialization of the public 10.1.3.2.
    This is on Windows using Java 1.5.0.07. After I acknowledge the exception in the
    popup the startup seems to continue normally(?).
    I found an earlier posting on this subject from the 10.1.3.1 timeframe and there was
    some discussion of a BPEL extension. I'm just unzipping the publically available
    distribution. Nothing fancy.
    Here is the exception. Any ideas about how to get rid of this annoyance?
    java.lang.ClassCastException: oracle.tip.tools.ide.pm.connection.CollaxaConnNode
    at oracle.tip.tools.ide.pm.connection.CollaxaConnPersistService.loadConnections(CollaxaConnPersistService.java:149)
    at oracle.tip.tools.ide.pm.connection.CollaxaConnPersistService.<init>(CollaxaConnPersistService.java:110)
    at oracle.tip.tools.ide.pm.connection.CollaxaConnPersistService.getInstance(CollaxaConnPersistService.java:89)
    at oracle.tip.tools.ide.pm.connection.CollaxaConnFolder.load(CollaxaConnFolder.java:242)
    at oracle.tip.tools.ide.pm.connection.CollaxaConnFolder.getChildren(CollaxaConnFolder.java:277)
    at oracle.tip.tools.ide.pm.connection.CollaxaConnFolder.getDefaultNode(CollaxaConnFolder.java:199)
    at oracle.tip.tools.ide.pm.connection.CollaxaConnAddin.configureEsbProtocolHandler(CollaxaConnAddin.java:116)
    at oracle.tip.tools.ide.pm.connection.CollaxaConnAddin.initialize(CollaxaConnAddin.java:88)
    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:425)
    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManagerImpl.java:240)
    at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:154)
    at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1431)
    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1196)
    at oracle.ide.Ide.startup(Ide.java:674)
    at oracle.ideimpl.Main.start(Main.java:49)
    at oracle.ideimpl.Main.main(Main.java:25)

    If you google for "new features of JDeveloper" you'll get to this link:
    http://www.oracle.com/technology/products/jdev/collateral/papers/10131/newfeatures/index.html
    I always claim that there is no reason to start your learning with an old version of the tool.

  • ClassCastException: SplitIndexWriter cannot be cast to ClassWriterImpl

    Javadoc (version 1.6.0_17 on MS Windows) is crashing with a ClassCastException when I try to run it on a large, complex project. I haven't been able to figure out what triggers the failure yet so I was wondering if anyone has seen a similar problem? Here is the command line I am trying to run.
    javadoc.exe -d "C:\temp\hl7v3" -sourcepath "J:\Eclipse\Workspace\hl7v3\src\main\java" -subpackages com.axolotl.hl7.v3 -splitindex -use -version -author -link http://java.sun.com/javase/6/docs/api/It runs through and generates most of the HTML files, but finally throws this error.
    Generating C:\temp\hl7v3\index-files\index-7.html...
    java.lang.ClassCastException: com.sun.tools.doclets.formats.html.SplitIndexWriter cannot be cast to com.sun.tools.doclets.formats.html.ClassWriterImpl
            at com.sun.tools.doclets.formats.html.HtmlDocletWriter.seeTagToString(HtmlDocletWriter.java:1353)
            at com.sun.tools.doclets.formats.html.HtmlDocletWriter.commentTagsToString(HtmlDocletWriter.java:1443)
            at com.sun.tools.doclets.formats.html.HtmlDocletWriter.printCommentTags(HtmlDocletWriter.java:1412)
            at com.sun.tools.doclets.formats.html.HtmlDocletWriter.printInlineDeprecatedComment(HtmlDocletWriter.java:1377)
            at com.sun.tools.doclets.formats.html.AbstractIndexWriter.printComment(AbstractIndexWriter.java:182)
            at com.sun.tools.doclets.formats.html.AbstractIndexWriter.printDescription(AbstractIndexWriter.java:164)
            at com.sun.tools.doclets.formats.html.AbstractIndexWriter.generateContents(AbstractIndexWriter.java:89)
            at com.sun.tools.doclets.formats.html.SplitIndexWriter.generateIndexFile(SplitIndexWriter.java:102)
            at com.sun.tools.doclets.formats.html.SplitIndexWriter.generate(SplitIndexWriter.java:74)
            at com.sun.tools.doclets.formats.html.HtmlDoclet.generateOtherFiles(HtmlDoclet.java:101)
            at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:122)
            at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
            at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
            at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
            at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
            at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
            at com.sun.tools.javadoc.Start.begin(Start.java:128)
            at com.sun.tools.javadoc.Main.execute(Main.java:41)
            at com.sun.tools.javadoc.Main.main(Main.java:31)Here is a source link to what I think is the class throwing the exception: HtmlDocletWriter. Line 1353 seems to be related to processing an @see tag.
    Edited by: Nick_Radov on Nov 17, 2009 5:05 PM

    I meet the same issue in eclipse exporting Javadoc. Maybe "splitindex" prevent the build to an end. I cancel the choise of "Generate index" in basic option of "Configure Javadoc arguments for standard doclet." Then the build is normally over. Or a custom doclet may also can avoid this problem.

  • IOException using deployejb

    Hi,
    I have a problem loading EJBs into Oracle JVM using the deployejb tool.
    I am using Oracle 9.0.1. on Windows 2000.
    In our project we are deploying several EJBs
    using a batch file where the command
    deployejb -u scott -p tiger -s sess_iiop://myserver:2481:DBSID -descriptor G:\xml\<BeanName>.xml -temp temp G:\install\jarfiles\<BeanName>Source.jar -generated G:\install\jarfiles\<BeanName>Source_generated.jar -keep -oracledescriptor G:\xml\<BeanName>_oracle.xml -republish 
    is called. This works for several beans (about 20).
    For the next bean, I get something like
    Entwicklungsdeskriptor wird gelesen...fertig
    Komm-Stubs werden generiert...fertig
    Stubs werden kompiliert...
    IOException during compilation: CreateProcess: javac -d "G:\install\deploy\temp" -classpath <MyClasspath> "G:\install\deploy\temp\<BeanName>.java" "G:\install\deploy\temp\<FirstBeanName>DataHelper.java
    where <FirstBeanName> is the name of the first bean that was installed with the batch.
    It seems to have something to do with the temp directory (resp. the number of files in it),
    because if I delete the temp directory and
    try to the deploy the bean again, it works.
    Does anybody know why this happens?
    Thanks for your help.

    Torsten,
    Oracle Corporation (in my opinion) obviously, initially thought
    that they can implement any type of software through their database
    server. After a long time of trying to convince us that their EJB
    container is good, they finally admitted that it wasn't (by acquiring
    OrionServer and calling it OC4J ;-) So yes, now people like us are
    (slightly) f***ed, and Oracle Corporation are saying that OC4J is
    good! At least you can say that Oracle Corporation are consistent!
    First they pushed Oracle Application Server (OAS). Then they
    admitted it was sh*t and pushed Internat Application Server (IAS).
    Again, they admitted it couldn't cut it, so they pushed 9iAS. As
    usual, this gave way to OC4J. But hey, I guess they can keep doing
    that because we keep coming back for more punishment! (Well if it
    works for Micro$oft, it can work for Oracle, too!)
    Our CTO also said (after we were well into development using the
    9iAS EJB container) to stick with it and not move to OC4J. However,
    when we realized (like Oracle did) that we just couldn't get our
    app to work with 9iAS, we also realized we had to move.
    Just my two cents worth (and in no way a reflection of my
    employer's opinions regarding Oracle Corporation).
    Cheers,
    Avi.

  • Problem with continue in a for loop

    Hi all
    I have a variable of type Node[] which contains nodes like Text,ImageView and SVGPath etc...
    now i want to filter that group which means i want to separate the Text nodes for that i used a for loop as
    var abc:Node[];
    var abcsize=sizeof abc;
    var textarray:Text[]=for(i in abc){
    if(i.toString()=="Text"){
       i as Text;  //casting Node to Text
                     }//if
               else{
                      continue;     //if the node is not of type Text then i am skipping that one
                     }//else
          }//forwhen i am trying to compile this i am getting the compilation error as
    Note: An internal error has occurred in the OpenJFX compiler. Please file a bug at the
    Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues)
    after checking for duplicates.  Include in your report:
    - the following diagnostics
    - file 1.2.3_b36
    - and if possible, the source file which triggered this problem.
    Thank you.
        else{
    An exception has occurred in the OpenJavafx compiler. Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues) after checking for duplicates. Include the following diagnostic in your report and, if possible, the source code which triggered this problem.  Thank you.
    java.lang.ClassCastException: com.sun.tools.javac.tree.JCTree$JCContinue cannot be cast to com.sun.tools.javac.tree.JCTree$JCExpression
            at com.sun.tools.javafx.comp.JavafxToJava.translateToExpression(JavafxToJava.java:568)
            at com.sun.tools.javafx.comp.JavafxToJava.visitBlockExpression(JavafxToJava.java:2320)
            at com.sun.tools.javafx.tree.JFXBlock.accept(JFXBlock.java:83)
            at com.sun.tools.javafx.comp.JavafxToJava.translateToExpression(JavafxToJava.java:565)
            at com.sun.tools.javafx.comp.JavafxToJava.translateAsValue(JavafxToJava.java:575)
            at com.sun.tools.javafx.comp.JavafxToJava.visitIfExpression(JavafxToJava.java:3595)
            at com.sun.tools.javafx.tree.JFXIfExpression.accept(JFXIfExpression.java:48)
            at com.sun.tools.javafx.comp.JavafxToJava.translateToExpression(JavafxToJava.java:565)
            at com.sun.tools.javafx.comp.JavafxToJava.visitBlockExpression(JavafxToJava.java:2320)
            at com.sun.tools.javafx.tree.JFXBlock.accept(JFXBlock.java:83)
            at com.sun.tools.javafx.comp.JavafxToJava.translateToExpression(JavafxToJava.java:565)
            at com.sun.tools.javafx.comp.JavafxToJava.translateAsValue(JavafxToJava.java:575)
            at com.sun.tools.javafx.comp.JavafxToJava$5.addElement(JavafxToJava.java:3007)
            at com.sun.tools.javafx.comp.JavafxToJava.visitForExpression(JavafxToJava.java:3212)
            at com.sun.tools.javafx.tree.JFXForExpression.accept(JFXForExpression.java:50)
            at com.sun.tools.javafx.comp.JavafxToJava.translateToExpression(JavafxToJava.java:565)
            at com.sun.tools.javafx.comp.JavafxToJava.translateAsValue(JavafxToJava.java:575)
            at com.sun.tools.javafx.comp.JavafxToJava.translateNonBoundInit(JavafxToJava.java:1861)
            at com.sun.tools.javafx.comp.JavafxToJava.translateDefinitionalAssignmentToValueArg(JavafxToJava.java:1876)
            at com.sun.tools.javafx.comp.JavafxToJava.translateDefinitionalAssignmentToSetExpression(JavafxToJava.java:1917)
            at com.sun.tools.javafx.comp.JavafxToJava.visitVarScriptInit(JavafxToJava.java:1976)
            at com.sun.tools.javafx.tree.JFXVarScriptInit.accept(JFXVarScriptInit.java:67)
            at com.sun.tools.javafx.comp.JavafxToJava.translateToStatement(JavafxToJava.java:598)
            at com.sun.tools.javafx.comp.JavafxToJava.translateToStatement(JavafxToJava.java:628)
            at com.sun.tools.javafx.comp.JavafxToJava.visitBlockExpression(JavafxToJava.java:2306)
            at com.sun.tools.javafx.tree.JFXBlock.accept(JFXBlock.java:83)
            at com.sun.tools.javafx.comp.JavafxToJava.translateToStatement(JavafxToJava.java:598)
            at com.sun.tools.javafx.comp.JavafxToJava.access$700(JavafxToJava.java:89)
            at com.sun.tools.javafx.comp.JavafxToJava$FunctionTranslator.makeRunMethodBody(JavafxToJava.java:2164)
            at com.sun.tools.javafx.comp.JavafxToJava$FunctionTranslator.methodBody(JavafxToJava.java:2224)
            at com.sun.tools.javafx.comp.JavafxToJava$FunctionTranslator.doit(JavafxToJava.java:2279)
            at com.sun.tools.javafx.comp.JavafxToJava.visitFunctionDefinition(JavafxToJava.java:2292)
            at com.sun.tools.javafx.tree.JFXFunctionDefinition.accept(JFXFunctionDefinition.java:93)
            at com.sun.tools.javafx.comp.JavafxToJava.translateGeneric(JavafxToJava.java:500)
            at com.sun.tools.javafx.comp.JavafxToJava.translate(JavafxToJava.java:509)
            at com.sun.tools.javafx.comp.JavafxToJava.visitClassDeclaration(JavafxToJava.java:1261)
            at com.sun.tools.javafx.tree.JFXClassDeclaration.accept(JFXClassDeclaration.java:141)
            at com.sun.tools.javafx.comp.JavafxToJava.translateGeneric(JavafxToJava.java:500)
            at com.sun.tools.javafx.comp.JavafxToJava.translate(JavafxToJava.java:521)
            at com.sun.tools.javafx.comp.JavafxToJava.visitScript(JavafxToJava.java:1147)
            at com.sun.tools.javafx.tree.JFXScript.accept(JFXScript.java:89)
            at com.sun.tools.javafx.comp.JavafxToJava.translateGeneric(JavafxToJava.java:500)
            at com.sun.tools.javafx.comp.JavafxToJava.translate(JavafxToJava.java:517)
            at com.sun.tools.javafx.comp.JavafxToJava.toJava(JavafxToJava.java:691)
            at com.sun.tools.javafx.main.JavafxCompiler.jfxToJava(JavafxCompiler.java:728)
            at com.sun.tools.javafx.main.JavafxCompiler.jfxToJava(JavafxCompiler.java:699)
            at com.sun.tools.javafx.main.JavafxCompiler.compile2(JavafxCompiler.java:785)
            at com.sun.tools.javafx.main.JavafxCompiler.compile(JavafxCompiler.java:685)
            at com.sun.tools.javafx.main.Main.compile(Main.java:624)
            at com.sun.tools.javafx.main.Main.compile(Main.java:312)
            at com.sun.tools.javafx.Main.compile(Main.java:84)
            at com.sun.tools.javafx.Main.main(Main.java:69)
    ERROR: javafxc execution failed, exit code: 4
    D:\work\javaFX\javaFX_workspace\Book_fix\nbproject\build-impl.xml:143: exec returned: -1Any one please help

    - This is a real bug in the compiler, obviously. I wonder if I haven't meet it already, or something similar. Maybe you should report it.
    - The problem is that your code is incorrect anyway: the branch with continue doesn't return a value, so cannot be used in the list building. Well, at least that's what I suppose which confuses the compiler. You can try and return null (which will be discarded) instead of using continue.
    - But your code can be much more efficient, compact and perhaps even more readable, using the powerful JavaFX sequence comprehension:
    var seqMixed = [ 1, "one", Text { content: "Ichi" }, Circle {}, 2, "two", Text { content: "Ni" } ];
    println(seqMixed);
    var seqFiltered = seqMixed[ obj | obj instanceof Text ];
    println(seqFiltered);
    seqFiltered = seqMixed[ obj | not (obj instanceof Text) ];
    println(seqFiltered);

  • Problems deploying a simple EJB

    I am trying to deploy a simple EJB on the 8.1.5. The bean only owns a single method that needs a unique parameter.
    No problems with compilation of source bean, home and remote interfaces, whatever the type of this parameter is.
    But when I try to deploy the jar on the server, I only succeed if the parameter of my method is a simple type (int, String ...).
    If I try the same passing a complex type (here a oracle.xml.parser.v2.XMLDocument type), I encounter this message from the deployejb tool :
    Generating EJBHome and EJBObject on the server...
    Compilation errors in oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:ORA-29535: source requires recompilationjava/lang/Object: Authorization error for referenced class Oracle/xml/parser/v2/XMLDocument.java/lang/Object: Authorization error for referenced class oracle/xml/parser/v2/XMLDocument.oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:50: Class oracle.xml.parser.v2.XMLDocument not found in type declaration.
    public java.lang.String insereFlux (oracle.xml.parser.v2.XMLDocument arg0)
    ^ Info: 3 errors
    And if I use an int instead of the XMLDocument parameter, everithing's right.
    Can anybody submit a no-paranormal solution ?
    Thanks.
    GH

    Parameter passing in EJB must implement Serializable. One way to solve this is:
    1. Define a new class which implements
    Serializable.
    2. Place whatever you want to pass inside
    this class.
    3. Now use the new class as your parameter.
    eg.
    public class Params implements java.io.Serializable {
    String p1;
    XmlDocmuent xdoc;,
    etc, etc
    Your program now have to use the class Params for parameter passing.
    Hope this helps.
    Tam
    null

  • Class not Found Exception while running an EJB

    I have created and published a EJB in Oracle 8i (in a particular
    schema) by running the deployejb tool supplied. The ejb was
    published successfully. On running the client program I get an
    error saying that the mybeans's HomeHelper class cannot be
    found. This error occurs when there is a lookup to the home
    interface of the bean. The exception thrown says Reasons are
    unknown. On checking the objects of type 'JAVA CLASS' I found
    that the homeHelper class object had been created automatically
    be the deploy process. What is the reason for the class not
    found exception and what can I do to correct it. ?
    The code for the beans is as given below :
    Home Interface
    package mituser ;
    import javax.ejb.*;
    import java.rmi.RemoteException;
    public interface MITUserHome extends EJBHome {
    public MITUser create()
    throws CreateException, RemoteException;
    Remote Interface
    package mituser ;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface MITUser extends EJBObject {
    public int validateUserName (String username)
    throws java.sql.SQLException, RemoteException;
    public int validatePassword (String username, String password)
    throws java.sql.SQLException, RemoteException;
    public String validateSearchAccess (String username, String
    password)
    throws java.sql.SQLException, RemoteException;
    Bean
    package mituserServer ;
    import java.sql.*;
    import java.rmi.RemoteException;
    import javax.ejb.*;
    public class MITUserBean implements SessionBean {
    SessionContext ctx;
    public void ejbCreate() throws CreateException,
    RemoteException {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void ejbRemove() {
    public void setSessionContext(SessionContext ctx) {
    this.ctx = ctx;
    public int validateUserName (String username) throws
    SQLException, RemoteException
    int count = 0 ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select count(username) from
    useraccountinfo where username = ?");
    try {
    ps.setString (1, username);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("no registered user with User
    Name " + username);
    count = rset.getShort(1) ;
    return count ;
    } finally {
    ps.close();
    public int validatePassword (String username, String password)
    throws SQLException, RemoteException
    int count = 0 ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select count(username) from
    useraccountinfo where username = ? and password = ?");
    try {
    ps.setString (1, username);
    ps.setString(2, password);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("Invalid Password ");
    count = rset.getShort(1) ;
    return count ;
    } finally {
    ps.close();
    public String validateSearchAccess (String username, String
    password) throws SQLException, RemoteException
    String searchaccess = "" ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select searchprofileaccess from
    useraccountinfo where username = ? and password = ?");
    try {
    ps.setString (1, username);
    ps.setString(2, password);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("Access Denied for " +
    username );
    searchaccess = rset.getString(1) ;
    return searchaccess ;
    } finally {
    ps.close();
    Client program
    import mituser.MITUser;
    import mituser.MITUserHome;
    import oracle.aurora.jndi.sess_iiop.ServiceCtx;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import java.util.Hashtable;
    public class Client {
    public static void main (String [] args) throws Exception {
    int count = 0 ;
    String access = "" ;
    if (args.length != 4) {
    System.out.println("usage: Client serviceURL objectName
    user password");
    System.exit(1);
    String serviceURL = args [0];
    String objectName = args [1];
    String user = args [2];
    String password = args [3];
    Hashtable env = new Hashtable();
    env.put(Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    env.put(Context.SECURITY_PRINCIPAL, user);
    env.put(Context.SECURITY_CREDENTIALS, password);
    env.put(Context.SECURITY_AUTHENTICATION,
    ServiceCtx.NON_SSL_LOGIN);
    Context ic = new InitialContext(env);
    MITUserHome home = (MITUserHome)ic.lookup (serviceURL +
    objectName);
    MITUser testBean = home.create ();
    count = testBean.validateUserName("MITA");
    if (count > 0 )
    System.out.println ("Valid User");
    else
    System.out.println ("Invalid User");
    count = testBean.validatePassword("MITA", "MITA");
    if (count > 0 )
    System.out.println ("Valid Password");
    else
    System.out.println ("Invalid Password");
    access = testBean.validateSearchAccess("MITA", "MITA");
    if ( access.equalsIgnoreCase("YES") )
    System.out.println ("Search Access Available");
    else
    System.out.println ("Search Access Denied");
    The Descriptor file
    // MIT UserBean EJB deployment descriptor
    SessionBean mituserServer.MITUserBean {
    BeanHomeName = "test/mitUserJDBCBean";
    RemoteInterfaceClassName = mituser.MITUser;
    HomeInterfaceClassName = mituser.MITUserHome;
    AllowedIdentities = {MIT};
    SessionTimeout = 20;
    StateManagementType = STATEFUL_SESSION;
    RunAsMode = CLIENT_IDENTITY;
    TransactionAttribute = TX_REQUIRED;
    Batch File for deploying the ejb
    @echo off
    if (%ORACLE_HOME%)==() goto usage
    if (%ORACLE_SERVICE%)==() goto usage
    if (%JDK_CLASSPATH%)==() goto usage
    @echo on
    set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
    \jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
    ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
    JDK_CLASSPATH%
    javac -g mituser\MITUser.java
    javac -g mituser\MITUserHome.java
    javac -g mituserServer\MITUserBean.java
    jar cf0 mituser.jar mituser\MITUser.class
    mituser\MITUserHome.class mituserServer\MITUserBean.class
    javac -g Client.java
    call deployejb -republish -temp temp -u mit -p mit -s %
    ORACLE_SERVICE% -descriptor mituser.ejb mituser.jar
    @echo off
    goto done
    :usage
    @echo -------------------------------------------------------
    @echo Following are the requirements to run this script
    @echo set ORACLE_HOME to installed Oracle home
    @echo set ORACLE_SERVICE to the CORBA service name of
    your databae
    @echo for example sess_iiop://localhost:2481:ORCL
    @echo set JDK_CLASSPATH to the full path of your JDK
    classes.zip
    @echo -------------------------------------------------------
    :done
    Batch file for running the cleint program
    @echo off
    if (%ORACLE_HOME%)==() goto usage
    if (%ORACLE_SERVICE%)==() goto usage
    if (%JDK_CLASSPATH%)==() goto usage
    @echo on
    set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
    \jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
    ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
    JDK_CLASSPATH%;server_generated.jar
    java Client %ORACLE_SERVICE% /test/mitUserJDBCBean mit mit
    @echo off
    goto done
    :usage
    @echo -------------------------------------------------------
    @echo Following are the requirements to run this script
    @echo set ORACLE_HOME to installed Oracle home
    @echo set ORACLE_SERVICE to the CORBA service name of
    your databae
    @echo for example sess_iiop://localhost:2481:ORCL
    @echo set JDK_CLASSPATH to the full path of your JDK
    classes.zip
    @echo -------------------------------------------------------
    :done
    I know this is not strictly to do with JDBC but there appears to
    be no discussion forum for EJB
    Hoping for a response soon as it us very URGENT
    Thanks
    Mita
    null

    I have created and published a EJB in Oracle 8i (in a particular
    schema) by running the deployejb tool supplied. The ejb was
    published successfully. On running the client program I get an
    error saying that the mybeans's HomeHelper class cannot be
    found. This error occurs when there is a lookup to the home
    interface of the bean. The exception thrown says Reasons are
    unknown. On checking the objects of type 'JAVA CLASS' I found
    that the homeHelper class object had been created automatically
    be the deploy process. What is the reason for the class not
    found exception and what can I do to correct it. ?
    The code for the beans is as given below :
    Home Interface
    package mituser ;
    import javax.ejb.*;
    import java.rmi.RemoteException;
    public interface MITUserHome extends EJBHome {
    public MITUser create()
    throws CreateException, RemoteException;
    Remote Interface
    package mituser ;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface MITUser extends EJBObject {
    public int validateUserName (String username)
    throws java.sql.SQLException, RemoteException;
    public int validatePassword (String username, String password)
    throws java.sql.SQLException, RemoteException;
    public String validateSearchAccess (String username, String
    password)
    throws java.sql.SQLException, RemoteException;
    Bean
    package mituserServer ;
    import java.sql.*;
    import java.rmi.RemoteException;
    import javax.ejb.*;
    public class MITUserBean implements SessionBean {
    SessionContext ctx;
    public void ejbCreate() throws CreateException,
    RemoteException {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void ejbRemove() {
    public void setSessionContext(SessionContext ctx) {
    this.ctx = ctx;
    public int validateUserName (String username) throws
    SQLException, RemoteException
    int count = 0 ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select count(username) from
    useraccountinfo where username = ?");
    try {
    ps.setString (1, username);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("no registered user with User
    Name " + username);
    count = rset.getShort(1) ;
    return count ;
    } finally {
    ps.close();
    public int validatePassword (String username, String password)
    throws SQLException, RemoteException
    int count = 0 ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select count(username) from
    useraccountinfo where username = ? and password = ?");
    try {
    ps.setString (1, username);
    ps.setString(2, password);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("Invalid Password ");
    count = rset.getShort(1) ;
    return count ;
    } finally {
    ps.close();
    public String validateSearchAccess (String username, String
    password) throws SQLException, RemoteException
    String searchaccess = "" ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select searchprofileaccess from
    useraccountinfo where username = ? and password = ?");
    try {
    ps.setString (1, username);
    ps.setString(2, password);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("Access Denied for " +
    username );
    searchaccess = rset.getString(1) ;
    return searchaccess ;
    } finally {
    ps.close();
    Client program
    import mituser.MITUser;
    import mituser.MITUserHome;
    import oracle.aurora.jndi.sess_iiop.ServiceCtx;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import java.util.Hashtable;
    public class Client {
    public static void main (String [] args) throws Exception {
    int count = 0 ;
    String access = "" ;
    if (args.length != 4) {
    System.out.println("usage: Client serviceURL objectName
    user password");
    System.exit(1);
    String serviceURL = args [0];
    String objectName = args [1];
    String user = args [2];
    String password = args [3];
    Hashtable env = new Hashtable();
    env.put(Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    env.put(Context.SECURITY_PRINCIPAL, user);
    env.put(Context.SECURITY_CREDENTIALS, password);
    env.put(Context.SECURITY_AUTHENTICATION,
    ServiceCtx.NON_SSL_LOGIN);
    Context ic = new InitialContext(env);
    MITUserHome home = (MITUserHome)ic.lookup (serviceURL +
    objectName);
    MITUser testBean = home.create ();
    count = testBean.validateUserName("MITA");
    if (count > 0 )
    System.out.println ("Valid User");
    else
    System.out.println ("Invalid User");
    count = testBean.validatePassword("MITA", "MITA");
    if (count > 0 )
    System.out.println ("Valid Password");
    else
    System.out.println ("Invalid Password");
    access = testBean.validateSearchAccess("MITA", "MITA");
    if ( access.equalsIgnoreCase("YES") )
    System.out.println ("Search Access Available");
    else
    System.out.println ("Search Access Denied");
    The Descriptor file
    // MIT UserBean EJB deployment descriptor
    SessionBean mituserServer.MITUserBean {
    BeanHomeName = "test/mitUserJDBCBean";
    RemoteInterfaceClassName = mituser.MITUser;
    HomeInterfaceClassName = mituser.MITUserHome;
    AllowedIdentities = {MIT};
    SessionTimeout = 20;
    StateManagementType = STATEFUL_SESSION;
    RunAsMode = CLIENT_IDENTITY;
    TransactionAttribute = TX_REQUIRED;
    Batch File for deploying the ejb
    @echo off
    if (%ORACLE_HOME%)==() goto usage
    if (%ORACLE_SERVICE%)==() goto usage
    if (%JDK_CLASSPATH%)==() goto usage
    @echo on
    set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
    \jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
    ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
    JDK_CLASSPATH%
    javac -g mituser\MITUser.java
    javac -g mituser\MITUserHome.java
    javac -g mituserServer\MITUserBean.java
    jar cf0 mituser.jar mituser\MITUser.class
    mituser\MITUserHome.class mituserServer\MITUserBean.class
    javac -g Client.java
    call deployejb -republish -temp temp -u mit -p mit -s %
    ORACLE_SERVICE% -descriptor mituser.ejb mituser.jar
    @echo off
    goto done
    :usage
    @echo -------------------------------------------------------
    @echo Following are the requirements to run this script
    @echo set ORACLE_HOME to installed Oracle home
    @echo set ORACLE_SERVICE to the CORBA service name of
    your databae
    @echo for example sess_iiop://localhost:2481:ORCL
    @echo set JDK_CLASSPATH to the full path of your JDK
    classes.zip
    @echo -------------------------------------------------------
    :done
    Batch file for running the cleint program
    @echo off
    if (%ORACLE_HOME%)==() goto usage
    if (%ORACLE_SERVICE%)==() goto usage
    if (%JDK_CLASSPATH%)==() goto usage
    @echo on
    set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
    \jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
    ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
    JDK_CLASSPATH%;server_generated.jar
    java Client %ORACLE_SERVICE% /test/mitUserJDBCBean mit mit
    @echo off
    goto done
    :usage
    @echo -------------------------------------------------------
    @echo Following are the requirements to run this script
    @echo set ORACLE_HOME to installed Oracle home
    @echo set ORACLE_SERVICE to the CORBA service name of
    your databae
    @echo for example sess_iiop://localhost:2481:ORCL
    @echo set JDK_CLASSPATH to the full path of your JDK
    classes.zip
    @echo -------------------------------------------------------
    :done
    I know this is not strictly to do with JDBC but there appears to
    be no discussion forum for EJB
    Hoping for a response soon as it us very URGENT
    Thanks
    Mita
    null

  • Problems building JavaDoc of classes using Hibernate/javax.persistence

    Hallo!
    I am trying to create the javadoc of classes that use hibernate. First it starts of with error messages like
      [javadoc] SubmissionSet.java:40: cannot find symbol
      [javadoc] symbol: class Table
      [javadoc] @Table(name="submissionset"/*, schema = "reg"*/)or
      [javadoc] Employee.java:8: package javax.persistence does not exist
      [javadoc] import javax.persistence.JoinColumn;
      [javadoc]                         ^Afterwards it gets even strange with exceptions within javadoc like:
    [javadoc] java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc
      [javadoc]     at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
      [javadoc]     at com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:811)
      [javadoc]     at com.sun.tools.doclets.formats.html.TagletWriterImpl.deprecatedTagOutput(TagletWriterImpl.java:70)
      [javadoc]     at com.sun.tools.doclets.internal.toolkit.taglets.DeprecatedTaglet.getTagletOutput(DeprecatedTaglet.java:40)
      [javadoc]     at com.sun.tools.doclets.formats.html.MethodWriterImpl.writeDeprecated(MethodWriterImpl.java:166)
      [javadoc]     at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder.buildDeprecationInfo(MethodBuilder.java:183)
      [javadoc]     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      [javadoc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [javadoc]     at java.lang.reflect.Method.invoke(Method.java:597)
      [javadoc]     at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder.invokeMethod(MethodBuilder.java:109)
      [javadoc]     at com.sun.tools.doclets.internal.toolkit.bu    at java.lang.reflect.Method.invoke(Method.java:597)
      [javadoc]     at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
      [javadoc]     at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
      [javadoc]     at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
      [javadoc]     at com.sun.tools.javadoc.Start.begin(Start.java:128)
      [javadoc]     at com.sun.tools.javadoc.Main.execute(Main.java:41)
      [javadoc]     at com.sun.tools.javadoc.Main.main(Main.java:31)I suppose the problem is somehow linked to the usage of hibernate since the same ant script works for other projects (that don't use hibernate...). Do you have an idea what could be wrong?
    Thanks in advance
    Patrick

    See [http://forums.sun.com/thread.jspa?threadID=5333060&tstart=0]. In general, if you use third-party libraries in your code, you should include these libraries in Javadoc's classpath option when generating documentation.

Maybe you are looking for