[JBoss-user] [EJB 3.0] - Re: PersistenceContext and EntityManager

2006-05-27 Thread wauwau0977
hi hard to say what your mistake is. for me it works. see the trailblazer from jboss which is very helpful and up-to-date: http://trailblazer.demo.jboss.com/EJB3Trail/ the basic idea if you are using your own datasource is about that 1) code incetion: @PersistenceContext(unitName = "YourEntityM

[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread wauwau0977
hi jboss fulfills the latest sun spec, which changed the lookup. try this ctx.lookup("yourEJBProject/BeanName/remote|local"); | regards, patrick heusser -- patrick heusser http://www.x8ing.com/fractal/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947

[JBoss-user] [EJB 3.0] - Re: Accessing EJB3 from an Applet...

2006-05-26 Thread wauwau0977
hi for me this worked for swing apps as well as JUnit tests (which run in separate JVM). 1) add to java installation where the server is running: lib/security/java.policy the following line in grant section: permission java.security.AllPermission; 2) on the client in java somewhere in a init

[JBoss-user] [Installation, Configuration & Deployment] - Re: Jboss 4.0.4.GA: simple servlet does not run

2006-05-17 Thread wauwau0977
hi alex thanx for your test. i redid the whole thing for myself. here are my findings: first: you're right. it works. my problem was a missconfiguration within the jboss plugin which launches the server out of eclipse. i must admit being a little embarrassed now. alex: a big, big thank you fo

[JBoss-user] [Beginners Corner] - Re: JBoss_4_0_4_GA and HttpServlet NoClassDefFoundError

2006-05-17 Thread wauwau0977
hi i resolved the problem: the WAR works fine with the ZIP distribution of the 4.0.4.GA. that the installer must be the problem... may be it's a feature, but for me it was not clear, that when installtion JBoss using the installer, it would not be possible to use servlets anymore... regards,

[JBoss-user] [Installation, Configuration & Deployment] - Re: Jboss 4.0.4.GA: simple servlet does not run

2006-05-17 Thread wauwau0977
hi i resolved the problem: the WAR works fine with the ZIP distribution of the 4.0.4.GA. it seems, that the installer seems to be the problem. may be it's a feature, but for me it was not clear, that when installtion JBoss using the installer, it would not be possible to use servlets anymore...

[JBoss-user] [Installation, Configuration & Deployment] - Jboss 4.0.4.GA: simple servlet does not run

2006-05-17 Thread wauwau0977
hi i created a very simple WAR with one servlet. The WAR runs perfectly on my Jboss 4.0.4.CR2 and also without any problems on a tomcat 5.5.17. unfortunately, it throws a NoClassDefFoundError: javax/servlet/http/HttpServlet exception on my 4.0.4.GA installation. i used the wizzard to create a

[JBoss-user] [Beginners Corner] - Re: JBoss_4_0_4_GA and HttpServlet NoClassDefFoundError

2006-05-16 Thread wauwau0977
hi the class which is not found is: HttpServlet which is definitly in the distribution contained in the file /server/lib/javax.servlet.jar i made some further investigations using a plaine tomcat 5.5.17 installation. i deployed the war and it runs without any problems. i ask myself: is there a

[JBoss-user] [Beginners Corner] - JBoss_4_0_4_GA and HttpServlet NoClassDefFoundError

2006-05-16 Thread wauwau0977
hi i created the simplest servlet that you could imagine. it returns "ok" and is placed within a WAR file. by deploying it on my JBoss 4.0.4 GA i get a NoClassDefFoundError. my installation is fresh installed by the wizard, by clicking on the option "EJB 3" support. everything else is standard

[JBoss-user] [EJB 3.0] - Re: conceptual: how start async job which relies on entities

2006-04-08 Thread wauwau0977
hi thx for your intput. it's exactly as you expected it, the bean later calls other beans, within the same transaction. at this point, the async bean already startet with the work. i think, that the EntityManger.flush() method does not help me, because the date is transfered to the DB, but not

[JBoss-user] [EJB 3.0] - conceptual: how start async job which relies on entities com

2006-04-07 Thread wauwau0977
hello there. a conceptual question: i have a stateless session bean which processes and writes some entities. i want to start a jboss message driven POJO which performs some calculations which take very long and are not important for the bean. the problem: at the moment where the async bean i

[JBoss-user] [EJB 3.0] - Re: Timer event is always handled by a new instance?

2006-04-06 Thread wauwau0977
hi i had exactly the same problem with my own implementation. i'm using the jboss 4.0.4.CR2 version and recreate the timer in my timeout action. unfortunately i have somehow the problem to reproduce the behaviour. it occurs by hazard! granby: did you figured out something? Patrick Heusser --

[JBoss-user] [EJB 3.0] - Re: [SocketServerInvoker] Failed to accept socket connection

2006-02-26 Thread wauwau0977
hi martin i had the same problem. thx for answering your question yourself! therefore i was able to solve it using google query in just a few seconds. thx, patrick -- patrick heusser http://www.x8ing.com/fractal/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&

[JBoss-user] [EJB 3.0] - Re: EJB3Trail does not work with JBoss 4.0.4 RC1

2006-02-14 Thread wauwau0977
hi thx for that many tips. i figured out, that i somehow missunderstood the packaging of the jboss 4.0.4 server. it seems that ejb 3.0 components are NOT part of it. after installing the latest version, ervything run fine :-) i further think, that bill is not right tough. since i realized, that

[JBoss-user] [EJB 3.0] - EJB3Trail does not work with JBoss 4.0.4 RC1

2006-02-12 Thread wauwau0977
hi i downloaded a fresh copy of JBoss 4.0.4 RC1, dropped the EAR in the deploy folder and tried the Calulator. This worked with the former 4.0.3 installation! As I read in the notes, there's no need to install the EJB 3.0 deployer manually. So why does it not work? any ideas? has anyone the sa

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: EJB 3.0 Entity and MySql: Problem with Tinyblob and Medi

2006-02-01 Thread wauwau0977
hi in the meantime i figured out how to solve the problem. for everyone who is interested here my solution: there are two possible solutions. first hibernate deleted my tables, to avoid that include in the persistence.xml. an other way is to specifiy the table in the column entity annotation

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - EJB 3.0 Entity and MySql: Problem with Tinyblob and MediumBl

2006-01-31 Thread wauwau0977
hi i use jboss-4.0.3SP1 and have a problem with blobs in my mysql database. i create a table using a sql script which defines a "mediumblob" type. i use then an entity with the annotation @Lob (type=LobType.BLOB). when i deploy, the container changes my datatype from "mediumblob" to "tinyblob