Error acccessing local EJB on Linux with wls8.1
All,
I am getting the following error on Linux, when a client invokes a Home method
of an EJB(TSleeProxyHome.login()). The Home method in turn invokes a CMP finder
method on another locally deployed EJBs Home (TSleeUserHome.findByUserName())which
fails.
The same code works on Windows 2000.
Details of (RedHat) Linux:
Linux tci9 2.4.20-6 #1 Thu Feb 27 10:01:19 EST 2003 i686 athlon i386 GNU/Linux
Any help is most welcome.
Thanks!
TEST ERROR: !!!!!!!!
java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.IllegalArgumentException
java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.IllegalArgumentException
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
at com.truetel.slee.ejb.proxy.TSleeProxy_4lhn0b_HomeImpl_811_WLStub.login(Unknown
Source)
at com.truetel.slee.util.SleeOamUtil.login(SleeOamUtil.java:597)
at com.truetel.slee.util.SleeOamUtil.login(SleeOamUtil.java:581)
at com.truetel.slee.util.SleeOamUtil.main(SleeOamUtil.java:78)
Caused by: java.lang.IllegalArgumentException
at sun.reflect.GeneratedConstructorAccessor273.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at weblogic.rmi.internal.OIDManager.makeActivatableServerReference(OIDManager.java:242)
at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:169)
at weblogic.rmi.utils.io.RemoteObjectReplacer.getReplacement(RemoteObjectReplacer.java:256)
at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceObject(RemoteObjectReplacer.java:96)
at weblogic.common.internal.WLObjectOutputStreamBase2.replaceObject(WLObjectOutputStreamBase2.java:43)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1020)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:78)
at weblogic.rmi.internal.ServerRequest.unmarshalReturn(ServerRequest.java:94)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
at com.truetel.slee.ejb.usrmgmt.TSleeUser_osajsz_HomeImpl_811_WLStub.findByUserName(Unknown
Source)
at com.truetel.slee.ejb.proxy.TSleeProxyBaseEJB.ejbHomeLogin(TSleeProxyBaseEJB.java:270)
at com.truetel.slee.ejb.proxy.TSleeProxyEJB.ejbHomeLogin(TSleeProxyEJB.java:67)
at com.truetel.slee.ejb.proxy.TSleeProxy_4lhn0b__WebLogic_CMP_RDBMS.ejbHomeLogin(TSleeProxy_4lhn0b__WebLogic_CMP_RDBMS.java:1409)
at com.truetel.slee.ejb.proxy.TSleeProxy_4lhn0b_HomeImpl.login(TSleeProxy_4lhn0b_HomeImpl.java:405)
at com.truetel.slee.ejb.proxy.TSleeProxy_4lhn0b_HomeImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:466)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:409)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:404)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> while installing ECC6 on SLES10 i sapinst can't do the "Start Instance Job". On sapinst log i can find:
> M -
C-STACK -
> (CTrcStack2+0x78)[0x6b7778]
> (CTrcStack+0xb)[0x6b7d7b]
> (DpTrcOnOff+0x432)[0x4dd632]
> /lib64/libpthread.so.0[0x2b3375bce140]
> M -
> I also tried to run startsap command and it worked - SAP started without any problems, but sapinst is still throwing the error.
The application halts in a very early state.
How does your /etc/sysctl.conf look like?
Is this SLES 10 without any service pack??
Markus
Similar Messages
-
Error when connecting PHP on linux with oracle9i
the error that presents/displays to me is the following one
Warning: ocilogon(): ociopen_server: Error while trying to retrieve text for error ORA-12154 in /var/www/html/oci8test.php on line 3
rethat 2.1 AS, PHP-3.4.3 y apache 1.3.28
HelpThe oracle error ORA-12154 is a "TNS:could not resolve service name" error. This is what I get when I type oerr ora 12154:
// *Action: Make the following checks and correct the error:
// - Verify that a TNSNAMES.ORA file exists and is in the proper
// place and accessible. See the operating system specific manual
// for details on the required name and location.
// - Check to see that the service name exists in one of the
// TNSNAMES.ORA files and add it if necessary.
// - Make sure there are no syntax errors anywhere in the file.
// Particularly look for unmatched parentheses or stray characters.
// Any error in a TNSNAMES.ORA file makes it unusable. See
// Chapter 4 in the SQL*Net V2 Administrator's Guide. If
// possible, regenerate the configuration files using the Oracle
// Network Manager.
Hope this helps. -
A problem determining the JNDI Name of a local EJB with WL 8.1
Hi,
I created a very simple local EJB and deployed it with Weblogic8.1. When I test
it in the Weblogic server admin page, I got the following message:
"The EJB MyLocal has not been tested successfully. There was a problem determining
the JNDI Name of the given bean."
Can anyone help figure out the problem?
Thanks
HenryDoes the ejb have a target server specified?
Does the Ejb have a Jndi binding as specified in the <local-jndi-name></local-jndi-name>
element of weblogic-ejb-jar.xml?
thanks,
Deepak
"Henry" <[email protected]> wrote:
>
>
Hi,
I created a very simple local EJB and deployed it with Weblogic8.1. When
I test
it in the Weblogic server admin page, I got the following message:
"The EJB MyLocal has not been tested successfully. There was a problem
determining
the JNDI Name of the given bean."
Can anyone help figure out the problem?
Thanks
Henry -
"Synchronize WF LOCAL tables" has completed with error.
Hi Guys,
My FNDWFLSC program is failing with the below error:
ORA-12801: error signaled in parallel query server P000
ORA-30022: Cannot create segments in undo tablespace
When I check the tablespace its named as "APPS_UNDOTS1" and there are 4 undo....dbf files are present and have enough empty space on this tablespace.
Thanks,No, error in database log file.
Below is the full content of the log file..........
Application Object Library: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
FNDWFLSC module: Synchronize WF LOCAL tables
Current system time is 03-JUN-2013 23:34:11
**Starts**03-JUN-2013 23:34:11
**Ends**03-JUN-2013 23:34:12
ORA-12801: error signaled in parallel query server P000
ORA-30022: Cannot create segments in undo tablespace
Start of log messages from FND_FILE
End of log messages from FND_FILE
Successfully resubmitted concurrent program FNDWFLSC with request ID 19632231 to start at 04-JUN-2013 23:34:00 (ROUTINE=AFPSRS)
Executing request completion options...
Finished executing request completion options.
Exceptions posted by this request:
Concurrent Request for "Synchronize WF LOCAL tables" has completed with error.
Concurrent request completed
Current system time is 03-JUN-2013 23:34:13
--------------------------------------------------------------------------- -
Error in Workflow Services API acquireTask when using local EJB protocol
Hi,
I have a stateful EJB which calls the workflow services API acquireTask to acquire a task. The task was retrieved using a queryTask API call. However, the acquireTask API fails with an exception at TaskServiceLocalClient.java:1152, as listed below in the log, with no clear message as to why it had failed.
The stateful EJB calls to workflow API using the local EJB protocol.
The version of SOA suite running is 10.1.3.1 with Oracle XE 10.2.0.1 as its dehydration store on Windows XP Professional version 2002.
Just wondering if anyone has encountered this problem or know what might have caused this.
Exception trace is below:
/09/2007 09:23:31 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
WARNING: Exception returned by remote server: {0}
au.com.unico.server.BPELException
at oracle.bpel.services.workflow.task.client.TaskServiceLocalClient.acquireTask(TaskServiceLocalClient.java:1152)
at au.com.unico.server.WorkflowBean.acquireTask(Unknown Source)
at au.com.unico.server.WorkflowBean.fetchTask(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:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatefulSessionEJBObject.OC4J_invokeMethod(StatefulSessionEJBObject.java:844)
at Workflow_RemoteProxy_2ooecl0.fetchTask(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:585)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)Hi Nicolas,
It turned out I had the wrong version of "xml.jar" on the classpath. I have swapped the incorrect jar for a correct one and changed my code to use XMLUtil.createDocument(); and now everything runs smoothly.
Thank you very much for your helpful advice.
/emil -
Desktop Sync Error on Local Sync with Lotus Notes Address Book
Blackberry Desktop Manager - Ver 4.2.0.14
Lotus Notes - Ver 7.0 HF227
Blackberry Smartphone - Pearl 8100
Hi All,
I am a new Blackburry and Forum user and I have a Sync issue.
When I sync my Local Lotus Notes Address book, its stops part way through the sync saying "Unable to write application data record." and will not continue. I believe there is a record in my Address Book that has an error that the software cannot deal with, but as the records are not synced in alphabetical order I cannot work out which record is at fault.
Here is a copy of the last part of the Log file.
Create Target File:
ADD "Birtles"
ADD "Kinnear"
ADD "Hankin"
ADD "Thomas"
ADD "Flack"
ADD "Streek"
ADD "Rideout"
ADD "Allies"
ADD "Griffin"
ADD "Wood"
ADD "Mendelson"
ADD "Crabb2"
ADD "Jacob"
ADD "Hewson"
ADD "Carter"
ADD "Bowe"
ADD "Ralph"
ADD "Matha"
ADD "Templar"
ADD "Crabb"
ADD "Stroud"
ADD "Sturrock"
ADD "Hastings"
ADD "Wife"
ADD "Rumble"
ADD "Wellington"
ADD "Crapper"
ADD "Phillips"
ADD "Dodsworth"
ADD "Guess"
ADD "Fotheringham"
ADD "Powell"
ADD "Blackburn"
ADD "Surbuts"
ADD "Ciccone"
ADD "Versallion"
ADD "Moore"
ADD "Clapson"
ADD "Turner"
ADD "Briody"
ADD "Harries"
ADD "McCluskey"
ADD "Curran"
ADD "Allman"
ADD "Piatek"
ADD "Dentist"
ADD "Bank2"
ADD "Credit Card"
ADD "Stanley"
ADD "Swan"
ADD "Hooper"
ADD "Bolden"
ADD "Burch"
ADD "Card Protection Plan"
ADD "Bank1"
ADD "Hair"
ADD "Back"
ADD "McGrath2"
ADD "Brother"
ADD "Bowe2"
ADD "Bramley"
ADD "Wren"
ADD "Cherrington"
ADD "Crabb3"
ADD "Cissell"
ADD "Doctor"
ADD "Harrison"
ADD "Daly"
ADD "Siverns"
ADD "Fisher2"
ADD "Field"
ADD "Bartholomew"
ADD "Holdcroft"
ADD "Howe"
ADD "Mills2"
ADD "Morris"
ADD "Potter"
ADD "Playfoot"
ADD "Saunders"
ADD "Sellins"
ADD "Turner2"
ADD "Sellins2"
ADD "Walters"
ADD "Simmerson"
ADD "Warlow"
ADD "Luxford"
ADD "Sansum"
ADD "Mills3"
ADD "Mills"
ADD "Garnham"
ADD "Goodyear"
ADD "Tele meeting"
ADD "U.S. HelpCenter"
ADD "Viotto"
ADD "Bank4"
ADD "Hotel2"
ADD "Travel Insurance"
ADD "Astur"
ADD "Little Cottage"
ADD "Insurance"
ADD "Harding"
ADD "Dorday"
ADD "Bates"
ADD "Opticians"
ADD "Shannon"
ADD "Traffic"
ADD "Voice mail"
ADD "Summers"
ADD "Cunningham"
ADD "Burgess"
ADD "Cooper"
ADD "Green"
ADD "Lobley"
ADD "O'Neill"
ADD "Lee"
ADD "Hannum"
ADD "Creamer"
ADD "Robinson"
ADD "199 help desk"
ADD "Low"
ADD "Wills"
ADD "Neagus"
ADD "Cook"
ADD "Briody2"
ADD "Fisher"
ADD "Smith2"
ADD "Hill"
ADD "Nuth"
ADD "Leverett"
ADD "Taxi"
ADD "Reclaim Yard"
ADD "Harland"
ADD "McGrath"
ADD "Cester"
ADD "Chasmar"
ADD "Hamblin"
ADD "Sheard"
ADD "Steele"
ADD "Street"
ADD "Hotel"
ADD "Wodcke"
ADD "Briody3"
ADD "Dulwich"
ADD "Sellins3"
ADD "Cpw"
ADD "Allen"
ADD "Taylor"
ADD "Toomey"
ADD "Duffin"
ADD "Bank3"
ADD "McClymont"
ADD "Stooke"
IGNORE "<Unspecified>"
Total Target Records: 153
Field mapping used for translation:
Lotus Notes Handheld
Title --------------------------- Salutation
Last name ----------------------- Last Name
First name ---------------------- First Name
Middle name --------------------- Middle Name
Company ------------------------- Company Name
Job title ----------------------- Title
Comment ------------------------- Notes
Categories ---------------------- Categories
Spouse -------------------------- User Defined 2
Children ------------------------ User Defined 1
Office phone -------------------- Work Phone
Office fax ---------------------- Fax
Cell phone ---------------------- Mobile Phone
Pager --------------------------- Work Phone 2
Home phone ---------------------- Home Phone
Email address ------------------- Internet Address1
Web page ------------------------ Web Address
Bus Street Line 1 --------------- Address1
Bus Street Line 2 --------------- Address2
Bus Street Line 3 --------------- Address3
Business City ------------------- City
Business State ------------------ State/Prov
Business Zip -------------------- Zip/Postal Code
Business Country ---------------- Country
Home Street Line 1 -------------- Home Address1
Home Street Line 2 -------------- Home Address2
Home Street Line 3 -------------- Home Address3
Home City ----------------------- Home City
Home State ---------------------- Home State/Prov
Home Zip ------------------------ Home Zip/Postal Code
Home Country -------------------- Home Country
Unable to write application data record.
Translation Canceled!
Has anyone encounteretd this problem and if so how did you diagnose which record is at fault?
any help greatfully received.
Cheers Robertopc suite only allows sync to local pc, not server. think that it has something to do with memory...
the steps are quite straight forward though. just go to pc suite sync, click settings, then new config/ settings & follow the the steps... -
Probmel with Local EJB JNDI Binding
Hi friends,
I am using jboss server. I need to deployee one session bean and one entity bean. and I have done it. but it show me jndi binding like this
[BaseLocalProxyFactory] Bound EJB LocalHome 'BookBean' to jndi 'local/BookBean@18722656'
[BaseLocalProxyFactory] Bound EJB LocalHome 'BookFacadeBean' to jndi 'local/BookFacadeBean@9668715'
but it should be bind jndi bninding like this
[BaseLocalProxyFactory] Bound EJB LocalHome 'BookBean' to jndi 'BookBean'
[BaseLocalProxyFactory] Bound EJB LocalHome 'BookFacadeBean' to jndi 'BookFacadeBean'
I don't understand where I am comminting mistake. I am giving ejb-jar.xml mapping below.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<description>BookEJB</description>
<display-name>BookEJB</display-name>
<enterprise-beans>
<session>
<display-name>BookFacade</display-name>
<ejb-name>BookFacadeBean</ejb-name>
<local-home>com.ejb.book.service.BookFacadeHome</local-home>
<local>com.ejb.book.service.BookFacadeLocal</local>
<ejb-class>com.ejb.book.service.BookFacadeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<entity>
<description>EntityBean</description>
<display-name>BookEntity</display-name>
<ejb-name>BookBean</ejb-name>
<local-home>com.ejb.book.persistence.BookLocalHome</local-home>
<local>com.ejb.book.persistence.BookLocal</local>
<ejb-class>com.ejb.book.persistence.BookLocalBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>false</reentrant>
<abstract-schema-name>book</abstract-schema-name>
<cmp-field>
<field-name>bookID</field-name>
</cmp-field>
<cmp-field>
<field-name>bookName</field-name>
</cmp-field>
<cmp-field>
<field-name>bookAuthor</field-name>
</cmp-field>
<cmp-field>
<field-name>bookVersion</field-name>
</cmp-field>
<cmp-field>
<field-name>bookPrice</field-name>
</cmp-field>
<primkey-field>bookID</primkey-field>
<query>
<description>Query By All</description>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>SELECT OBJECT(u) FROM book AS u </ejb-ql>
</query>
<query>
<description>Query for findByBookName</description>
<query-method>
<method-name>findByPrimaryKey</method-name>
<method-params>
<method-param>java.lang.Integer</method-param>
</method-params>
</query-method>
<ejb-ql>SELECT OBJECT(u) FROM book AS u WHERE u.bookID=?1</ejb-ql>
</query>
<query>
<description>Query for findByBookName</description>
<query-method>
<method-name>findByBookName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>SELECT OBJECT(u) FROM book AS u WHERE u.bookName=?1</ejb-ql>
</query>
<query>
<description>Query for findByBookAuthor</description>
<query-method>
<method-name>findByBookAuthor</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>SELECT OBJECT(u) FROM book AS u WHERE u.bookAuthor=?1</ejb-ql>
</query>
<query>
<description>Query for findByBookVersion</description>
<query-method>
<method-name>findByBookVersion</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>SELECT OBJECT(u) FROM book AS u WHERE u.bookVersion=?1</ejb-ql>
</query>
<query>
<description>Query for findByBookPrice</description>
<query-method>
<method-name>findByBookPrice</method-name>
<method-params>
<method-param>java.lang.Float</method-param>
</method-params>
</query-method>
<ejb-ql>SELECT OBJECT(u) FROM book AS u WHERE u.bookPrice=?1</ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>BookBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>BookFacadeBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
I appreciate if you reply me on [email protected].
Thanks in advance.
TumoDav (UmaShankar)Hi friend,
Thanks for replying me. But , I am unable to call this EJB by simple EJBClient (simple java file) when I am trying to call this ejb, then it show me this error :-
javax.naming.NameNotFoundException: BookFacadeBean not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(Unknown Source)
at EJBClient.EJBClient.BookEJBClient(EJBClient.java:45)
at EJBClient.EJBClient.main(EJBClient.java:30)
Here I am giving my ejb client.
package EJBClient;
import java.util.Iterator;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import com.ejb.book.service.BookFacadeBean;
import com.ejb.book.service.BookFacadeHome;
import com.ejb.book.service.BookFacadeLocal;
import com.ejb.book.vo.BookVo;
* @author UmaShankar
public class EJBClient {
* @param args
public static void main(String[] args) {
// TODO Auto-generated method stub
BookEJBClient();
public static void BookEJBClient(){
String providerURL = "jnp://localhost:1099";
String factoryName = "org.jnp.interfaces.NamingContextFactory"; //org.jnp.interfaces.NamingContextFactory
String factoryPkgs = "org.jboss.naming:org.jnp.interfaces";
Properties prop = System.getProperties();
prop.put("Context.PROVIDER_URL", providerURL);
prop.put("java.naming.provider.url", providerURL);
prop.put("java.naming.factory.initial", factoryName);
prop.put("java.naming.factory.url.pkgs", factoryPkgs);
try{
Context ctx = new InitialContext(prop);
Object obj = ctx.lookup("BookFacadeBean");
BookFacadeHome home = (BookFacadeHome)PortableRemoteObject.narrow(obj, BookFacadeHome.class);
BookFacadeLocal local = home.create();
//java.util.Hashtable allD = local.getBookName();
System.out.println("-------------Start-------------------");
System.out.println("BookName:-"+local.getBookName());
System.out.println("BookAuthor:-"+local.getBookAuthor());
if(allD.isEmpty()){
System.out.println("There is no record. Empty Hash");
java.util.Set set = allD.keySet();
for(Iterator it = set.iterator();it.hasNext();System.out.println("-----------------------------")){
Integer key = (Integer)it.next();
BookVo vo = (BookVo)allD.get(key);
System.out.println(vo.getBookId());
System.out.println(vo.getBookName());
System.out.println(vo.getBookAuthor());
System.out.println(vo.getBookVersion());
System.out.println(vo.getBookPrive());
}catch(Exception e){
e.printStackTrace();
} -
[EJB:011055]Error deploying the EJB with error that JNDI name already inuse
Hi,
I have written a trivial application consisting of 4 stateless beans and 1 MDB. The ear is developed from some code generator tool and works fine if I directly deploy on weblogic server 812.
But in order to learn Weblogic Workshop I created new Application and EJB project. Then I imported the EJB jar and provided other source files.
From Weblogic Workshop I could generate the ear successfully. But while trying to deploy the ear I get the following exception :
<16/03/2005 10:02:38 PM GMT+05:30> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 1 for the application hsbc.
weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: prepare failed for MCAppBEAN.jar
Module: MCAppBEAN.jar Error: Exception preparing module: EJBModule(MCAppBEAN.jar,status=NEW)
Unable to deploy EJB: StatelessBean from MCAppBEAN.jar:
<b>[EJB:011055]Error deploying the EJB 'StatelessBean(Application: hsbc, EJBComponent: MCAppBEAN.jar)', the JNDI name 'StatelessBeanHSBC' is already in use. You mu
st set a different JNDI name in the weblogic-ejb-jar.xml deployment descriptor for this EJB before it can be deployed.</b> at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2556)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
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: ------------------
<b>Can someone tell where have I made the mistake?</b>
thanks in advance.Try to undeploy and un target the applcation via WLS console and they try to deploy it again. Or just try to redeploy it.
-
Oracle10g Installation problem on Linux with DHCP IP
Hi,
I am new to Oracle Products, I have tried to install Oracle 10G on Linux with DHCP IP.
I got the following warning while installing even though I have loopback interface configured.
Checking Network Configuration requirements ...
Check complete. The overall result of this check is: Failed <<<<
Problem: The install has detected that the primary IP address of the system is DHCP-assigned.
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly. See the Installation Guide for more details on installing the software on systems configured with DHCP.
Please help me in resolving this problem or Can I ignore this message?
My Server Configurations:
[root@SQAESMRH5 Oracle_Install_Errors]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:12:3F:79:FA:2C
inet addr:10.10.121.61 Bcast:10.10.121.2 Mask:255.255.255.0
inet6 addr: fe80::212:3fff:fe79:fa2c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20751998 errors:0 dropped:0 overruns:0 frame:0
TX packets:19278549 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2150795393 (2.0 GiB) TX bytes:438232502 (417.9 MiB)
Interrupt:177
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12383146 errors:0 dropped:0 overruns:0 frame:0
TX packets:12383146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1965045834 (1.8 GiB) TX bytes:1965045834 (1.8 GiB)
[root@SQAESMRH5 Oracle_Install_Errors]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#::1 localhost6.localdomain6 localhost6
127.0.0.1 localhost.localdomain localhost
#::1 localhost6.localdomain6 localhost6
[root@SQAESMRH5 Oracle_Install_Errors]#This warning means it is not recommended to install Oracle 10g on a DHCP assigned IP address. It could work, but you won't be able to configure Enterprise Manager, since this tool requires a fixed IP address. If possible, have the IP address fixed.
~ Madrid
http://hrivera99.blogspot.com/ -
Unable to find Local Ejb home in websphere 6.0
Its really anoying as am unable to guess . I am invoking an EJB locally using code as below . The Ejb works fine while testing with UniversalTestClient However when i try to invoke it from my Client it gives jndi error.
Am using RAD 6.0 IDE and WebSphere6.0 and Ejb 2.1
I tried calling ejb providing different jndi names as below but it doesn't work .
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put (Context.PROVIDER_URL, "corbaloc:iiop:localhost:2809/");
try{
InitialContext icontext = new InitialContext(env);
// Object result = icontext.lookup("local:ejb/DefaultSession");
// Object result = icontext.lookup("D7VRC491Node01Cell/nodes/D7VRC491Node01/servers/server1/TestEj b/ejb/com/test/ejbs/DefaultSessionLocalHome");
// Object result = icontext.lookup("local:ejb/ejb/com/test/ejbs/DefaultSessionLocalHome");
Object result = icontext.lookup("ejb/com/dhsmv/ejbs/DefaultSessionLocalHome");
DefaultSessionLocalHome localHome = (DefaultSessionLocalHome) result;
DefaultSessionLocal localSession = (DefaultSessionLocal) localHome.create();
String strTest = localSession.welcome(" Hello World ");
System.out.println(" Retrieved ejb method ..." + strTest);
I get an exception that first component of jndi name is not available. Please suggets where is the problem hiding. Is there any thing wrong with jndi name .
Thanks.The CORBA error could suggest your bootstrap port is already being used by another process. Try changing it to something else.
Assuming your webconsole works - its something like this (although off the top of my head can't be sure...)
Select servers from the menu on the left, then select, your server.
From the newly loaded page, on the right hand side, you should see a link called "Ports". Modify your bootstrap port, usual value is 2809.
How does that work? -
Using ADS local server on Linux
Hi,
I am using Centos 6.4 and I've installed unixODBC and downloaded and installed the Sybase Advantage ODBC driver for Linux version 11.1. I unpacked and installed the driver (using setup.pl).
I created the following /etc/odbc.ini
; odbc.ini
[ODBC Data Sources]
Odie = Advantage ODBC Driver
[Odie]
Driver=/usr/lib64/libadsodbc.so
DataDirectory=/usr/src
Description=Advantage ODBC driver
DefaultType=FoxPro
ServerTypes=1
I'm trying to access FoxPro DBF files, and I'm wanting to use the Advantage Local Server to do so. I copied a FoxPro free table called test.dbf to /usr/src. The file /usr/lib64/libadsloc.so exists in the same folder as /usr/lib64/libadsodb.so. Then from the command prompt, I ran --
isql Odie -v
And I got the following error --
[root@linuxmysql2 adsodbc-11.10.0.1]# isql Odie -v
[S1000][unixODBC][iAnywhere Solutions][Advantage SQL][ASA] Error 6060: Advantage Database Server not available on specified server. axServerConnect
[ISQL]ERROR: Could not SQLConnect
I understand that the Advantage Local Server for Linux is not a daemon, so there's nothing that's supposed to be running. Given that I configured "ServerTypes=1" and the libadsloc.so file appears to be in the correct place, so I'm sure I'm doing something wrong, but I'm not quite sure what.
Suggestions?
UPDATE :
Upon further investigation, I've figured out how to get past that particular error by creating an /etc/ads.ini and putting in the following --
[SETTINGS]
ADS_SERVER_TYPE=1
But now I'm getting the message I've copied below when trying to run "select * from test". /usr/src/test.dbf exists and is chmod 777 just to simplify things. As you can see in my ODBC setup above, my data directory is /usr/src. This is a free table, and no FoxPro database exists, nor does an Advantage database exist. The same thing works fine on my Windows box.
SQL> select * from test
[S1000][unixODBC][iAnywhere Solutions][Advantage SQL][ASA] Error 7200: AQE Error: State = HY000; NativeError = 5004; [iAnywhere Solutions][Advantage SQL][ASA] Error 5004: Either ACE could not find the specified file, or you do not have sufficient rights to access the file. //linuxmysql2/usr/src/test.adt Table name: test
[ISQL]ERROR: Could not SQLPrepare
UPDATE 2:
I tried specifically indicating the full file name (including .dbf at the end) and I got the following error --
SQL> select * from [test.dbf]
[S1000][unixODBC][iAnywhere Solutions][Advantage SQL][ASA] Error 7200: AQE Error: State = HY000; NativeError = 7016; [iAnywhere Solutions][Advantage SQL][ASA] Error 7016: Corrupt table. Make sure you are not attempting to open a DBF with an ADT table type or vice versa. //linuxmysql2/usr/src/test.dbf Table name: test.dbf
[ISQL]ERROR: Could not SQLPrepare
I've specified the default table type in odbc.ini, but it looks like that may be getting ignored. If I don't specify the table extension, it complains that test.adt doesn't exist. If I do, then it complains that I'm trying to open a DBF as an ADT table, even though I've specified that I want to be opening DBFs.Hi,
I believe that we may have answered this on the Q&A forum. If I recall correctly, you placed the odbc.ini in your local home directory as .odbc.ini and this seemed to resolve the issues.
Edgar -
Hi.
This is my configuration
Red Hat Linux 6.2 kernel 2.2.14-6
512 Mb Ram
Bea Weblogic Server 5.1 Service Pack 9
It runs fine with jdk 1.2.2; but when I try it with 1.3.1 I get this error (please
see below)
This is my installation secuence
1. Downloaded jdk 1.3.1 tarball for linux from www.java.sun.com & installed according
with instrucctions.
2. changed JAVA_HOME from /usr/lib/jre1.2.2/ to /usr/lib/jdk1.3.1/ in the startWebLogic
script
trying it I get:
"Green threads support not available
Could not create the Java virtual machine."
3. changed JAVA_OPTIONS from -green to -native
After that i got the error subject of this message (please see below)
I have searched this newsgroup for a similar post but found an unsolved message
on april 12, 2001.
Any ideas?
Thanks in advance
Sergio Ríos
Ps: this is my error
Thu May 24 15:51:13 CDT 2001:<I> <ListenThread> Listening on port: 90
Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> System has file descriptor
limits of - soft: '1024', hard: '1024'
Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> Using effective file
descriptor limit of: '1024' open sockets/files.
Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> Allocating: '3' POSIX
reader threads
Thu May 24 15:51:13 CDT 2001:<A> <SSLListenThread> ListenThread.run() failed:
java.lang.UnsatisfiedLinkError: /usr/local/weblogic/lib/linux/libweblogicunix1.so:
/usr/local/weblogic/lib/linux/libweblogicunix1.so: undefined symbol: makeCString
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at weblogic.platform.Unix.<init>(Unix.java:14)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at weblogic.platform.OperatingSystem.getOS(OperatingSystem.java:81)
at weblogic.t3.srvr.T3Srvr$1.run(T3Srvr.java:1160)
at weblogic.t3.srvr.Callback.done(Callback.java:37)
at weblogic.t3.srvr.SSLListenThread.newServerSocket(SSLListenThread.java:474)
at weblogic.t3.srvr.ListenThread.run(ListenThread.java:254)
Thu May 24 15:51:13 CDT 2001:<!> <SSLListenThread> **** The WebLogic Server is
no longer listening for connections.
Thu May 24 15:51:13 CDT 2001:<!> <SSLListenThread> **** You should probably restart
it.
Thu May 24 15:51:13 CDT 2001:<I> <WebLogicServer> Server shutdown by system
Thu May 24 15:52:14 CDT 2001:<I> <WebLogicServer> WebLogic Server started
Thu May 24 15:52:14 CDT 2001:<I> <WebLogicServer> Server shutdown commencing NOW
Thu May 24 15:52:15 CDT 2001:<I> <HTTP> Destroying servlets in default servlet
context.
Thu May 24 15:52:15 CDT 2001:<I> <WebLogicServer> Requesting thread shutdown
Thu May 24 15:52:15 CDT 2001:<I> <SSLListenThread> Shutting down Thread[SSLListenThread,5,]
Thu May 24 15:52:15 CDT 2001:<I> <ListenThread> Shutting down Thread[ListenThread,5,WebLogicServer]
Thu May 24 15:52:15 CDT 2001:<I> <WebLogicServer> Waiting: '20' seconds for threads
to complete shutdown
Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Invoking garbage collection
Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: Before free/total=62768288/66846720
(93%)
Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: After free/total=64551016/66846720
(96%)
Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Invoking garbage collection
Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: Before free/total=64544984/66846720
(96%)
Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: After free/total=64550992/66846720
(96%)
Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Shutting down execute threads
Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Shutdown completedThanks because JDK 1.3 is not supported with WLS 5.1. See:
http://www.weblogic.com/platforms/index.html
However, WLS 6.0 supports JDK 1.3 since the JDK is already bundled with WLS
6.0.
Sergio Ríos wrote:
>
Hi.
This is my configuration
Red Hat Linux 6.2 kernel 2.2.14-6
512 Mb Ram
Bea Weblogic Server 5.1 Service Pack 9
It runs fine with jdk 1.2.2; but when I try it with 1.3.1 I get this error
(please see below)
This is my installation secuence
1. Downloaded jdk 1.3.1 tarball for linux from www.java.sun.com &
installed according with instrucctions.
2. changed JAVA_HOME from /usr/lib/jre1.2.2/ to /usr/lib/jdk1.3.1/ in the
startWebLogic script
trying it I get:
"Green threads support not available
Could not create the Java virtual machine."
3. changed JAVA_OPTIONS from -green to -native
After that i got the error subject of this message (please see below)
I have searched this newsgroup for a similar post but found an unsolved
message on april 12, 2001.
Any ideas?
Thanks in advance
Sergio Ríos
Ps: this is my error
Thu May 24 15:51:13 CDT 2001:<I> <ListenThread> Listening on port: 90
Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> System has file
descriptor limits of - soft: '1024', hard: '1024'
Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> Using effective
file descriptor limit of: '1024' open sockets/files.
Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> Allocating: '3'
POSIX reader threads
Thu May 24 15:51:13 CDT 2001:<A> <SSLListenThread> ListenThread.run()
failed:
java.lang.UnsatisfiedLinkError:
/usr/local/weblogic/lib/linux/libweblogicunix1.so:
/usr/local/weblogic/lib/linux/libweblogicunix1.so: undefined symbol:
makeCString
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at weblogic.platform.Unix.<init>(Unix.java:14)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
weblogic.platform.OperatingSystem.getOS(OperatingSystem.java:81)
at weblogic.t3.srvr.T3Srvr$1.run(T3Srvr.java:1160) at
weblogic.t3.srvr.Callback.done(Callback.java:37) at
weblogic.t3.srvr.SSLListenThread.newServerSocket(SSLListenThread.java:474)
at weblogic.t3.srvr.ListenThread.run(ListenThread.java:254)
Thu May 24 15:51:13 CDT 2001:<!> <SSLListenThread> **** The WebLogic
Server is no longer listening for connections.
Thu May 24 15:51:13 CDT 2001:<!> <SSLListenThread> **** You should
probably restart it.
Thu May 24 15:51:13 CDT 2001:<I> <WebLogicServer> Server shutdown by
system Thu May 24 15:52:14 CDT 2001:<I> <WebLogicServer> WebLogic Server
started Thu May 24 15:52:14 CDT 2001:<I> <WebLogicServer> Server shutdown
commencing NOW Thu May 24 15:52:15 CDT 2001:<I> <HTTP> Destroying servlets
in default servlet context.
Thu May 24 15:52:15 CDT 2001:<I> <WebLogicServer> Requesting thread
shutdown Thu May 24 15:52:15 CDT 2001:<I> <SSLListenThread> Shutting down
Thread[SSLListenThread,5,] Thu May 24 15:52:15 CDT 2001:<I> <ListenThread>
Shutting down Thread[ListenThread,5,WebLogicServer] Thu May 24 15:52:15
CDT 2001:<I> <WebLogicServer> Waiting: '20' seconds for threads to
complete shutdown Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer>
Invoking garbage collection Thu May 24 15:52:35 CDT 2001:<I> <GC> GC:
Before free/total=62768288/66846720 (93%)
Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: After
free/total=64551016/66846720 (96%)
Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Invoking garbage
collection Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: Before
free/total=64544984/66846720 (96%)
Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: After
free/total=64550992/66846720 (96%)
Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Shutting down execute
threads Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Shutdown
completed -
Error adding session EJBs set to a project
I have problem adding a set of session EJBs to my JSC2 project.
I have deployed an EJB module created with NetBeans 5.0 to Java Application Server 8 embedded in Creator 2 and I would add them to my JSF web application, but when I run the wizard inserting this data:
EJB Set Name: EjbModule1
Application Server: Sun Java System Application Server 8.1
Server Host: localhost
RMI-IIOP Port: 23700
Client jar: < the name of the deployed client EJB module >
and pressing "Next" to go to step 2 I get this error message:
"A java.lang.reflect.InvocationTargetException exception has occurred ..."
What is wrong ?
Can someone help me ? Thanks in advanceand pressing "Next" to go to step 2 I get this error
message:
"A java.lang.reflect.InvocationTargetException
exception has occurred ..."I once had this error message. Dongmei helped with this, he found that the problem was a Session bean without remote methods (local methods only). Make sure that all of your EJB Session Beans have remote methods.
Anyway the full error log will be good starting point.
Best regards
Antonio. -
What are the necessary elements in ejb-jar.xml with CMP entity bean
What are the necessary elements in ejb-jar.xml with CMP entity bean
Actually i am using webligic 8.1 and while deployment getting the error that
some elements r missing
Thanks
Anand PritamAccording to the ejb-jar.xml dtd ejb-name, ejb-class, persistence-type, prim-key-class, reentrant are the required elements for an entity bean.
<!ELEMENT entity (description?, display-name?, small-icon?,
large-icon?, ejb-name, home?, remote?, local-home?,
local?, ejb-class, persistence-type, prim-key-class,
reentrant, cmp-version?, abstract-schema-name?,
cmp-field*, primkey-field?, env-entry*, ejb-ref*,
ejb-local-ref*, security-role-ref*, security-identity?,
resource-ref*, resource-env-ref*, query*)> -
A Tip for using EJB 3.0 with WebLogic Ant Tasks
I started out writing this up as a problem, but then I found the answer so I'm, posting a tip instead.
When I tried to write an EJB [stateless] using EJB 3.0 in my legacy Weblogic ear project I started getting this error:
<pre>
No EJBs found in the ejb-jar file 'test'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
</pre>
This is why: wlcompile will put the class files in the App-Inf/classes directory unless it finds an ejb-jar.xml file in the META-INF directory for the module it is working on. With EJB 3.0, I wasn't using an ejb-jar.xml file because it was unnecessary. Later, Appc runs and it complains <b>because there are no classes module directory, they went into the shared ear folder instead.</b>
Here's I how it working again: Use javac [not wlcompile] to compile the EJB 3.0 module and make sure that the class files go into the correct module directory. Then you can use wlappc to generate all the associated files for the EJB. I have sucessfully deployed an ear file that uses both EJB 2.x and EJB 3.0 with this approach.
I wish Weblogic's own ejb3.0 sample application used their split directory deployment.
Good Luck.
John AronsonHi John,
I am working on development an enterprise application using EJB 3.0 on Weblogic 10.
While developing, I am keeping all my classes (from ejb's as well as web) into APP-INF/classes directory. It is working fine for Web and ejb 2.0 packages, but ejb 3.0 packages, I get the following error when I keep my ejb 3.0 beans classes in APP-INF/classes directory.
No EJBs found in the ejb-jar file 'customer'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
One solution is to keep the classes under customer ejb directory, but I wan tto keep all the classes in APP-INF/classes directory so that when using Eclipse IDE I can output all compiled sources into APP-INF/classes directory.
Has anyone faced this situation? Any suggestions to fix this issue?
Maybe you are looking for
-
Server app task list not showing up!
All of a sudden when I try connecting to my Macpro server locally using the Server app. I connect (no error msg's) but the dialog box with the setup boxes, views, task ..etc is not showing up. When I look at the view on menu bar all the features are
-
In SOP- transfer forecasted values from material master to info structure?
Hi All, I wanted to test out a few scenarios. Do you know the answers / can you help simulate and check the below? 1. If I run the forecast using different models for different materials using the total forecast run (MP38), the forecast values w
-
Adding a prefix to a file name if the prefix is not already there
I have a script that adds a prefix to a file name then moves the file from its source directory to a destination directory. The problem I am encountering is that if the destination directory is unavailable for any reason the file fails to move & so r
-
Volume structure failed error #2 techtool deluxe
Hello, can the volume structure be repaired if techtool deluxe cant repair it.I am having major issues here since the latest security update its taken me this long just to startup from TT disc
-
There are a number of very recent posts regarding a Facebook error "Facebook returned an unknown error 2001" when trying to dispaly or refresh the news feed. For about the past 18 hours I have been experiencing the same issue; other Facebook function