[jboss-user] [Installation, Configuration DEPLOYMENT] - setting classpath that refer to a jar in ear bundle

2007-12-27 Thread vri_97
Hi,
I'm trying to set a classpath in myapp-service.xml file in Jboss 4.2.1.

my-app.ear
  |
  +--lib
|
+--myappjar.jar


Does anyone know how to add a classpath to myappjar.jar (in myapp-service.xml)?

I have tried to use :

1.  
2. 
2. 

But none is working.

Does anyone know how ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115849#4115849

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115849
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - setting classpath that refer to a jar in ear bundle

2007-12-27 Thread vri_97
Hi,
I'm trying to set a classpath in myapp-service.xml file in Jboss 4.2.1.

my-app.ear
  |
  +--lib
|
+--myappjar.jar


Does anyone know how to add a classpath to myappjar.jar (in myapp-service.xml)?

I have tried to use :

1. classpath codebase=. archives=my-app.ear#myapp.jar /
2. classpath codebase=./deploy/my-jar.ear archives=myappjar.jar /
3. classpath codebase=./deploy/my-jar.ear/lib archives=myappjar.jar/

But none is working.

Does anyone know how ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115850#4115850

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115850
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Dependency Injection @EJB in separate jar

2007-12-21 Thread vri_97
I have two jar, eg: ABC.jar dan DEF.jar. 
In ABC.jar I have a class that one of the attribute is an EJB in DEF.jar.

example :
in ABC. jar :
I have class MyClassInABC, with one of the attribute:
  @EJB
  private MyClassInDEF ejb;

MyClassInDEF reside in DEF.jar.

If I deploy the ABC.jar and DEF.jar at the same time, there will be 
java.lang.NoClassDefFoundError. But if I deploy DEF.jar, then deploy ABC.jar 
manually, it works properly. 
I guess it was failed because JBoss can not find MyClassInDEF bean when trying 
to inject it.

Would it possible to define a dependency in my ABC.jar ? so it will be deployed 
only AFTER DEF.jar successfully deployed ?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4114903#4114903

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4114903
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Using EJB injection in JMX / MBean

2007-08-21 Thread vri_97
Hi,
Is it possible to use @EJB in JMX / MBean service?

public class HelloService implements HelloServiceMBean{

@EJB
private static Hello hello;

   public void start() {
hello.sayHello()
   }
}
I have check in JNDI view, and HelloBean is already registered.
And I have set the dependency of the HelloService to HelloBean in 
jboss-service.xml. 
somehow, the injection is not working. hello is always return null
Does anyone know the cause, I try to search in this forum regarding the issue, 
and found nothing.
Thanks
Regards,
Ferry


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076165#4076165

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076165
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: Using EJB injection in JMX / MBean

2007-08-21 Thread vri_97
Thank you for the explanation.
After some thinking, I guess is it's because MBean was created before the EJBs. 
And by right, the EJB at the time of MBean creation is not available yet, so it 
can not be injected.
Though I put dependency on EJBs, it only delay to call the start() method, 
rather than the create().

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076556#4076556

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076556
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: ActiveMQ integration problem

2007-08-13 Thread vri_97
Hi,
I just get the information. 
Problem no 2, is ActiveMQ and has been fixed in version 5.0.0

refer to :
http://www.nabble.com/-jira--Resolved%3A-%28AMQ-1092%29-Deadlock-when-ActiveMQ-4.X-is-run-as-an-embedded-broker-inside-JBoss-4.X-with-%22%3Cconfig-property-value%3Evm%3A--localhost%3C-config-property-value%3E%22-configured-in-the-ra.xml-file.-tf3908435s2354.html#a11081719

If anyone know what is happening with problem 1, please help ...
Thanks.

Regards,
Ferry

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073448#4073448

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073448
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - ActiveMQ integration problem

2007-08-12 Thread vri_97
Hi,
I'm using:
- JBoss AS 4.2.0
- ActiveMQ 4.1.1

