Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » unable to .wtpmodules file
unable to .wtpmodules file [message #202857] Tue, 23 October 2007 05:33 Go to next message
Eclipse UserFriend
Originally posted by: sadhika06.gmail.com

Hi,
i am new to EJB. i am creating a simple EJB. unable to find .wtpmodules
file eventhough i am in resource perspective.
plz help me
bye
Re: unable to .wtpmodules file [message #202882 is a reply to message #202857] Tue, 23 October 2007 09:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Do you have the filter that hides .* files enabled? Use the little drop
down menu on the view to change your filters.


exquistinguisher wrote:
> Hi,
> i am new to EJB. i am creating a simple EJB. unable to find
> .wtpmodules file eventhough i am in resource perspective.
> plz help me
> bye
>
Re: unable to .wtpmodules file [message #202890 is a reply to message #202857] Tue, 23 October 2007 12:17 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
If you are expecting WTP to create this file, you would have to be using
a pre-1.0 version of WTP. I believe in WTP 1.0.x, it became
".settings/.component" and in WTP 1.5.x and later it is
".settings/org.eclipse.wst.common.component".

Cheers,
Larry

exquistinguisher wrote:
> Hi,
> i am new to EJB. i am creating a simple EJB. unable to find .wtpmodules
> file eventhough i am in resource perspective.
> plz help me
> bye
>
Re: unable to .wtpmodules file [message #202936 is a reply to message #202890] Wed, 24 October 2007 01:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sadhika06.gmail.com

Thanks Larry & Ed Merks for ur reply.....
i am using WTP 1.5.x...so i added the following code in the
org.eclipse.wst.common.component.

<dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/sampleEJBClient/sampleEJBClient">
<dependency-type>uses</dependency-type>
</dependent-module>

sampleEJBClient is my ejb client. i have added sampleEJBClient in my
javaBuildpath.

but when i am calling a method i am getting the error "Tiger not bound".
Tiger is the interface in the sampleEJBClient.
Plz help me
Thanks
bye
Re: unable to .wtpmodules file [message #202978 is a reply to message #202936] Wed, 24 October 2007 16:41 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
There isn't enough detail to tell what isn't working. Normally you
don't manually modify the org.eclipse.wst.common.component file to add
dependencies. Instead, you would go to the J2EE Module Dependencies
page of the project's properties dialog and check sampleEJBClient to add
it as a dependency. Is there some reason the J2EE Module Dependencies
page isn't working for you?

Larry

exquistinguisher wrote:
> Thanks Larry & Ed Merks for ur reply.....
> i am using WTP 1.5.x...so i added the following code in the
> org.eclipse.wst.common.component.
>
> <dependent-module deploy-path="/WEB-INF/lib"
> handle="module:/resource/sampleEJBClient/sampleEJBClient">
> <dependency-type>uses</dependency-type>
> </dependent-module>
>
> sampleEJBClient is my ejb client. i have added sampleEJBClient in my
> javaBuildpath.
>
> but when i am calling a method i am getting the error "Tiger not bound".
> Tiger is the interface in the sampleEJBClient.
> Plz help me
> Thanks
> bye
>
Re: unable to .wtpmodules file [message #203048 is a reply to message #202978] Thu, 25 October 2007 05:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sadhika06.gmail.com

i am following
http://www.eclipse.org/webtools/community/tutorials/ejbtutor ial/buildingejbs.html
link for creating the EJB.
once i add the sampleEJBClient in the javaBuildPath of my test
application, then sampleEJBClient is also added in J2EE Module
dependencies.
this is my test.jsp
<html>
<body>
<%
com.zoo.Tiger tiger = null;
try{
com.zoo.TigerHome home = com.zoo.TigerUtil.getHome();
tiger = home.create();

}catch(Exception exception)
{
System.out.println("exception e==="+exception.getMessage());
}


String str=tiger.roar();
System.out.println(str);
%>
</body>
</html>

if i am not adding dependency code in org.eclipse.wst.common.componet then
its giving error at line com.zoo.Tiger tiger=null;
nable to parse jsp page error.
if i add the dependency code then its saying "Tiger not bound".

Thanks a lott.
Bye
Re: unable to .wtpmodules file [message #203064 is a reply to message #203048] Thu, 25 October 2007 14:18 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
That tutorial appears to have been written for WTP 0.7x. For reference,
in WTP 1.0.x and later, steps 1 & 2 of the "Using Flexible projects
to link the web module with the an EJB Client module" section can be
accomplished by checking the sampleEJBClient on the web project's J2EE
Module Dependencies page.

I have notions about EJBs and Enterprise Applications, but very little
practical experience. My not terribly educated guess about the "Tiger
not bound" error is that it suggests that the Tiger EJB has not been
successfully deployed to the app server.

Cheers,
Larry

exquistinguisher wrote:
> i am following
> http://www.eclipse.org/webtools/community/tutorials/ejbtutor ial/buildingejbs.html
> link for creating the EJB.
> once i add the sampleEJBClient in the javaBuildPath of my test
> application, then sampleEJBClient is also added in J2EE Module
> dependencies.
> this is my test.jsp
> <html>
> <body>
> <%
> com.zoo.Tiger tiger = null;
> try{
> com.zoo.TigerHome home = com.zoo.TigerUtil.getHome();
> tiger = home.create();
> }catch(Exception exception)
> {
> System.out.println("exception e==="+exception.getMessage());
> }
>
> String str=tiger.roar();
> System.out.println(str);
> %>
> </body>
> </html>
>
> if i am not adding dependency code in org.eclipse.wst.common.componet
> then its giving error at line com.zoo.Tiger tiger=null;
> nable to parse jsp page error.
> if i add the dependency code then its saying "Tiger not bound".
>
> Thanks a lott.
> Bye
>
Re: unable to .wtpmodules file [message #203110 is a reply to message #203064] Fri, 26 October 2007 05:02 Go to previous message
Eclipse UserFriend
Originally posted by: sadhika06.gmail.com

i will try to re deploy on the server. Thanks Larry
bye
Previous Topic:Label/Content Provider for XML Editor's content outline?
Next Topic:WTP 2.0.1 - Perm gen space errors
Goto Forum:
  


Current Time: Sun Dec 22 03:00:59 GMT 2024

Powered by FUDForum. Page generated in 0.03923 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top