[JBoss-user] Problem in deploying BMP
Hi all, When i try to deploy BMP Ejb in JBoss/tomcat i am gettting name not found exception. can anybody pls tell me what are all the xml files needed to be specified in ejb.jar of BMP. Is JAWS.XML required for BMP? the exception i am getting is... [Container factory] javax.naming.NameNotFoundException: DefaultDS not bound[Container factory] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)[Container factory] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)[Container factory] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)[Container factory] at org.jnp.server.NamingServer.lookup(NamingServer.java:282)[Container factory] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)[Container factory] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)[Container factory] at javax.naming.InitialContext.lookup(InitialContext.java:350)[Container factory] at org.jboss.ejb.Container.setupEnvironment(Container.java:563)[Container factory] at org.jboss.ejb.Container.init(Container.java:356)[Container factory] at org.jboss.ejb.EntityContainer.init(EntityContainer.java:272)[Container factory] at org.jboss.ejb.Application.init(Application.java:202)[Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)[Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)[Container factory] at java.lang.reflect.Method.invoke(Native Method)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)[Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)[Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)[Container factory] at java.lang.reflect.Method.invoke(Native Method)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)[Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)[Container factory] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)[Container factory] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)[Container factory] at java.lang.reflect.Method.invoke(Native Method)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Container factory] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)[Container factory] at $Proxy0.start(Unknown Source)[Container factory] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)[Container factory] at java.lang.reflect.Method.invoke(Native Method)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Container factory] at org.jboss.Main.(Main.java:221)[Container factory] at org.jboss.Main$1.run(Main.java:127)[Container factory] at java.security.AccessController.doPrivileged(Native Method)[Container factory] at org.jboss.Main.main(Main.java:123)[Container factory] No resource manager found for ejb/Project[Container factory] End java:comp/env for EJB: ProjectBean[Container factory] JRMP 1.3 CI initialized[Container factory] Bound ProjectBean to Project[Bean Cache] Cache policy scheduler started[ContainerManagement] Initializing Thanks and advance, kiran.
[JBoss-user] unable to call CMP (HELP)
Hi, I have simple Jsp form where a user inputs some data and clicks ADD button on the form which intern calls another Jsp(cntrl.jsp) where i am invoking CMP. I have made a jar file (Remote, home and ejb with Meta-Inf containing ejb-jar.xml and jaws.xml) and a war file (all jsps with web-inf containing web.xml and jboss-web.xml files) Then I made an ear using the above two jar and war files and deployed it in deploy folder of Jboss. My problem is when I submit the first form after entering values, It is throwing exception saying ProjectHome.class not found. When I tried this by importing the bean package (com.mms.*) in my Jsp, It is saying.. Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPC:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\work\localhost_8080%2Fmms\_0002fadd_0005fproject_0005fctrl_0002ejspadd_0005fproject_0005fctrl_jsp_0.java:16: Package com.mms not found in import.import com.mms.*; ^PS: I have even tried by setting jar file to classpath variable. I am using JBoss-2.4.3_Tomcat-3.2.3 and my database is Oracle 8i. I have also attached my log file for reference. Can any one please suggest me how to solve this..and also let me know whether I need to create any virtual directory in tomcat for this application. ThanksKiran server.log Description: Binary data
[JBoss-user] How two write CMP using Oracle 8i
Hi, Thank you all for replying to my earliar mail (classpath problem), i solved it and able to compile java file successfully. now I need another help from youI am using Oracle 8i as my DB and JSP as my webcontent..i have configured my jboss.jcml for Oracle and is working fine. Can any one send me a simple CMP bean using Oracle.( i would like to know what are the xml files needed to write ). Thanks in advance Kiran.
[JBoss-user] Not able to compile JAVA file in JBoss
Hi All, I am newbie to Jboss Server. I have installed Jboss-2.4.3_tomcat-3.2.3 and able to run the server successfully. my problem is, I am not able to compile the following Java file. import javax.ejb.EJBObject;import java.rmi.RemoteException; public interface Project extends EJBObject { public void addProject() throws RemoteException; public String getProjectId() throws RemoteException; public String getProjectName() throws RemoteException; public void setProjectId(String projectId) throws RemoteException; public void setProjectName(String projectName) throws RemoteException; } when I complie the above source, I am getting the following errors : - Project.java:3: cannot resolve symbol symbol : class EJBObject locaton : package ejb import javax.ejb.EJBObject; Project.java:3: cannot resolve symbol symbol : class EJBObject locaton : interface Project public interface Project extends EJBObject { ^ 2 errors I have already set the Classpath and path variables as instructed in the Jboss Documentation, is there any thing extra needed to set to the Classpath/ path environment variables ?..please help me in this. Thanks in Advance, Kiran
[JBoss-user] Problem in connecting to Oracle 8i using JBoss/Tomcat
Hello All, Can any one tell me the procedure to to configure Oracle 8i ( ver is 8.1.5) on JBoss-2.4.3_tomcat-3.2.3. I have followed the procedure given in the documentation... The changes I made are:- 1. In the jboss.properties file I have added the following line jboss.xa.xidclass=oracle.jdbc.xa.OracleXid 2. In jboss.jcml file I have included the following script oracle.jdbc.driver.OracleDriver OracleDB org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl[JBoss 2.4] jdbc:oracle:thin:@192.168.1.5:1521:numbers scott tiger copied classes111_01.zip to lib/ext folder of Jboss.( my oracle8i version is 8.1.5even if if copy classes12.zip still not working.) Please let me know any thing more I need to do to create Connection Pool for Oracle 8i. Thanks in Advance -Kiran
[JBoss-user] How to deploy webclient in JBoss_Tomcat
Hello Everybody,I am new to Jboss tomcat server (JBoss-2.4.3_Tomcat3.2.3)...i hv just executed the given example in the documentation (ie.interest example). i am facing problems in executing webclient verstion of that..can u please tell me the deployment procedure, how to deploy a war/ear file in the server.I am very thank full to you if any one can help me in this...I am also strugling a lot to understand build.xml in the example..is there any easy way to understand how to use Ant (like writing build.xml, jaws.xml and ejb-jar.xml etc) ? Thanks in advanceKiran.