Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : J2EE : JavaBeans/EJB : Unable to run firstEJB.jsp Signup · Login
Author Thread
Unable to run firstEJB.jsp
Posted in tutorial: An Introduction to Enterprise JavaBeans
·  sayed
User
Joined: 18 Apr 2005
Total Posts: 2
Unable to run firstEJB.jsp
Posted: 19 Apr 2005
Fisrt of all many many thanx for ur simple online guide.
I followed ur guide but towards the end i am not finidg some files and folders as written .Assumiing wrongly written i searched in my copmuter but i didnt get any such .Kinldy solve my problems i'll be highly obliged .

1)
iv. Deploying FirstEJB.jar on JBoss Server :
Deploying EJBs on JBoss is as easy as copying the FirstEJB.jar file and pasting it into the C:\JBoss\deploy folder. If JBoss is running, you should see text messages appearing on the console that this EJB is being deployed and finally deployed and started. As simple as that.

Ques? I didnt get this message....


2)
vi. Running the JSP page :
Before trying to run firstJSP.jsp page, we have to do one other thing. Copy following files from C:\JBoss\client folder and paste them in the C:\Projects\TomcatJBoss\WEB-INF\lib folder. It is a must, without it firstEJB.jsp page will not run.

connector.jar (no such file in my JBoss\client folder)
deploy.jar (no such file in my JBoss\client folder)

jaas.jar (no such file in my JBoss\client folder)

jboss-client.jar
jboss-j2ee.jar
jbossmq-client.jar
jbosssx-client.jar
jndi.jar (no such file in my JBoss\client folder)

jnp-client.jar

As a result i am not able to run firstEJB.jsp.

3) Another query how to locate
http://localhost:8080/jboss/firstEJB.jsp
as firstEJB.jsp is not stored under tomcat


Getting the following errors

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 5 in the jsp file: /firstEJB.jsp

Generated servlet error:
[javac] Compiling 1 source file

E:\Tomcat\work\Standalone\localhost\jboss\firstEJB_jsp.java:10: package com.stardeveloper.ejb.session does not exist
import com.stardeveloper.ejb.session.First;
^
E:\Tomcat\work\Standalone\localhost\jboss\firstEJB_jsp.java:11: package com.stardeveloper.ejb.session does not exist
import com.stardeveloper.ejb.session.FirstHome;
^
E:\Tomcat\work\Standalone\localhost\jboss\firstEJB_jsp.java:55: cannot resolve symbol
symbol : class FirstHome
location: class org.apache.jsp.firstEJB_jsp
FirstHome home = (FirstHome)ctx.lookup("ejb/First");
^



An error occurred at line: 5 in the jsp file: /firstEJB.jsp

Generated servlet error:
E:\Tomcat\work\Standalone\localhost\jboss\firstEJB_jsp.java:55: cannot resolve symbol
symbol : class FirstHome
location: class org.apache.jsp.firstEJB_jsp
FirstHome home = (FirstHome)ctx.lookup("ejb/First");
^



An error occurred at line: 5 in the jsp file: /firstEJB.jsp

Generated servlet error:
E:\Tomcat\work\Standalone\localhost\jboss\firstEJB_jsp.java:56: cannot resolve symbol
symbol : class First
location: class org.apache.jsp.firstEJB_jsp
First bean = home.create();
^
5 errors


at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) ...............


will be waiting for ur quick reply.


with thanx and rgds
Sayed




Users Who Have Visited This Thread In Last 24 Hours
2 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.