Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Web start deployment

270995Nov 1 2002
I'm trying to package our application for deployment using WebStart.
I've encountered quite a few problems...

1) Help advises me to set ORACLE_HOME before running create_jclient_ear.bat when I should be setting JDEV_HOME.

2) The script file create_jclient_ear.bat contains this dubious code:
set OLD_CLASSPATH=
set CLASSPATH=%OLD_CLASSPATH%

I built bc4j.ear and moved it to my project tree as I want to incorporate it into CVS.

3) I built a WebStart app using the wizard. The wizard asked me to build the JAR files, before deploying the WAR but didn't indicate how to do this. (I assume I must use the ANT ctbuild.xml).

4) The file local.html references java.sun.com/products/javawebstart but it appears this page doesn't exist.

5) Ant file ctbuild.xml fails because ~ProjectPath\classes directory doesn't exist (we use ~ProjectPath\obj). After creating this directory, it fails again because ~ProjectPath\public_html doesn't exist (the wizard built all the html/jnlp files in ~ProjectPath\html). Created this directory, built the files and moved them to ~ProjectPath\html.

6) I would like to keep my keystore (or at least the relevant certificate) in my project tree (so it too can be maintained by CVS) but there seems no way to specify the path to the ctbuild.xml file. Nor are the alias and password parameterised. Can I edit the xml? What if I build it again with the wizard?

7) I'm not clear how to test this. It looks like I must deploy to 9iAS using "New connection" but this wizard fails. I choose "9iAS - local DCM" but the wizard doesn't like any of the directories I choose for ORACLE_HOME (it defaults to JDeveloper for some reason, is it really asking for JDEV home?) with the error "The specified Oracle home directory does not contain the DCM component". It looks like I must install some more software?


While I can't test using JDeveloper, I've manually built a web on my regular IIS web server.

Examining localmt.jnlp reveals a list of libraries which I've copied to my web server, and individually signed.

client.jar and mymt.zip seem to be identical, and contain my application. I've copied and signed these files too.

Web start downloads everything, nags aboiut the certificate and then starts my application. Everything runs till my app tries to connect to the database:

oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.common.ampool.ApplicationPoolException, msg=JBO-30003: The application pool (ModuleOperatorLocal) failed to checkout an application module due to the following exception:

## Detail 0 ##
JBO-30003: The application pool (ModuleOperatorLocal) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-25222: Unable to create application module.

## Detail 0 ##
javax.naming.NamingException: oracle.jbo.server.InitialContextImpl. Root exception is java.lang.ClassNotFoundException: oracle.jbo.server.InitialContextImpl

I'm not sure where I should find the class oracle.jbo.server.InitialContextImpl. Which JAR file is it in? Is this because I'm using BC4J incorrectly and referencing a library that I shouldn't?


I've also tried running my application unsigned, but this provokes:
java.security.AccessControlException: access denied (java.util.PropertyPermission oracle.jdbc.J2EEl3Compliant read)

It seems oracle JDBC can't be used in an unsigned environment.



Tony.




Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 6 2002
Added on Nov 1 2002
2 comments
111 views