[jboss-user] [Beginners Corner] - jboss-dukes-bank app

2008-11-29 Thread pepelara
Hi, I am trying to compile jboss-dukes-bank and deploy on JBoss-4.2.2.GA using NetBeans IDE, but I can not. The problem is that even having define jboss.j2ee property correctly including all jars, there are some packages that the system does not find. And I am thinking it is a problem of J2EE

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - setParameter() IllegalArgumentException

2008-11-29 Thread NSchweig
Hi, perhaps it is a dumb question; but it has taken a lot of time and I still have not found a solution. I want to get all courses for a instructor in my EJB. | public List getCoursesForInstructor(CmtUser instructor){ | try{ | | String id = instructor.getId()

[jboss-user] [EJB 3.0] - detached entity passed to persist

2008-11-29 Thread mravikrish
Hello, Hello, I am ramu. while adding a new record . i am gettng the following exception javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist can any body suggest. please it is urgent. Thank You K Ramu View the ori

[jboss-user] [JBoss Cache: Core Edition] - Re: Jboss-cache ConfigureException: configure(): can't invok

2008-11-29 Thread Meena Rajani
Hi Manik, Thanks for the reply, Actually I was importing the wrong libraries accidently, instead of Jboss cache libraries few of the libraries were from glassfish besides that in build.xml file at diferent nodes the isolation level was not the same. So the problem is resolved. I am working on

[jboss-user] [JBoss Portal] - HTML layout changes maximizing the portlet

2008-11-29 Thread davided80
Hi, maximizing a portlet, the structure of the HTML page changes from | ... | | | ... | to | | | | ... | | | ... | | | ... | | | | |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: error with hibbernate - entity class not found

2008-11-29 Thread vlad2005
Ok, i found solution for my problem. I need to compile my project with java 1.5 compliance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193184#4193184 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193184 ___

[jboss-user] [JBoss jBPM] - Re: ExceptionHandler / changes since 3.2GA

2008-11-29 Thread camunda
Okay I added a comment (and solution proposal) in JIRA and would volunteer to commit it... But I want to wait for possible feedback from Tom first... Cheers Bernd View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193185#4193185 Reply to the post : http://www.j

[jboss-user] [JCA/JBoss] - How to set HSQLDB datasource in JBoss

2008-11-29 Thread RaviCKota
Hi, I wanted to use my application to connect to HSQLDB database running as a separate process via TCP. I'm not sure what changes needs to be made for this. Below are the steps I followed, but ended up with socket creation failure. I started HSQLDB in server mode, running at 127.0.0.1 and port 9

[jboss-user] [EJB 3.0] - Re: how to customize the TM for my EJB3 app?

2008-11-29 Thread mazz
OK, I'll ask this in a different way... If I write my own EJB3 interceptor (using @AroundInvoke and defined with ), how can I get the transaction that is associated with the active thread that is executing the request? If I can get the transaction that the EJB3 invocation is running in , I thin

[jboss-user] [EJB 3.0] - Re: how to customize the TM for my EJB3 app?

2008-11-29 Thread ALRubinger
If you get the TransactionManager from JNDI, then get the Thread's current Tx from there, that's not sufficient for you? It's some wrapper object and you need an underlying impl (much like EntityManager.getDelegate() provides)? S, ALR View the original post : http://www.jboss.com/index.html?m

[jboss-user] [EJB 3.0] - Re: converting ejb runtime exceptions to jsf user friendly

2008-11-29 Thread PeterJ
? try { | // do some stuff | } catch (SomeEjbException e) { | throw new SomeJsfUserFriendlyException("some reason", e); | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193190#4193190 Reply to the post : http://www.jboss.com/index.html?module=b

[jboss-user] [EJB 3.0] - Re: detached entity passed to persist

2008-11-29 Thread PeterJ
This means that you entity is not being managed by the entity manager. Try merging it back in with EntityManager.merge() before persisting the changes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193191#4193191 Reply to the post : http://www.jboss.com/in

[jboss-user] [Microcontainer] - Alternative JAR extensions

2008-11-29 Thread bob.mcwhirter
I've started working on my RailsStructure structure deployer again. I'm hoping to deploy "myapp.rails" which is just a JAR archive with a magical extension of ".rails". I've found that if I modify conf/deployers.xml and add .rails to the JARStructure, then my .rails archives are recognized as

[jboss-user] [Microcontainer] - Re: Alternative JAR extensions

2008-11-29 Thread alesj
Weird, we've added JarExtensionProvider (JEP) for exactly this reason. We usually have parser deployers that implement this interface. e.g. BeanDeployer --> -beans.xml + JEP .beans (old extension) I'll have a look, although I remember adding test for it. btw: no need for install, as JEP is conte

[jboss-user] [Microcontainer] - Re: Alternative JAR extensions

2008-11-29 Thread alesj
"alesj" wrote : | I'll have a look, although I remember adding test for it. - http://anonsvn.jboss.org/repos/jbossas/projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/matchers/test/JarExtensionsTestCase.java View the original post : http://www.jboss.com/

[jboss-user] [EJB 3.0] - Re: how to customize the TM for my EJB3 app?

2008-11-29 Thread mazz
Ah...good suggestion. I just tried that (looked up the java:/TransactionManager from JNDI and executed the getTransaction() method from the object that lookup returned. And, it turns out, it looks like I don't even have to do that much. I found that rather than going through JNDI, I can simply

[jboss-user] [EJB 3.0] - Re: how to customize the TM for my EJB3 app?

2008-11-29 Thread mazz
For those interested, turns out, there is a very easy JBossTM API that I can use in my interceptor code to do what I want... this static method: com.arjuna.ats.arjuna.coordinator.BasicAction.Current.setCheckedAction() Mark Little already gave me the answer in that other thread, I just didn't un

[jboss-user] [Microcontainer] - Re: Alternative JAR extensions

2008-11-29 Thread bob.mcwhirter
Doing some more debugging... It *does* seem to affect the JarUtils.isArchive(...) call successfully, and JARStructure will match my .rails since, as the deployer says... "... ok - its an archive or at least pretending to be." But it's still mapping to a FileHandler instead of a JarHandler |

[jboss-user] [Microcontainer] - Re: Alternative JAR extensions

2008-11-29 Thread alesj
"bob.mcwhirter" wrote : | So, to me, it seems like a timing issue. The JarUtils.addJarSuffix(...) happens soon enough for JARStructure to see and use it, but *not* soon enough for the HDScanner/Profile/whatever that initially loads the deploy/ directory and constructs the VirtualFile/VFSCont