ExadelStudio-3.5.1 (not pro) - Tomcat doesn't run -missing java_home?

Hi,

I got the following message trying run the Tomcat inside Exadel:

"Tomcat requires a Java SDK in order to compile JSP files. Ensure that the

JRE preference settings point to an SDK install location".

My JRE seems to be pointed correctly. What is the problem?

Thanks.

[307 byte] By [DistillingJavaa] at [2007-10-2 18:26:14]
# 1
Please, I really need help on this. I can't move on! Does anyone knows what's wrong? Thanks in advance.
DistillingJavaa at 2007-7-13 19:47:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Check again:

Window->Preferences ; Java -> Installed JREs

One of them should be pointed to the JDK, not just JRE. In it is not, add one and click OK

Then:

Window->Preferences ; Server -> Intalled Runtime

Click your runtime server and click Edit. Check that it points to the JDK for JRE drop down box.

Sergey.Smirnova at 2007-7-13 19:47:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Thank you very much, it fixed the error message, but I still didn't get start the Tomcat page. On

http://localhost:8080/ showed me:

Directory Listing For /

and on http://localhost:8080/jsf-application/login.jsp:

java.lang.NullPointerException

com.sun.faces.taglib.jsf_core.LoadBundleTag.doStartTag(LoadBundleTag.java:96)

org.apache.jsp.login_jsp._jspx_meth_f_loadBundle_0(login_jsp.java:112)

org.apache.jsp.login_jsp._jspService(login_jsp.java:75)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

DistillingJavaa at 2007-7-13 19:47:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
..sorry.. one more thing. If I start the Tomcat outside from Eclipse, it show me the Tomcat page but still delivery the same NullPointerException. Thanks in advance.
DistillingJavaa at 2007-7-13 19:47:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

this is the servlet with its lines:

107com.sun.faces.taglib.jsf_core.LoadBundleTag _jspx_th_f_loadBundle_0 = (com.sun.faces.taglib.jsf_core.LoadBundleTag)

_jspx_tagPool_f_loadBundle_var_basename_nobody.get(com.sun.faces.taglib.jsf_core.LoadBundleTag.class);

108_jspx_th_f_loadBundle_0.setPageContext(_jspx_page_context);

109_jspx_th_f_loadBundle_0.setParent(null);

110_jspx_th_f_loadBundle_0.setBasename("sample.messages");

111_jspx_th_f_loadBundle_0.setVar("msg");

112int _jspx_eval_f_loadBundle_0 = _jspx_th_f_loadBundle_0.doStartTag();

I will take a look at my Bundle tag msg. If you see something, please, let me know. Thanks.

DistillingJavaa at 2007-7-13 19:47:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

This is not a tool problem. You are right. You call the jsf page directly without using jsf servlet mapping. It does not work such way. What you need is using the right URL. The URL depends of the registrated mapping.

if it is *.jsf use http://localhost:8080/jsf-application/login.jsf

if it is /faces/* use http://localhost:8080/jsf-application/faces/login.jsp

Sergey.Smirnova at 2007-7-13 19:47:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
Look at this site you sent to me. They use the url exactly like me. I am still trying. Thanks.
DistillingJavaa at 2007-7-13 19:47:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8
missed the site http://www.exadel.com/web/portal/products/onlineDemoESGeneral
DistillingJavaa at 2007-7-13 19:47:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 9
sorry.. sorry .. sorry.. as always you are allright... I got it. Thank you so much!Correct url: http://localhost:8080/jsf-application/login.jsf (I didn't see this .jsf)
DistillingJavaa at 2007-7-13 19:47:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...