[JBoss-user] [EJB/JBoss] - Re: Problem with JBoss 4.0.3
I've the same situation, an exploded ear with an exploded war and an exploded jar. The same application is working on JBoss 4.0.2, we're going to go in production. If I use the 4.0.3 server out of the box (with the UseJBossWebLoader = false) my application doesn't work, if I switch UseJBossWebLoader = true it works. The application has a web layer using a command that through an action class calls a SLSB that has only remote interfaces. This SLSB (called webLayer) uses some SLSBs that have only local interfaces. This "local" SLSBs use a class called DBAgent that obtains a JDBC connection from a resource pool, uses for getting or setting data in the database and then "closes" the connection releasing it to the pool. The problem I have is that I get an NoClassDefFoundError exception when an "internal" SLSB is trying to access a DBAgent. What I have to do I'd like to understand... Ciao View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902679#3902679 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902679 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Location to definer application specific properties
"javadeveloper30" wrote : Thanks but how to I refer to this in my property value. I tried $jboss.server.name as follows but it doesn't seem to be working | | abcprop = /usr/jboss-4.0.2/server/$jboss.server.name/abc | OK, I understand but I really don't know this... you could try abcprop = /usr/jboss-4.0.2/server/${jboss.server.name}/abc or, if it doesn't work, do something like this: define the property abcprop = abc and then String jBossDir = System.getProperty("jboss.server.dir"); String jBossServerName = System.getProperty("jboss.server.name"); String myProperty = System.getProperty("abcprop"); String total = jBossDir; total += System.getProperty("file.separator"); total += jBossServerName; total += System.getProperty("file.separator"); total += myProperty; And you'll have: /usr/jboss-4.0.2/server/MY_SERVER_NAME/abc Ciao View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894546#3894546 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894546 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Location to definer application specific properties
Sure, look at the http://localhost:8080/web-console and click on "System" in the java applet and you'll find all the JBoss System Properties. The system property "jboss.server.name" contains the name of the configuration that is running. Ciao View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894536#3894536 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894536 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Location to definer application specific properties
You can use the System Properties Service. It's very easy and useful. You'll find the file in your server\deploy directory called: properties-service.xml In the attribute URLList you can specify a list of files/URLs where you can put your application-level properties. If you need to change the application-level properties, you have only to change it in the file/URL specified in the properties-service.xml and touch it, and JBoss will stop and restart the System Properties Service with the new properties. Ciao View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894487#3894487 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894487 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: Still getting exceptions when run.sh executed
Beware of the fact that all the subdirectories under deploy the META-INF and WEB-INF directories are UPPERCASE I've a HP-UX machine exporting some samba directories and I've found that if I copy a directory tree (like the http-invoker.sar) all the META-INF and WEB-INF directories are transformed in lowercase and so JBoss is (naturally) unable to start. Hope this helps. Ciao View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887705#3887705 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887705 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: EJB Declarative Security does not work
Are you sure that you added the tag in the jboss.xml descriptor in you ejb layer deployment It seems that you didn't and so it will explain the behaviour you described. Let us know. Ciao Andrea View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885717#3885717 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885717 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Re: SET CHAINED MODE
You could add a connection property in you sybase-ds.xml file after the tag: jdbc:sybase:Tds:SERVER_IP:SERVER_PORT/DB_NAME the tag: set chained off the SQLINITSTRING connection property, quoting the Sybase JConnect 5.5 documentation: | Use this property to define a set of commands to be passed to the back-end database server. These must be SQL commands that can be executed using the Statement.executeUpdate( ) method. | I've never used the SQLINITSTRING connection property and so I'm not able to tell you more, but it's worth a try. Let us know if it's a working solution. Ciao View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882591#3882591 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882591 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Re: Connection Closing
You got an exception: com.sybase.jdbc2.jdbc.SybSQLException: Stored procedure 'prc_wfa_login_check' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode. telling you that the stored procedure called prc_wfa_login_check can't be run in unchained transaction mode. I think that the problem is that you don't have a finally block in your try/catch (or maybe you don't have a try/catch block and always throw away the exception) and so you don't explicit close the connection and JBoss is telling that he's closing it for you. The best thing to do is always, when calling a sp, surround the call with a try/catch/finally, always closing the connection in the finally. If you want to run the stored procedure called prc_wfa_login_check, set it like it can run in anymode (chained or unchained) running on the Sybase server the command: exec sp_procxmode prc_wfa_login_check, 'anymode' or, if it's possible, run it outside a transaction, setting the method calling the stored procedure with the transaction attribute NotSupported Ciao View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882590#3882590 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882590 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Does Sybase DB support
Which version of Sybase ASE (I suppose) are you using??? Until ASE 11.9.2 only TransactSQL left outer join syntax is supported (t1*=t2), from 12.0 and after (12.5.x) also the ANSI syntax is supported (left outer join t1 on t2.id=t1.id). Ciao View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880899#3880899 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880899 --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Invalid invocation, check your deployment packaging in JBoss
I've just downloaded a 4.0.2 distribution and all my applications doesn't work. I'm getting the errors below invoking the EJB layer from the Web layer. My applications work perfectly with 4.0.1sp1 and 3.2.x versions. What's happening | javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.acme.dayafter.interfaces.Test com.acme.dayafter.interfaces.TestHome.create() throws | javax.ejb.CreateException,java.rmi.RemoteException | Thank you in advance Andrea View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876805#3876805 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876805 --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Invalid invocation, check your deployment packaging in J
I've just RTFM ;-)) on the classloading issues, I understood the concepts but I don't see any out-of-the-box example how to be servlet spec compliant and still running my existing applications. Bye Andrea View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876817#3876817 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876817 --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user