[EJB 3.0] - Column name clash with SQL keyword
by jan_bar
Hi,
This simple entity won't work with EJB3:
| public class Attribute implements Serializable {
|
| private Long id;
|
| private Byte order;
|
| @Id
| @GeneratedValue
| public Long getId() {
| return id;
| }
|
| public void setId(Long id) {
| this.id = id;
| }
|
| public Byte getOrder() {
| return order;
| }
|
| public void setOrder(final Byte order) {
| this.order = order;
| }
| }
|
Because JBoss/Hibernate doesn't escape column names with quotes (or DB specific escaping):
| create table Attribute (id bigint generated by default as identity (start with 1), order tinyint)
| ..
| Unexpected token: ORDER in statement
|
I don't want to use artificial name for the column, I'd rather see something like this:
| create table Attribute (id bigint generated by default as identity (start with 1), 'order' tinyint)
|
Is there a (db independent) solution?
Thanks Jan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980314#3980314
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980314
19 years, 6 months
[EJB 3.0] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
by sumedha7
Hope following snippet from my build.xml is helpful. I have an application written using EJB3 & I am using a client to connect to it remotely. Following snippet is how I run the client from ant. All the jars I need are listed there.
| <target name="run-client" depends="jar">
| <path id="client.classpath">
| <fileset dir="${classes.dir}">
| <include name="${ant.project.name}.jar" />
| </fileset>
| <fileset dir="${jboss.dir}/server/all/lib">
| <include name="jnpserver.jar" />
| <include name="jboss-j2ee.jar" />
| <include name="jboss-remoting.jar" />
| <include name="jbosssx.jar" />
| <include name="jboss-transaction.jar" />
| <include name="hibernate3.jar" />
| <include name="antlr-2.7.6.jar" />
|
| </fileset>
| <fileset dir="${jboss.dir}/lib">
| <include name="jboss-common.jar" />
| <include name="concurrent.jar" />
| </fileset>
| <fileset dir="${jboss.dir}/server/all/deploy/ejb3.deployer">
| <include name="jboss-ejb3.jar" />
| </fileset>
| <fileset dir="${jboss.dir}/server/all/deploy/jboss-aop-jdk50.deployer">
| <include name="jboss-aop-jdk50.jar" />
| <include name="jboss-aspect-library-jdk50.jar" />
| </fileset>
|
| </path>
| <java classname="xxx.xxxx.xxx.EJB3Client">
| <classpath refid="client.classpath"/>
| </java>
| </target>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980313#3980313
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980313
19 years, 6 months
[EJB 3.0] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
by sumedha7
Hope following snippet from my build.xml is helpful. I have an application written using EJB3 & I am using a client to connect to it remotely. Following snippet is how I run the client from ant. All the jars I need are listed there.
| <target name="run-client" depends="jar">
| <path id="client.classpath">
| <fileset dir="${classes.dir}">
| <include name="${ant.project.name}.jar" />
| </fileset>
| <fileset dir="${jboss.dir}/server/all/lib">
| <include name="jnpserver.jar" />
| <include name="jboss-j2ee.jar" />
| <include name="jboss-remoting.jar" />
| <include name="jbosssx.jar" />
| <include name="jboss-transaction.jar" />
| <include name="hibernate3.jar" />
| <include name="antlr-2.7.6.jar" />
|
| </fileset>
| <fileset dir="${jboss.dir}/lib">
| <include name="jboss-common.jar" />
| <include name="concurrent.jar" />
| </fileset>
| <fileset dir="${jboss.dir}/server/all/deploy/ejb3.deployer">
| <include name="jboss-ejb3.jar" />
| </fileset>
| <fileset dir="${jboss.dir}/server/all/deploy/jboss-aop-jdk50.deployer">
| <include name="jboss-aop-jdk50.jar" />
| <include name="jboss-aspect-library-jdk50.jar" />
| </fileset>
|
| </path>
| <java classname="test.de.laliluna.library.FirstEJB3TutorialClient">
| <classpath refid="client.classpath"/>
| </java>
| </target>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980312#3980312
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980312
19 years, 6 months
[EJB 3.0] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
by sumedha7
Hope following snippet from my build.xml is helpful. I have an application written using EJB3 & I am using a client to connect to it remotely. Following snippet is how I run the client from ant. All the jars I need are listed there.
| <target name="run-client" depends="jar">
| <path id="client.classpath">
| <fileset dir="${classes.dir}">
| <include name="${ant.project.name}.jar" />
| </fileset>
| <fileset dir="${jboss.dir}/server/all/lib">
| <include name="jnpserver.jar" />
| <include name="jboss-j2ee.jar" />
| <include name="jboss-remoting.jar" />
| <include name="jbosssx.jar" />
| <include name="jboss-transaction.jar" />
| <include name="hibernate3.jar" />
| <include name="antlr-2.7.6.jar" />
|
| </fileset>
| <fileset dir="${jboss.dir}/lib">
| <include name="jboss-common.jar" />
| <include name="concurrent.jar" />
| </fileset>
| <fileset dir="${jboss.dir}/server/all/deploy/ejb3.deployer">
| <include name="jboss-ejb3.jar" />
| </fileset>
| <fileset dir="${jboss.dir}/server/all/deploy/jboss-aop-jdk50.deployer">
| <include name="jboss-aop-jdk50.jar" />
| <include name="jboss-aspect-library-jdk50.jar" />
| </fileset>
|
| </path>
| <java classname="test.de.laliluna.library.FirstEJB3TutorialClient">
| <classpath refid="client.classpath"/>
| </java>
| </target>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980311#3980311
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980311
19 years, 6 months
[JBossCache] - Re: Migrating from JBCache 1.2.3 to 1.4.0 SP1
by Stephane75
JGroups add those lines to the log :
2006-10-24 11:31:02,312 [main] DEBUG org.jgroups.conf.ClassConfigurator - mapping is:
1: class org.jgroups.stack.IpAddress
2: class org.jgroups.protocols.CAUSAL$CausalHeader
3: class org.jgroups.protocols.FD$FdHeader
4: class org.jgroups.protocols.FD_PID$FdHeader
5: class org.jgroups.protocols.FD_PROB$FdHeader
6: class org.jgroups.protocols.FD_SOCK$FdHeader
7: class org.jgroups.protocols.FragHeader
8: class org.jgroups.protocols.MERGE$MergeHeader
9: class org.jgroups.protocols.NakAckHeader
10: class org.jgroups.protocols.PARTITIONER$PartitionerHeader
11: class org.jgroups.protocols.PerfHeader
12: class org.jgroups.protocols.PIGGYBACK$PiggybackHeader
13: class org.jgroups.protocols.PingHeader
14: class org.jgroups.protocols.TcpHeader
15: class org.jgroups.protocols.TOTAL$Header
16: class org.jgroups.protocols.TOTAL_OLD$TotalHeader
17: class org.jgroups.protocols.TOTAL_TOKEN$TotalTokenHeader
18: class org.jgroups.protocols.TOTAL_TOKEN$RingTokenHeader
19: class org.jgroups.protocols.TunnelHeader
20: class org.jgroups.protocols.UdpHeader
21: class org.jgroups.protocols.UNICAST$UnicastHeader
22: class org.jgroups.protocols.VERIFY_SUSPECT$VerifyHeader
23: class org.jgroups.protocols.WANPIPE$WanPipeHeader
24: class org.jgroups.protocols.pbcast.GMS$GmsHeader
25: class org.jgroups.protocols.pbcast.NakAckHeader
26: class org.jgroups.protocols.pbcast.PbcastHeader
27: class org.jgroups.protocols.pbcast.STABLE$StableHeader
28: class org.jgroups.protocols.pbcast.STATE_TRANSFER$StateHeader
29: class org.jgroups.protocols.SMACK$SmackHeader
30: class org.jgroups.Message
31: class org.jgroups.View
32: class org.jgroups.ViewId
33: class org.jgroups.util.List
34: interface org.jgroups.Address
35: class org.jgroups.blocks.RequestCorrelator$Header
36: class org.jgroups.protocols.PingRsp
37: class [Ljava.lang.Object;
38: class java.util.Vector
39: class org.jgroups.protocols.pbcast.JoinRsp
40: class org.jgroups.protocols.pbcast.Digest
41: class java.util.Hashtable
53: class org.jgroups.protocols.COMPRESS$CompressHeader
54: class org.jgroups.protocols.FC$FcHeader
55: class org.jgroups.protocols.WanPipeAddress
56: class org.jgroups.protocols.TpHeader
57: class org.jgroups.protocols.ENCRYPT$EncryptHeader
2006-10-24 11:31:02,359 [main] DEBUG org.jgroups.protocols.AUTOCONF - frag_size=64000
2006-10-24 11:31:02,437 [main] DEBUG org.jgroups.protocols.pbcast.GMS - changed role to org.jgroups.protocols.pbcast.ClientGmsImpl
When it work, there are periodically many new lines indicating JGroups is searching (testing) the other IPs in the cluster.
I'm not seing those lines.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980309#3980309
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980309
19 years, 6 months