Hi All,
I received the following error message after unsuccessfully trying to test tutorial EJB 3.0 Enterprise Beans for the JBoss Application Server (http://www.netbeans.org/kb/55/ejb30-jboss.html) by accessing servlet on http://localhost:8080/NewsApp-war/ListNews on my PC:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.RuntimeException: javax.naming.NameNotFoundException: NewsApp not bound
web.ListNews.lookupNewsEntityFacade(ListNews.java:95)
web.ListNews.processRequest(ListNews.java:48)
web.ListNews.doGet(ListNews.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
I am running Netbeans 5.5, JDK 1.5.09 bundled with JBoss 4.0.4 on Windows XP.
This is my first EJB exercise and would appreciate some guidances.
Many thanks,
Henry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997834#3997834
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997834
Hi all !
Hehe, I finded solution, that is simple.
- The first : modify file run.bat in JBOSS_HOME\bin.
Remove "rem" in line :
"rem set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m"
-> "set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m".
Because default size of heap memory in JBoss server is 64MB therefore you can increase size by modify digit 128 and 512 depending on size of RAM on your computer.
128 - that is total memory reserved for JVM.
512 - that is max memory reserved for JVM.
- The second : Run file run.bat in folder JBOSS_HOME\bin in order to start JBoss server, not start JBoss server in JBoss Eclipse (remember).
In order to check result modified, you can access web-console screen of JBoss at address : http://localhost:8081/web-console/.
Look and feel result.
Thanks all.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997833#3997833
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997833