java-ee

jboss delopy problem: created sar can't be start normally in the deploy path of jboss

I have developed a sar file and want to deploy it into the deploy path of jboss. I think if I put the sar into the right path of jboss, jboss will start it automatically. But I get the errors as following and I can't get the reason by google: mcdp-alarm-agent.sar is the sar I developed. *06/30 10:53:36,455 ERROR [org.jboss.deployment...

Any good resource for learning both JEE *and* J2EE simultaneously?

I am looking for a good resource that teaches JEE while also explaining how the same code, concept, and 'mindset' would have been handled in the older, J2EE era. I need the material to cover all the API and developer-architect mindsets that have (significantly) changed in JEE, with EJB and Persistence being two that I know of. Does ther...

Rerunning failed Container-Managed transactions in JEE

I have a situation with a legacy system which uses JEE Bean Managed Transactions. It's getting LockAcquisitionException thrown when it's trying to retrieve something it just created. My initial thoughts were this: @TransactionAttribute(SUPPORTS) public Item retrieveItem(int id) { Item i; try { i = em.find(Item.class, id); } catch...

Weblogic 10.3 MDB throwing javax.sql.DataSource exception

Here are the applications that I'm using: Weblogic 10.3.3 Websphere MQ 7.0 Oracle 11g Express Edition (DB) Here is the current process flow: A message is read off a Websphere MQ queue by Weblogic and processed by the MDB The MDB saves the message to the DB The MDB writes the message to another Websphere MQ queue This is an XA tra...

Glassfish Error when deploying working GF 2.1 to Glassfish 3 and switching to maven at the same time - Killing me!

Everything builds just fine in Maven and Ant, but will only deploy when building with Ant. It is an EJB jar I am deploying that is @Stateless and has @WebService tags as well [#|2010-06-30T19:23:29.045-0500|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=62;_ThreadName=Thread-1;|Exception while ...

One Java EE web application with two auth-methods

Hi, I have a web-app that authenticates against a JDBC Realm. In the web.xml file I can use BASIC authentication or a custom form: <auth-method>BASIC</auth-method> <realm-name>JDBCRealm</realm-name> or <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/login.html</form-login-page> <form-error-page>/error...

Transactions (Atomicity property) in EJB 3 apply only to Database Operations - Am I right?

I know that transactions could be used to bring about atomicity. Like if methodOne() methodTwo() methodThree() are clubbed into one transaction, if any of the method fails, the entire operation is rolled back. A rollback would result in a database-level rollback and as a result the database would be brought to a state, as it was before...

Can BMT transaction join with an existing transaction ?

I find that in a session bean, while using Container-Managed-Transactions, the transaction can be made to join with the existing client-transaction using transactional attributes like REQUIRED / SUPPORTS. While using Bean-Managed-Transaction, is there a way to make that transaction join with the existing client-transaction ? ...

Swing Client authentication on Glassfish

Hi there, I have to authenticate a user in Glassfishv3 application server in a swing client. I can't find instructions on how to do so. Can anyone help me? ...

Weblogic 11g and JavaEE 6

I was wondering if Weblogic 11g already supports JavaEE 6. As I didn't find anything about it in google, I thought that it didn't, until I found a comment saying that Oracle WebLogic Server 11g is JEE 6 complaint. Despite that, I haven't found yet the modules to support the new JavaEE 6 features. Does somebody knows something about thi...

EJB 3.1 in war package in WEB-INF/classes - javax.ejb.CreateException: Could not create stateless EJB

I think, I misunderstood rules of packaging ejb beans in war package. Goal: I want to use ejb beans in war package. Scenario: I have some bean in my war: @Stateless public class RegistrationServiceBean { @PersistenceContext(unitName = "Utopia") EntityManager em; public RegistrationServiceBean() {} @Schedule(hour = "...

CDI not working in ear deployed to glassfish v3.0.1

I have some problem with using weld logger injection. Scenario: I have ear with ejb-jar inside. This is my ejb bean: @Stateless @LocalBean public class PartnersService { @Inject Logger log; @PersistenceContext(unitName = "Utopia") EntityManager em; public PartnersService() { } public OasysPartnerEntity g...

how inject a EntityManager between ear

I'm using JBoss 4.2.3 and I deployed two ears called triad-1.0.ear and reportservices-1.0.ear, the thing is that I want to use the entity manager of the project triad in the project reportservices. This is the architecture JBoss follows: triad-1.0.ear: triad-core-1.0.jar: META-INF: ...

Server can not find class in .ear

Hello, I have some problems with my .ear file. The structure of the file is: app.ear |-xxx.jar -yyy.jar -zzz.jar -ektorp.jar -app-ejb.jar -app-web.war |-WEB-INF |-lib |-xxx.jar |-yyy.jar |-zzz.jar |-ektorp.jar When I try to deploy my application, I get ClassNotFoundException, with class wihch is in ...

CDI with ejb 3.1 , weld-logger on glassfish v3.0.1

Scenario: 1) create maven ear project, create war project inside 2) add beans.xml to war project`s WEB-INF/ 3) creat simple @Steateless bean project - http://drp.ly/1j5C3t ejb bean : @Stateless @LocalBean public class TestEjb { @Inject Logger log; public TestEjb() { } @Schedule(hour = "*", minute = "*", secon...

Java FlowChart framework for the web

Do you know any Web FlowChart frameworks for Java ? What exactly do I mean by "Web FlowChart framework": Capable of generating BPMN diagrams; (If not BPMN, at least basic flowcharts / graphs that are easily customizable); The generated diagrams are easily embeddable in a Java EE (Oracle Adf 11g) application; The generated diagrams can...

Restart Jboss will get error when I added my created service(MBean) to jboss deploy route

I created one service(MBean), I thought it could be start/stop normally. I have my MBean in the structure as my previous problem had said: http://stackoverflow.com/questions/3177569/a-created-jboss-service-cant-be-stop-normallymbean But today, I found the created service will get error when restart jboss. First, the created service (a s...

Classes from .war cannot find EJB beans.

Hello, I have .ear file, in it there is .war and ejb .jar. When I deploy the .ear to the server (glassfish v3), I'm getting javax.naming.NameNotFoundException: com.deportio.ejb.TransportsFinder#com.deportio.ejb.TransportsFinder not found This class is in ejb .jar. Everything is built by maven. What should I configure for it to work?...

Executables in a war file

We'd like to ship some helper scripts (shell scripts) as part of an application war. Unfortunately it appears like our build system (maven) discard the permissions on all files and the scripts end up without the executable bit set. Is it even possible to do that? Does the .war format support executable files? If yes: how could tell mav...

java web programming best book

Possible Duplicates: best java book for web development Best Java web architecture book / website? I'm new to java EE area and I would like to find a good book that teaches me the core concepts of java web development such as jsp,servlets, sessions, ejb,...... I have found Java for the Web with Servlets, JSP, and EJB: A De...