I tried to use ActiveMQ as message broker for my MDB. Somehow it is not run 
properly. I got 2 problem :
1. 13:32:10,344 WARN  [ManagementContext] Failed to start jmx connector: Cannot 
bind to URL [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException 
[Root exception is java.rmi.ConnectIOException: error during JRMP connection 
establishment; nested exception is: 
java.net.SocketException: Software caused connection abort: recv failed]
Does anyone know what is the problem ?

2. It seems that my MDB only process (receive the event) when it was first time 
deployed. The sequence :
a. Run JBOSS AS
b. Run client, send message to a queue
c. Deploy my MDB
d. My MDB can process the message
e. Run the client again
f. MDB do nothing, until, I redeploy the MDB again.

Client snippet :
InitialContext ic = new 
InitialContext(System.getProperties());

//connect using active mq
ActiveMQConnectionFactory cf = new 
ActiveMQConnectionFactory();
Queue queue = 
(Queue)ic.lookup(activemq/queue/outbound);
ic.close();
System.out.println(Queue testQueue exists);
Connection connection = cf.createConnection();

Session sess = 
connection.createSession(false,Session.AUTO_ACKNOWLEDGE);
MessageProducer sender = sess.createProducer(queue);
TextMessage msg = sess.createTextMessage(test 
activemq4);
sender.send(msg);
connection.close();

MDB Snippet:
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = destinationType, 
propertyValue = javax.jms.Queue),
@ActivationConfigProperty(propertyName = destination, 
propertyValue = queue.outbound),
@ActivationConfigProperty(propertyName = acknowledgeMode, 
propertyValue=Auto-acknowledge)})
public class HelloMDB implements MessageListener {

public void onMessage(Message arg0) {
try {
TextMessage tm = (TextMessage)arg0;
System.out.println(Hello I'm Message Bean, receive 
msg: +tm.getText());
} catch (JMSException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Does anyone know what happen ?
Is it because of deadlock in the queue (between producer and consumer) or ?
Sorry, I'm not so sure where should I ask this question, whether to ActiveMQ 
forum, or JBoss.
Please help.
Thanks.
Regards,
Ferry



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073442#4073442

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073442
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: BAD_POOL_HEADER, BLUE SCREEN

2007-08-06 Thread vri_97
Hi,
I also experience the same thing. I try to run JBoss 4.2.0GA on JDK 1.5.0_12 
with all configuration.
Does anyone has find the root cause ?
I try to run it on my friend's computer, it runs perfectly fine. I can not tell 
what is wrong. I compared the dlls(version) with my friend's, it's the same.
The only difference is my friend run the JBoss with JDK 1.5.0_03, which I think 
should not make any difference (or maybe I'm wrong?)

Regards,
Ferry


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071115#4071115

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071115
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: java.lang.VerifyError

2007-06-18 Thread vri_97
Hi Tim Fox,

As quoted from my first post :
I'm using JBoss AS 4.2, Eclipse 3.2.2, JBoss IDE2.0, and JBoss Messaging 1.3 
GA. I can run the sample ejb3mdb from Jboss Messaging bundle with no problem. 

Yes, I can run the sample with no problem, but I have problem when run it in 
Eclipse 3.2.2 with JBOSS IDE2.0. So what I'm doing is to update the Jboss ide 
plug-in.
Perhaps I'm just careless of not reading the Jboss ide plug-in guide on Jboss 
Messaging installation.

The solution was found by my partner, which has the similar solution, when we 
have problem running EJB3 in JBoss AS 4.2 in Jboss IDE.

Thank you.

Regards,
Ferry

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4055433#4055433

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055433
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: java.lang.VerifyError

2007-06-17 Thread vri_97
Hi All,
Thanks for all your response.
The problem is gone, after I update the following files to eclipse plugin for 
jboss ide :
- /lib/javassist.jar
- /deploy/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar
- /deploy/jboss-aop-jdk50.deployer/trove.jar

the plugin for jboss ide is in :
{ECLIPSE}\plugins\org.jboss.ide.eclipse.jdt.aop.core_1.2.0.Beta2\


Regards,
Ferry

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4055092#4055092

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055092
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - java.lang.VerifyError

2007-06-07 Thread vri_97
Hi,

I'm trying to develop a simple client for EJB3's MDB, but somehow it will 
always raise exception in (ConnectionFactory)ic.lookup(/ConnectionFactory) 
statement (it's exactly the same with the sample in Jboss Messaging bundle)

InitialContext ic = new InitialContext();
ConnectionFactory cf = (ConnectionFactory)ic.lookup(/ConnectionFactory);
Queue queue = (Queue)ic.lookup(/queue/testQueue);

The exception :
Exception in thread main java.lang.VerifyError: (class: 
org/jboss/jms/client/delegate/ClientConnectionFactoryDelegate, method: 
getClientAOPStack signature: ()[B) Incompatible object argument for function 
call

I'm using JBoss AS 4.2, Eclipse 3.2.2, JBoss IDE2.0, and JBoss Messaging 1.3 
GA. I can run the sample ejb3mdb from Jboss Messaging bundle with no problem. 
Does anyone know what is happening ?

Thank you.

Regards,
Ferry

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4052005#4052005

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052005
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: Port already in use: 1098

2007-06-04 Thread vri_97
Hi Venni,
I have same problem before, apparently my antivirus was using that port.
If you have personal firewall, it can tell you which application is using a 
port. Basically you can also find out from cmd.exe by running netstat, but 
somehow when I encountered this problem, it didn't show up

regards,
Ferry

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050801#4050801

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050801
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-06-03 Thread vri_97
Hi Ruchika,
Thank you for your reply.
Sorry, I don't understand where should I put the following suggested statement 
to ?
@EJB(name=java:comp/env/ejb/MyBeanLocal) 

Should I put it in interface, the bean itself or at the client side ?
As I'm new to J2EE, and the condition that there is still a few EJB3 issue in 
JBoss, do you think I should go ahead with EJB3 or I should go for EJB2.1 ?
Thank you.

Regards,
Ferry

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050780#4050780

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050780
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-06-03 Thread vri_97
Hi Ruchika,
Sorry, forget about my previous post, I just checked in other forum.

I'm still struggling with my JBoss 4.2, it's still not working, even if I call 
the bean using :
MyLocalIfc bean = (new InitialContext()).lookup(myEAR/MyremoteBean/remote);

Thank you.
Regards,
Ferry

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050781#4050781

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050781
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread vri_97
Hi Ruchi,
I also has the same problem with Mustafa, so in this case  are you suggesting 
that EJB3.0 is not run properly in JBoss yet ? esp in 4.0 an 4.2?
Which JBoss AS version do you suggest for running EJB3.0 ?
Thank you
Regards,
Ferry

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050368#4050368

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050368
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user