[jboss-user] [EJB 3.0] - Re: Hibernate SessionFactory Injection

2009-01-10 Thread javidjamae
Yes, I got this to work by switching from the hibernate session factory configuration to the persistence.xml configuration. I could, however, still use my .hbm.xml mapping files that are deployed in a har file. View the original post :

[jboss-user] [Remoting] - Re: Changes in jboss-service.xml

2008-10-28 Thread javidjamae
Ron, thanks for the detailed answer. That really clarifies everything. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4185192#4185192 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4185192

[jboss-user] [EJB 3.0] - Re: Invalid User on EJB authentication (JBoss 5 CR2)

2008-10-15 Thread javidjamae
Yes, this was definitely working in JBoss 4.x and in the JBoss 5 Beta releases. AFAIK, all the ClientLoginModule does is set the SecurityAssociation principal and Credential. For example, 8.5.3.10. ClientLoginModule in the JBoss 4 guide says: anonymous wrote : The ClientLoginModule is an

[jboss-user] [Remoting] - Changes in jboss-service.xml

2008-10-15 Thread javidjamae
I had a few questions about changes in the server/conf/jboss-service.xml file between the JBoss 5 beta releases and the CR releases. 1) I noticed that the jboss.remoting:service=Connector,transport=socket MBean had changed. In particular I noticed that the handlers section defined in the

[jboss-user] [EJB 3.0] - Re: Invalid User on EJB authentication (JBoss 5 CR2)

2008-10-15 Thread javidjamae
I tried this using the following jndi.properties file: | java.naming.factory.initial=org.jboss.security.jndi.JndiLoginInitialContextFactory | java.naming.provider.url=jnp://localhost:1099 | I then set the following in my client: | Properties env = new Properties(); |

[jboss-user] [EJB 3.0] - Re: Invalid User on EJB authentication (JBoss 5 CR2)

2008-10-15 Thread javidjamae
OK, when I try to do it with a real JAAS login, it works. My client looks like this: | SecurityAssociationHandler handler = new SecurityAssociationHandler(); | SimplePrincipal user = new SimplePrincipal(principal); | handler.setSecurityInfo(user, password.toCharArray()); | LoginContext

[jboss-user] [Security JAAS/JBoss] - SecurityAssociation and ClientLoginModule authentication not

2008-10-15 Thread javidjamae
I posted a message to the EJB3 forums about remote client EJB security not working on JBoss 5 CR2 when directly setting the principal/credentials on the SecurityAssociation or by using the ClientLoginModule. http://www.jboss.com/index.html?module=bbop=viewtopicp=4182511 I was able to login

[jboss-user] [EJB 3.0] - Re: Invalid User on EJB authentication (JBoss 5 CR2)

2008-10-15 Thread javidjamae
Thanks, I posted this message on the security forum to see if I get an answer: http://www.jboss.com/index.html?module=bbop=viewtopicp=4182527 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4182528#4182528 Reply to the post :

[jboss-user] [EJB 3.0] - Invalid User on EJB authentication (JBoss 5 CR2)

2008-10-14 Thread javidjamae
I'm trying out JBoss 5 CR2. I have an EJB application that uses dynamic login config. The application seems to deploy fine, and my security configuration is correct, because I can access the application from a Web interface. But when I try to authenticate with the same user from a remote EJB

[jboss-user] [EJB/JBoss] - Re: Is passivation enabled twice?

2008-10-12 Thread javidjamae
I looked at this again with JBoss 5 CR2, and it still seems like passivation is enabled in two places. The cache configuration I had listed as #2 above has moved into the following file however: jboss-5.0.0.CR2\server\all\deploy\cluster\jboss-cache-manager.sar\META-INF\jboss-cache-configs.xml

[jboss-user] [EJB 3.0] - Re: Hibernate SessionFactory Injection

2008-10-10 Thread javidjamae
So does anybody have the final word on whether this functionality will be in JBoss 5 or not? If it will be in JBoss 5, any ideas on what I am doing something wrong in my code? Or is the functionality broken right now? Thanks. View the original post :

[jboss-user] [EJB 3.0] - Re: EJB3 SSL not working in JBoss 5 Beta3?

