NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to launch my RESTful TEST with JAVA Enterprise application

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
pakkk



Joined: 25 Jun 2009
Posts: 8

PostPosted: Thu Jun 25, 2009 4:40 pm    Post subject: How to launch my RESTful TEST with JAVA Enterprise application Reply with quote

Hi, I want to TEST my RESTful WebService in my JAVA Enterprise Application.

I have a bit database in my EJB Module. Resuming, I have two modules (EJB + WAR) and Enterprise Application (JAVA EE that contains the before modules). Appears two kind of errors:

1) When I only deploy JAVA Enterprise Project an then I run my TEST Restful, appears an error that says: "Another module has been deployed" . This error is about JAVA Enterprise Application has been deploy before.

2) If I only deploy TEST Restful, this doesn't find Facaderemote class of my EJB Module, because WAR Project hasn't the EJB references.

Thanks a lot.
Back to top
michael
Posted via mailing list.





PostPosted: Sun Jun 28, 2009 5:40 am    Post subject: How to launch my RESTful TEST with JAVA Enterprise application Reply with quote

Hello Pakkk,
Try the following:
1. Undeploy your enterprise application (using netbeans or the management console)
2. Restart glassfish
3. Deploy the enterprise application again

If you still have trouble, post the error here. If it solved the problem, please post it here also :-)

--Michael




-----Original Message-----
From: pakkk [mailto:address-removed]
Sent: Thursday, June 25, 2009 7:40 PM
To: address-removed
Subject: [nbj2ee] How to launch my RESTful TEST with JAVA Enterprise application


Hi, I want to TEST my RESTful WebService in my JAVA Enterprise Application.



I have a bit database in my EJB Module. Resuming, I have two modules (EJB + WAR) and Enterprise Application (JAVA EE that contains the before modules). Appears two kind of errors:



1) When I only deploy JAVA Enterprise Project an then I run my TEST Restful, appears an error that says: "Another module has been deployed" . This error is about JAVA Enterprise Application has been deploy before.



2) If I only deploy TEST Restful, this doesn't find Facaderemote class of my EJB Module, because WAR Project hasn't the EJB references.



Thanks a lot.
Back to top
pakkk



Joined: 25 Jun 2009
Posts: 8

PostPosted: Tue Jun 30, 2009 7:51 pm    Post subject: Reply with quote

My project works! You must follow the next steps:

1) Right Button on Java Enterprise Application
2) You choose Property Option
3) Option RUN
4) In the Relative URL field you write your directory that runs REST, for example:

resources/modules/1

"modules" is the name in my RestFul Test Call.

Bye!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo