[JBoss jBPM] - Re: What does on BPM build content impact?
by Radmir
It seems there are a lot of bugs in open software. Or may this is trick to force client to buy a support? Ant build uses hibernate3.jar from jboss-4.0.4.GA/server/default/lib during build, but have it's own hibernate3.jar in jbpm-3.1/lib. The first one is of version 3.2.0., the last - 3.1. Why? In userguide (jbpm.pdf) mentioned jbpm must work with 3.1. So the question is again why build uses hibernate3.jar from jboss server distribution?
If you create build.properties file in userhome why ant read it but ignore it?
If you try to build an examples for bpel extension ant deploys them into default configuration not in jbpm, but these small fact not mentioned in manual.
Some guys recommend to use web-console for testing result of deployment of samples, but it doesn't work in jbpm configuration. It seems it is not an easy task to place it into jbpm folder.
And the problem with versioning in Java - it remains forever? The samples for JBOSS uses 1.4.2_x, for jbpel 1.5.x. JBPEL extension uses another type of license good this worse to mention in the readme or userguide, but how it prevents to build one starters-kit with all in one bundle including working samples. And the last there are a lot of configuration xml files in many folders. But from the guide is not clear which of them really works in what the case.
Want to move to open source but how?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970881#3970881
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970881
19 years, 7 months
[JBoss Seam] - Fail to persist sub class
by xtia004
I have the following code. CreditCardPayment is inherited from Payment and added some extra fields.
@Entity
| @Table(name = "PAYMENT")
| @Name("payment")
| @Inheritance(strategy=InheritanceType.JOINED)
| @DiscriminatorColumn(name="PAY_METHOD", discriminatorType=DiscriminatorType.STRING, length=2)
| public class Payment implements java.io.Serializable {
|
| private static final long serialVersionUID = 581797746676908701L;
|
| @TableGenerator(name = "objectIdGen", table = "OP_SEQUENCE_GENERATOR", pkColumnName = "GEN_KEY", valueColumnName = "GEN_VALUE", pkColumnValue = "OBJECT_ID", initialValue = 1, allocationSize = 1)
| @Id
| @GeneratedValue(strategy = GenerationType.TABLE, generator = "objectIdGen")
| @Column(name = "OBJECT_ID", nullable = false)
| private Long objID;
|
| @Column(name = "PAYMENT_CODE", length = 10, nullable = false)
| private String paymentCode;
|
| @Column(name = "PAID_AMOUNT", nullable = false)
| private BigDecimal paidAmount;
|
| @Column(name = "PAID_DATE", nullable = false)
| @Basic @Temporal(TemporalType.DATE)
| private Date paidDate;
|
| @Column(name = "PAY_METHOD", length = 2, nullable = false)
| private String payMethod;
|
| ...
| }
|
|
|
| @Entity
| @Table(name = "CREDITCARD_PAYMENT")
| @Name("creditCardPayment")
| @DiscriminatorValue("CC")
| public class CreditCardPayment extends Payment {
|
| private static final long serialVersionUID = -4171432845137278960L;
|
| @JoinColumn(name = "CREDITCARD_ID")
| @ManyToOne
| private CreditCard creditCard;
|
| @Column(name = "AUTH_CODE", length = 15, nullable = false)
| private String authCode;
|
| @Column(name = "DPS_TXN_REF", length = 31, nullable = false)
| private String dpsTxnRef;
|
| ...
| }
When I create object of CreditCardPayment using following code and persist it. I got exception:anonymous wrote : Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value: com.oneplace.payment.CreditCardPayment._paymentsBackref
I have checked I didn't miss any fields. What's the property "paymentsBackref" from and how to set it. Please somebody help me.
CreditCardPayment payment = new CreditCardPayment();
| payment.setAuthCode(authCode);
| payment.setDpsTxnRef(dpsTxnRef);
| payment.setCreditCard(card);
| payment.setPaymentCode(paymentCode);
| payment.setPaidAmount(getSelectedSum());
| payment.setPaidDate(DateTimeUtil.getCurrentDate());
| payment.setPayMethod(payMethod);
| ...
| em.persist(payment);
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970880#3970880
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970880
19 years, 7 months
[Beginners Corner] - org.jboss.deployment.DeploymentException: url file:/C:/jboss
by carlos.navarro
Hi all...
My name is Carlos Navarro and I'm totally new to JBoss (although I've been working several years on the J2EE specification over Weblogic).
I have the following problem:
I downloaded the last version of JBoss as a zip file and unpacked it in c:\jboss directory, as it said in the getting started document.
Then I went to the bin directory and ran the "run.bat" file, and it started to load but suddenly the execution stops with this exception:
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: url file:/C:/jboss/server/default/conf/jboss-service.xml could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:770)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:464)
at java.lang.Thread.run(Thread.java:595)
21:12:09,625 INFO [Server] Runtime shutdown hook called, forceHalt: true
21:12:09,625 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
21:12:09,625 INFO [Server] Shutdown complete
Shutdown complete
Halting VM
I know the jboss-service.xml file is missing, but as the getting started said "you could be running jboss out of the box" I kept browsing the forums and googling about it, but found no solution to it. Some said it was some sort of bug, and that with the java web start installer, this would be fixed. So I decided to download through java web start, and I got the same results. So...are users intended to create their own jboss-service.xml in order to start for the first time JBoss???...I assume jboss-service.xml is the equivalent to config.xml in weblogic.
Thanx for reading this post, and for your kind answers....
Carlos Navarro.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970875#3970875
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970875
19 years, 7 months
[Messaging, JMS & JBossMQ] - Re: Manually Acknowlegeing a message
by tnine
Hi Genman,
Thanks for the help, but that didn?t seem to work. The contain does not seem to be running a transaction. I have included by ejb-jar.xml and the exception stacktrace I receive. If I change my pojo code to cause itself to sleep for 2 minutes, I notice the message is already off of the queue on server B as soon as onMessage is invoked in my remote MDB. Is there some other configuration that I am missing?
| <?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>Message Driven Bean</description>
| <display-name>CATS Message Driven Beans Configuration</display-name>
|
| <enterprise-beans>
|
| <message-driven>
| <description>
| Bean to access messages from cats queues
| </description>
| <display-name>CATSMessageAccess</display-name>
|
| <ejb-name>ejb/CATSMessageAccess</ejb-name>
|
| <ejb-class>
| com.ata.utilities.mdd.MessageAccessBean
| </ejb-class>
|
| <transaction-type>Container</transaction-type>
| <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
|
| <message-driven-destination>
| <destination-type>javax.jms.Queue</destination-type>
| </message-driven-destination>
|
| </message-driven>
| </enterprise-beans>
| </ejb-jar>
|
|
My Stacktrace
| 21:10:02,765 INFO [STDOUT] 21:10:02,765 INFO [SessionFactoryImpl] closing
| 21:10:02,765 ERROR [LogInterceptor] RuntimeException in method: public abstract void javax.jms.MessageListener.onMessage(javax.jms.Message)
| java.lang.IllegalStateException: getRollbackOnly must only be called in the context of a transaction (EJB 2.0 - 15.5.1)
| at org.jboss.ejb.MessageDrivenEnterpriseContext$MessageDrivenContextImpl.getRollbackOnly(MessageDrivenEnterpriseContext.java:192)
| at com.ata.utilities.mdd.MessageAccessBean.onMessage(MessageAccessBean.java:78)
| 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:324)
| at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
| at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:282)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
| at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
| at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372)
| at org.jboss.ejb.Container.invoke(Container.java:709)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:914)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1208)
| at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276)
| at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:877)
| at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
| at org.jboss.mq.SpySession.run(SpySession.java:351)
| at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200)
| at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
| at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
| at java.lang.Thread.run(Thread.java:534)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970869#3970869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970869
19 years, 7 months