2008-10-10 Thread javidjamae
In case you're trying this out on JBoss 5 CR2, to get this to work I had to use the following service: | server | | mbean code=org.jboss.remoting.transport.Connector | name=jboss.remoting:type=Connector,transport=sslsocket3843,handler=ejb3 | attribute

[jboss-user] [EJB 3.0] - Re: Hibernate SessionFactory Injection

2008-10-09 Thread javidjamae
wolfc, I'm not sure what you mean. I'm trying to inject a session factory into the bean. According to section 5.2 of this link, this is a supported feature: http://www.jboss.org/jbossejb3/docs/reference/build/reference/en/html/hibernate.html I also verified that this works in the Beta

[jboss-user] [EJB 3.0] - Hibernate SessionFactory Injection

2008-10-08 Thread javidjamae
I'm trying to figure out how to inject a SessionFactory into an EJB in JBoss 5.0.0 CR2. I'm getting the following error: | 23:26:32,125 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/jboss-5.0.0.CR2/server/enterpris | e/deploy/video.ear state=PreReal mode=Manual

[jboss-user] [EJB 3.0] - Re: Hibernate SessionFactory Injection

2008-10-08 Thread javidjamae
BTW: the variables I show in the video-hibernate.xml get populated with real values when I build. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4181137#4181137 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4181137

[jboss-user] [EJB 3.0] - Deployment Descriptor Overriding Not Working?

2008-10-07 Thread javidjamae
I'm playing around with JBoss 5.0.0 CR2. I have tried binding EJB Stateless session beans using annotations and using deployment descriptors, and they both seem to work fine separately. But, when I define a bean with the @LocalBinding and @RemoteBinding annotations and then try to override the

[jboss-user] [EJB 3.0] - Injecting an EJB into a Servlet

2008-10-07 Thread javidjamae
I'm trying to inject an EJB into a Servlet in JBoss 5 CR2. I have an ear called video.ear. The ear has a video.war, video.jar, and video.har in it (though the har should be irrelevant). The binding Here is my Servlet Code: | public class VideoServlet extends HttpServlet { |

[jboss-user] [Security JAAS/JBoss] - Re: Dynamic login config broken in JBoss 5 Beta4

2008-09-02 Thread javidjamae
So is this a bug in CR1? Has anybody been able to get dynamic login to work? If possible, could somebody point me to where the unit tests might be for this, because I couldn't seem to find them. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4173834#4173834

[jboss-user] [Security JAAS/JBoss] - Re: Dynamic login config broken in JBoss 5 Beta4

2008-08-24 Thread javidjamae
OK, I just tried this out on CR1, using the same code that I got to work on Beta4, and it doesn't seem to work. Did something change again? Here is the service: | server | mbean code=org.jboss.security.auth.login.DynamicLoginConfig | name=jboss:service=DynamicLoginConfig |

[jboss-user] [Clustering/JBoss] - Re: ACCESS Replication trigger

2008-08-19 Thread javidjamae
So is this an oversight in the DTD? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171410#4171410 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171410 ___ jboss-user mailing list

[jboss-user] [Clustering/JBoss] - ACCESS Replication trigger

2008-08-17 Thread javidjamae
Looking at JBoss 5 CR1, the documentation in the jboss-web_5_0.dtd file does not mention the ACCESS replication-trigger value, but the code seems to support it based on the org.jboss.metadata.web.jboss.ReplicationTrigger.java class

[jboss-user] [EJB 3.0] - Re: EJB3 SSL not working in JBoss 5 Beta3?

2008-05-10 Thread javidjamae
Excellent, that worked! Thanks a lot! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4149934#4149934 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4149934 ___ jboss-user mailing

[jboss-user] [EJB 3.0] - Re: EJB3 SSL not working in JBoss 5 Beta3?

2008-04-30 Thread javidjamae
I gave up on this with Beta 3, but I just came back to it on Beta 4 and I'm still getting the same error. Does anybody have any insight as to what the problem may be? BTW: Those SVN links you posted are no longer working, can somebody point me to the new location of the EJB3 SSL tests /

[jboss-user] [EJB 3.0] - Re: EJB with SSL does not work with JBoss AS 4.2.2

