Deploying SQLJ to JServer

Hello
When deploying SQLJ files to JServer manually using the loadjava I usually load the .sqlj files and let the database do the precompiling. This way I think I will most certainly end up with precompiled code that is always compatible with the SQLJ runtime version.
The JDeveloper however seems to prefer doing the precompilation by itself and then loading the precompiled .java files.
To me it looks like the JDeveloper way is the more error prone way. How is it supposed to be done, and is there an easy way to make JDeveloper load the .sqlj files instead of the precompiled files?
//Jarkko Siitonen
[email protected]
null

Hi.
You do have a good poing with regards to using the runtime version of 8i's JServer.
However, as far as I have seen, there are no issues to worry about using JDeveloper. The only thing you might want to do, is have a different deployment mechanism than your development. That way you can develope in JDeveloper, and deploy using loadjava/deployjb manually through makefiles or some sort of compile script.
Doing it this way, you will get the nice use of JDeveloper, and have the latest libraries with the database.
This is especially nice once you start applying patches to the database that are not the same as JDeveloper patches. You may run into issues with this if there is a bug not fixed in JDeveloper that is fixed in the JServer however.
Good luck!
Brad

Similar Messages

  • Deploying SQLJ classes as Java Stored Procedures using JDeveloper 10g

    Hello,
    I have defined a SQLJ class, MwaSqljDao.sqlj, in JDeveloper. When I right click on the SQLJ class and "make" the class. It appears to succeed.
    However when I attempt to build the project in which the SQLJ class is a member of, a class that uses the SQLJ class has the following compile error:
    - MwaSqljDao not found.
    After a little digging it appears JDeveloper is able to compile the .sqlj file to a .java file in the classes output directory. However it does not take it to the next step of compiling the .java file into a .class file.
    Is SQLJ still a main stream Oracle technology? Or has it been cast to way side to make way for other technology?
    If SQLJ is still a supported Oracle technology how do go about compiling the SQLJ class using JDeveloper?
    My goal is to deploy SQLJ into JServer as a Java Stored Procedure class.
    Thank you,
    Rob

    Excellent.
    Especially that you resolved it and even more so that you posted the solution.
    I do wonder whether you would have gotten help (faster) has you asked in a JDeveloper-related forum such as " Forum Home » Developer Tools » JDeveloper and ADF" at JDeveloper and ADF

  • Problems deploying SQLJ Files

    System: Windows NT4 SP6, JDEV 3.0, OAS 4.0.7, Oracle 8.1.5 EE
    I've attempting to run the ACME Video sample web application for
    Oracle 8i using JDEV 3.0. Everything goes well until the point
    of Deploying the SQLJ Files Used by the Rentals EJB. I've
    followed the directions religiously, but I get the following
    error. What am I doing wrong? Much appreciation for any
    information that you super gurus can give.
    Sherman
    *** Executing deployment profile C:\Program
    Files\Oracle\JDeveloper 3.0
    \samples\acmevideo\ejb\server\SQLJ.prf ***
    *** Generating archive file C:\Program Files\Oracle\JDeveloper
    3.0\myclasses\SQLJ_Untitled1.jar ***
    Compiling the project...done
    Validating the profile...done
    Initializing deployment...done
    Scanning project files...done
    Generating classpath dependencies...done
    Generating archive entries table...done
    *** Archive generation completed ***
    *** Loading archive C:\Program Files\Oracle\JDeveloper 3.0
    \myclasses\SQLJ_Untitled1.jar into JServer using JDBC ***
    Load Java argument list:
    "C:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw"
    "-DPATH=C:\Program Files\Oracle\JDeveloper 3.0\bin;C:\Program
    Files\Oracle\JDeveloper 3.0\java\bin"
    -classpath
    "C:\Program Files\Oracle\JDeveloper 3.0
    \java\lib\classes.zip;C:\Program Files\Oracle\JDeveloper 3.0
    \lib\jdeveloper.zip;C:\Program Files\Oracle\JDeveloper 3.0
    \myclasses;C:\Program Files\Oracle\JDeveloper 3.0
    \sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.0
    \jdbc\lib\oracle8.1.5\classes111.zip;C:\Program
    Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;C:\Program
    Files\Oracle\JDeveloper 3.0
    \aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper
    3.0\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.0
    \java\lib\classes.zip;C:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper
    3.0\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper
    .0\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.0
    \jdbc\lib\oracle8.1.5\classes111.zip"
    oracle.aurora.server.tools.LoadJavaMain
    -user
    acme/acme@orant_lang:1521:ntdev81
    -thin
    -verbose
    -resolve
    "C:\Program Files\Oracle\JDeveloper 3.0
    \myclasses\SQLJ_Untitled1.jar"
    AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    Copyright (c) 1997-1998 Borland International. All Rights
    Reserved.
    Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
    interrupted by user
    loadjava: 1 errors
    *** Errors occurred while loading the archive into JServer ***
    *** Deployment completed ***
    null

    Sherman,
    I'm not seeing the same behavior when I try it here. You can use
    the command line utility loadjava (which is basically all the
    JDeveloper Deployment Wizard is doing as you can see from the
    output).
    For example:
    loadjava -user acme/acme@orant_lang:1521:ntdev81 -thin -verbose
    -resolve "C:\Program Files\Oracle\JDeveloper3.0
    \myclasses\SQLJ_Untitled1.jar"
    The Oracle8i Java Stored Procedures Guide contains the details
    and arguments list. There is a loadjava.bat file in your
    JDEV_Home\bin directory.
    Hope this helps,
    Laura
    Sherman Spencer (guest) wrote:
    : Thanks for your response. Yes this happens consistently. I've
    : tried using Project|Deploy|SQLJ.prf to deploy the SQLJ Files
    : several times to no avail. I get the same error. Is there a
    : workaround or another method of accomplishing this.
    : JDev Team (guest) wrote:
    : : Sherman,
    : : Everything looks OK at first glance. The 'interupted by
    user'
    : : error usually occurs if the 'Cancel' button was hit (perhaps
    : : inadvertently) on the deployment messages dialog.
    : : This is a modal dialog, and the default context is that
    Cancel
    : : button, so if you hit the Enter key it may have triggered the
    : : interuption.
    : : Does this happen consistently?
    : : Laura
    : : Sherman (guest) wrote:
    : : : System: Windows NT4 SP6, JDEV 3.0, OAS 4.0.7, Oracle 8.1.5
    EE
    : : : I've attempting to run the ACME Video sample web
    application
    : : for
    : : : Oracle 8i using JDEV 3.0. Everything goes well until the
    : point
    : : : of Deploying the SQLJ Files Used by the Rentals EJB. I've
    : : : followed the directions religiously, but I get the
    following
    : : : error. What am I doing wrong? Much appreciation for any
    : : : information that you super gurus can give.
    : : : Sherman
    : : : *** Executing deployment profile C:\Program
    : : : Files\Oracle\JDeveloper 3.0
    : : : \samples\acmevideo\ejb\server\SQLJ.prf ***
    : : : *** Generating archive file C:\Program
    : Files\Oracle\JDeveloper
    : : : 3.0\myclasses\SQLJ_Untitled1.jar ***
    : : : Compiling the project...done
    : : : Validating the profile...done
    : : : Initializing deployment...done
    : : : Scanning project files...done
    : : : Generating classpath dependencies...done
    : : : Generating archive entries table...done
    : : : *** Archive generation completed ***
    : : : *** Loading archive C:\Program Files\Oracle\JDeveloper 3.0
    : : : \myclasses\SQLJ_Untitled1.jar into JServer using JDBC ***
    : : : Load Java argument list:
    : : : "C:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw"
    : : : "-DPATH=C:\Program Files\Oracle\JDeveloper 3.0
    : \bin;C:\Program
    : : : Files\Oracle\JDeveloper 3.0\java\bin"
    : : : -classpath
    : : : "C:\Program Files\Oracle\JDeveloper 3.0
    : : : \java\lib\classes.zip;C:\Program Files\Oracle\JDeveloper
    3.0
    : : : \lib\jdeveloper.zip;C:\Program Files\Oracle\JDeveloper 3.0
    : : : \myclasses;C:\Program Files\Oracle\JDeveloper 3.0
    : : : \sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper
    3.0
    : : : \jdbc\lib\oracle8.1.5\classes111.zip;C:\Program
    : : : Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;C:\Program
    : : : Files\Oracle\JDeveloper 3.0
    : : : \aurora\lib\aurora_client.jar;C:\Program
    : : Files\Oracle\JDeveloper
    : : : 3.0\aurora\lib\vbjorb.jar;C:\Program
    Files\Oracle\JDeveloper
    : : 3.0
    : : : \aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper
    3.0
    : : : \aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper
    : 3.0
    : : : \aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper
    : 3.0
    : : : \java\lib\classes.zip;C:\Program Files\Oracle\JDeveloper
    3.0
    : : : \aurora\lib\aurora_client.jar;C:\Program
    : : Files\Oracle\JDeveloper
    : : : 3.0\aurora\lib\vbjorb.jar;C:\Program
    Files\Oracle\JDeveloper
    : : 3.0
    : : : \aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper
    3.0
    : : : \aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper
    : : : .0\aurora\lib\vbj30ssl.jar;C:\Program
    : Files\Oracle\JDeveloper
    : : 3.0
    : : : \jdbc\lib\oracle8.1.5\classes111.zip"
    : : : oracle.aurora.server.tools.LoadJavaMain
    : : : -user
    : : : acme/acme@orant_lang:1521:ntdev81
    : : : -thin
    : : : -verbose
    : : : -resolve
    : : : "C:\Program Files\Oracle\JDeveloper 3.0
    : : : \myclasses\SQLJ_Untitled1.jar"
    : : : AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    : : : Copyright (c) 1997-1998 Borland International. All Rights
    : : : Reserved.
    : : : Copyright (c) 1997-1999 Oracle Corporation. All Rights
    : : Reserved.
    : : : interrupted by user
    : : : loadjava: 1 errors
    : : : *** Errors occurred while loading the archive into JServer
    : : : *** Deployment completed ***
    null

  • Fail to Deploy EJB to JServer in JDeveloper3.0

    I had a trouble to deploy the EJBHotel example.
    My env is Oracle8i in NT with JDeveloper3.0.
    All IIOP & JDBC connection is fine. The user
    had JAVAUSERPRIV and even JAVASYSPRIV.
    The test under Published JServer Objects
    has Public Read, Write and Execute Permission.
    However I got the following message when I
    deploy from JDeveloper (both JDK1.2 and JDK1.1).
    Can someone give me direction to figure out
    what privilege it needed?
    Thank you very much.
    *** Executing deployment profile D:\Download\OneEJBHotelSample\oneEJBHotel\HotelSystem1.prf ***
    *** Generating archive file D:\Download\OneEJBHotelSample\oneEJBHotel\HotelSystem.jar ***
    Compiling the project...done
    Validating the profile...done
    Initializing deployment...done
    Scanning project files...done
    Generating classpath dependencies...done
    Generating archive entries table...done
    *** Archive generation completed ***
    *** Deploying the EJB to JServer ***
    EJB deployment argument list:
    "C:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw"
    "-DPATH=C:\Program Files\Oracle\JDeveloper 3.0\bin;C:\Program Files\Oracle\JDeveloper 3.0\java\bin"
    -classpath
    "C:\Program Files\Oracle\JDeveloper 3.0\java\lib\classes.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jdeveloper.zip;D:\Download\Program Files\Oracle\JDeveloper 2.0\myclasses;C:\Program Files\Oracle\JDeveloper 3.0\java1.2\jre\lib\rt.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jbcl2.0.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jgl3.1.0.jar;C:\Program Files\Oracle\JDeveloper 3.0\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.0\jdbc\lib\oracle8.1.5\classes111.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\dacf.zip;C:\Program Files\Oracle\JDeveloper 3.0\infobus\lib\infobus.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\LW_pfjbean.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\jbodatum.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jbomt.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jboremote.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jndi.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.0\jdbc\lib\oracle8.1.5\classes111.zip"
    oracle.aurora.ejb.deployment.GenerateEjb
    -u
    travel
    -p
    travel
    -s
    sess_iiop://localhost:2481:gspc
    -republish
    -keep
    -temp
    TEMP
    -descriptor
    "D:\Download\OneEJBHotelSample\oneEJBHotel\HotelSystem.dd"
    -generated
    "D:\Download\OneEJBHotelSample\oneEJBHotel\HotelSystemGen.jar"
    "D:\Download\OneEJBHotelSample\oneEJBHotel\HotelSystem.jar"
    AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    Copyright (c) 1997-1998 Borland International. All Rights Reserved.
    Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
    java.lang.UnsatisfiedLinkError: doPrivileged
    at org.omg.CORBA.ORB.getSystemProperty(Compiled Code)
    at
    at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.ToolI mpl.initializeSession(Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(Compiled Code)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(Compiled Code)
    *** Errors occurred while deploying the EJB to JServer ***
    *** Deployment completed ***
    null

    I use jbuilder+seblogic 8.1 sp2 to deploy EJB, but
    some errors appear in console as follow:
    Usage: java weblogic.Deployer [options] [actions]
    [File(s)]
    where options include:
    -adminurl <<protocol>://<server>:<port>>
    rt>> Administration server URL:
    default iiop://localhost:7001
    iiop://localhost:7001
    -username <username> user name
    name
    -password <password> password for the user
    user
    -userconfigfile <userconfigfile> The user config
    nfig file contains the
    user security credentials; it
    curity credentials; it is administered
    by the weblogic.Admin tool
    he weblogic.Admin tool
    -userkeyfile <keyConfigFile> The users key file;
    ile; it is administered
    by the weblogic.Admin tool.
    e weblogic.Admin tool.
    -examples Displays example usage of this
    this tool.
    -name <application name> Defaults to the basename
    name of the deployment
    file or directory.
    file or directory.
    -targets <<target(s)>> A comma separated list of
    t of targets for the
    current operation. If not
    rent operation. If not specified, all
    configured targets are used.
    ured targets are used. For a new
    application, the default target
    on, the default target is the
    administration server.
    administration server.
    -deploy Make an application available
    able for service.
    -redeploy Replace a running application
    tion partially or
    entirely.
    entirely.
    entirely.
    -undeploy Take an application out of
    t of service.
    Unrecognized option or flag, -sourcerootforupload
    pls tell me the reason,and how to solve this
    problem,thanksThe message indicates that you haven't passed the correct arguments on command line. Look at this message "Unrecognized option or flag, -sourcerootforupload" in particular.
    I suppose you need to tinker around with JBuilder. Try searching for this problem on Weblogic forum. Someone might have faced this already.

  • ORA-29546: when deploying SQLJ stored procedures

    Can anyone please help me? I consistently get this error when
    trying to deploy my java stored procedures that use SQLJ:
    ORA-29546: badly formed resource: Error:
    java.io.InvalidClassException: [Ljava.lang.Object;; Serialization
    incompatible with Externalization
    Adrian
    null                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The server prcess failed to allocate more memory for large objects ( in Oldspace).
    If you Google ORA-04030, you will see several recommendations to work around this.
    The Java VM in the database already has HttpClient, i don't know why you are loading the Apache HttpClient but this might not be the surce of the problem.
    Kuassi http://db360.blogspot.com

  • Cant deploy ejb to jserver from jdeveloper

    hello all
    just migrated to jdeveloper 3.1 and 8i 8.1.6. while deploying an ejb to 8i
    (which faced no problems previously in jdeveloper 3.0 and 8i 8.1.5),
    following were encountered :
    Generating EJBHome and EJBObject on the server...
    Compilation errors in
    oracle/aurora/ejb/gen/test_PolicyFactory/EjbObject_PolicyFactory:ORA-29535:
    source requires recompilationjava.lang.NullPointerException
    at sun.tools.java.Environment.error(Environment.java)
    at sun.tools.java.Environment.error(Environment.java)
    at sun.tools.java.Environment.error(Environment.java)
    at sun.tools.java.OracleClassLocator.getHandle(OracleClassLocator.java)
    at
    sun.tools.java.OracleClassLocator.getLocationEntry(OracleClassLocator.java)
    at
    sun.tools.java.OracleClassLocator.getClassLocation(OracleClassLocator.java)
    at
    sun.tools.java.OracleClassLocator.getClassLocation(OracleClassLocator.java)
    at
    sun.tools.java.OracleClassLocator.getBinaryClassLocation(OracleClassLocator.
    java)
    at
    sun.tools.java.OracleClassLocator.getBinaryClassLocation(OracleClassLocator.
    java)
    at sun.tools.java.LocatorFinder.find(LocatorFinderFactory.java)
    at oracle.aurora.compiler.SqljInterface$MyFinder.find(SqljInterface.java)
    at oracle.aurora.compiler.MemoizedFinder.find(MemoizedFinder.java)
    at
    orace.aurora.compiler.CacheUsingFinders$Key.<init>(CacheUsingFinders.java)
    at oracle.aurora.compiler.CacheUsingFinders.get(CacheUsingFinders.java)
    at oracle.aurora.compiler.CacheUsingFinders.get(CacheUsingFinders.java)
    at sun.tools.javac.AuroraEnvironment.classExists(AuroraEnvironment.java)
    at sun.tools.java.Environment.classExists(Environment.java)
    at sun.tools.java.Environment.classExists(Environment.java)
    at sun.tools.java.Environment.classExists(Environment.java)
    at sun.tools.java.Environment.resolvePackageQualifiedName(Environment.java)
    at sun.tools.java.ClassDefinition.resolveName(ClassDefinition.java)
    at sun.tools.java.Environment.resolveNames(Environment.java)
    at sun.tools.java.Environment.resolveNames(Environment.java)
    at sun.tools.javac.SourceMember.resolveTypeStructure(SourceMember.java)
    at sun.tools.javac.SourceClass.resolveTypeStructure(SourceClass.java)
    at sun.tools.javac.SourceClass.basicCheck(SourceClass.java)
    at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.jav)
    at oracle.aurora.jdkcompiler.JdkDriver.compile(JdkDriver.java)
    at oracle.aurora.rdbms.Compiler.doCompile(Compiler.java)
    at oracle.aurora.rdbms.Compiler.compile(Compiler.java)<no file>:
    An exception has occurred in the compiler; This is a compiler bug not
    an error in source. Info: 1 errors
    *** Errors occurred while deploying the EJB to JServer ***
    *** Deployment completed ***
    any resolutions? thanks!
    null

    For CMP beans to JBoss, they'll have to be managed by JBoss (not OC4J). We don't have any jdev specific documentation for that. The jboss docs and forums on jboss.org have alot of info about how to configure jaws, etc.
    Hope this helps,
    Rob

  • Simple question - how do i deploy SQLJ on OC4J version 1.0.2.2.1?

    I'm trying to get info on this question but it only seams to appear on JSP. I need to work with servelts and not JSP.
    Thanks for any help
    Paulo Gomes

    ITunes (Version 7.5, WinXP) is also telling me that my 5.5g Ipod is running the latest version (1.2.1). Any help anyone?

  • Why is it so hard to deploy EJBs that contain SQLJ???

    The SQLJ translator creates _SJProfilex.ser files by default that
    contain the SQL statements the SQLJ file uses. When trying to
    use a SQLJ file for an EJB, I can't get it to deploy right--in
    fact I'm thrawted at every turn! (THIS SHOULD BE EASY!)
    1) .ser files aren't deployed by default. O.K., I added the .ser
    rule in the deployment file. No dice, still doesn't show up in
    the JAR file!
    2) Even if I force the .ser file to be in the JAR (by including
    it in the project), still no dice! After deployment, the .ser
    file doesn't make it to the server.
    3) O.K., there's a nice -ser2class option to SQLJ that turns it
    into a class file instead of a .ser file. But where to add that
    option? It's not in the SQLJ options of the project properties.
    I also tried an SQLJ_OPTIONS environment variable, and putting an
    sqlj.properties file in all the suggested places. Nothing works!
    The only way I've been able to get it to work is to manually JAR
    the .ser file, ftp it to the server, and run loadjava on it.
    THERE HAS GOT TO BE AN EASIER WAY! ...so much for one-click
    deployment.
    Please help!
    null

    Hi John,
    There is an issue with deploying SQLJ files in 8.1.5.
    The doc (help sytem ) gives more details on how to deploy them.
    Open Online Help system
    Double click on the Sample Applications book icon
    Double click on the "web Application for Oracle8i" book
    Open "Deploying the EJB's"
    On the right hand window you will find a topic
    "Deploying the SQLJ files used by the Rentals EJB"
    this should take you through the deployment of SQLJ files.
    regards
    raghu
    John K. Peterson (guest) wrote:
    : The SQLJ translator creates _SJProfilex.ser files by default
    that
    : contain the SQL statements the SQLJ file uses. When trying to
    : use a SQLJ file for an EJB, I can't get it to deploy right--in
    : fact I'm thrawted at every turn! (THIS SHOULD BE EASY!)
    : 1) .ser files aren't deployed by default. O.K., I added the
    .ser
    : rule in the deployment file. No dice, still doesn't show up in
    : the JAR file!
    : 2) Even if I force the .ser file to be in the JAR (by including
    : it in the project), still no dice! After deployment, the .ser
    : file doesn't make it to the server.
    : 3) O.K., there's a nice -ser2class option to SQLJ that turns it
    : into a class file instead of a .ser file. But where to add
    that
    : option? It's not in the SQLJ options of the project
    properties.
    : I also tried an SQLJ_OPTIONS environment variable, and putting
    an
    : sqlj.properties file in all the suggested places. Nothing
    works!
    : The only way I've been able to get it to work is to manually
    JAR
    : the .ser file, ftp it to the server, and run loadjava on it.
    : THERE HAS GOT TO BE AN EASIER WAY! ...so much for one-click
    : deployment.
    : Please help!
    null

  • SQLJ deployment from JDeveloper tips

    While struggling to deploy SQLJ from JDev 3.1.1.2 to the database as stored procedures I've learned the following:
    1- The SQLJ files to be deployed should NOT be in a folder within the project.
    See my posting with subject 'Scanning project files...java.lang.NullPointerException' for more info on this.
    2- Your SQLJ class files should NOT use iterators defined outside of the class.
    I had placed some common iterators in a class and my SQLJ classes used those common iterators from the other class. This worked fine on the client side of the database. However, when I try to deploy the common iterator class and its SQLJ users to the database, I discovered that they won't deploy. You must define the iterators within the classes that use them! Rather annoying since you can't reuse an iterator definition.
    Hope this helps.
    null

    I have not tested with JDeveloper 9i beta. Hopefully some of these issues are fixed. Please let us all know.
    P.S. For new projects I will avoid at all costs deploying java to the database. I've run into too many restrictions, limitations, and bugs. Instead I would design an EJB app with all inserts, updates, and queries going through the EJBs. The EJBs could have event listeners or enqueue JMS events to simulate triggers. I would also avoid SQLJ and just use JDBC when doing bean managed persistence.
    null

  • How use Jndi datasoure in Jserver?

    Hi,
    I want to deploy EJB to jserver. The EJB use JNDI jdbc2.0 datasource to access database. But there only are some sujects how to use JNDI jdbc datasoure in client application in oracle8i 8.1.6 jdbc 2.0 document, no in Jserver. Which one could tell me how to use JNDI jdbc datasoure in Oracle 8.1.6 Jserver.
    Thanks in advance.
    sun xifeng

    You have JServer discussion group to post JServer related questions.
    Please repost it there.
    raghu

  • How use JNDI in Jserver

    Hi,
    I want to deploy EJB to jserver. The EJB use JNDI jdbc2.0 datasource to access database. But there only are some sujects how to use JNDI jdbc datasoure in client application in oracle8i 8.1.6 jdbc 2.0 document, no in Jserver. Which one could tell me how to use JNDI jdbc datasoure in Oracle 8.1.6 Jserver.
    Thanks in advance.
    sun xifeng
    null

    You have JServer discussion group to post JServer related questions.
    Please repost it there.
    raghu

  • SQLJ on Rdb ?

    My customer is planning to start development of J2EE applications to be deployed on VMS / Oracle-Rdb.
    Question 1: when is planned the official release of native JDBC for Rdb ?
    Question 2: is there any plan to have SQLJ for Rdb ?
    Thanks,
    Bernard

    Let us know if the following is/is not the issue.
    Note that the deploying the resulting .java file is not sufficient. If your SQLJ source contains SQL statements, it will also produce one or more resource (.ser) files.
    For example:
    Foo.sqlj might produce Foo.java and Foo_SJProfile0.ser
    The .ser file contains a description of the SQL code that is to be executed and thus is absolutely essential. You can either deploy this as a resource, or convert it to a class file (with the SQLJ command line option -ser2class), or convert it to a .java file (with the command line "tool": java sqlj.runtime.profile.util.SerProfileToClass).
    This gives you a plethora of choices for deploying SQLJ applications (e.g. with the loadjava tool):
    (1) % loadjava <options> Foo.sqlj
    (2) % sqlj Foo.sqlj
    % loadjava <options> Foo.java Foo_SJProfile0.ser
    (3) % sqlj -ser2class Foo.sqlj
    % loadjava <options> Foo*.class
    (4) % sqlj Foo.sqlj
    % java sqlj.runtime.profile.util.SerProfileToClass Foo_SJProfile0.ser
    % loadjava <options> Foo.java Foo_SJProfile0.java
    One caveat: if you deploy with one of these methods you want to drop the sources/resources/classes you deployed before redeploying with a different method. Otherwise you encounter conflicts during deployment.
    (One of these days we'll make life easier and eliminate the need for .ser's)
    I'll defer to the JDeveloper folks for what/how you could reasonably accomplish this within the JDeveloper environment (what version are you using?).

  • SQLJ on the Server

    I have been trying to deploy SQLJ based Java Stored Procedure to the Oracle8i Database using JDeveloper. I know that JDeveloper does not support the deployment of *.sqlj files to the Database properly. Therefore, what always do is deploying the resulting *.java file.
    However, each time I call the Java Stored Procedure, I receive "Call Completed" confirmation message. However, the effect of the statement is nothing (PS: it is insertion statement).
    Could you help me that problem. I tested the equivalent SQL statement and I made sure that it is working properly.
    Is there any parameters I should set in such a situation? I know ....!!?
    Thanks in advance

    Let us know if the following is/is not the issue.
    Note that the deploying the resulting .java file is not sufficient. If your SQLJ source contains SQL statements, it will also produce one or more resource (.ser) files.
    For example:
    Foo.sqlj might produce Foo.java and Foo_SJProfile0.ser
    The .ser file contains a description of the SQL code that is to be executed and thus is absolutely essential. You can either deploy this as a resource, or convert it to a class file (with the SQLJ command line option -ser2class), or convert it to a .java file (with the command line "tool": java sqlj.runtime.profile.util.SerProfileToClass).
    This gives you a plethora of choices for deploying SQLJ applications (e.g. with the loadjava tool):
    (1) % loadjava <options> Foo.sqlj
    (2) % sqlj Foo.sqlj
    % loadjava <options> Foo.java Foo_SJProfile0.ser
    (3) % sqlj -ser2class Foo.sqlj
    % loadjava <options> Foo*.class
    (4) % sqlj Foo.sqlj
    % java sqlj.runtime.profile.util.SerProfileToClass Foo_SJProfile0.ser
    % loadjava <options> Foo.java Foo_SJProfile0.java
    One caveat: if you deploy with one of these methods you want to drop the sources/resources/classes you deployed before redeploying with a different method. Otherwise you encounter conflicts during deployment.
    (One of these days we'll make life easier and eliminate the need for .ser's)
    I'll defer to the JDeveloper folks for what/how you could reasonably accomplish this within the JDeveloper environment (what version are you using?).

  • Does JServer Support JSP

    Does Oracle 8i with JServer support JSP, and if it does not can we use Apache Tomcat and Oracle 8i.

    John,
    We are working with the Apache/Tomcat/JServer architecture right now, and haven't ironed out all the wrinkles, but are making progress. This is a test system, not production, so we don't yet know what the performance issues are but it should be possible. Oracle Support says they support deployment to Tomcat 3.0 and Apache 1.3.9
    I have a follow on question to this thread. Running with Tomcat and EJB leads to two JVMs running, with performance issues. Deploying JSPs to JServer will help us overcome part of this barrier, but our architecture also employs a servlet Command Pattern to handle Application Logic, while the BC4J deployed as an EJB handles business rules. Will we be able to deploy the servlet to JServer in the future as well? Thanks

  • Servlets in oracle 8i release 2 (version 8.1.6)

    Is it possible to deploy servlets in JServer (Oracle 8i release 2)? If possible, is there any working example or sample provided by Oracle? Pls advice me on the same
    NOTE: But one documentation says that servlet deployment is a feature of Release 3. is it so???

    I don't think you need change that parameters and make.
    there is a post not far from here says you can set those parameters in /etc/sysctrl.conf, then reboot.
    I didn't set any parameters, I checked them, they are different
    names from those in ICG, and for those with same names, they are much higher in my system. So, I just go with them, and OK.

Maybe you are looking for