[JBoss-user] [EJB 3.0] - Re: MDB doesn't receive message from JMX Queue

2006-07-03 Thread mtedone1
Thanks, that worked. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955131#3955131 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955131 Using Tomcat but need to do more? Need to support web services, security? Get stu

[JBoss-user] [EJB 3.0] - Can Jboss auto-generate remote interfaces?

2006-07-02 Thread mtedone1
Hi, I'm reading the article at the following path: http://www.javaworld.com/javaworld/jw-08-2004/jw-0809-ejb-p2.html which says that the following signature for a slsb: @Stateless @Remote public class HelloWorldBean { public String sayHello() { return "Hello World!!!"; } } should b

[JBoss-user] [EJB 3.0] - TableGenerator doesn't work with MySQL

2006-07-02 Thread mtedone1
Hi, I tried the @GeneratedValue(strategy=GenerationType.AUTO) annotation on an entity mapped to a table with auto pk on and it worked fine. Then I tried to use the @TableGenerator as follows: | @javax.persistence.Id() | @javax.persistence.Column(name = "ID") | @TableGenerator(name

[JBoss-user] [EJB 3.0] - MDB doesn't receive message from JMX Queue

2006-07-02 Thread mtedone1
Hi, I created an mdb, that follows: | package uk.co.jemos.ejb3.mdbs; | | import javax.annotation.Resource; | import javax.ejb.ActivationConfigProperty; | import javax.ejb.MessageDriven; | import javax.ejb.MessageDrivenContext; | import javax.jms.JMSException; | import javax.jms.M

[JBoss-user] [EJB 3.0] - Re: Local and Remote interfaces - Do I really have to create

2006-07-02 Thread mtedone1
I do apologize. There was evidently an error in the interface declaration which lead to ClassCastException. An evident blunder. Could this post please be garbage collected? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954879#3954879 Reply to the post : h

[JBoss-user] [EJB 3.0] - Local and Remote interfaces - Do I really have to create two

2006-07-02 Thread mtedone1
Hi, I'm new to EJB3, so I'm probably missing something but here it goes... I developed a very simple slsb to manage Employees. Following the book I'm reading I created the business interface and implemented it from within the sb. So far so good. I'm studying EE 5 because I want to introduce the

[JBoss-user] [EJB 3.0] - Re: Changing default InvokerLocator port (ejb3-deployer)

2006-07-01 Thread mtedone1
Yeah, I got the same problem. Tried with 3873 and everything works fine, with another port it doesn't. Do you know if there is a task in JIRA for this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954862#3954862 Reply to the post : http://www.jboss.com/ind

[JBoss-user] [Beginners Corner] - Question about startup and shutdown

2006-02-19 Thread mtedone1
Is is correct to say that the LifeThread is the Thread which keeps Jboss alive and that the ShutDownHook is used to remove all services when Jboss is shut down? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924882#3924882 Reply to the post : htt

[JBoss-user] [Beginners Corner] - Re: problem with JBoss class loading

2006-02-12 Thread mtedone1
I wanted to add a comment to my previous posting: if it's true that deployment-based scoping will cause a ClassCastException in case a component in App2 tries to get through JNDI a component in App1, it is true that in the following scenario, only through deployment-based scoping it will be poss

[JBoss-user] [Beginners Corner] - Re: problem with JBoss class loading

2006-02-12 Thread mtedone1
I was posting a similar problem. I think it has to do with the deployment-based scoping. This is my scenario: App1.ear -> Contains a session bean, registered in JNDI App2.ear -> Contains a session bean, registered in JNDI, which retrieves and invokes a business method on session bean of App1 If

[JBoss-user] [JNDI/Naming/Network] - Re: Problems trying to get a DataSource. It asks for a clien

2005-06-28 Thread mtedone1
I think I found the problem: The java.naming.factory.url.pkgs property should have been set to: | org.jboss.naming:org.jnp.interfaces | rather than org.jboss.naming.client At least I tried now with this new property and it works fine. View the original post : http://www.jboss.org/inde

[JBoss-user] [JNDI/Naming/Network] - Re: Problems trying to get a DataSource. It asks for a clien

2005-06-27 Thread mtedone1
"darranl" wrote : What are the properties that you are putting into the InitialContext constructor? I know you say that the lookup of your session beans works but unless you have specified otherwise you are probably obtaining them from a different namespace. | | Also when posting errors ca

[JBoss-user] [JNDI/Naming/Network] - Problems trying to get a DataSource. It asks for a client

2005-06-26 Thread mtedone1
Hi, I have got a Simple ServiceLocator which performs a lookup on a datasource and returns such datasource to a session bean (which then uses it to perform straight SQL). During the lookup I get the following exception (also if I try to lookup the datasource from a plain java class): | java

[JBoss-user] [Persistence & CMP/JBoss] - Unknown pk works but a CreateException is thrown

2005-06-26 Thread mtedone1
Hi, I'm using automatic pk with MySQL. The entity bean declares the unknown pk, the records gets added, but after each .create() method the application server comes back with a CreateException, because the key was null. I don't think this is the correct behaviour, because an EJB should be indep

[JBoss-user] [Management, JMX/JBoss] - Re: Can't access a secured JMX-Console with JBoss 4.0.2

2005-06-23 Thread mtedone1
This is the output of the JBoss log file in DEBUG mode: | | 2005-06-23 23:34:53,750 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Created [EMAIL PROTECTED] | 2005-06-23 23:34:53,750 DEBUG [org.jboss.security.plugins.JaasSecurityManager.jmx-console] CachePolicy set to: [

[JBoss-user] [Management, JMX/JBoss] - Can't access a secured JMX-Console with JBoss 4.0.2

2005-06-23 Thread mtedone1
Hi, I'm following the instructions (quitly unanimous) about how to (simply) secure a JMX console. Although it seems I can login, a 403 error message is returned. Here is what I did: uncommented what had to be uncommented from the web.xml and jboss-web.xml under the jmx-console.war folder. V

[JBoss-user] [Installation & Configuration] - Verbose Classloading logging --> The file keeps growing and

2005-06-23 Thread mtedone1
Hi, I'm going through 'JBoss 4.0 The Official Guide' and reading LISTING 2.8 about a way to configure log4j.xml to obtain into a log file a verbose description of the Classloading mechanism. I tried that on my jboss 4.0.2 and, although it works, once the server has started there is a Thread whic

[JBoss-user] [Installation & Configuration] - Re:

2005-06-05 Thread mtedone1
I can confirm that Jboss 4.0.2 runs fine with Java 5. I'm running Windows XP SP2 with JDK 1.5.0_03. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880343#3880343 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880343

[JBoss-user] [Installation & Configuration] - Re: JAXP 1.3 (from JDK 1.5) with JBoss 4

2005-06-04 Thread mtedone1
If I had to use JAXP 1.3 with my application, I would have bundled it with the deployable, rather than changing the server core libraries, unless there are class loading issues. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880275#3880275 Reply to the post

[JBoss-user] [Installation & Configuration] - JSTL Exception runnint Tomcat 5.5 with Jboss 4.0.2

2005-06-04 Thread mtedone1
Hi, I'm running Windows XP SP2, With JDK 1.5.0_03, Jboss 4.0.2 (binaries) downloaded from SF. I've got the following JSP page: | | | <%@ taglib prefix="jemos" uri="jemosStats" %> | <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"; %> | <%@ taglib prefix="fmt" uri="http:/

[JBoss-user] [Security & JAAS/JBoss] - Re: Running JBoss with the default sandbox

2004-06-07 Thread mtedone1
Scott, I took example from your policy file, with few differences. I'm trying to rely on the default security mechanism that the security model follows in order to find the security policy of an application, that is the intersection between the ${java.home}/jre/lib/security.policy and ${user.hom

[JBoss-user] [Security & JAAS/JBoss] - Running JBoss with the default sandbox

2004-05-30 Thread mtedone1
Hi, I'm studying Java Security, and trying to run JBoss with the default sandbox parameters. I set several permissions so far, and now I'm getting the following exception: | java.security.AccessControlException: access denied javax.management.MBeanServerPermission: name=createMBeanServer

[JBoss-user] [Beginners Corner] - Re: Deployment problem I cannot solve - Problem solved but..

2004-05-09 Thread mtedone1
Well, I put the ejb.jar and web.war in an application file (.ear) and it deployed fine. Now the question is why? Why if an EJB is defined with a class extending the real session/entity it doesn't deploy if hot-deployed as a jar but it does deploy as ear? I'll investigate on this and I'll get b