[Installation, Configuration & DEPLOYMENT] - Re: A ClassCastException
by afrodom
Sorry, I didn't see you answer. This is going to become an agony. I cannot deploy an application (how pathetic is that).
I'm not sure I'm understanding you, but EVERY exception occurs in xercesImpl.jar.
EVEN if I omit it AGAIN phantom exception occurs, not the same but still against the parsing... I'm completely exhausted , and have no idea what problem is... Changing server is one of solution, but... not ultimately solution...
How is possible, that you take an application, deploy it on much 'advanced' tomcat container, and WALLA. The application is deployed successfully without even warnings...
Now I'm trying to deploy the same application on the advance hi-tech application, and I cannot perform that for a seven days 12-14 hours a day. So what is the problem, huh?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219992#4219992
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219992
17 years, 1 month
[Persistence, JBoss/CMP, Hibernate, Database] - Column Order in EJB3 / Hibernate auto generated tables
by jochen.reinhardt
Hi folks!
FYI, I am using EJB3 with JBoss AS 5.0.1 and MySQL 5.1 as database.
I use schema auto generation for my entities (EJB3 through standard annotations). I just discovered that all fields are sorted alphabetically. I would not mind this, but it is also true for my compound primary keys.
I already posted a similar question in the EJB3 forum - but I did not receive an answer there. So as my question concerns EJB persistence with JBoss I thought my question might be answered here, as Hibernate actually runs under the hood. Please correct me if I am misstaken.
And that is not what i want. I want to have the fields I search regularly at the beginning of the key, so that MySQL can use the key. Is there a way to take influence on the column order?
I would like my fields to appear in the same order as defined in the entity. I already tried using @Embeddable and @EmbeddedId with and without @AttributeOverrides.
I do not really want to name my columns a_..., b_... just to get a correct column order. Is there some documentation about this behaviour?
Should I create the tables myself, not using table schema autogeneration?
Thank's in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219989#4219989
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219989
17 years, 1 month
[JBoss Messaging] - AUTO_ACKNOWLEDGE and Duplicate Delivery of Messages
by azda
I'm trying to figure out if I'm misunderstanding this functionality, or there is an issue.
The JMS spec section 4.4.12 states that if the client is using AUTO_ACKNOWLEDGE mode, it must prepare for redelivery of the last consumed message (since it could do some work and crash before acknowledgment). It also specifies that JMSRedelivered will be set under that circumstance.
I set up a persistent Queue, and a simple asynch client using:
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE)
My onMessage prints out the message (including the status of JMSRedelivered), then goes to sleep to simulate doing work, and to give me some time to perform a 'crash'.
When onMessage is sleeping I performed two tests:
1.) I terminate the client. When I start up my client again, the same message is delivered (expected as per 4.4.12), but JMSRedelivered is false (unexpected).
2.) I perform the same test, but crash the provider with the same results (JBossAS 5.0.1GA). JMSRedelivered is false.
Maybe I'm misunderstanding the extent to which JMS guarantees these semantics.
-Az
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219982#4219982
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219982
17 years, 1 month