OAS - EJB connectivity
Hi,
I've been trying to connect my EJBs with OAS(4.0.8 and 4.0.8.1) on NT. I could not get it connected. Before we continue to spend more time to explore, can somebody tell me if he/she ever made it work successful?
Raghu, I notice that you've been giving out great advice to others. I tried your methods and I still could not get it connected.
EJBs on OAS 4.0.8 (I also tried 4.0.8.1 ), today), does anybody make it work at all? Or, we just made some silly mistakes in our configuration.
We really need to get it work.
Thanks.
Raghu,
In general, I do have the following unknowns:
1. when I start up OAS (4.0.8 or 4.0.8.1), I get an error on "ORAPERF8.DLL" not found in my path. I could not find this file from my entire PC nor all my Oracle CDs. This has not caused me much problem. I don't know if it causes my problems with EJB connectivity.
I reinstall OAS many times and this problem does not go away.
2. I had my Oracle 8i and OAS on the same NT. According to the release notes, we have to do some workarounds and I did. It still did not solve my EJB problems. I installed Oracle 8.0.5. No help.
3. I have had many different problems during EJB deployments and I had then overcome. Right now, the program hangs when connecting (narrow) to the home interface.
Tommorrow, I will reinstall my NT, Oracle DB and OAS. I hope I have better luck this way.
By the way, I've tried the ways you suggested including http://www.domain.com:80/ows-bin/rmproxy.ior
. I had no problem with it.
null
Similar Messages
-
[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 -
Is there a way to do that? To use dynamic EJB connections?
Hello Developers,
I have developed a security web application using EJB,
Jaas with customer provider
I used DBSystemLogin module
I want to fined a way that the EJB connection change each time when the user login.
I used the HR as the main schema.
I created three schemas that I want to use them as users:
-Lina
-Salem
-Ahmad
I granted Roles to users on hr tables.
additional, created my own roles in data base and granted to my users:
ADMINISTRATOR Lina - can see all records
EMPLOYEE Ahmad -can see the records added by this employee
CUSTOMER Salem - can see the records belongs to this customer
In developer 10.1.3.3
I created Order Entity been using HR database connection, created session been,
Modified web.xml:
-security roles["ADMINISTRATOR","EMPLOYEE","CUSTOMER"])
-Loginconfig (Form-based authentication: login page, error page)
-Security constraints: ord on /faces/Orders.jsp to ADMINISTRATOR,EMPLOYEE,CUSTOMER.
I created Orders.jsp page contains order table.
Now, I want that when the user login as Lina to switch the EJB database connection to Lina, so the displayed order table achieves ADMINISTRATOR roles that created in database,means opening database session for user Lina and use it.
and so on for user salem and ahmad.
Is there a way to do that? To use dynamic EJB connections? To achieve authentication based connection? to implement the user database roles on the client side? To specify the database connection at run time?
That is possible using forms but I don’t want to use forms.
I want to reed the roles from database according to the user.
I hope to get answers soon,
thanks.Does JNDI do this job?
-
Monitoring EJB,Connection Pool,Servlets
Hi,
i have one doubt does oracle provides any MBeans to monitor ejb,connection pools etc..?
thanks ®ards
Magesh.NHi,
i have one doubt does oracle9ias provides any MBeans to monitor ejb,connection pools etc..?
thanks .ards
Magesh.N -
URGENT:Testing deployed OAS EJB Aplication (JNDI Problem)
Please I need urgently help on this subject matter:
Environment:
OAS 4.0.8.2a on NT 4.5 SP5
Jdeveloper 3.1
Oracle 8R2
After succesfull deployment of BC4J aplication on OAS I want simply test it. When I click to test on the appModule on the tree, the dialog asking the connection information appears..I choose OAS option from the drop down box.
The error message I get is:
"apps/ejb/ClientesProjectOAS/pkgClientes/PkgClientesModule is not the name of a registered component"
I have tried with other variants too taking into account what OAS Administration shows..but no luck!
Now, WHAT SHOULD BE PUT TO THE "JNDI PATH" and "CLIENT JAR PATH" options. This is the most confusing point to me and there are practically no valid/good information on online help.
Thanx.
Best regards,
Ari Supperi
[email protected]I have (almost) the same problem. Any idea? My weak english must be the reason, but I cannot find out what to enter into the JNDI and the Client jar path during testing my OAS deployed AppModule.
Thx,
Tib
null -
Who can explain how EJB connect to Oracle9i DB with DataSource?
I have taken 4 days into this problem. I am developing EJB with J2EE1.3 and Oracle9i DB, I can connect to DB in code with DriverManager. But I want to use DataSource to connect to DB. I failed, I can not get new way to resolve it when I after try to connect with javax.sql.DataSource, oracle.jdbc.pool.OracleDataSource and oracle.jdbc.pool.OracleConnectionPoolDataSource.
I have got different Exceptions when I coding different ways:
one is:
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: U
nable to connect to database. com.sun.enterprise.resource.JdbcDataSource; nested
exception is:
javax.ejb.EJBException: Unable to connect to database. com.sun.enterpris
e.resource.JdbcDataSource
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
connect to database. com.sun.enterprise.resource.JdbcDataSource; nested excepti
on is:
javax.ejb.EJBException: Unable to connect to database. com.sun.enterpris
e.resource.JdbcDataSource
javax.ejb.EJBException: Unable to connect to database. com.sun.enterprise.resour
ce.JdbcDataSource
<<no stack trace available>>
the Other is:
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: U
nable to connect to database. makeConnection:Io Exception: Connection refused(DESCRIP
TION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4)
))); nested exception is:
javax.ejb.EJBException: Unable to connect to database. makeConnection:Io
Exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_
STACK=(ERROR=(CODE=12505)(EMFI=4))))
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
connect to database. makeConnection:Io Exception: Connection refused(DESCRIPTION=(TM
P=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4)))); nes
ted exception is:
javax.ejb.EJBException: Unable to connect to database. makeConnection:Io
Exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_
STACK=(ERROR=(CODE=12505)(EMFI=4))))
javax.ejb.EJBException: Unable to connect to database. makeConnection:Io Exception: C
onnection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(E
RROR=(CODE=12505)(EMFI=4))))
<<no stack trace available>>
My codes related are:
private void makeConnection() throws NamingException, SQLException {
try{
InitialContext ic = new InitialContext();
OracleConnectionPoolDataSource ocpds = (OracleConnectionPoolDataSource) ic.lookup(dbName);
PooledConnection pc = ocpds.getPooledConnection();
con = pc.getConnection();
}catch(SQLException ex){
throw new SQLException("makeConnection:" + ex.getMessage());
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
con = DriverManager.getConnection(
"jdbc:oracle:thin:@172.28.200.43:1521:shcd",
"lijun", "xiaotian"); */
public void setEntityContext(EntityContext context) {
this.context = context;
try {
makeConnection();
} catch (Exception ex) {
throw new EJBException("Unable to connect to database. " +
ex.getMessage());
I believe I set JNDI and config EJB right, because I can run it with Cloudscape DB all right.
who can tell me where is my WRONG, or tell me how to connect to Oracle9i DB?Hi Jhlijun,
I am facing the same problem at the moment. However, I am not using a pooled connection. The following is my code. I am trying to connect a stateless session bean to an Oracle 9i database with result being fed back to a jsp page.
package Test;
import javax.naming.*;
import java.sql.*;
import java.util.*;
import javax.ejb.*;
import javax.sql.DataSource;
import javax.sql.*;
public class TestSessionEJBbean extends java.lang.Object implements javax.ejb.SessionBean
String q="Select NAMETITLE,NAMEFIRST,NAMELAST from People where PeopleRSN<100";
protected boolean create() throws java.lang.Exception
return true;
public TestSessionEJBbean()
{ // EJB constructors don't have a server context.
private void unhandledEvent( String listenerName, String methodName, java.lang.Object event )
// method for interface javax.ejb.SessionBean
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException
// To Do
// method for interface javax.ejb.SessionBean
public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException
// To Do
// method for interface javax.ejb.SessionBean
public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException
// To Do
// method for interface javax.ejb.SessionBean
public void setSessionContext( javax.ejb.SessionContext parm0 ) throws javax.ejb.EJBException, java.rmi.RemoteException
this._sessionContext = parm0; // generated helper code
// To Do
* Test Method
public String Test() throws javax.ejb.EJBException
return "Hi! I am the SessionEjbBean.";
* Session Context of this EJB.
* Set in 'setSessionContext()' before any 'ejbCreate()' is executed.
private javax.ejb.SessionContext _sessionContext;
* ejbCreate Method
public void ejbCreate() throws javax.ejb.EJBException, javax.ejb.CreateException
try {
create(); // This 'create()' is used for internal initialization.
catch( java.lang.Exception __e) {
System.err.println( __e.toString() + " " + __e.getMessage() );
// TODO: implement
* getDBConnection Method
public sun.jdbc.rowset.CachedRowSet getDBConnection() throws javax.ejb.EJBException
String testPrint = "Starting...";//Only to check output
Connection conn;
sun.jdbc.rowset.CachedRowSet crset=null;
try {
testPrint += "before new InitialContext()....";//Only to check output
InitialContext ic = new InitialContext();
DataSource ds = (DataSource)ic.lookup("java:comp/env/jdbc/coquit");
testPrint += "before ds.getConnection()....";//Only to check output
conn = ds.getConnection("coquit","coquit");
testPrint += "before conn.createStatement()....";
Statement stmt=conn.createStatement();
testPrint += "before stmt.executeQuery(....)";
ResultSet rset = stmt.executeQuery(q);
testPrint += "before new sun.jdbc.rowset.CachedRowSet()";
crset = new sun.jdbc.rowset.CachedRowSet();
testPrint += "before crset.populate(rset)";
crset.populate(rset);
rset.close();
stmt.close();
conn.close();
} catch (NamingException ne) {
System.out.println("TestSessionEJBbean::getDBConnection Naming Exception " + ne);
}catch (Exception e){
System.out.println(testPrint+"...TestSessionEJBbean::getDBConnectionException" + e);
System.out.println("\n\n");
e.printStackTrace();
return crset; -
Topic: Who can explain how EJB connect to Oracle9i DB with DataSource?
I have taken 4 days into this problem. I am developing EJB with
J2EE1.3 and Oracle9i DB, I can connect to DB in code with
DriverManager. But I want to use DataSource to connect to DB. I
failed, I can not get new way to resolve it when I after try to
connect with javax.sql.DataSource,
oracle.jdbc.pool.OracleDataSource and
oracle.jdbc.pool.OracleConnectionPoolDataSource.
I have got different Exceptions when I coding different ways:
one is:
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server
thread; nested exception is:
java.rmi.RemoteException: nested exception is:
javax.ejb.EJBException: Unable to connect to database.
com.sun.enterprise.resource.JdbcDataSource; nested
exception is:
javax.ejb.EJBException: Unable to connect to database.
com.sun.enterprise.resource.JdbcDataSource
java.rmi.RemoteException: nested exception is:
javax.ejb.EJBException: Unable to
connect to database. com.sun.enterprise.resource.JdbcDataSource;
nested exception is:
javax.ejb.EJBException: Unable to connect to database.
com.sun.enterprise.resource.JdbcDataSource
javax.ejb.EJBException: Unable to connect to database.
com.sun.enterprise.resource.JdbcDataSource
<<no stack trace available>>
the Other is:
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server
thread; nested exception is:
java.rmi.RemoteException: nested exception is:
javax.ejb.EJBException: Unable to connect to database.
makeConnection:Io Exception: Connection refused(DESCRIPTION=
(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=
(CODE=12505)(EMFI=4)
))); nested exception is:
javax.ejb.EJBException: Unable to connect to database.
makeConnection:Io
Exception: Connection refused(DESCRIPTION=(TMP=)
(VSNNUM=150999297)(ERR=12505)(ERROR_
STACK=(ERROR=(CODE=12505)(EMFI=4))))
java.rmi.RemoteException: nested exception is:
javax.ejb.EJBException: Unable to
connect to database. makeConnection:Io Exception: Connection
refused(DESCRIPTION=(TM
P=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)
(EMFI=4)))); nested exception is:
javax.ejb.EJBException: Unable to connect to database.
makeConnection:Io
Exception: Connection refused(DESCRIPTION=(TMP=)
(VSNNUM=150999297)(ERR=12505)(ERROR_
STACK=(ERROR=(CODE=12505)(EMFI=4))))
javax.ejb.EJBException: Unable to connect to database.
makeConnection:Io Exception: C
onnection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)
(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
<<no stack trace available>>
My codes related are:
private void makeConnection() throws NamingException,
SQLException {
try{
InitialContext ic = new InitialContext();
OracleConnectionPoolDataSource ocpds =
(OracleConnectionPoolDataSource) ic.lookup(dbName);
PooledConnection pc = ocpds.getPooledConnection();
con = pc.getConnection();
}catch(SQLException ex){
throw new SQLException("makeConnection:" + ex.getMessage());
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
con = DriverManager.getConnection(
"jdbc:oracle:thin:@172.28.200.43:1521:shcd",
"lijun", "xiaotian"); */
public void setEntityContext(EntityContext context) {
this.context = context;
try {
makeConnection();
} catch (Exception ex) {
throw new EJBException("Unable to connect to database. " +
ex.getMessage());
I believe I set JNDI and config EJB right, because I can run it
with Cloudscape DB all right.
who can tell me where is my WRONG, or tell me how to connect to
Oracle9i DB?Hi,
on small thing to check (or perhaps do):
Make sure that you are using the JDBC drivers from the Oracle9i
DB client e.g. copy the classes12.jar from the ORACLE_HOME of
the database client into OC4J_HOME lib.
Also, one thing that might help is to define an explict Oracle
datasource e.g.
- Set class to value of Oracle DataSource class
- Use only the location logical name
- Returns Oracle implementation of java.sql.Connection
<data-source
class="oracle.jdbc.pool.OracleDataSource"
name="jdbc/oracle/PooledDS"
location="jdbc/oracle/PooledDS"
username="scott"
password="tiger"
url="jdbc:oracle:thin:@<host>:<port>:<SID>"
/>
Andy -
Deployment wizard (OAS EJB)
Why do I get
There is nothing to process in jar file I:\\ows_4082\\ows\\upload\\691MyOASAppSource.jar.
Compilation of idl interfaces for I:\\ows_4082\\ows\\upload\\691MyOASAppSource.jar failed!
if I try to deploy my bc4j appmodule to an oas 4.0.8.2 as EJB?
thx,
TibHi
edit the file svwww.cfg file in
ORAWEB_HOME/admin/websitename/httpd_machinename/www.
In the [Server] portion of parameters change the 'FileCaching'
parameter to "OFF".
regards
raghu
Albert (guest) wrote:
: Trying to deploy an EJB into OAS 4.0.8.1 using
: JD3 deployment wizard.
: If the EJB already exists there, then an exception arises
: in the wizard:
: Creating client jar...
: java.io.FileNotFoundException: E:\dev32\ows\4.0
: \..\apps\ejb\MyAccount\_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:\\dev32
: \\ows\\upload\\194MyAccountSource.jar failed!
: As I've found, the _client.jar is actually present there,
: but it is locked by someone, so the wizard cannot overwrite it.
: If I stop the OAS Node Manager, then the file is released.
: After deleting the _client.jar and starting OAS Node Manager
: again, the wizard works.
: What Oracle has to comment on that ?
null -
Changing the EJB connection not under OC4J
Dear all,
I am facing a problem that after I deploy an ejb from Jdev and using teh connection from the Jdev. It is working fine, however I found that the EJB is totally depends on the connection which I have setup from Jdev but not from the OC4J connection pool, because when I try to change the connection setting from oc4j, it doesn't make any change.
Any one help!!!!repost
-
Ejb connect to remote jndi resource
Hi,
I want my ejb to connect to a jndi reource (in this case a jms topic) on another server (also AS7). I'm trying to use somthing like this:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
env.put(Context.PROVIDER_URL, "iiop://remoteserver:3700");
ctx = new InitialContext(env);
tconFactory = (TopicConnectionFactory) PortableRemoteObject.narrow(ctx.lookup(JMS_FACTORY),TopicConnectionFactory.class);
tcon = tconFactory.createTopicConnection();
tsession = tcon.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
topic = (Topic) PortableRemoteObject.narrow(ctx.lookup("jms/MyTopic"), Topic.class);
tpublisher = tsession.createPublisher(topic);
I get the following exception:
WARNING ( 2944): CORE3283: stderr: javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
Anyway, it throws the exception on the
ctx = new InitialContext(env);
So, if this is not the way to connect to a resource on another server, what's the correct way?
Tony FHi,
Refer the fifth post at http://swforum.sun.com/jive/thread.jspa?forumID=114&threadID=15846
-Amol -
OAS 10gR3 connect to PostgreSql
Hi:
I'm trying to connect from OAS 10Gr3 to PostgreSQL 8.4.
I need help to define the datasource because when I try to create the pool using org.postgresql.Driver, the oc4j_soa fail to start.
i modify the files
data-source.xml
oc4j-ra.xml
But always returns error.
My project use DBAdapter for ESB
ThanksHi:
I'm trying to connect from OAS 10Gr3 to PostgreSQL 8.4.
I need help to define the datasource because when I try to create the pool using org.postgresql.Driver, the oc4j_soa fail to start.
i modify the files
data-source.xml
oc4j-ra.xml
But always returns error.
My project use DBAdapter for ESB
Thanks -
EJB connectivity over the web.
Is there any easy way I can create an EJB client to work over the web. The problem is that we can not open our firewalls to RPCs or RMIs. Any ideas? Any packages that let me abstract IIOP over XML to do this?
Thanks,
Hugo TrocheWeblogic supports HTTP tunelling of RMI. Take a look at http://e-docs.bea.com/wls/docs61///faq/server.html
R.
KMS -
Is it closed::applet-client of OAS EJB
any success research?
for
IE5
Nav4.7
after plug-in1.1.3 security check problem
jar signed
nullIt is expressly forbidden in the spec for EJB's to be socket servers.
David
william wrote:
Hi Greats,
Is it possible to write a socket programming in EJB? Our application
does not have any separate client application. WE are writing server EJB
components which has to do some transaction service for the already
existing clients which will send stream of bytes to the server.
Can anybody help me out in this
Thanks in advance
william -
URGENT!!!! Deployment to OAS using connection wizard
Only when trying to deploy my application do I get a message. I'm using NT 4 for development. Deploying to OracleApp Serv 8 on Solaris.
The wizard runs fine but when I go to test the connection it stops with an error:
java.net.SocketException: setsocket() TCP_NDELAY
what does this mean?
Please help...Thanks.
Frank del RosarioHi,
are you able to connect to your
database using sqlplus?
Maybe try (from sqlplus):
alter user <USERNAME> account unlock;
using user 'system'.
MAciek -
Hello,
I have programmed JSP application with EJB that is using BAPI's and it is running on SAP J2EE server.
I have no idea how to use remote EJB on simple Java application.
can anybody help?.
Thank you in advance.
Thamas.Hi,
Create simple java applcation do the following steps:
public class SSample {
public static void main(String[] args) {
SampleEJB remote = null;
try {
Context ctx = new InitialContext();
SampleEJBHome home = (SampleEJBHome) ctx.lookup("SampleJNDI");
remote = home.create();
} catch (Exception e) {
System.out.println("Exception:" + e.getLocalizedMessage());
String result = remote.add(aFirst,aSecond,);
System.out.print("Result:" + result);
} catch (Exception ex) {
System.out.println("Exception:" + ex.getLocalizedMessage());
Go To Run > choose your program(client program to call ejb method) >
Arguments : VM Environment
paste the following code
-Djava.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl -Djava.naming.provider.url=192.168.0.100:50004
replace the server IP address with your server IP address where your ejbs are running.
Under Class path settings for the program put the following jar files.
You can search for them from net weaver soruce folders
or copy from c:\usr\... (search under this folder)
connector.jar
activation.jar
ejb20.jar
ogging.jar
exception.jar
sapj2eeclient.jar
sapj2eenginedeploy.jar
and RUN >>>
this makes testing of your client programs easier, you can find the error trace on which line and saves lot of time.
Regards
Suresh KB
Maybe you are looking for
-
I previously had Camino installed. I removed Camino. I also uninstalled and reinstalled Firefox but I'm still getting the same error. I have not been able to open Firefox successfully even once.
-
My email response defaults to an Alias that I dont want to use
My Iphone recieves my email from my ISP with no problem. However, everytime I hit the respond, the FROM comes up as one of my alias that I set up in that isp. NOT the one I generally use. I configured the correct one on my Iphone but it doesnt defaul
-
Hi, I recently went on holiday to China for a week and during that period I used airport wifi connections and the broadband connection in my hotel room, but since my return home my dial up connection has been giving me problems. When I go into System
-
[ELECTRONIC] Recommend an artist with 500 followers
Add your favorite electronic musicians who have less than 500 followers.
-
Hi All, Does anybody have any idea about how to get the selection parameters entered through variables by the user in the header of the report. Though the values of the selection parameters get displayed in the o/p display of BEx Analyser by default,