Repost with line breaks.
I have a simple project to try persistence. there are 2 classes: a entity bean and a entity bean controler. the war layout is below.
<br>
<br>META-INF/
<br>META-INF/MANIFEST.MF
<br>index.jsp
<br>WEB-INF/
<br>WEB-INF/classes/
<br>WEB-INF/classes/META-INF/
<br>WEB-INF/classes/META-INF/persistence.xml
<br>WEB-INF/classes/pm/
<br>WEB-INF/classes/pm/entity/
<br>WEB-INF/classes/pm/entity/RecordsTest.class
<br>WEB-INF/classes/pm/entity/ContextListener.class
<br>WEB-INF/classes/pm/entity/Records.class
<br>WEB-INF/web.xml
<br>WEB-INF/sun-web.xml
<br>
<br>contents of index.jsp is simple enough:
<br><jsp:useBean id="recordsTest" class="RecordsTest" scope="application" />
<br><html>
<br><body>
<br>Skype Login is: // here I use a scriptlet to call method in RecordsTest
<br></body>
<br></html>
<br>
<br>persistence.xml is:
<br><persistence>
<br> <persistence-unit name="TestPersistence">
<br> <jta-data-source>jdbc/testDB</jta-data-source>
<br> <class>pm.entity.RecordsTest</class>
<br> <class>pm.entity.Records</class>
<br> <class>pm.entity.ContextListener</class>
<br> </persistence-unit>
<br></persistence>
<br>
<br>deployment is successful, but launching always threw error:
<br>PWC6197: An error occurred at line: 1 in the jsp file: /index.jsp
<br>PWC6199: Generated servlet error:
<br>string:///index_jsp.java:45: cannot find symbol
<br>symbol : class RecordsTest
<br>location: class org.apache.jsp.index_jsp
<br>[b]why RecordsTest can't be found? any help is appreciated, please![/b]
[Message sent by forum member 'galaxy2010']
http://forums.java.net/jive/thread.jspa?messageID=395728