unable to .wtpmodules file [message #202857] |
Tue, 23 October 2007 05:33 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #202936 is a reply to message #202890] |
Wed, 24 October 2007 01:03 |
Eclipse User |
|
|
|
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 #203048 is a reply to message #202978] |
Thu, 25 October 2007 05:40 |
Eclipse User |
|
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03923 seconds