J2EE confusion in EJB Docu example!
I installed the j2ee beta and following the track in the documentation to learn EJB. the sample works fine. But after observing the interfaces and EJB class, I got confused by the following facts:
1. the EJB class ConverterEJB does not 'implements' the remote interface Converter, although it does implement the two methods defined in that interface: dollarToYen() and yenToEuro()
Q: then who 'implements' Converter?
2. EJB Home ConvertEJB defines a single method create(),
Q: where is it implemented.
I can imagine sth between the EJB and its container must be doing sth, but it seems very foggy for me.
Can any expert clarify this a little bit?
thank you
Benjamin
Each session bean has a home interface, a remote interface and an implementation class.
In your case, that is probably ...
ConverterEJBHome is the home interface - it defines all the create() methods that can be used to establish the bean
ConvertEJBSession is the remote interface that defines all the methods on the bean that the client can call
ConverterEJBBean is the implementation class which contains all the create() methods and all the remote methods
Similar Messages
-
J2EE JNDI-00009 EJB Reference "ejb/SessionEJBCalled" could not be resolved
When load (run) the following EJB (JDev 10.1.3.1.0 embedded server) loads with no problem:
package project2;
import javax.ejb.Stateless;
@Stateless
public class SessionEJBCalledBean implements SessionEJBCalledLocal {
public SessionEJBCalledBean() { }
public void display() { System.out.println("In called - Project2"); }
When load the following, only difference is name attribute for the @Stateless annotation:
package project2;
import javax.ejb.Stateless;
@Stateless(name="SessionEJBCalled")
public class SessionEJBCalledBean implements SessionEJBCalledLocal {
public SessionEJBCalledBean() { }
public void display() { System.out.println("In called - Project2"); }
Get the following error message - Why?
2006-08-24 15:48:54.640 WARNING J2EE JNDI-00009 EJB Reference "ejb/SessionEJBCalled" could not be resolved. Allowing J2EEContext creation to continue anyway
Finally - If I specify the name as per the following all is well:
package project2;
import javax.ejb.Stateless;
@Stateless(name="SessionEJBCalledBean")
public class SessionEJBCalledBean implements SessionEJBCalledLocal {
public SessionEJBCalledBean() { }
public void display() { System.out.println("In called - Project2"); }
Would be appreciated if someone could tell me what is going on?
Thanks - KenWhen load (run) the following EJB (JDev 10.1.3.1.0 embedded server) loads with no problem:
package project2;
import javax.ejb.Stateless;
@Stateless
public class SessionEJBCalledBean implements SessionEJBCalledLocal {
public SessionEJBCalledBean() { }
public void display() { System.out.println("In called - Project2"); }
When load the following, only difference is name attribute for the @Stateless annotation:
package project2;
import javax.ejb.Stateless;
@Stateless(name="SessionEJBCalled")
public class SessionEJBCalledBean implements SessionEJBCalledLocal {
public SessionEJBCalledBean() { }
public void display() { System.out.println("In called - Project2"); }
Get the following error message - Why?
2006-08-24 15:48:54.640 WARNING J2EE JNDI-00009 EJB Reference "ejb/SessionEJBCalled" could not be resolved. Allowing J2EEContext creation to continue anyway
Finally - If I specify the name as per the following all is well:
package project2;
import javax.ejb.Stateless;
@Stateless(name="SessionEJBCalledBean")
public class SessionEJBCalledBean implements SessionEJBCalledLocal {
public SessionEJBCalledBean() { }
public void display() { System.out.println("In called - Project2"); }
Would be appreciated if someone could tell me what is going on?
Thanks - Ken -
Hi:
I studied Bus\USB document of WDK. This document forces on developing USB device driver.
And there are some IOCTL Interfaces of usb bus driver exposed to usb device, like IOCTL_INTERNAL_USB_SUBMIT_URB.
But those IOCTL Interfaces seem to belong to USB hub driver(usbhub.sys).
My job is to developing a usb mini port driver, like usbehci.sys. That can work with usbport.sys.
So I should know the communication interfaces(IOCTL...etc) between them and implement these interfaces.
Is there a reference document(example, code) for developing usb mini port driver ?No there is no reference documents for this, Microsoft stated from the beginning that they own that layer. You really don't want to go there.
Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com -
Build process for ejb iiop example
Hello and thank you in advance,
I'm trying to build the examples under iiop examples for WL6.1 (Win NT), and the
'ant' build xml file contains a tag line <createidl ... which causes the build
to fail. I've been unable to find anything on this tag.
Am I supposed to replace this line with some other code? If so, then can anyone
help with the code.
Thanks!
SeanC:\bea\wlserver6.1\lib>dir weblogic.jar
Volume in drive C is Main
Volume Serial Number is 10C7-F019
Directory of C:\bea\wlserver6.1\lib
10/22/2001 09:26p 25,158,674 weblogic.jar
1 File(s) 25,158,674 bytes
0 Dir(s) 5,713,345,024 bytes free
C:\bea\wlserver6.1\lib>jar tvf weblogic.jar | grep taskdefs | grep iiop
0 Tue Sep 18 14:43:22 CDT 2001 weblogic/ant/taskdefs/iiop/
1738 Tue Sep 18 14:43:22 CDT 2001 weblogic/ant/taskdefs/iiop/CppIdlSetup.class
Hope this helps,
Robert
Sean Cloutier wrote:
Thank you for the reply Andy, however I'm unable to find the 'iiop' package under
the taskdefs package. I'm looking in the weblogic.jar file included with WLS6.1
(WinNT) service pack 1.
Is it possible that this is somewhere other than the weblogic.jar file? If so,
then where?
thanks again,
Sean
Andy Piper <[email protected]> wrote:
"Sean Cloutier" <[email protected]> writes:
I think it should be
weblogic.ant.taskdefs.iiop.CppIdlSetup
andy
Andy Piper <[email protected]> wrote:
Robert Patrick <[email protected]> writes:
Of course Andy really meant to say weblogic.jar since there is no
weblogicaux.jar
file
in WLS 6.xOf course I did ;-)
andy
--Ok, I guess I'm a little confused now. You say task, which I'm assumingyou mean
would be in the taskdef package of 'ant' which is included in the weblogic.jar
file. I looked through the weblogic.jar file and never found any'task' which
is called 'createidl'.
I'm I confused or missing something?
Thanks again for your help!
Sean -
[J2EE:160167] uses ejb-links but no EJB modules
Dear All
Seeking support/assistance to resolve the below problem. I'm using laster Jdeveloper 11g software publish in 2011.
weblogic.deployment.EnvironmentException: [J2EE:160167]The module abc-ViewController-context-root in application abc_Project1_abc uses ejb-links but no EJB modules were found for this application
Please provide guidelines why this appears and how to resolve it.
Best Regards
Shahebaz ShaikhThe module abc-ViewController-context-root in application abc_Project1_abc uses ejb-links but no EJB modules were found for this application
Is the application deployed as an EAR application with web and ejb modules? If not, deploy as an EAR application. -
Hi,all . From the document ,i had confused about the following .
Automatic Undo Management in Oracle RAC
url >> http://docs.oracle.com/cd/B19306_01/rac.102/b28759/adminrac.htm#CHDGAIFJ
Oracle automatically manages undo segments within a specific undo tablespace that is assigned to an instance. Only the instance assigned to the undo tablespace can modify the contents of that tablespace. However, each instance can read the undo data blocks created by any instance. Also, when performing transaction recovery, any instance can update any undo tablespace, as long as that undo tablespace is not currently being used by another instance for undo generation or transaction recovery
what's the meaning of above that is bold ?Say you're running a 2-node RAC and node 2 dies. The services which were running on node 2 now get re-located to node 1. It is then possible that node 1 will perform transaction rollback/recovery and, when it does so, it will need to be able to read from node 2's undo tablespace (and maybe update the undo segment headers in node 2's undo tablespace, too).
-
How this error is possible with the most simple EJB model example?
javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://127.0.0.1:7101: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:367)
at weblogic.jndi.Environment.getContext(Environment.java:315)
at weblogic.jndi.Environment.getContext(Environment.java:285)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at test.client.SessionEJBRemoteClient.getInitialContext(SessionEJBRemoteClient.java:259)
at test.client.SessionEJBRemoteClient.main(SessionEJBRemoteClient.java:34)
Caused by: java.net.ConnectException: t3://127.0.0.1:7101: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination
at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:352)
... 9 more
Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238)
at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:200)
... 12 more
Process exited with exit code 0.
can someone orient me on solving this error? i am making this example from oracle:
http://www.oracle.com/technology/obe/obe11jdev/ps1/ejb/ejb.html
thank you
Vaelyes it is!!! sorry i need to sleep.
do you know why now i am trying to exec the client and get this error?
javax.ejb.EJBException: EJB Exception: ; nested exception is:
java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection; nested exception is: java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at test.model.SessionEJB_qxt9um_SessionEJBRemoteImpl_1032_WLStub.getDescripcionextraFindAll(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
at $Proxy0.getDescripcionextraFindAll(Unknown Source)
at test.client.SessionEJBRemoteClient.main(SessionEJBRemoteClient.java:36)
Caused by: java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
the Model Project has got the MySQL jar library
Thank you! -
Stateless Session EJB Bean Example please
Dear Friends,
Develop a stateless session EJB bean and deploy it in WebLogic 8.1
Please proivde me a weblogic8.1 example along with the deployment steps.
Also mention the supporting softwares needed.
I have weblogic 8.1, JDK 1.5
Advance Thanks.
Rengaraj.RHi Rahul,
Please paste the files here if they are small in size.
IDfLoginInfo li = new DfLoginInfo(); //this is where the error occurs as when i remove this line. i dont get an error
Have you checked this as I have mentioned something regarding this in my mail?
Regards
Vicky -
Looking for BC4J EJB deployment example
Hi,
I am looking for an very simple example project for BC4J deployed as EJB, including table definition, BC4J source files, and EJB client source files. I have previously successfully deployed the BC4J to Oracle8i JVM and OC4J, but currently struck at how to write the client application. I would like to know how to call my own remote methods other than working with ViewObjects directly.
Help needed.
Regards,
Patrick.Maybe this will help:
In JServer, ejb inactivity timeout is controlled by property jbo.ejb.txntimeout which value is 60 (secs) by default.
JServer properties file is deployed as oracle/jbo/server/jboserver.properties, you can get it from jbomt.zip (you should create the same directory structure and a project, say jServerProps.jpr, containing the file).
Edit the file:
jbo.ejb.txntimeout=28800
jbo.ejb.txntype=local
, then deploy it as Classes and Java Stored Procedures to Oracle 8i.
To see effective values of jServer properties you have to set jbo.debugoutput=console in file oracle/jbo/common/Diagnostic.properties - from the same jbomt.zip.
It's better to include the file in the above jServerProps project and deploy at once with jboserver.properties.
null -
Errors compiling the example.rmi_iiop.ejb.generic_idl example
Hello,
I have WebLogic Server 6.0, jdk1.3, Inprise's Visibroker for C++ 4.0 all on Windows
NT.
I am following the steps on the examples\rmi_iiop\ejb\generic_idl\package-summary.html
page in my weblogic directory. The errors occur at step 3g of the section "Compile
the c++ stubs and client source file ".
The errors are output by the java compiler. They are:
C:\bea\wlserver6.0 samples\examples\rmi_iiop\ejb\generic_idl>CL /MD /DTHREAD /no
logo -DWIN32 /GX /DSTRICT /DALIGNED /DVISIBROKER /DMSVCUSING_BUG /DMSVCNESTEDUS
ING_BUG -Icpp -Ic:\Inprise\vbroker\include -Ic:\Inprise\vbroker\include\stubs -I
C:\bea\wlserver6.0\samples -c Trader_c.cpp TraderHome_c.cpp cpp\Client.cpp cpp\j
avax\ejb\EJBObject_c.cpp cpp\javax\ejb\EJBHome_c.cpp cpp\javax\ejb\RemoveEx_c.cp
p cpp\javax\ejb\RemoveException_c.cpp cpp\java\lang\_Object_c.cpp cpp\java\lang\
Exc.cpp cpp\java\lang\_Exception_c.cpp cpp\java\lang\Throwable_c.cpp cpp\java\
rmi\Remote_c.cpp cpp\java\io\PrintWriter_c.cpp cpp\java\io\PrintStream_c.cpp cpp
\java\io\Writer_c.cpp cpp\java\io\Serializable_c.cpp cpp\java\io\IOException_c.c
pp cpp\java\io\IOEx_c.cpp cpp\org\omg\boxedRMI\seq1_wchar_c.cpp
Trader_c.cpp
Trader_c.hh(15) : warning C4067: unexpected tokens following pragma directive -
expected a newline
cpp\javax/ejb/EJBObject_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\javax/ejb/EJBObject_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\javax/ejb/RemoveEx_c.hh(15) : warning C4067: unexpected tokens following pra
gma directive - expected a newline
cpp\javax/ejb/RemoveException_c.hh(15) : warning C4067: unexpected tokens follow
ing pragma directive - expected a newline
cpp\java/lang/_Exception_c.hh(15) : warning C4067: unexpected tokens following p
ragma directive - expected a newline
cpp\java/lang/Throwable_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/lang/Throwable_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/Writer_c.hh(15) : warning C4067: unexpected tokens following pragma
directive - expected a newline
cpp\java/io/Writer_c.hh(18) : warning C4067: unexpected tokens following pragma
directive - expected a newline
cpp\java/io/IOEx_c.hh(15) : warning C4067: unexpected tokens following pragma di
rective - expected a newline
cpp\java/io/IOException_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/IOException_c.hh(90) : error C2039: 'Exception' : is not a member of
'lang'
cpp\java/io/IOException_c.hh(90) : error C2504: 'Exception' : base class undefin
ed
cpp\java/io/IOException_c.hh(127) : error C2039: 'OBV_Exception' : is not a memb
er of 'lang'
cpp\java/io/IOException_c.hh(127) : error C2504: 'OBV_Exception' : base class un
defined
cpp\java/lang/Throwable_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(22) : fatal error C1083: Cannot open include file:
'org/omg/boxedRMI/seq1_octet_c.hh': No such file or directory
TraderHome_c.cpp
TraderHome_c.hh(15) : warning C4067: unexpected tokens following pragma directiv
e - expected a newline
C:\bea\wlserver6.0\samples\examples/rmi_iiop/ejb/generic_idl/Trader_c.hh(15) : w
arning C4067: unexpected tokens following pragma directive - expected a newline
cpp\javax/ejb/EJBObject_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\javax/ejb/EJBObject_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\javax/ejb/RemoveEx_c.hh(15) : warning C4067: unexpected tokens following pra
gma directive - expected a newline
cpp\javax/ejb/RemoveException_c.hh(15) : warning C4067: unexpected tokens follow
ing pragma directive - expected a newline
cpp\java/lang/_Exception_c.hh(15) : warning C4067: unexpected tokens following p
ragma directive - expected a newline
cpp\java/lang/Throwable_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/lang/Throwable_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/Writer_c.hh(15) : warning C4067: unexpected tokens following pragma
directive - expected a newline
cpp\java/io/Writer_c.hh(18) : warning C4067: unexpected tokens following pragma
directive - expected a newline
cpp\java/io/IOEx_c.hh(15) : warning C4067: unexpected tokens following pragma di
rective - expected a newline
cpp\java/io/IOException_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/IOException_c.hh(90) : error C2039: 'Exception' : is not a member of
'lang'
cpp\java/io/IOException_c.hh(90) : error C2504: 'Exception' : base class undefin
ed
cpp\java/io/IOException_c.hh(127) : error C2039: 'OBV_Exception' : is not a memb
er of 'lang'
cpp\java/io/IOException_c.hh(127) : error C2504: 'OBV_Exception' : base class un
defined
cpp\java/lang/Throwable_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(15) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(18) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(21) : warning C4067: unexpected tokens following pr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(22) : fatal error C1083: Cannot open include file:
'org/omg/boxedRMI/seq1_octet_c.hh': No such file or directory
Client.cpp
Have I misapplied some steps? Or, my env has not been set correctly?
Any help would be greatly appreciated.
Kevin WuThanks for your respond, Eduardo.
Could you explain me in more detail why the C++ code doesn't compile, and how the
new target in the make file can help us?
Thanks!
Eduardo Ceballos <[email protected]> wrote:
There's nothing wrong with what you've done. The C code just doesn't compile.
Grab WLS 6.0 SP1 when it is available (shortly). There is a new target in
the make file that narrows the IDL production by method signature.
Kevin Wu wrote:
Hello,
I have WebLogic Server 6.0, jdk1.3, Inprise's Visibroker for C++ 4.0 allon Windows
NT.
I am following the steps on the examples\rmi_iiop\ejb\generic_idl\package-summary.html
page in my weblogic directory. The errors occur at step 3g of the section"Compile
the c++ stubs and client source file ".
The errors are output by the java compiler. They are:
C:\bea\wlserver6.0 samples\examples\rmi_iiop\ejb\generic_idl>CL /MD /DTHREAD/no
logo -DWIN32 /GX /DSTRICT /DALIGNED /DVISIBROKER /DMSVCUSING_BUG /DMSVCNESTEDUS
ING_BUG -Icpp -Ic:\Inprise\vbroker\include -Ic:\Inprise\vbroker\include\stubs-I
C:\bea\wlserver6.0\samples -c Trader_c.cpp TraderHome_c.cpp cpp\Client.cppcpp\j
avax\ejb\EJBObject_c.cpp cpp\javax\ejb\EJBHome_c.cpp cpp\javax\ejb\RemoveEx_c.cp
p cpp\javax\ejb\RemoveException_c.cpp cpp\java\lang\_Object_c.cpp cpp\java\lang\
Exc.cpp cpp\java\lang\_Exception_c.cpp cpp\java\lang\Throwable_c.cppcpp\java\
rmi\Remote_c.cpp cpp\java\io\PrintWriter_c.cpp cpp\java\io\PrintStream_c.cppcpp
\java\io\Writer_c.cpp cpp\java\io\Serializable_c.cpp cpp\java\io\IOException_c.c
pp cpp\java\io\IOEx_c.cpp cpp\org\omg\boxedRMI\seq1_wchar_c.cpp
Trader_c.cpp
Trader_c.hh(15) : warning C4067: unexpected tokens following pragma directive-
expected a newline
cpp\javax/ejb/EJBObject_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\javax/ejb/EJBObject_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\javax/ejb/RemoveEx_c.hh(15) : warning C4067: unexpected tokens followingpra
gma directive - expected a newline
cpp\javax/ejb/RemoveException_c.hh(15) : warning C4067: unexpected tokensfollow
ing pragma directive - expected a newline
cpp\java/lang/_Exception_c.hh(15) : warning C4067: unexpected tokens followingp
ragma directive - expected a newline
cpp\java/lang/Throwable_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/lang/Throwable_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/Writer_c.hh(15) : warning C4067: unexpected tokens followingpragma
directive - expected a newline
cpp\java/io/Writer_c.hh(18) : warning C4067: unexpected tokens followingpragma
directive - expected a newline
cpp\java/io/IOEx_c.hh(15) : warning C4067: unexpected tokens followingpragma di
rective - expected a newline
cpp\java/io/IOException_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/IOException_c.hh(90) : error C2039: 'Exception' : is not amember of
'lang'
cpp\java/io/IOException_c.hh(90) : error C2504: 'Exception' : base classundefin
ed
cpp\java/io/IOException_c.hh(127) : error C2039: 'OBV_Exception' : isnot a memb
er of 'lang'
cpp\java/io/IOException_c.hh(127) : error C2504: 'OBV_Exception' : baseclass un
defined
cpp\java/lang/Throwable_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(22) : fatal error C1083: Cannot open includefile:
'org/omg/boxedRMI/seq1_octet_c.hh': No such file or directory
TraderHome_c.cpp
TraderHome_c.hh(15) : warning C4067: unexpected tokens following pragmadirectiv
e - expected a newline
C:\bea\wlserver6.0\samples\examples/rmi_iiop/ejb/generic_idl/Trader_c.hh(15): w
arning C4067: unexpected tokens following pragma directive - expecteda newline
cpp\javax/ejb/EJBObject_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\javax/ejb/EJBObject_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\javax/ejb/RemoveEx_c.hh(15) : warning C4067: unexpected tokens followingpra
gma directive - expected a newline
cpp\javax/ejb/RemoveException_c.hh(15) : warning C4067: unexpected tokensfollow
ing pragma directive - expected a newline
cpp\java/lang/_Exception_c.hh(15) : warning C4067: unexpected tokens followingp
ragma directive - expected a newline
cpp\java/lang/Throwable_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/lang/Throwable_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintWriter_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/Writer_c.hh(15) : warning C4067: unexpected tokens followingpragma
directive - expected a newline
cpp\java/io/Writer_c.hh(18) : warning C4067: unexpected tokens followingpragma
directive - expected a newline
cpp\java/io/IOEx_c.hh(15) : warning C4067: unexpected tokens followingpragma di
rective - expected a newline
cpp\java/io/IOException_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/IOException_c.hh(90) : error C2039: 'Exception' : is not amember of
'lang'
cpp\java/io/IOException_c.hh(90) : error C2504: 'Exception' : base classundefin
ed
cpp\java/io/IOException_c.hh(127) : error C2039: 'OBV_Exception' : isnot a memb
er of 'lang'
cpp\java/io/IOException_c.hh(127) : error C2504: 'OBV_Exception' : baseclass un
defined
cpp\java/lang/Throwable_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(15) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(18) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(21) : warning C4067: unexpected tokens followingpr
agma directive - expected a newline
cpp\java/io/PrintStream_c.hh(22) : fatal error C1083: Cannot open includefile:
'org/omg/boxedRMI/seq1_octet_c.hh': No such file or directory
Client.cpp
Have I misapplied some steps? Or, my env has not been set correctly?
Any help would be greatly appreciated.
Kevin Wu -
Can't deploy j2ee app with EJBs
Hi;
I have installed Web Logic and have successfully deployed a servlet based app
and a jsp based app. However, when I go to deploy an EJB based app (with servlets
& JSPs too), I get the following error:
####<Apr 2, 2004 5:06:03 PM MST> <Notice> <Security> <belle> <myserver> <main>
<<WLS Kernel>> <> <BEA-090082> <Security initializing using security realm myrealm.>
####<Apr 2, 2004 5:06:04 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
<main> <<WLS Kernel>> <> <BEA-000327> <Starting WebLogic Admin Server "myserver"
for domain "mydomain">
####<Apr 2, 2004 5:06:11 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
<ListenThread.Default> <<WLS Kernel>> <> <BEA-000355> <Thread "ListenThread.Default"
listening on port 7001, ip address *.*>
####<Apr 2, 2004 5:06:11 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
<main> <<WLS Kernel>> <> <BEA-000360> <Server started in RUNNING mode>
####<Apr 2, 2004 5:06:59 PM MST> <Warning> <Deployer> <belle> <myserver> <ExecuteThread:
'2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149004> <Failures
were detected while initiating Deploy task for application store.>
####<Apr 2, 2004 5:06:59 PM MST> <Error> <Deployer> <belle> <myserver> <ExecuteThread:
'2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149201> <Failed
to complete the deployment task with ID 0 for the application store.
java.lang.ArrayIndexOutOfBoundsException: 6
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:222)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:97)
at weblogic.ejb20.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:802)
at weblogic.ejb20.deployer.EJBModule.loadDescriptor(EJBModule.java:423)
at weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicationContainer.java:1359)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1184)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[java.lang.ArrayIndexOutOfBoundsException: 6]
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
any ideas?
thanks - daveHi;
I have installed Web Logic and have successfully deployed a servlet based app
and a jsp based app. However, when I go to deploy an EJB based app (with servlets
& JSPs too), I get the following error:
####<Apr 2, 2004 5:06:03 PM MST> <Notice> <Security> <belle> <myserver> <main>
<<WLS Kernel>> <> <BEA-090082> <Security initializing using security realm myrealm.>
####<Apr 2, 2004 5:06:04 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
<main> <<WLS Kernel>> <> <BEA-000327> <Starting WebLogic Admin Server "myserver"
for domain "mydomain">
####<Apr 2, 2004 5:06:11 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
<ListenThread.Default> <<WLS Kernel>> <> <BEA-000355> <Thread "ListenThread.Default"
listening on port 7001, ip address *.*>
####<Apr 2, 2004 5:06:11 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
<main> <<WLS Kernel>> <> <BEA-000360> <Server started in RUNNING mode>
####<Apr 2, 2004 5:06:59 PM MST> <Warning> <Deployer> <belle> <myserver> <ExecuteThread:
'2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149004> <Failures
were detected while initiating Deploy task for application store.>
####<Apr 2, 2004 5:06:59 PM MST> <Error> <Deployer> <belle> <myserver> <ExecuteThread:
'2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149201> <Failed
to complete the deployment task with ID 0 for the application store.
java.lang.ArrayIndexOutOfBoundsException: 6
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:222)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:97)
at weblogic.ejb20.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:802)
at weblogic.ejb20.deployer.EJBModule.loadDescriptor(EJBModule.java:423)
at weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicationContainer.java:1359)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1184)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[java.lang.ArrayIndexOutOfBoundsException: 6]
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
any ideas?
thanks - dave -
J2EE 1.5 - EJB 3.0
1. Will EJB 3.0 be a part of J2EE 1.5?
2. When we can wait relase version of EJB 3.0 specification?I wrote to Linda DeMichiel. She leads specifications of EJB 3.0:
Dear Artem,
We plan to release a Public Draft around the
end of June, and a Proposed Final Draft later
in 2005. EJB 3.0 will go Final when J2EE 5
does, in the first quarter of 2006.
Linda
Artem Golubev wrote:
Dear Linda DeMichiel,
We are to schedule our future project.
Could you, please, tell me when the release
version of EJB 3.0 is scheduled to be avaible?
Can I be sure that it will be avaible before Dec 2005?
sincerely yours,
Artem Golubev -
WebForms And Open MS Word Document EXAMPLE
Anybody who already got the sample code? Could you please share it to us :)
Well... the document apparently exists -- it is from a book by Jonathan Ingram.
I collected the email addresses from the first page and sent an email asking if anyone still had the document. I received one response and document, but it was a Word file, not a PDF, so I am not absolutely sure it is the same.
The document contains a link to the table of contents that lists a url that is unreachable, followed by: /BOOKS/High.Performance.Oracle.Database.Automation
A Google search turns up a book by that title, and Google has a cached view of the Table of contents. The book is:
High Performance Oracle Database Automation
Author: Jonathan Ingram
ISBN: 1576101525
1997
And looking a little more in Google, I found the html version of the PL/SQL Coding Standards, which is Appendix D of the book.
http://docs.online.bg/DB/Oracle_8_Automation/appendix-d.html
which is apparently stored in "Online Books Archive - Bulgaria Online".
It looks like I can buy the book on-line for $5 (USD).
So... JKestely, what do you suggest? -
JVM, J2SE & J2EE - Confused!
Hi,
I was reading specs somewhere on a java application. It says:
- Development: JDK� 1.3.1
- Deployment: JDK 1.1.8 or higher (JDK 1.3.1 recommended)
1) So does this mean that any J2SE 1.3.1 code you write will run on JDK 1.1.8 or above?
2) So could I code for J2SE 1.4 and have it run on basically any Application Server? (WebLogic, WebSphere, Oracle, etc.) ? Or do I have to decide between using J2SE 1.3 and J2SE 1.4 ?
I want to use J2SE 1.4 but am afraid that it might not run on some application servers.any J2SE 1.3.1 code you write will run on JDK 1.1.8 or aboveOf course generally speaking not (though it might hold for some well-defined environment like a given IDE). That is generally not even true for 1.2; it has for example the soft/weak references, the collections, swing etc. that are incompatible with java 1.1; 1.3 has besides the Proxy etc.
-
JavaEE5 tutorial ejb example not working!
I have downloaded latest javaee5 tutorial example and i downloaded latest netbeans 6.9 and tried to run ejb cart example but i am getting
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Caused by: java.lang.NoClassDefFoundError: cart/util/BookException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.glassfish.appclient.client.acc.FacadeLaunchable.getMainClass(FacadeLaunchable.java:256)
at org.glassfish.appclient.client.acc.AppClientContainer.setClient(AppClientContainer.java:317)
at org.glassfish.appclient.client.acc.AppClientContainerBuilder.createContainer(AppClientContainerBuilder.java:174)
at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:161)
at org.glassfish.appclient.client.AppClientFacade.createContainerForAppClientArchiveOrDir(AppClientFacade.java:458)
at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:420)
at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:256)
at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:75)
FATAL ERROR in native method: processing of -javaagent failed
... 6 more
Caused by: java.lang.ClassNotFoundException: cart.util.BookException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.glassfish.appclient.client.acc.ACCClassLoader.findClass(ACCClassLoader.java:211)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 16 more
Exception in thread "main" Java Result: 1
please help
Edited by: vinaysb on Sep 1, 2010 3:29 AMthere is not much help to give. Java already says what the problem is: the cart/util/BookException class is not on the application's classpath. That can indicate a missing library or bad deployment settings. Hard to say what it exactly is.
All I can say is: learn how a JEE application is properly packaged and deployed and with that knowledge try and figure out where the mistake is.
Maybe you are looking for
-
ITunes 7 hangs while trying to update Library
I installed 1Tunes 7 onto my Jukebox Mac - contains 16,450+ tracks, 90Gb. iiTunes hangs when trying to update the library. I keep all my actual music files on an external LaCie D2 160Gb drive. Even if I move the drive to a different Mac, and attempt
-
Regarding line feed in sap script
hi i had a long if statement. it is extending more than one line. IF ®UH-RZAWE& = '2' AND ( ®UH-LAUFI0(1)& EQ 'E' OR ®UH-LAUFI0(1)& EQ 'G' ) IF i use '=' Extended line the statement in that line is printing as it is. If i use '/:' this comm
-
My macbook crash, airport card turns off or both happens. I upgrade to lion that didn't help. Jun 4 15:18:43 jeffs-MacBook-Pro loginwindow[50]: Login Window - Returned from Security Agent Jun 4 15:18:44 jeffs-MacBook-Pro loginwindow[50]: USER_PROCESS
-
Change country of registration ID
Change country of registration ID, plse help
-
Needs to plot the values in x-axis linearly in obiee
Hello all, I am trying to plot the values in x-axis linearly . Actual it should be starting at -100,-50,0,50,100,150,200,250,300,350,400,450........ But now in my graph it is showing -100,-50,-25,-10,-1,+1,+25,+50,+100,+150.. Can you please suggest m