EJB , Applet , OAS 4.0.8.1
What are the steps to call an EJB component
through an applet running in Netscape
Browser ?
The steps are really no different than
calling an EJB from any other piece of
Java code.
1. Include the the EJB Home and Remote classes created in your applet project.
2. Use the Home interface class to create
an instance of your EJB.
3. Use the Remote interface class
to interact with your EJB.
For more info, please see the EJB online demo: http://technet.oracle.com/products/jdev/info/jdevwt/wt_ejb/s000.html
John @ Oracle JDeveloper Team
Similar Messages
-
Error while deploying EJB on OAS 4.0.8.1
I have installed OAS 4.0.8.1 on Windows NT 4.0 with Support Pack 6a. The java compiler used is from JDK 1.1.6 provided with OAS.
The following error occurs while deploying EJB on OAS. The error is the same while deploying through the node manager or by using oasdeploy command line utility.
java.lang.NoClassDefFound Error
Code generation for
D:\\orant\\ows\\upload\\425BrowserBean.jar failed!
Creating registration files.....
Unable to expand attribute Unable to load from C:\temp\src425\oasbae.properties
Please let me know the possible causes for non deployment of the bean on OAS.
nullWith JDev 3.1, we only support deployment to OAS 4.0.8.2.
JDev 3.0 supported deployment to OAS 4.0.8.1.
I believe most of this restriction is due to internal changes in OAS that we were only able to integrate with 3.1. -
FileNotFoundException thrown during deployment of EJB onto OAS
During the deployment of an EJB onto OAS, I got the following error messages:
<snipped>
Processing jar...
Analyzing Beans...
AppTierEJBClass
Code generation for E:\\Oracle\\OASHome\\ows\\upload\\242TestOASAppSource.jar has been completed.
Compiling generated code...
Creating client jar...
java.io.FileNotFoundException: E:\Oracle\OASHome\ows\4.0\..\apps\ejb\TestOASApp\_client.jar
at java.lang.Throwable.<init>(Compiled Code)
at java.io.FileNotFoundException.<init>(Compiled Code)
at java.io.FileOutputStream.<init>(FileOutputStream.java:69)
at sun.tools.jar.Main.run(Main.java:76)
at sun.tools.jar.Main.main(Main.java:524)
at oracle.oas.tools.util.JarGenerator.createJar(Compiled Code)
at oracle.oas.tools.util.CreateJars.main(Compiled Code)
Creation of client jar for E:\\Oracle\\OASHome\\ows\\upload\\242TestOASAppSource.jar failed!
Creating registration files...
Deployment information for application successfully generated.
<snipped>
Just wondering what is that file not found error? And what is the cause of that?
nullI guess that might be trying to redeploy the same EJB again onto OAS.
If that is the case you can try the following
cd to OAS_HOME/ows/admin/website40/httpd_machinename/admin/svadmin.cfg
and turn "FileCaching = OFF"
OAS_HOME/ows/admin/website40/httpd_machinename/www/svadmin.cfg
and turn "FileCaching = OFF"
Once you change the settings , you would need to shutdown OAS and restart it again.
the other workaroung would be to restart the appserver before the redeployment so that it would release the lock.
raghu -
Urgent!! Errors during one EJB calling other EJB in OAS
Hi, I got the following errors when I try to
use one Session EJB to call another Session EJB in OAS 4.0.8.1, the EJB is deployed to OAS from JDeveloper 3.0. The code I used to call other EJB is the same as the code in client side:
public String callAnotherEJB(String strXML)
throws RemoteException, CreateException {
String ejbUrl = "oas://scott:8889/Mapping3/Mapping3";
String result;
// Setup the environment
Hashtable environment = new Hashtable();
// Turn JNDI on to OAS
environment.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "oracle.oas.naming.jndi.RemoteInitCtxFactory");
// Lookup the URL
Mapping3Home homeInterface = null;
try {
Context ic = new InitialContext(environment);
homeInterface = (Mapping3Home)javax.rmi.PortableRemoteObject.narrow(ic.lookup(ejbUrl), Mapping3Home.class);;
result = remoteInterface.responseEJBCall(strXML);
return result;
catch (Exception e) {
e.printStackTrace();
return "error during invoking responseEJBCall: "+e.getMessage();
=====
The error is as follows:
Creating an initial context
CORBA: org.omg.CORBA.BAD_OPERATION: ; nested exception is:
org.omg.CORBA.BAD_OPERATION:
java.rmi.ServerException: CORBA: org.omg.CORBA.BAD_OPERATION: ; nested exception is:
org.omg.CORBA.BAD_OPERATION:
at javax.rmi.oas.corba.CorbaRemoteExceptionHelperValue.OBVObjFrom(Compiled Code)
at TwoEJB2._stub_APP_T2.callEJBMapping(Compiled Code)
at TwoEJB2.TwoEJB2Client.main(Compiled Code)
Can anyone help me?
Thanks!1
Scott
nullUsing arrays instead of vectors, the Oracle WSDL toolkit was able to generate stubs/serializers for all my objects. Thanks for the tip! :)
For future reference though, is there any way at all for the Oracle WSDL toolkit to auto-generate stubs/serializers for objects wrapped inside a Vector? -
[Jeveloper + EJB client - EJB on OAS] Problem connecting
I having problems getting a simple client from within JDeveloper 3.0(Code snippet - OAS/EJB Client) talking to a simple EJB on OAS 4.0.8.
I have deployed OK (red flag against status?) but when I run the client using port - 5512(ORB port)I get the message below
Anybody any ideas?
Creating an initial context
Looking for the EJB published as 'MyOASApp/MyEJB'
Naming exception occurred!
Cause: This may be an unknown URL, or some classes required by the EJB are missing from your classpath, or your OAS host is short of resources
Suggestion: Check the components of the URL, and make sure your project includes a library containing the EJB .jar files generated by the deployment utility.
[Root exception is java.net.UnknownServiceException: no content-type]javax.naming.NamingException: Failure to access http://hfxcap4:5512/ows-bin/rmproxy.ior; listener inaccessible or configured wrongly
at oracle.oas.jndi.oas.SiteResolver.getIOR(Compiled Code)
at oracle.oas.jndi.oas.SiteResolver.resolveListenerURL(Compiled Code)
at oracle.oas.jndi.oas.SiteResolver.resolveSiteContact(Compiled Code)
at oracle.oas.jndi.oas.SiteResolver.resolveSiteContact(Compiled Code)
at oracle.oas.jndi.oas.SiteResolver.resolveSiteObject(Compiled Code)
at oracle.oas.jndi.oas.BeanInitialContext.resolve(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanInitialContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.WrapperContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at package1.MyOASAppClient.main(Compiled Code)
**************HI, I have the same problem that you had, maybe did you manage through ?? Thanks for all the help you could bring me.
Nico
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by pFrooney:
Back Again ...
I have tried all ao the above
now using this code below but it fails on the lookup with the error message below:
..created library with client stub, using 1.1.8, moved OASRuntime to top of included libraries
Any suggestions
String oasUrl = "oas://hfxcap4:80";
String oasEJB = "MyOASApp/MyEJB" ;
// Setup the environment
Hashtable environment = new Hashtable();
// Turn JNDI on to OAS
environment.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "oracle.oas.naming.jndi.RemoteInitCtxFactory");
// Lookup the URL
conv_package.MyEJBHome homeInterface = null;
try {
System.out.println("Creating an initial context");
// Get initial JNDI context
Context site = (Context) ((new InitialContext(environment)).lookup(oasUrl));
org.omg.CORBA.COMM_FAILURE:
at oracle.oas.orb.CORBA.Request._invoke(Compiled Code)
at oracle.oas.orb.CORBA.Delegate._invoke(Compiled Code)
at org.omg.CORBA.portable.ObjectImpl._invoke(Compiled Code)
at oracle.oas.orb.CORBA.Delegate.is_a(Compiled Code)
at org.omg.CORBA.portable.ObjectImpl._is_a(Compiled Code)
at oracle.oas.jndi.oas.BeanInitialContext.resolve(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanInitialContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.WrapperContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at CClient_package.MyOASAppClient.main(Compiled Code)<HR></BLOCKQUOTE>
null -
Redeploying an EJB onto OAS 4.0.8.2 from JDev 3.1 - problem
My previous message should have had in the topic, OAS 4.0.8.2 instead of OAS 4.0.8.3.
So, I'll explain my problem again:
I'm trying to redeploy an EJB onto the OAS, and I get the following error:
java.io.FileNotFoundException: D:\OraHome1\ows\4.0\..\apps\ejb\ChartBean\_client.jar (The requested operation cannot be performed on a file with a user mapped section open)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at java.io.FileOutputStream.<init>(FileOutputStream.java:62)
at sun.tools.jar.Main.run(Main.java:96)
at sun.tools.jar.Main.main(Main.java:760)
at java.lang.reflect.Method.invoke(Native Method)
at oracle.oas.tools.util.JarGenerator.createJar(Compiled Code)
at oracle.oas.tools.util.CreateJars.main(Compiled Code)
Creation of client jar for D:\\OraHome1\\ows\\upload\\1219ChartBeanSource.jar failed!
I tried to go delete the client.jar file from the OAS machine, and it won't let me saying it is a sharing violation (File is in use). I deleted the EJB from the OAS, stopped the OAS, and still I cannot delete the client.jar file.
First, why couldn't I redeploy, and second, how do I delete the _client.jar file?
Thanks!
nullHi clytle,
I have problem about EJB,maybe you can
help me.I use JDeveloper 3.0 to developer EJB
and deploy it to OAS 4.0.8.1 successful. But
the error message(show at below) always occur
when I run the EJB client program eyerytime.
I have no idea about this.Could you have any
suggestion or solution about this? Have anyone else can help me?
james 2000/6/30
The error message :
Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException
java.lang.Object oracle.oas.jndi.oas.SecCosNamingContext.resolve(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanInitialContext.resolve(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanInitialContext.lookup(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.WrapperContext.lookup(javax.naming.Name)
java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(java.lang.String)
java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
void SimpleEJB.SimpleEJBClient.main(java.lang.String[])
null -
Redeploying an EJB onto OAS 4.0.8.3 from JDev 3.1 - problem
I'm trying to redeploy an EJB onto the OAS, and I get the following error:
java.io.FileNotFoundException: D:\OraHome1\ows\4.0\..\apps\ejb\ChartBean\_client.jar (The requested operation cannot be performed on a file with a user mapped section open)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at java.io.FileOutputStream.<init>(FileOutputStream.java:62)
at sun.tools.jar.Main.run(Main.java:96)
at sun.tools.jar.Main.main(Main.java:760)
at java.lang.reflect.Method.invoke(Native Method)
at oracle.oas.tools.util.JarGenerator.createJar(Compiled Code)
at oracle.oas.tools.util.CreateJars.main(Compiled Code)
Creation of client jar for D:\\OraHome1\\ows\\upload\\1219ChartBeanSource.jar failed!
I tried to go delete the client.jar file from the OAS machine, and it won't let me saying it is a sharing violation (File is in use). I deleted the EJB from the OAS, stopped the OAS, and still I cannot delete the client.jar file.
First, why couldn't I redeploy, and second, how do I delete the _client.jar file?
Thanks!
nullHi clytle,
I have problem about EJB,maybe you can
help me.I use JDeveloper 3.0 to developer EJB
and deploy it to OAS 4.0.8.1 successful. But
the error message(show at below) always occur
when I run the EJB client program eyerytime.
I have no idea about this.Could you have any
suggestion or solution about this? Have anyone else can help me?
james 2000/6/30
The error message :
Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException
java.lang.Object oracle.oas.jndi.oas.SecCosNamingContext.resolve(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanInitialContext.resolve(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanInitialContext.lookup(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.WrapperContext.lookup(javax.naming.Name)
java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(java.lang.String)
java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
void SimpleEJB.SimpleEJBClient.main(java.lang.String[])
null -
We failthfully followed the procedure given in technet.oracle.com/products/jdev (JDeveloper 3.0 Technical Information - Developing and Deploying EJBs using JDeveloper 3.0 and running the deployed EJB from a client application) to create an EJB.
We got the following error when we tried to run the client from JDeveloper.
"D:\jdeveloper\java1.2\jre\bin\javaw.exe" -mx50m -classpath "D:\jdeveloper\myclasses;D:\jdeveloper\lib\ejbapi.jar;D:\jdeveloper\lib\oasoorb.jar;D:\jdeveloper\myprojects\jayEJBCl.jar;D:\jdeveloper\lib\jdev-rt.zip;D:\jdeveloper\jdbc\lib\oracl e8.1.5\classes111.zip;D:\jdeveloper\lib\connectionmanager.zip;D:\jdeveloper\lib\javax_ejb.zip;D:\jdeveloper\java1.2\jre\lib\rt.jar" jayEJB.jayEJBClient
Creating an initial context
Looking for the EJB published as 'jayEJB/HelloEJB'
Naming exception occurred!
Cause: This may be an unknown URL, or some classes required by the EJB are missing from your classpath, or your OAS host is short of resources
Suggestion: Check the components of the URL, and make sure your project includes a library containing the EJB .jar files generated by the deployment utility.
[Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException
java.lang.Object oracle.oas.jndi.oas.SecCosNamingContext.resolve(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanInitialContext.resolve(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.BeanInitialContext.lookup(javax.naming.Name, java.util.Hashtable)
java.lang.Object oracle.oas.jndi.oas.WrapperContext.lookup(javax.naming.Name)
java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(java.lang.String)
java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
void jayEJB.jayEJBClient.main(java.lang.String[])
Can anyone suggest the remedy ?
nullI don't know if this applies for you but this may help you:
"I am running OAS on Windows NT, and my client hangs during the JNDI home interface lookup. What can I do ?
If your OAS EJB client hangs, and then throws an exception similar to the one below during the JNDI home interface lookup, this is
probably due to the fact that the java process in which your application is supposed to run cannot be started.
[Root exception is org.omg.CORBA.NO_RESOURCES:
]javax.naming.InsufficientResourcesException
at oracle.oas.jndi.oas.SecCosNamingContext.resolve(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanInitialContext.resolve(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanInitialContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.WrapperContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at appPackage.BeanClient.main(Compiled Code)
You can verify that by looking at the wrb.log file (located in ows/admin/website40/log). It should report that it failed to get the cartridge for your
application (yourAppName__) by a message similar to the one below:
12-01-1999 09:43:10 0 plemouel-pc `RM Proxy` 301 0 0x1200fff `OWS-25010:
Failed to get cartridge 'appPackage/__' for '360' times.
If your EJB is deployed in OAS on NT, and you have installed the JDK 1.2, or JRE1.2 on your machine don't look further. Even if your path and
classpath are set to use the correct 1.x JDK, OAS EJBs runtime uses the createProcess system command, which will cause the JDK1.2 JVM
to be loaded. This version of the JVM is not supported at the moment by OAS.
The reason behind this unfortunate behavior is twofold:
When you install JDK 1.2, the java.exe executable is also copied in the Windows system32 directory.
The system command we are using (createProcess) to start the JVM looks there first (MS design) before looking in the PATH
environment variable.
Therefore OAS tries to start your EJB application in JDK1.2 JVM, which is not supported at the moment.
We will fix this problem, but in the meantime, if you need to have the JDK1.2 on the same machine as your OAS installation. You will need to
edit the wrb.app (this file is located in directory ows\admin\website40\wrb) file after deploying your EJB.
In the wrb.app file look for:
[APPLICATION.myAppName]
where myAppName is the name of your EJB application. Below this tag, you should have the following line:
ExecString = javaw -mx64M oracle.oas.container.Main
Edit this line to add the javaw path. This should look something like this:
ExecString = c:\orant\ows\4.0\jdk\bin\javaw -mx64M oracle.oas.container.Main
Save the wrb.app file and then reload OAS.
If you have not installed the JDK1.2 or JRE1.2, your EJB has probably been deployed incorrectly. Check in directory
ows/apps/ejb/yourAppName to make sure that the following three files are present: _application.jar; _client.jar; and _server.jar."
null -
Question for Steve Muench - ADF/EJB & Applets?
Steve or anyone who can help - Do you have any sample demo that can demonstrate how to take advantage of ADF caching technology on the server, or an EJB solution integrated with an applet in a web application?
It is kind of late in the game, because we are about to roll out an application in our company, nevertheless we are still researching a better way for handling tremendous amount of data by our applet. We are using F1 Formula engine (spreadsheet like tech) in our applet. But, we have severe performance problems, especially in our remote locations trying to load thousands of rows in the applet and on top of that do all kinds of formatting and Excel like functionality in the applet grid at run time.
We are looking for a way to integrate ADF or EJB caching solution with our applet, so that we can cache the client data on the app server if possible, in order to improve performance.
Any guidance, suggestion and help is very much appreciated.
Thanks,
[email protected]Hi,
my recommendation would be to use JavaWeb Start with BC deployed as EJB to the Application Server. This way you have a real client installation and don't need to download the Applet classes all the time (and JClient, assuming you use JClient, comes with a couple of libraries slowing down the initial application startup). Using EJB on the middle tier allows you to use batch mode, which reduces the number of roundtrips between the client and the server. Note that the default implementation is synchronous, which is more chatty.
Frank -
Problem calling ejb in oas from non-oracle java client
I am trying to call an ejb that is deployed in OAS 9i from a java server page running another non-Oracle app server.
I continue to get the following error:
java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: can't
instantiate default ORB implementation com.visigenic.vbroker.orb.ORB minor
code: 0 completed: No
I don't think it's a classpath problem. In desperation, I added every jar file in the Oracle directory structure to my classpath.
The ejb works fine with jsp on OAS, but (at the moment) using OAS as our production web container is not an option.
Is this even possible?
nullHi Andrei,
is that all you get? No more nested exceptions? This snippet isn't really explaining thery much...
Best regards
Stefan -
I am trying to access a Business Component (deployed as a EJB on
9ias) using an Applet.
I used Jdev 9i to create a sample Jclient(JApplet) and it works
fine but only if it runs as an application.
Infact when I use applet I receive this message by Java Plug In
Console:
oracle.jbo.common.ampool.ApplicationPoolException: JBO-30003:
The application pool, PrBC.DM, failed to checkout an application
module instance.
at
oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout
(ApplicationPoolImpl.java:1143)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule
(ApplicationPoolImpl.java:1828)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:273)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:253)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:354)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:331)
at pack_BC.AppletFunzionalita.init
(AppletFunzionalita.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
## Detail 0 ##
oracle.jbo.JboException: JBO-25222: Unable to create application
module.
at
oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicat
ionModule(DefaultConnectionStrategy.java:63)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.createInstance
(ApplicationPoolImpl.java:1596)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.createNewInstance
(ApplicationPoolImpl.java:1582)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout
(ApplicationPoolImpl.java:1137)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule
(ApplicationPoolImpl.java:1828)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:273)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:253)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:354)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:331)
at pack_BC.AppletFunzionalita.init
(AppletFunzionalita.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
## Detail 0 ##
javax.naming.NoInitialContextException: Cannot instantiate
class: com.evermind.server.rmi.RMIInitialContextFactory. Root
exception is java.lang.ClassNotFoundException:
java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown
Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native
Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass
(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown
Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass
(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext
(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown
Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at
oracle.jbo.client.remote.ejb.ias.AmHomeImpl.initRemoteHome
(AmHomeImpl.java:75)
at oracle.jbo.client.remote.ejb.ias.AmHomeImpl.<init>
(AmHomeImpl.java:38)
at
oracle.jbo.client.remote.ejb.ias.InitialContextImpl.createJboHome
(InitialContextImpl.java:17)
at oracle.jbo.common.JboInitialContext.lookup
(JboInitialContext.java:72)
at javax.naming.InitialContext.lookup(Unknown Source)
at
oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicat
ionModule(DefaultConnectionStrategy.java:45)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.createInstance
(ApplicationPoolImpl.java:1596)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.createNewInstance
(ApplicationPoolImpl.java:1582)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout
(ApplicationPoolImpl.java:1137)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule
(ApplicationPoolImpl.java:1828)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:273)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:253)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:354)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:331)
at pack_BC.AppletFunzionalita.init
(AppletFunzionalita.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
oracle.jbo.JboException: JBO-29000: Unexpected exception caught:
oracle.jbo.common.ampool.ApplicationPoolException, msg=JBO-
30003: The application pool, PrBC.DM, failed to checkout an
application module instance.
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:377)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:331)
at pack_BC.AppletFunzionalita.init
(AppletFunzionalita.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
## Detail 0 ##
oracle.jbo.common.ampool.ApplicationPoolException: JBO-30003:
The application pool, PrBC.DM, failed to checkout an application
module instance.
at
oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout
(ApplicationPoolImpl.java:1143)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule
(ApplicationPoolImpl.java:1828)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:273)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:253)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:354)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:331)
at pack_BC.AppletFunzionalita.init
(AppletFunzionalita.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
## Detail 0 ##
oracle.jbo.JboException: JBO-25222: Unable to create application
module.
at
oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicat
ionModule(DefaultConnectionStrategy.java:63)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.createInstance
(ApplicationPoolImpl.java:1596)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.createNewInstance
(ApplicationPoolImpl.java:1582)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout
(ApplicationPoolImpl.java:1137)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule
(ApplicationPoolImpl.java:1828)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:273)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:253)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:354)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:331)
at pack_BC.AppletFunzionalita.init
(AppletFunzionalita.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
## Detail 0 ##
javax.naming.NoInitialContextException: Cannot instantiate
class: com.evermind.server.rmi.RMIInitialContextFactory. Root
exception is java.lang.ClassNotFoundException:
java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown
Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native
Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass
(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown
Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass
(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext
(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown
Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at
oracle.jbo.client.remote.ejb.ias.AmHomeImpl.initRemoteHome
(AmHomeImpl.java:75)
at oracle.jbo.client.remote.ejb.ias.AmHomeImpl.<init>
(AmHomeImpl.java:38)
at
oracle.jbo.client.remote.ejb.ias.InitialContextImpl.createJboHome
(InitialContextImpl.java:17)
at oracle.jbo.common.JboInitialContext.lookup
(JboInitialContext.java:72)
at javax.naming.InitialContext.lookup(Unknown Source)
at
oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicat
ionModule(DefaultConnectionStrategy.java:45)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.createInstance
(ApplicationPoolImpl.java:1596)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.createNewInstance
(ApplicationPoolImpl.java:1582)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout
(ApplicationPoolImpl.java:1137)
at
oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule
(ApplicationPoolImpl.java:1828)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:273)
at
oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule
(SessionCookieImpl.java:253)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:354)
at
oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject
(JUMetaObjectManager.java:331)
at pack_BC.AppletFunzionalita.init
(AppletFunzionalita.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
My code in the applet java class is:
package pack_BC;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import oracle.jbo.*;
import javax.naming.*;
import oracle.jbo.uicli.mom.JUMetaObjectManager;
import oracle.jbo.uicli.binding.JUApplication;
import oracle.jbo.uicli.controls.*;
import oracle.jbo.uicli.jui.*;
import java.util.Hashtable;
public class AppletFunzionalita extends JApplet
// frame layout
private BorderLayout borderLayout = new BorderLayout();
// layout panel definition
private LYPanelFunzionalita layoutPanel;
// the statusbar
private JUStatusBar statusBar = new JUStatusBar();
* the default constructor
public AppletFunzionalita()
public void init()
try
// bootstrap application
java.util.Properties props = new java.util.Properties();
props.put(JboContext.USE_APPLET, this);
JUApplication app =
JUMetaObjectManager.createApplicationObject("PrBC.DM", props);
app.setErrorHandler(new JUErrorHandlerDialog());
app.setErrorHandlerActive(true);
layoutPanel = new LYPanelFunzionalita();
jbInit();
catch(Exception ex)
ex.printStackTrace();
public void stop()
_popupTransactionDialog();
public void destroy()
layoutPanel.getPanelBinding().getApplicationModule
().getTransaction().disconnect();
* the JbInit method
public void jbInit() throws Exception
// frame layout
this.getContentPane().setLayout(borderLayout);
this.getContentPane().add(layoutPanel, BorderLayout.CENTER);
statusBar.setModel(JUStatusBar.getModelInstance
(layoutPanel.getPanelBinding(), statusBar));
this.getContentPane().add(statusBar, BorderLayout.SOUTH);
public static void main(String [] args)
// run this frame
JFrame frame = new JFrame();
frame.setSize(300, 400);
JApplet applet = new AppletFunzionalita();
frame.getContentPane().add(applet);
applet.init();
applet.start();
Dimension screenSize = Toolkit.getDefaultToolkit
().getScreenSize();
Dimension frameSize = frame.getSize();
if (frameSize.height > screenSize.height)
frameSize.height = screenSize.height;
if (frameSize.width > screenSize.width)
frameSize.width = screenSize.width;
frame.setLocation((screenSize.width - frameSize.width) / 2,
(screenSize.height - frameSize.height) / 2);
frame.setVisible(true);
private void _popupTransactionDialog()
if (layoutPanel.getPanelBinding().getApplicationModule
().getTransaction().isDirty())
Object [] options = {"Commit", "Rollback"};
int action = JOptionPane.showOptionDialog(null, "How do
you want to close the transaction.", "Transaction open",
JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE,
null, options, options[0]);
switch (action)
case JOptionPane.NO_OPTION:
case JOptionPane.CLOSED_OPTION:
layoutPanel.getPanelBinding().getApplicationModule
().getTransaction().rollback();
break;
case JOptionPane.YES_OPTION:
default:
layoutPanel.getPanelBinding().getApplicationModule
().getTransaction().commit();
break;same problem
-
Corba error when accessing EJB on OAS 4.0.8
When trying to access an EJB the Context lookup fails with the following error:
org.omg.CORBA.COMM_FAILURE:
at oracle.oas.orb.CORBA.Request._invoke(Compiled Code)
at oracle.oas.orb.CORBA.Delegate._invoke(Compiled Code)
at org.omg.CORBA.portable.ObjectImpl._invoke(Compiled Code)
at oracle.oas.orb.CORBA.Delegate.is_a(Compiled Code)
at org.omg.CORBA.portable.ObjectImpl._is_a(Compiled Code)
at oracle.oas.jndi.oas.BeanInitialContext.resolve(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanInitialContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.WrapperContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at Demo.main(Compiled Code)
I get this error when trying to use an EJB from a client computer. The EJB works when accessing it from the same computer where OAS is running. Any ideas?HI, I have the same problem that you had, maybe you have solve it now. If so, can you tell me how to manage through this situation.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jtanner1:
When trying to access an EJB the Context lookup fails with the following error:
org.omg.CORBA.COMM_FAILURE:
at oracle.oas.orb.CORBA.Request._invoke(Compiled Code)
at oracle.oas.orb.CORBA.Delegate._invoke(Compiled Code)
at org.omg.CORBA.portable.ObjectImpl._invoke(Compiled Code)
at oracle.oas.orb.CORBA.Delegate.is_a(Compiled Code)
at org.omg.CORBA.portable.ObjectImpl._is_a(Compiled Code)
at oracle.oas.jndi.oas.BeanInitialContext.resolve(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanInitialContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.WrapperContext.lookup(Compiled Code)
at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at Demo.main(Compiled Code)
I get this error when trying to use an EJB from a client computer. The EJB works when accessing it from the same computer where OAS is running. Any ideas? <HR></BLOCKQUOTE>
null -
Invalid username/password connecting to deployed session EJB (to OAS)
Hello,
OAS version : 9.0.4.0.0
JDeveloper version : 10.1.2.0.0 (Build 1811)
I have generated a very simple session EJB with the EJB
Diagram : business logic is only a method returning a
"hello world" String (no DB connection).
Next i have generated a "New Sample Java Client" to test
that, first connecting to the Embedded OC4J and it worked
very well.
Then i wanted to deploy this small example to my OAS
server, so i created a new session EJB deployment profile.
Deployment worked very well too.
To test this, i generated another "New Sample Java
Client", but that time i choosed "Connect to Remote App
Server", with adequate J2EE application and App Server
Connection names.
I took note of the new context lines. Login/password
strings were automatically filled with the ones i use to
connect to OEM Website (lets say the_login/the_password).
But unfortunately, when i launch the client, it doesn't
work. Here is the error stack :
C:\jdev1012\jdk\bin\javaw.exe -ojvm -classpath C:\dev\jdev\mywork\DarkWork\DarkProject\classes;C:\jdev1012\jdev\lib\jdev-rt.jar;C:\jdev1012\j2ee\home\lib\activation.jar;C:\jdev1012\j2ee\home\lib\ejb.jar;C:\jdev1012\j2ee\home\lib\jaas.jar;C:\jdev1012\j2ee\home\lib\jaxp.jar;C:\jdev1012\j2ee\home\lib\jcert.jar;C:\jdev1012\j2ee\home\lib\jdbc.jar;C:\jdev1012\j2ee\home\lib\jms.jar;C:\jdev1012\j2ee\home\lib\jndi.jar;C:\jdev1012\j2ee\home\lib\jnet.jar;C:\jdev1012\j2ee\home\lib\jsse.jar;C:\jdev1012\j2ee\home\lib\jta.jar;C:\jdev1012\j2ee\home\lib\mail.jar;C:\jdev1012\j2ee\home\lib\servlet.jar;C:\jdev1012\j2ee\home\oc4j.jar;C:\jdev1012\opmn\lib\optic.jar;C:\jdev1012\lib\xmlparserv2.jar;C:\jdev1012\lib\xmlcomp.jar mypackage1.SessionEJBClient
javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Invalid username/password for DarkEJB (the_login); nested exception is:
javax.naming.AuthenticationException: Invalid username/password for DarkEJB (the_login) [Root exception is javax.naming.AuthenticationException: Invalid username/password for DarkEJB (the_login)]
at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:168)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at mypackage1.SessionEJBClient.main(SessionEJBClient.java:18)
Caused by: javax.naming.AuthenticationException: Invalid username/password for DarkEJB (the_login)
at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2523)
at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2339)
at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1781)
at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:663)
at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
... 2 more
Process exited with exit code 0.
Do you know what i can do to solve this problem ?
I saw several posts on this forum about that problem,
mostly in 2003, so perhaps it has been solved now.
I tried the solutions and workarounds mentioned in those
post, but the error is still there...
Thank you for your help ! :-)When you are connecting through a hotels WiFi like this they may occasionally require you to login via a home web page, this is quite normal. In many cases the password for this will be provided at checkin and with this being the case it would be worth speaking with the front desk to see if they can assist you with this.
What are your thoughts about this forum? Let us know by doing this short survey.
- Official Sony Xperia Support Staff
If you're new to our forums make sure that you have read our Discussion guidelines.
If you want to get in touch with the local support team for your country please visit our contact page. -
Deployment of Ejb on OAS-4.0.8
****** error message got on deploying the jar file ********
Oracle Application Server Release 4.0.8.0.0 Standard Edition
Copyright (c) Oracle Corporation 1998. All rights reserved.
java.lang.ClassFormatError: Wrong name
at java.lang.ClassLoader.defineClass(Compiled Code)
at oracle.oas.tools.util.DefaultClassLoader.loadClass
(Compiled Code)
at oracle.oas.tools.util.DefaultClassLoader.loadClass
(Compiled Code)
at oracle.oas.tools.codegen.BeanInterfaceStruct.initNames
(BeanInterfaceStruct.java:472)
at oracle.oas.tools.codegen.BeanInterfaceStruct.
(Compiled Code)
at oracle.oas.tools.codegen.InputJarAnalyzer.getTargets
(Compiled Code)
at oracle.oas.tools.codegen.CodeGenerator.main(Compiled
Code)
Code generation for G:\\ORAAPP\\ows\\upload\\serverJar.jar
failed!
Creating registration files...
Unable to expand attribute Unable to load from
c:\temp\src\oasbae.properties
c:\temp\src\oasbae.properties
java.io.FileNotFoundException: c:\temp\src\oasbae.properties
at java.lang.Throwable.(Compiled Code)
at java.io.FileInputStream.(Compiled Code)
at
oracle.oas.tools.config.BeanAttributeExpander.getHomeClassName
(BeanAttributeExpander.java:215)
at oracle.oas.templates.MacroDefs.evaluate(Compiled Code)
at oracle.oas.templates.SimpleNode.expand(Compiled Code)
at oracle.oas.templates.SimpleNode.expand(Compiled Code)
at oracle.oas.templates.Processor.expand(Compiled Code)
at oracle.oas.templates.Processor.expand(Compiled Code)
at
oracle.oas.tools.config.OASConfigFileGenerator.genConfigFromTempl
ate(Compiled Code)
at
oracle.oas.tools.config.OASConfigFileGenerator.genConfigForEachBe
an(Compiled Code)
at oracle.oas.tools.config.OASConfigFileGenerator.pass2
(OASConfigFileGenerator.java:80)
at oracle.oas.tools.config.OASInstaller.generate
(OASInstaller.java:47)
at oracle.oas.tools.config.OASInstaller.main
(OASInstaller.java:24)
Deployment failed!OK! Fixed that one myself - for now. I had used some wrong jar:s in my libraries.
There are still some problems.
If I use JDK 1.1.8, I get the following trace when trying to run my client:
java.lang.NoSuchMethodError: java.lang.System: method setProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found
at
at javax.naming.spi.NamingManager.getDefaultInitialContextFactory(NamingManager.java:696)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:744)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:181)
at javax.naming.InitialContext.<init>(InitialContext.java:158)
at test.BCEJBClient.main(BCEJBClient.java:32)
The problem goes away if I instead use JDK 1.2.2. But in the project I'm working on we are usng JDK 1.1.8. How can this problem be solved? -
Applet for EJB on Orcale application server
I developed Oracle Application server deployed EJB. Then I developed Applet client for that EJB. Everything works fine when I use applet viewer for that applet. But when I try to do same from the Netscape (4.7) or IE5 problems occurs. First I try netscape alone. Netscape uses JDK 1.1.5. Applet created initial context, and found EJB on the server, but could not do anything (CORBA MArshall exception occured, and no completed string returned). Then I installed Java Plug in 1.2.2 and tried everything again. Now I always get naming exception. Initial context is created, but client cannot find EJB on the server ( [Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException at oracle.oas.jndi.oas.SecCosNamingContext.resolve(SecCosNamingContext.java:265) at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328) .........
occurs). Does someone has some expiriences or can help?
I can run the application but when it comes to applet , its not working.
further can the EJB applet run over Java 1.2 plugin?
nullyeah, but appletviewer is not the solution, I am using jdeveloper 3 , OAS4081. I need to put the client on applet. The documentation says it will work. but the problem remains. I have lareday spent more then 40 hours to find a solution but it won't work.
Jayakumar,If you find a solution can you let me know also. my mail is [email protected]
Maybe you are looking for
-
Checking Account and help with code ?
Hi all..my computer hung up on me, so I'm not sure if my last post went through. First of all thank you all for helping me out the other day with my question on the Bank Account. It continues :) I'm trying to work on each class one by one..when I tes
-
Powerpoint 2010 file is corrupt for some users but not others
I have three client machines in our Production SharePoint 2010 environment. Two of them have Office 2010 (same version) one with Office 2007. Same OS - based on a Corporate Image, same version of IE8 (32-bit). Each user account has Site Collection
-
I am using PSE 12 as an external editor for Aperture. When I ask to use an external photo editor, Aperture creates a .tiff file in my Aperture folder, launches PSE 12 and tells it to edit that .tiff file. This all works great. When I am done editi
-
WPF: how to toggle background color in xaml by using F1 key?
We want to show users different background colors when clicking F1 key. Colors are defined as following: <LinearGradientBrush x:Key="StatusBackround1" EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF88AED0" Offset="0"/> <GradientStop Col
-
HT3500 can i connect my 1st gen ipad to my HP photosmart C4780
Can i connect my 1st gen ipad to my HP photosmart C4780