2008-04-30 Thread javidjamae
I have the same problem that I have posted in another thread: http://www.jboss.com/index.html?module=bbop=viewtopicp=4148046 Aparently, the JBoss unit tests work (which I haven't verified personally), but I can't seem to get it to work in my environment. View the original post :

[jboss-user] [Security JAAS/JBoss] - Re: Dynamic login config broken in JBoss 5 Beta4

2008-03-12 Thread javidjamae
I had a WAR file, but that is what the problem was. I had to move the dynamic-login.xml file to the WEB-INF/classes directory. One thing that should be noted is that (I think) the default file that the dynamic login config service looks for is not available in this new strict classpath. View

[jboss-user] [Security JAAS/JBoss] - Re: Dynamic login config broken in JBoss 5 Beta4

2008-02-25 Thread javidjamae
Does anybody know if this is a known issue, or should I open a bug? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4131879#4131879 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4131879

[jboss-user] [EJB 3.0] - Re: EJB3 SSL not working in JBoss 5 Beta3?

2008-02-15 Thread javidjamae
It seems like I'm doing everything the same, but I get the following error on the server: | 14:36:15,468 ERROR [ServerThread] Worker thread initialization failure | java.lang.reflect.InvocationTargetException | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native

[jboss-user] [Security JAAS/JBoss] - Dynamic login config broken in JBoss 5 Beta4

2008-02-15 Thread javidjamae
Dynamic login config does not work in Beta4, but I verified that the same code / configuration worked in Beta3. The exception is: | 17:05:55,015 ERROR [AbstractKernelController] Error installing to Start: name=jboss:service=DynamicLoginConfig state=Create mode=Manual

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: HAR deployment broken in JBoss 5 Beta4

2008-02-12 Thread javidjamae
I couldn't find a bug for this, so I created: http://jira.jboss.org/jira/browse/JBAS-5232 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128982#4128982 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128982

[jboss-user] [Installation, Configuration DEPLOYMENT] - HAR deployment broken in JBoss 5 Beta4

2008-02-12 Thread javidjamae
I've tried deploying a HAR in JBoss 5 Beta 4 (both inside and outside of an EAR) and I get the following. I verified that the same exact code works in Beta 3. Is this a known issue? | 21:10:08,156 ERROR [AbstractKernelController] Error installing to Start: name=jbia.har:app=Video

[jboss-user] [EJB 3.0] - Re: EJB3 SSL not working in JBoss 5 Beta3?

2008-02-11 Thread javidjamae
So has anybody been able to get EJB's working over SSL in JBoss 5, or is this a bug? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128356#4128356 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128356

[jboss-user] [EJB 3.0] - EJB3 SSL not working in JBoss 5 Beta3?

2008-02-06 Thread javidjamae
I'm trying to get a standalone client to communicate with an EJB over SSL. I tried following the directions here, but they didn't work: http://labs.jboss.com/jbossejb3/docs/tutorial/ssl/ssl.html It complained that it didn't know what jboss.aop:service=AspectDeployer was. I figured that is

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Can't start JBoss 5 Beta3 with a JRE

2008-02-04 Thread javidjamae
Yes, that's exactly the problem, if its a pure JRE installation, it doesn't have the server directory. Do we need to open up a JIRA issue for this? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126211#4126211 Reply to the post :

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Can't start JBoss 5 Beta3 with a JRE

2008-02-04 Thread javidjamae
I created: http://jira.jboss.org/jira/browse/JBAS-5206 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126216#4126216 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126216 ___

[jboss-user] [Installation, Configuration DEPLOYMENT] - Can't dynamically undeploy on Windows (JBoss 5 Beta3)

2008-02-04 Thread javidjamae
On windows, I can't seem to undeploy a file from JBoss by deleting it from the deploy directory while JBoss is running because JBoss seems to keep a file handle open to the archive. I've tried this with EAR and WAR files. I didn't have this problem on JBoss 4. If I'm not mistaken, this issue

[jboss-user] [Installation, Configuration DEPLOYMENT] - Can't start JBoss 5 Beta3 with a JRE

