[JBoss Getting Started Documentation] - Re: Duke's Bank Application Problem
by bentabol
Hello again,
I tried what you told me but it didn't work. I must clarify that I'm working with a copy of the default server which I called "myconfig", as the tutorial says.
I tried to create the tables with the default server as well; again it builds successfully, but I get new errors:
[java] ScriptTool.init error: socket creation error
[java] java.sql.SQLException: socket creation error
[java] at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
[java] at org.hsqldb.jdbc.jdbcConnection.(Unknown Source)
[java] at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
[java] at org.hsqldb.jdbcDriver.connect(Unknown Source)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:52
[java] at java.sql.DriverManager.getConnection(DriverManager.java:17
[java] at org.hsqldb.util.ScriptTool.execute(Unknown Source)
[java] at org.hsqldb.util.ScriptTool.main(Unknown Source)
[java] Exception in thread "main" java.lang.NullPointerException
[java] at org.hsqldb.util.ScriptTool.execute(Unknown Source)
[java] at org.hsqldb.util.ScriptTool.main(Unknown Source)
[java] Java Result: 1
Any ideas about any of the two cases?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107082#4107082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107082
18 years, 8 months
[EJB 3.0] - ejb-jar.xml problem
by ravisoni1986
I am implementing my EJB's in 1.1 spec. and for ejb-jar.xml I am using
ejb3.0 namespace and schema. When I deployed my application on
jboss then it was not showing any Exception but my Entity bean was
not binding.
ejb-jar.xml
<?xml version='1.0' encoding='UTF-8'?>
| <ejb-jar id="ejb-jar_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
| <enterprise-beans>
| <entity>
| <ejb-name>Account</ejb-name>
| <home>test.entity.AccountHome</home>
| <remote>test.entity.AccountRemote</remote>
| <ejb-class>test.entity.Account</ejb-class>
| <persistence-type>Container</persistence-type>
| <prim-key-class>test.entity.AccountPKey</prim-key-class>
| <reentrant>false</reentrant>
| <cmp-version>1.x</cmp-version>
| <cmp-field id="CMPAttribute_1">
| <field-name>accountNumber</field-name>
| </cmp-field><cmp-field id="CMPAttribute_2">
| <field-name>ownerName</field-name>
| </cmp-field>
| <cmp-field id="CMPAttribute_3">
| <field-name>balance</field-name>
| </cmp-field>
| </entity>
| </enterprise-beans>
| <assembly-descriptor id="AssemblyDescriptor_ID">
| <container-transaction id="MethodTransaction_1">
| <method id="MethodElement_1">
| <ejb-name>Account</ejb-name>
| <method-intf>Remote</method-intf>
| <method-name>*</method-name>
| </method>
| <trans-attribute>Required</trans-attribute>
| </container-transaction>
| </assembly-descriptor>
| </ejb-jar>
|
I tried with 1.1 namespace it was working fine.
please help me....
Thanks,
Ravi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107076#4107076
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107076
18 years, 8 months
[EJB/JBoss] - Re: Problem deploying Session Bean
by breako
Hi,
I fixed this problem by updated client code to:
| Object ref = ctx.lookup("ta3g/AddressDAOImplBMT/remote");
| System.out.println("ref is : " + ref);
| AddressDAO dao = (AddressDAO)PortableRemoteObject.narrow(ref, AddressDAO.class);
|
Now I am getting:
| java.lang.ClassCastException: $Proxy74
| at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
| at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
| at org.apache.jsp.TestSessionBeansWithJPA_jsp._jspService(TestSessionBeansWithJPA_jsp.java:86)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107071#4107071
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107071
18 years, 8 months