[Beginners Corner] - Re: application clients in JBOSS 4.2.2
by PeterJ
I already answered these questions in my previous posts. In those posts I explained why @Local and @EJB are not working the way you want them to. But I will try to answer the questions again, though a little differently.
I would not expect @EJB to work until JBossAS 5.0. That version is fully Java EE 5 compliant.
Regrading @Local, you did *not* deploy your client to JBossAS. Copying a jar file that contains standalone client code to the serer/default/deploy directory (or pushing a button in an IDE which does this) does not mean that the application is deployed to the app server. By "standalone client", I mean a Java program that has a class with a main() method, which can only be run by starting up another JVM and running that Java program. And that is what your client is - it has a main() method, the only way to run the client is to start a JVM and tell the JVM to execute Main.main(). This means that your cannot use @Local because the client is not running in the same JVM as the app server. And all of this is being hidden from you by the IDE. (See my earlier discussion on why I don't let new developers use IDEs. )
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134963#4134963
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134963
18 years, 1 month
[JBossWS] - Upgrading to 4.2.2 changed published WSDL
by GTWebDev
We recently upgraded our JBossAS from 4.0.5 to 4.2.2. We have EJBs exposed as Web Services. Since the upgrade, applications that consume the Services no longer work due to changes in the WSDL produced by 4.2.2. Though our EJBs are annotated, the WSLDs are very different. We have tried to annotate at the package level to get the WSDL to match the old services in 4.0.5 but have had no luck.
Errors we experience are similar to the following:
12:46:10,048 ERROR [SOAPFaultHelperJAXWS] SOAP request exception javax.ejb.EJBException: java.lang.NullPointerException
All is good if we Re-consume the service but the is not a viable solutions for all of our clients.
Has anyone experienced XmlSchema changes when upgrading? Does anyone have a solution for such a problem? Any guidance is appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134962#4134962
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134962
18 years, 1 month
[EJB 3.0] - Re: Doing BMP with EJB3. JNDI problems?
by JGF1
I'm in the dark here.
| 19:14:34,265 INFO [EARDeployer] Init J2EE application: file:/C:/apps/jboss-4.2.2.GA/server/all/deploy/StockListBmpApp.e
| ar
| 19:14:34,828 INFO [EJB3Deployer] Deployed: file:/C:/apps/jboss-4.2.2.GA/server/all/tmp/deploy/tmp42858StockListBmpApp.e
| ar-contents/StockList2xBmp.jar
| 19:14:34,843 INFO [EARDeployer] Started J2EE application: file:/C:/apps/jboss-4.2.2.GA/server/all/deploy/StockListBmpAp
| p.ear
| 19:15:24,968 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 19:15:24,968 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=StockListApp.ejb3,name=StockListBean,service=
| EJB3 with dependencies:
| 19:15:25,093 INFO [EJBContainer] STARTED EJB: beans.StockListBean ejbName: StockListBean
| 19:15:25,125 INFO [EJB3Deployer] Deployed: file:/C:/apps/jboss-4.2.2.GA/server/all/deploy/StockListApp.ejb3
|
|
| | Looking at log messages when archives are deployed everything looks fine.
| | So why don't I have other JNDI references.
| | Is there a trailblazer for BMP you can point me to?
| | Cheers. Jeremy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134961#4134961
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134961
18 years, 1 month
[JBossWS] - How to tell which Web Service stack(s) are in which Redhat J
by anguilla
Please forgive this total newbie question, but I have been searching for 3 days to an answer to this question. I'm sure the info is out there, and I just haven't been smart enough to stumble upon it. Anyway, I am trying to understand which web service stacks are integrated in the various JBoss product offerings from Redhat, what standards each implement, and what the RH web services roadmap looks like. I am totally confused by all this, probably because I come from a background where I only had the choice of using ASP.NET for web services, and now there are too many options 8=).
If I buy JBoss Application Server from Redhat, am I getting JBossWS as the web service solution? Or is JBossWS something that I have to acquire separately? Or are there multiple WS implementations (of which JBossWS is only one), any of which can be utilized with the JBoss AS?
I purchased the JBoss Developer Studio from Redhat, which came with an entitlement to RHEL 5 (which I installed), and came bundled with the JBoss Enterprise Application Platform (which appears to include JBoss Application Server 4.2). How can I tell what the web service stack is for the AS? On the IDE side of things, it looks like the JBDS wants me to create Apache Axis or Axis2 web services. I don't see any mention of JBossWS in the IDE. Am I missing some crucial plug-in?
I fear the answer to my questions is that I am just totally clueless, but if some kind soul could point me to some specific information (just telling me to go to the forum or wiki won't help, as I've already been there and am still confused), I would really appreciate it. Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134960#4134960
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134960
18 years, 1 month