2008-02-03 Thread javidjamae
From what I understand JBoss 5 is supposed to be able to start with just a JRE and uses the Eclipse JDT library to do all its dynamic JSP compiling. However, when I try to start the default configuration on Windows using run.bat, or run.sh from Cygwin, I get the following error: | $

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Can't start JBoss 5 Beta3 with a JRE

2008-02-03 Thread javidjamae
No.. neither run.bat nor run.sh works from cygwin or from a command prompt.. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4125900#4125900 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4125900

[jboss-user] [EJB 3.0] - Error with XML-based security and JMX service beans

2008-01-26 Thread javidjamae
I'm running JBoss 5.0.0.Beta3, and when I try to start an application that has EJB security defined in the META-INF/ejb-jar.xml file and a JMX service bean defined via an @EJB annotation, I get the error seen below. Am I doing something wrong? If this is a bug I'll file a JIRA issue and upload

[jboss-user] [EJB 3.0] - Re: Security annotations not working in 5.0.0.Beta3

2008-01-25 Thread javidjamae
http://jira.jboss.org/jira/browse/EJBTHREE-1186?watch=true View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123631#4123631 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123631 ___

[jboss-user] [EJB/JBoss] - Re: Bug with whitespace in jboss-web.xml

2008-01-25 Thread javidjamae
I created JIRA issue JBAS-5173 (http://jira.jboss.org/jira/browse/JBAS-5173) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123511#4123511 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123511

[jboss-user] [EJB/JBoss] - Bug with whitespace in jboss-web.xml

2008-01-25 Thread javidjamae
I discovered a bug when you have whitespace in jboss-web.xml in JBoss 5.0.0.Beta3. I have a simple JSF application, and when I use the following, my application works fine: | ejb-local-ref | ejb-ref-nameejb/Calculator/ejb-ref-name |

[jboss-user] [EJB 3.0] - Security annotations not working in 5.0.0.Beta3

2008-01-25 Thread javidjamae
I'm trying to call an EJB with security annotations set on it, but only some of them work properly. Here is the EJB that I have: | @SecurityDomain(simple-security-domain) | @RolesAllowed( { bank-manager, teller }) | @Stateless | public class StatelessCalculatorBean implements

[jboss-user] [EJB/JBoss] - Re: Is passivation enabled twice?

2008-01-23 Thread javidjamae
So is this a bug? Any insight? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4122862#4122862 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122862 ___ jboss-user mailing list

[jboss-user] [EJB/JBoss] - Is passivation enabled twice?

2008-01-04 Thread javidjamae
I've yet to verify, but it looks like passivation is enabled twice for stateful session beans in the all configuration of JBoss-5.0.0.Beta3. 1) In server/all/conf/standardjboss.xml, the container for Standard Stateful SessionBean has the StatefulSessionFilePersistenceManager persistence

[jboss-user] [Remoting] - JRMP / Pooled invokers

2008-01-04 Thread javidjamae
The server/xxx/conf/jboss-service.xml file in JBoss-5.0.0.Beta3 still has references to the JRMP, Pooled, and Local invokers using the pre-JBoss Remoting detached invoker model. Since the unified invoker supports configuration for these protocols, what is the point in keeping them around

[jboss-user] [JBoss Seam] - Flex + Seam example not working

2007-12-31 Thread javidjamae
I tried to get the Flex + Seam example from the wiki working, using the instructions they give: anonymous wrote : 1. extract files to the SEAM-HOME/examples/remoting/helloworld/view dir | 2. run ant | 3. deploy seam-helloworld.ear | 4. Open a browser and go to

[jboss-user] [JBoss Seam] - Re: Flex + Seam example not working

2007-12-31 Thread javidjamae
Thanks for the response. What versions of Seam and JBoss AS did you use? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116207#4116207 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116207

[jboss-user] [Installation, Configuration Deployment] - Re: Installing the APR native libraries in JBoss 5

2007-04-19 Thread javidjamae
Unless the installer knows how to detect the OS and download the appropriate library off the Web. I guess the other question is whether the binary distribution will come prepackaged with the APR native libraries. That would necessitate different downloads for different OSes. I guess the way

[jboss-user] [Installation, Configuration Deployment] - Installing the APR native libraries in JBoss 5

2007-04-18 Thread javidjamae
When I start JBoss 5 Beta 2, I get the following error: anonymous wrote : 17:12:33,406 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: I'm assuming that at this point you have to

[jboss-user] [Clustering/JBoss] - Re: NameAlreadyBoundException in JBoss5.0.0Beta1

2006-11-27 Thread javidjamae
Thanks Brian. http://jira.jboss.com/jira/browse/JBAS-3885 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3988953#3988953 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3988953 ___

[jboss-user] [Clustering/JBoss] - Re: NameAlreadyBoundException in JBoss5.0.0Beta1

2006-11-26 Thread javidjamae
I forgot to mention that I've started the nodes in different orders, and it is always the second node that throws this exception. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3988708#3988708 Reply to the post :

[jboss-user] [Clustering/JBoss] - NameAlreadyBoundException in JBoss5.0.0Beta1

2006-11-26 Thread javidjamae
I'm trying to bring up a vertical cluster (Jboss 5.0.0Beta1) using virtual IPs on a Windows XP box. I've created two copies of the all configuration called node1 and node2. I start them in different console windows as follows: ./run.sh -b 192.168.1.140 -c node1 ./run.sh -b 192.168.1.141 -c

[jboss-user] [Clustering/JBoss] - Re: NameAlreadyBoundException in JBoss5.0.0Beta1

2006-11-26 Thread javidjamae
No you don't. If you read the #1 option under the link that you sent me, it tells you how to do it without the ServiceBindingManager. You can start multiple nodes so long as you bind them to different network addresses running on the same machine. This is what I did using the -b flag as I

[jboss-user] [Clustering/JBoss] - Re: minor jdk version difference - would that be a BIG issue

2006-11-25 Thread javidjamae
rajeshchande, Just to clarify, there is no concept of a serialUID for the JDK itself, it is on a class by class basis. You could have some classes that change between minor versions, and others that don't. View the original post :

[jboss-user] [Clustering/JBoss] - Re: virtual host changes in each nodes config files?

2006-11-25 Thread javidjamae
One workaround is to load balance across two clusters and bring one cluster down at a time in order to deploy the changes. I've seen a few 24/7 production environments that do this, but it won't work for every architecture. View the original post :

[jboss-user] [Clustering/JBoss] - Http Session Passivation configuration on every node?

2006-11-25 Thread javidjamae
I'm messing around with the HTTP Session Passivation feature in JBoss 5.0.0 Beta1 for the first time, and I'm a bit confused about something: do I need to configure *every* node in my cluster to do passivation, or just a single node? My gut instinct is that it should work either way (which I'm

[jboss-user] [EJB/JBoss] - Re: EntityManager merge and the seam-registration example.

2006-09-14 Thread javidjamae
I know this is a late reply, but... Section 3.7 of the hibernate docs tells you that if the id is null (transient object), then it will persist, but if the id is populated (detached object) then it will merge. You have a transient object. Do you have the app populating the register form with

[jboss-user] [JBoss Seam] - Re: Relilability of the context cache

2006-07-17 Thread javidjamae
Wonderful! I was just putting together a small clustered environment to test this first hand. I think I'll go ahead and prove it to myself anyways. :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3958546#3958546 Reply to the post :

[jboss-user] [JBoss Seam] - Re: registration-sample ear does not work when renamed

2006-07-15 Thread javidjamae
The incorrect components.xml documentation is here: http://docs.jboss.com/seam/latest/reference/en/html/tutorial.html#d0e554 This should probably be updated to have the correct jndiPattern. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3958298#3958298 Reply

[jboss-user] [JBoss Seam] - Re: registration-sample ear does not work when renamed

2006-07-11 Thread javidjamae
The current SEAM documentation shows the contents of the components.xml file as follows: components | | component name=org.jboss.seam.core.init | !-- JNDI name pattern for JBoss EJB 3.0 -- | property name=jndiPattern#{ejbName}/local/property | /component |

[jboss-user] [JBoss Seam] - Re: VariableResolver 'user' not found error

2006-07-11 Thread javidjamae
One thing that I found was that you have to have a seam.properties file in your EJB jar file. For this example (the registration example) it will just be an empty file. If you don't put the seam.properties file in place, you will get those conversion errors. If turn on debugging and look in