shale-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mohammad_gh <wt_u...@yahoo.com>
Subject java.lang.NullPointerException when using html view with JSP.
Date Tue, 28 Aug 2007 15:46:11 GMT

hi 

i am using clay and want to create an html view with JSP.
i downloaded ShaleClay.zip and deployed it.
everything is ok.
 
but i can not use a html view with JSP.

i added only the following file and i get the error below when 
calling the full.jsp .


i did not change anything else in the configurations.
what i have to do more?
--------------full.jsp---------------------
<%@ taglib prefix="clay" uri="http://shale.apache.org/clay" %>

 <clay:clay id="full" jsfid="/full.html" />
----------------------------------------
-------------------full.html----------------
<html>
<head>

</head>
<body>

<h3>test the full html view</h3>


<form> 
<input type="text" value="#{2+2}"/>
<input type="submit"/>
</form>
</html>


----------------------------------------
 org.apache.jasper.JasperException

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267)

root cause 
java.lang.NullPointerException

javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
	javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
	org.apache.jsp.full_jsp._jspx_meth_clay_clay_0(full_jsp.java:78)
	org.apache.jsp.full_jsp._jspService(full_jsp.java:55)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267)



help me please !!!
Mohammad GHASEMI HAMED

--------------------clay-config.xml-----------

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE view PUBLIC
      "-//Apache Software Foundation//DTD Shale Clay View Configuration
1.0//EN"
      "http://struts.apache.org/dtds/shale-clay-config_1_0.dtd">

<view>

	<component jsfid="baseLayout" extends="clay" id="base">
		<attributes>
			<set name="clayJsfid" value="/templates/standard.html" />
		</attributes>
		<symbols>
			<set name="title" value="Hello World" />
			<set name="leftContent" value="/pages/defaultLeftNav.html" />
			<set name="headerContent" value="/pages/defaultHeader.html" />
			<set name="bodyContent" value="/pages/defaultBody.html" />
			<set name="footerContent" value="/pages/defaultFooter.html" />
		</symbols>
	</component>

</view>
----------------------clay-views-config.xml-----------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE view PUBLIC
      "-//Apache Software Foundation//DTD Shale Clay View Configuration
1.0//EN"
      "http://struts.apache.org/dtds/shale-clay-config_1_0.dtd">

<view>
	<component jsfid="/page1.jsf" extends="baseLayout">
		<symbols>
			<set name="title" value="Page 1" />
			<set name="bodyContent" value="/pages/page1Body.html" />
		</symbols>
	</component>
	<component jsfid="/page2.jsf" extends="baseLayout">
		<symbols>
			<set name="title" value="Page 2" />
			<set name="bodyContent" value="/pages/page2Body.html" />
		</symbols>
	</component>
	<component jsfid="/page3.jsf" extends="baseLayout">
		<symbols>
			<set name="title" value="Page 3" />
			<set name="bodyContent" value="/pages/page3Body.html" />
		</symbols>
	</component>
</view>

-- 
View this message in context: http://www.nabble.com/java.lang.NullPointerException-when-using-html-view-with-JSP.-tf4342539.html#a12370548
Sent from the Shale - User mailing list archive at Nabble.com.


Mime
View raw message