IIOP Connection Hangs: Deploying Hotel EJB from Technet
Hi,
I was trying to deploy the EJB from the sample hotel application
available at TECHNET. The System is using the standard ORacle 8i
port for ORB.
Please help identify the connection failure for IIOP connection.
REgards
Arvinder
null
Can you connect via the session shell to the orb namespace (with
the same service URL you are trying to deploy to) from the same
machine? This will validate the IIOP communiactions is working.
If the connection isn't working it may take quite some time to
actually error out.
null
Similar Messages
-
WL8.1 crashed during deployment of EJB from ear file
Hello,
WL8.1 crashed during deployment of EJB from ear file on SunOs 5.8:
error: Invalid class file format in /export/home/bea/j2sdk1.4.1_03/jre/lib/rt.jar(java/lang/AssertionError.class).
The major.minor version '48.0' is too recent for this tool to understand.
/export/home/mydomain/./ep1/.wlnotdelete/EJBCompilerCache/1xd25ws3hwp86/mydomain/facade/payroll/PayrollFL_vww01c_HomeImpl.java:83:
Class java.lang.AssertionError not found.
throw new AssertionError("Unable to find expected "+
Thanks,
Oleg.Thank you Mark,
It works now.
Oleg.
"Mark Griffith" <[email protected]> wrote:
I don't think though that _03 is the problem, you should have compatability
between minor versions of a VM release. How did you deploy the ear?
Did
you copy over from a 7.0 domain? It looks like the EJB was built on
a
previous version of WLS, or has not had "ejbc" run on it prior to
deployment. Try running weblogic.appc foo.ear or fooExplodedEar. And
then
try redeploying. To be sure everything is clean rm -rf .wldonotdelete
after
you shut the server down.
cheers
mbg
"Oleg" <[email protected]> wrote in message
news:3ef54653$[email protected]..
Hello,
WL8.1 crashed during deployment of EJB from ear file on SunOs 5.8:
error: Invalid class file format in/export/home/bea/j2sdk1.4.1_03/jre/lib/rt.jar(java/lang/AssertionError.class
The major.minor version '48.0' is too recent for this tool to understand.
/export/home/mydomain/./ep1/.wlnotdelete/EJBCompilerCache/1xd25ws3hwp86/mydo
main/facade/payroll/PayrollFL_vww01c_HomeImpl.java:83:
Class java.lang.AssertionError not found.
throw new AssertionError("Unable to find expected "+
Thanks,
Oleg. -
Deploying Session EJB From Jdev9i(Beta) - OC4J 9i
Hi All ,
I wanted from u , i have recently Upgraded to Oracle 9i 1.0.2.2.1 (OC4J) . Now i want a simple Step wise process as how can i deploy my Ejb (Session Bean ) into the OC4J container and Use its DataSource .
Is it possible to deploy using Jdev 9i (Beta) .
Can any one please help me out to point to a Documentaion , give me a breif process .
Regards
AsifAsif -
Yes you can use Jdeveloper 9i beta to deploy your session ejb.
Step 1 should be setting up your Data Source. In the System
Navigator Panel expand the "Connections" listing. Right-click
on "Database" and select "New Connection..." - follow the
wizard's instructions to set up your data source. Step 2 should
be setting up a connection to the OC4J container - again on the
System Navigator Panel ->Connections->Application Servers -
follow the instructions there. I am assuming that you have
developed your session ejb using Jdeveloper, right click on
your .jpr entry (or wherever suits you) and choose "New..." then
Deployment Profiles. You need to package your session ejb into a
jar file and I would recommend packaging your jar file into an
ear file (it really helps for clean deployment). If you have a
web portion, package that and make it dependent on the jar file
just to keep it straight. Once you have these, you will be able
to right click on the jar or web file and deploy to an ear file,
or straight to the server. If this is what you are looking for,
you will then just select this and away you go.
Apparently there are some howtos here:
http://otn.oracle.com/docs/products/jdev/howto.html
although I don't know how good they are.
I wasn't quite sure what you were looking for so this post is
vague. If you have specific questions, let me know and I will
try and answer them!
Cheers
Ray -
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. -
ESB : Is it possible to connect to a stateless EJB from ESB
Dear Gurus,
I want my ESB to talk to a stateless session bean, without wrapping the stateless session bean as a web service.
Kindly let me know if it is possible to do so.
Thanks in advanceI think the question is not whether it's technically possible using some sort of intermediate protocol, standard or technology -it is using WSIF, JAX-WS, JMS/AQ- but more the question what protocols are supported.
The ESB developer's guide states:
The ESB Server supports multiple protocol bindings including
HTTP/SOAP, JMS, JCA, WSIF, and Java that ensure guaranteed, reliable message delivery using synchronous/asynchronous, request/reply or publish/subscribe models. However, the ESB Server does not support Remote Method Invocation (RMI).
and
Oracle Enterprise Service Bus utilizes WSIF bindings in a WSDL document to
perform native Java calls to external java interfaces. WSIF is also used internally
by the JCA framework.
So invoking EJB's through RMI is not natively supported by Oracle ESB.
For an example on how to use WSIF to invoke Java in ESB see: http://www.oracle.com/technology/products/integration/esb/files/esbsamples.zip
BEA AquaLogic Service Bus supports native RMI invocations: http://e-docs.bea.com/alsb/docs261/userguide/ejbtransport.html
Regards, Ronald -
Connecting to Remote EJB from Servlet in same application
Please help!
I was able to connect to SessionBeans and EJB from my sample java client in OCJ4 but when I try to do same thing from my web application using servlets, I get the below NullPointerException error.
The JNDI lookup works fine using java client but difficult from a servlet.
I am sure there is something I am missing.
Thanks
This is what I do in the servlet:
public void init() throws ServletException, NamingException, CreateException, RemoteException
Context jndiContext = getInitialContext();
SessionCartEJBHome home = (SessionCartEJBHome)jndiContext.lookup("SessionCartEJBBean");
sessionEJB = null;
try{
sessionEJB = (SessionCartEJB) home.create();
}catch (Exception e)
e.printStackTrace();
private static Context getInitialContext() throws NamingException
Hashtable env = new Hashtable();
// Standalone OC4J connection details
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "admin");
env.put(Context.SECURITY_CREDENTIALS, "admin");
env.put(Context.PROVIDER_URL, "ormi://Princeton/ejb1");
return new InitialContext(env);
And when I call the following procedure, it blow up at the line sessionEJB.getLineItem(new Long(1304));
sessionEJB is a class variable.
void processCatalogPage(HttpServletRequest request,
HttpServletResponse response,
ActionMapping mapping,
HttpSession session
throws ServletException, IOException , Exception, FinderException{
try {
ActionForward actFor = null;
String itemId = request.getParameter("id");
if ( itemId != null ) {
String[] itemIds = new String[1];
itemIds[0] = itemId;
sessionEJB.getLineItem(new Long(1304));
actFor = mapping.findForward("catalog");
return (mapping.findForward("success"));
} catch (Exception ex)
ex.printStackTrace();
System.err.println(ex.toString());
throw new EJBException(ex.toString());
04/12/11 23:45:24 java.lang.NullPointerException
04/12/11 23:45:24 at com.alashoofi.Cart.processCatalogPage(Cart.java:187)
04/12/11 23:45:24 at com.alashoofi.Cart.execute(Cart.java:86)
04/12/11 23:45:24 at org.apache.struts.action.RequestProcessor.processActi
onPerform(RequestProcessor.java:484)
04/12/11 23:45:24 at org.apache.struts.action.RequestProcessor.process(Req
uestProcessor.java:274)
04/12/11 23:45:24 at org.apache.struts.action.ActionServlet.process(Action
Servlet.java:1482)
04/12/11 23:45:24 at org.apache.struts.action.ActionServlet.doGet(ActionSe
rvlet.java:507)
04/12/11 23:45:24 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:740)
04/12/11 23:45:24 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:853)
04/12/11 23:45:24 at com.evermind.server.http.ServletRequestDispatcher.inv
oke(ServletRequestDispatcher.java:765)
04/12/11 23:45:24 at com.evermind.server.http.ServletRequestDispatcher.for
wardInternal(ServletRequestDispatcher.java:317)
04/12/11 23:45:24 at com.evermind.server.http.HttpRequestHandler.processRe
quest(HttpRequestHandler.java:790)
04/12/11 23:45:24 at com.evermind.server.http.HttpRequestHandler.run(HttpR
equestHandler.java:270)
04/12/11 23:45:24 at com.evermind.server.http.HttpRequestHandler.run(HttpR
equestHandler.java:112)
04/12/11 23:45:24 at com.evermind.util.ReleasableResourcePooledExecutor$My
Worker.run(ReleasableResourcePooledExecutor.java:192)
04/12/11 23:45:24 at java.lang.Thread.run(Thread.java:534)
04/12/11 23:45:24 java.lang.NullPointerException
Dec 11, 2004 11:45:24 PM org.apache.struts.action.RequestProcessor processExcept
ion
WARNING: Unhandled Exception thrown: class javax.ejb.EJBExceptionAvi,
Thanks for your response. I am actually returning a new InitialContext in a function call in the servlet. What I have noticed though is that JDeveloper creates two ear files for the application. One for the ejbs called ejb1.ear and another for the web files webapp1.ear. These are located in the applications subdirectory in OC4J directory.
I know I have two projects in the application, model and viewController. I am just trying to follow the MVC pattern.
In short, I don't think the web and the ejbs are in same ear file. I made the web project depend on the ejbs though. There is an option to set such. I don't know how to tell JDeveloper to put them all in one ear file.
I will appreciate any suggestion.
Thanks
Matilda -
Urgent!!!!How to deploy only an EJB from Weblogic to oc4j.
Hi
How can i deploy only EJB from Weblogic into oc4j without any web application or client coming into pitcture as my client access bean remotely....
regards,
SapthapathiIf you are migrating from ejb1.1->ejb1.1 you shouldn't have many changes - your ejb-jar.xml file should be the same (I assume you are still talking about ejbs). Once you pull over the base ejb - then if you want to, mess around with the automatically generated orion-ejb-jar.xml file. Obviously - those are all app server specific. I go back and forth between wls6.1 and oc4j all the time. When going from wls5.1 to oc4j - what particular issues do you run into. What do you mean, in particular, by configuration changes?
Curious -
Ray
hi,
EJBs and other applications can be migrated from weblogic to oc4j but many changes are required.These changes are mainly configuration changes rather than code changes.Infact there are many problems in effect while migrating and delloyment.Hope oracle is a bit more attentive to this issue.
regards,
chennai -
IIOP Connection Problem to 8i on Linux
Hi,
I have installed Oracle 8.1.5 on Linux (Red Hat 6.1 -Kernel 2.2.12) Listener is configured for IIOP connection. When I issue the command
sess_sh -u scott/tiger -s sess_iiop://192.168.6.121:2481:eswap
from the linux box it connects to the orb shell.
When I try the same command from another machine in the network I get the error
Cannot connect to service: sess_iiop://192.168.6.121:2481:eswap
I am able to connect to the database from this machine using sqlplus.
What is that I am missing here? Do I need to add this port (2481) in the /etc/services file. My listener is named as lsnreswap, and the only entry that I have made in
/etc/services is
lsnreswap 1521/tcp
Or is there any other reason for this?
I need to get this functional urgently to try deployment of ejb from JDeveloper
Any help is highly appreciated.
Thanx
Gopal
nullHi,
Thanx for the tip. Listener.log shows all the
iiop connections as establish. There are no firewall between the client and server. And the listener name is back to the default one.
Still the problem remains same.
But I found out some interesting thing. Earlier my db was running with only the iiop in mts mode. (ie
mts_dispatchers="(PROTOCOL=tcp)(PRE=oracle.aurora.server.SGiopServer)" only was there in init.ora) I put this to init.ora
mts_dispatchers="(protocol=tcp)(DISP=2)(MUL=off)(pool=off)" to make net 8 connections also in mts mode.
After this when I try to connect from a client machine using sqlplus I'm getting this error
ORA-12545 - Connect failed because targer host or object does not exist.
I'm able to do a tnsping. Listener log shows the connection as establish. But I'm able to get the connection only through dedicated mode. So I have a feeling that this has something to do with the mts and not with the listener.
However I am able to connect from within my linux box using sqlplus as well as sess_sh, using iiop. v$session table shows the connection as 'shared' too.
Any idea what could be the reason?
Thanx,
Gopal
null -
Deployment of Ejb's, Applet calls from a Browser
Hello, and thank you for taking the time to review my post....
PII Celeron 333mHz
256 Megs Ram
Windows NT 4.0 Workstation (SP3)
JDeveloper2.0(Build 343)
Oracle 8.1.5
Netscape 4.06
Everything resides on the same machine.
Problem 1: I had no trouble deploying EJB's initially. As their
size grew, they became increasingly difficult to deploy. Long
delays(10 mins.)were, and are still encountered. Is that
acceptable for a minimal sized EJB? I've also noticed when my
deployment fails, (different errors are presented on different
occassions), it becomes impossible to deploy an EJB without first
closing, and restarting Jdeveloper. Is that normal behavior.?
Other times my deployment hangs when the Oracle 8i deployment is
called. I test my IIOP connection in Jdeveloper, and it fails to
work. I can't access the "sess_sh" from a command prompt either.
Would you know the cause(s)? Which steps should be taken in order
to remedy the situation..? A shutdown, and restart of the
database?
Problem 2: EJB1 is deployed to the database. A simple applet(with
the standalone option) is created. It calls EJB1 from within
Jdeveloper without trouble. Though when i attempt to run the
applet via the provided HTML file, it fails. The HTML file brings
up the appletviewer, which stalls after the applet is started. Is
an invalid "archive" file provided in the applet tag? Which
".jar" file should be present..the *Generated.jar file?
With regards to running the applet in Netscape, it fails. When i
deploy the ejb, should i include the "java40.jar" file as a
dependancy..? Should the "applet.class" file be included in the
deployment as well.? Should the typical Jdeveloper classes be
also stored in the ..Netscape\Program\java\classes directory?
Would someone be able to provide me with a simple applet, ejb
scenario, stating which .jar files are needed, and where they
should be present etc..?
My thanks in advance :)
Robert
nullHey Mark,
Maybe you can help then, I am getting the below errors (I am
pasting in a message I wrote earlier):
Hello,
I think I got one that could stump a bunch of ya... we'll see.
I wrote an EJB in JDev. 2.0 and deployed it. Worked well, no
problems. Wrote a Client Snippet, worked well (never tested
outside JDev.). Wrote a Client Applet, works very well INSIDE
JDEV. 2.0, once I try to run it outside JDev, I get nothing but
Exceptions.
SO, I tried deploying it to a jar, made sure to add all the
propper .jar and .zip files and everything. I deploy it and run
it inside IE 5.0 (using OBJECT instead of APPLET tags with the
right java plug in etc.), that hangs. SO i use appletviewer to
pick up the error messages and I get the stuff below (exception
and stack trace at end of message).
java.naming.factory.initial (which is in the exception message)
was new to me so I spent the last two days reading about JNDI
etc, and found out that it is just an environment property for
JNDI and that ORACLE does not use it once in any of its examples
or anything.
I have been unable to locate AURORA's version of its
ContextFactory (I tried just about every class with the word
Factory in it -- took forever), and none of those worked. To be
exact I found one class that looked like it could have worked:
oracle.aurora.jndi.sess_iiop.sess_iiopURLContextFactory.class...
I tried that, but that returned a ClassCastException.
So here's my synopsis: Inside JDEV for some reason the command:
Context ic= new InitialContext(environment);
works, as long as I specify a minimal number of environment
properties: javax.naming.Context.URL_PKG_PREFIXES (which I set
to, as Oracle says to do,
oracle.aurora.jndi),Context.SECURITY_PRINCIPAL,
Context.SECURITY_CREDENTIAL, and the NO_SSL one too. That works
fine in JDEV, throws the exception (see below) outside of JDEV.
If then try to specifiy a context factory
(Context.INITIAL_CONTEXT_FACTORY
constant) of the class type above I throw the exception shown
above inside and outside of JDEV (i.e. in appletviewer). Here's
where it gets weird:
If I use the above configuration that works in JDEV (no initial
context factory environment setting) and try to print out via
the list() method the context's bindings, I get the same
exception that is seen below. SO the only time it works, is when
I don't specify the initial context factory and I ONLY run it
inside JDEV WITHOUT performing any actions on the instantiated
context variable other than a lookup. REALLY WEIRD!
So please help ASAP, thanks.
Nadim Homsany
Systems Analyst
Message: Need to specify class name in environment or system
property: java.naming.factory.initial
javax.naming.NoInitialContextException: Need to specify class
name in environment or system property:
java.naming.factory.initial
at
javax.naming.spi.NamingManager.getDefaultInitialContextFactory
(Naming Manager.java:688)
at javax.naming.spi.NamingManager.getInitialContext
(NamingManager.java:7
44)
at javax.naming.InitialContext.getDefaultInitCtx
(InitialContext.java:181
at javax.naming.InitialContext.getURLOrDefaultInitCtx
(InitialContext.jav
a:219)
at javax.naming.InitialContext.lookup
(InitialContext.java:288) at
testejb.FirstEJBClientApplet.startEJB
(FirstEJBClientApplet.java:151)
at testejb.FirstEJBClientApplet.jbInit
(FirstEJBClientApplet.java:72)
at testejb.FirstEJBClientApplet.init
(FirstEJBClientApplet.java:61)
at sun.applet.AppletPanel.run(AppletPanel.java:357)
at java.lang.Thread.run(Thread.java:479)
mark tomlinson (guest) wrote:
: You need to link the applet with the xxxxxx_generated.jar that
: comes back from the deployment tool (and that is really all you
: need to include which is specific to the EJB). Try enabling the
: java console for the browser so you can get more specifc error
: messages.
null -
How to access an EJB from a web application deployed in the same server
Hey All,
I deployed an EJB named EventServerBean to Sun Application Server 9.0, and put the client side jar file (named eventserver.jar which is generated by Sun Application Server) to C:\Sun\AppServer\lib. Now, I have a web application which is a simple jave file -- lookup EventServer EJB and invoke a remote method in this EJB. However, the web application always throws an exception "java.lang.NoClassDefFoundError: eventserver/EventServerRemoteHome"
Here is my java class that access the ejb:
public class Post_Event {
public HashMap<String, String> getEventInfo(String event_name, String site) {
System.out.println("Post_Event, the class path: " + System.getProperty("java.class.path"));
System.out.println("Post_Event, user.dir: " + System.getProperty("user.dir"));
System.out.println("Post_Event, java.library.path: " + System.getProperty("java.library.path"));
HashMap<String, String> result = null;
EventServerRemote remote = null;
StringTokenizer st, st2;
// here get the event information from host
try {
String lookupStr = "corbaname:iiop:" + site + ":3700#ejb/EventServerBean";
InitialContext initialContext = new InitialContext();
EventServerRemoteHome remoteHome = (EventServerRemoteHome) javax.rmi.PortableRemoteObject.narrow(initialContext.lookup(lookupStr), EventServerRemoteHome.class);
if (remoteHome != null) {
remote = remoteHome.create();
} catch (javax.naming.NamingException ne) {
ne.printStackTrace();
return null;
} catch (javax.ejb.CreateException ce) {
ce.printStackTrace();
return null;
} catch (java.rmi.RemoteException re) {
re.printStackTrace();
return null;
} catch (java.io.IOException ioe) {
ioe.printStackTrace();
return null;
System.out.println("look up remote event server successfully.");
result = remote.getEvent(event_name);
return result;
} I output the class path in this java file, and the class path DOES include the path C:\Sun\AppServer\lib where eventserver\EventServerRemoteHome.class is.
Does anyone know why it happens? Why a java class can't find a class that is in its class path?
appreciate any help!<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Wael Abbas ([email protected]):
Thank you for your great topic.
I think you need to copy the snippet code and past it to every application, applet, servlet or JSP every time you need to use your EJB.
Its better to include this snippet code in a simple JavaBean and use this bean as a bridge to your EJB, you may include a connect method in your JavaBean or but the connection code in the constructor and include a setters, getters and other methods to encapsulate your EJB methods.
You can use your JavaBean in any application, applet, servlet or JSP just create an object form it and call its methods.
Its just an idea
I hope it will be useful.
<HR></BLOCKQUOTE>
null -
I got the following message "Cannot connect to service: sess_iiop://localhost:2482:test" when I try to deployment EJB and I use the 8.1.7. and Jdev 3.2. Please advise what is wrong for my IIOP connection. From the listener.log, the connection looks good.
======================================
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 8i JVM ***
EJB deployment argument list:
"C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw"
"-DPATH=C:\Program Files\Oracle\JDeveloper 3.2\bin;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\bin"
-classpath
"C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.2\auro
a\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\lib\rt.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar"
oracle.aurora.ejb.deployment.GenerateEjb
-u
scott
-p
tiger
-s
sess_iiop://localhost:2482:test
-republish
-keep
-temp
TEMP
-descriptor
"C:\Program Files\Oracle\JDeveloper 3.2\myprojects\Demo\EJB\DemoHelloEJB.xml"
-oracledescriptor
C:\Program Files\Oracle\JDeveloper 3.2\myprojects\Demo\EJB\DemoHelloEJB_oracle.xml
-generated
"C:\Program Files\Oracle\JDeveloper 3.2\myprojects\Demo\EJB\DemoHelloEJBGenerated.jar"
"C:\Program Files\Oracle\JDeveloper 3.2\myprojects\Demo\EJB\DemoHelloEJBSource.jar"
Cannot connect to service: sess_iiop://localhost:2482:test
*** Errors occurred while deploying the EJB to 8i JVM ***
*** Deployment completed ***
============================================
nullI have had teh same problem while deploying ejb with deployejb
tool.. where is teh problem?
I got the following message "Cannot connect to service: sess_iiop://localhost:2482:test" when I try to deployment EJB
and I use the 8.1.7. and Jdev 3.2. Please advise what is wrong
for my IIOP connection. From the listener.log, the connection
looks good.>======================================>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 8i JVM ***>EJB deployment argument list:>"C:\Program
Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw">"-
DPATH=C:\Program Files\Oracle\JDeveloper 3.2\bin;C:\Program
Files\Oracle\JDeveloper 3.2\java1.2\bin">-classpath>"C:\Program
Files\Oracle\JDeveloper 3.2
\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper
3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2
\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2
\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2
\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-
rt.zip;C:\Program Files\Oracle\JDeveloper 3.2
\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program
Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program
Files\Oracle\JDeveloper 3.2\lib\javax_ejb.zip;C:\Program
Files\Oracle\JDeveloper 3.2
\auro>a\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper
3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2
\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2
\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2
\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2
\java1.2\jre\lib\rt.jar;C:\Program Files\Oracle\JDeveloper 3.2
\lib\xmlparserv2.jar">oracle.aurora.ejb.deployment.GenerateEjb>-
u>scott>-p>tiger>-s>sess_iiop://localhost:2482:test>-republish>-
keep>-temp>TEMP>-descriptor>"C:\Program Files\Oracle\JDeveloper
3.2\myprojects\Demo\EJB\DemoHelloEJB.xml">-
oracledescriptor>C:\Program Files\Oracle\JDeveloper 3.2
\myprojects\Demo\EJB\DemoHelloEJB_oracle.xml>-
generated>"C:\Program Files\Oracle\JDeveloper 3.2
\myprojects\Demo\EJB\DemoHelloEJBGenerated.jar">"C:\Program
Files\Oracle\JDeveloper 3.2
\myprojects\Demo\EJB\DemoHelloEJBSource.jar">Cannot connect to
service: sess_iiop://localhost:2482:test>*** Errors occurred
while deploying the EJB to 8i JVM ***>*** Deployment completed
***>============================================ >null -
IIOP connection from JDeveloper does not work
I'm trying to run some sample EJB programs but cannot connect to the IIOP port from JDeveloper. I have installed Oracle 8.1.7 Enterprise on my machine, and it includes a listening location for IIOP on port 2481 under the listener. I can connect to JServer on this database from DBA Studio using various user/passwords, so the IIOP connection seems to work in principle.
But when I try to set up an IIOP connection from JDeveloper (v.3.1.1.2), the "Test" button fails to connect, but does not give any details on the reason for the error.
I have tried using the command line utility sess_sh, but this fails telling me the URL is invalid, even though it is exactly the same as the URL I connected to in DBA Studio.
Why can I connect from DBA Studio but not from JDeveloper, and can anyone tell me how to get this connection to work?
(It shouldn't be this hard to get a simple "Hello world" EJB to work!)
Thanks,
ChrisYou must use Jdev 3.2.x to communicate with RDBMS 8.1.7.
Jdev 3.1.x.x is for RDBMS 8.1.6. -
Calling an EJB deployed in OC4J from Java Stored Proc in Oracle
Hello!
Trying to make a call to an EJB deployed in OCJ4 from a oracle java stored proc. After loaded orion.jar and crimson.jar lib into SCOTT schema, I can't get the JNDI Context working because of this error:
============================================
javax.naming.NoInitialContextException: Cannot instantiate class:
com.evermind.server.ApplicationClientInitialContextFactory. Root exception is
java.lang.ClassNotFoundException:
com/evermind/server/ApplicationClientInitialContextFactory
at java.lang.Class.forName0(Class.java)
at java.lang.Class.forName(Class.java)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:45)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java)
at javax.naming.InitialContext.init(InitialContext.java)
at javax.naming.InitialContext.<init>(InitialContext.java)
===============================
I did load the java with "loadjava" with on time with the "resolve" option and time time no option and still no working.
Here is the EJB client code:
=======================================
import java.sql.*;
import java.util.*;
import javax.naming.*;
import com.evermind.server.ApplicationClientInitialContextFactory;
class EmpRemoteCall {
public static void main(String[] args) {
System.out.println(getEmpName());
public static String getEmpName() {
String ejbUrl = "java:comp/env/ejb/Emp";
String username = "admin";
String password = "admin";
Hashtable environment = new Hashtable();
environment.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory");
environment.put(Context.PROVIDER_URL, "ormi://127.0.0.1/testemp");
environment.put(Context.SECURITY_PRINCIPAL, username);
environment.put(Context.SECURITY_CREDENTIALS, password);
//environment.put(Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
//environment.put(javax.naming.Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
com.kboum.sertir.essais.EmpHome homeInterface = null;
try {
Class.forName("com.evermind.server.ApplicationClientInitialContextFactory", true, ClassLoader.getSystemClassLoader());
System.out.println("Creating an initial context");
Context ic = new InitialContext(environment);
System.out.println("Looking for the EJB published as 'java:comp/env/ejb/Emp'");
homeInterface = (com.kboum.sertir.essais.EmpHome) ic.lookup(ejbUrl);
catch (CommunicationException e) {
System.out.println("Unable to connect: " + ejbUrl);
e.printStackTrace();
//System.exit(1);
catch (NamingException e) {
System.out.println("Exception occurred!");
System.out.println("Cause: This may be an unknown URL, or some" +
" classes required by the EJB are missing from your classpath.");
System.out.println("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.");
e.printStackTrace();
//System.exit(1);
catch (ClassNotFoundException e) {
System.out.println("Unable to connect: " + ejbUrl);
e.printStackTrace();
//System.exit(1);
try {
System.out.println("Creating a new EJB instance");
com.kboum.sertir.essais.Emp remoteInterface = homeInterface.findByPrimaryKey(Integer.valueOf("7369"));
System.out.println(remoteInterface.getENAME());
System.out.println(remoteInterface.getSAL());
remoteInterface.setSAL(2);
System.out.println(remoteInterface.getSAL());
return remoteInterface.getENAME();
catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
return "error";
nullWhat I did to solve this problem was to
create a simple RMI remote object that
resides outside the database JVM and that
serves as a proxy EJB client for your java
stored procedure. The stored procedure can
invoke a method on the remote RMI object
which then looks up the EJBean's home
interface and invokes the relevant method on
the bean's remote interface, and relays any
return values back to the java stored
procedure.
Hope this helps,
Avi.
null -
Calling EJB from Oracle via IIOP
I've spent the last two days trying to figure out how I can call an
EJB from an Oracle Stored Procedure. I first looked into WLS JNDI
(Using WLInitialContextFactory ), but my collegue recommended I look
into IIOP because it is "less proprietary". I was able to get a WL
example working that does a lookup on an EJB and "narrows" the IIOP
object...so it looked promissing, but then I tried to load the JAR
into Oracle and it said:
"referenced name javax/rmi/PortableRemoteObject could not be found"
So I did a quick check and it looks like this didn't come into
existance until JDK 1.3. By all accounts, Oracle 8.1.6 supports JDK 2
(1.2). So now I'm stuck. I've got a few examples about connecting to
the Oracle ORB using session-iiop, but I don't know if Weblogic will
be able to work with this. I don't know how I'd even call it because
the URL requires an Oracle SID...so now what? I see three options.
Please let me know which would be best (or another option that I'm
missing)
1. Try connecting with Weblogic "T3"
2. Try to get the right combination of classes loaded so 1.2 can work
like 1.3
3. Use the Oracle IIOP (I have no examples for connecting to other
ORBs so I have no idea how to lookup objects).
Chris[email protected] (Chris Snyder) writes:
Andy Piper <[email protected]> wrote in message news:<[email protected]>...
[email protected] (Chris Snyder) writes:
1. Try connecting with Weblogic "T3"It depends on what version of WLS you are using. If you are using 6.1
then you are out-of-luck because this only support JDK 1.3.1.We are using WLS 6.1 and Oracle 8.1.6. There's got to be a way to
connect what is essentially a 1.2 JVM to a 1.3.1 JVM. On my way home
yesterday I was wondering if just straight RMI would work...although
we need to encrypt the connection. I've seen several people talk
about calling EJB's from stored procedures so it seems like there is a
way. Any other ideas?The really gross way is HTTP. In a previous life I had a customer use
oracle's HTTP plug-in to do this. You could probably invert the
problem also. I.e. write CORBA objects that sit inside an Orb hosted
in WLS and invoke on those using oracle's CORBA support. But HTTP is
probably the way most likely to work. You probably couldn't use RMI
over HTTP either - you would have to write a servlet that delegated to
your beans.
andy -
Deployment and IIOP connection
Hi All
I've been trying to deploy a very simple set of EJBs to Oracle 9IAS but i can't set up the IIOP connection in JDeveloper to deploy my beans - i keep getting Unknown Service error thrown by Connection exeception
I specify username and password for my database, host id is the name of the machine running Apache and Oracle 9ias(Oracle 8.1.6 database resides on a different machine), SID for my database and port is 2481
Can anyone help me out here or give me a link to the page that contains information on how to set up IIOP connection???
Thanks in advance<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mario Korf ([email protected]):
======================================
How To: CORBA Hello World
======================================
This How To topic steps through how to create, deploy, and run a simple "Hello World" CORBA server object using JDeveloper. This topic is organized by the following tasks:
Creating a CORBA project
Creating a CORBA interface
Adding a method to the interface
Generating CORBA server classes
Renaming the example server class
Implementing server methods
Adding more methods
Deploying a the CORBA Server
Creating a CORBA client
Testing the CORBA server
<HR></BLOCKQUOTE>
null
Maybe you are looking for
-
How to get Manager id automatically when Employee Id is given.
How to get Manager id automatically when Employee Id is given. 1) I created a simple BO with two elements namely 1.Employee Id 2.Manager id How to get employee's first name and last name? And how will i get manager id automatic when i click
-
How do I stop Google results from redirecting me back to the main site itself?
Hi, so today, this morning, when I booted up my laptop (Mac, OS X Mavericks), Safari and Google started freaking out on me. It was the first time anything of the sort has happened to me before, and being the lousy tech person I am, I am freaking out
-
Hi, I am getting null pointer exception , i dont whether it is due to jar mismatch or what ??? I have a stand alone application which created java classes from one schema file and , i construct xml file by inputting some values. It works fine in my m
-
My other laptop died the other day. I bought a new one with windows 8. Specs: Product name:HP Pavilion 17 Notebook PC Keyboard revision:73.26 Total memory:6.00 GB Processor name:AMD A8-6410 APU with AMD Radeon R5 Graphics I am trying my darnedest to
-
Want it change right shift key to be new paragraph
Hi, I want to change the function of the right shift key to oda new paragraph. I checked the users guide but it didn't answer my question.