Good Afternoon Andy- once your jsp page is produced i have a quick compile script to compile your jsp page cd $AS_HOME%\samples\quickstart\web\debug javac -classpath .\jars\struts2-core-2.2.1.1.jar;.\jars\javaee.jar;.\jars\glassfish-jspparser-2.0.jar;.\jars\jsp-impl.jar;\jars\jsp-api-2.1-6.0.0.rc2.jar;%CLASSPATH% .\org\apache\jsp\debug_jsp.java I almost forgot..Happy Father's Day! Martin Gainty ______________________________________________ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: mgainty@hotmail.com To: user@struts.apache.org; andy.birchall@gmail.com Subject: RE: Exception when using Struts debug tag on Glassfish Date: Sat, 18 Jun 2011 23:05:01 -0400 Good Evening Andy- you should reproduce this procedure on your Glassfish installation find a folder which contains an index.jsp e.g. C:\GlassFish\glassfish\samples\quickstart\web\ place debug.jsp in case you lost the page here it is: <%@ taglib prefix="s" uri="/struts-tags.tld" %> Non-UI Tags Example: Debug

Debug Tag Usage

This page shows a simple example of using the debug tag.
Just add <s:debug /> to your JSP page and you will see the debug link.

Just click on the Debug label to see the Struts ValueStack Debug information.

now we're going to use the Glassfish jspc.bat in case you lost it here is mine (assume GLASSFISH_HOME is set to install folder) @echo on REM REM Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. REM Use is subject to license terms. REM setlocal call "%GLASSFISH_HOME%\config\asenv.bat" REM "%AS_JAVA%\bin\java" -cp "%AS_INSTALL%\lib\javaee.jar;%AS_INSTALL%\lib\appserv-ext.jar;%AS_INSTALL%\lib\appserv-rt.jar;%AS_ANT_LIB%\ant.jar;%AS_INSTALL%\lib\appserv-jstl.jar;%AS_INSTALL%\lib\jsf-api.jar;%AS_INSTALL%\lib\jsf-impl.jar;%AS_JAVA%\lib\tools.jar;%AS_INSTALL%\lib" org.apache.jasper.JspC -schemas "/schemas/" -dtds "/dtds/" %* java.exe -cp C:\GlassFish\glassfish\samples\quickstart\web;"%AS_INSTALL%\lib\javaee.jar;%AS_INSTALL%\lib\appserv-ext.jar;%AS_INSTALL%\lib\appserv-rt.jar;%AS_ANT_LIB%\ant.jar;%AS_INSTALL%\lib\appserv-jstl.jar;%AS_INSTALL%\lib\jsf-api.jar;%AS_INSTALL%\lib\jsf-impl.jar;%AS_JAVA%\lib\tools.jar;%AS_INSTALL%\lib" org.apache.jasper.JspC -schemas "/schemas/" -dtds "/dtds/" %* endlocal here is the command to invoke the jspc.bat on debug.jsp mkdir debug jspc.bat -d debug debug.jsp confirm that debug_jsp.java has been generated in the debug folder e.g. Directory of %GLASSSFISH_HOME%\samples\quickstart\web\debug\org\apache\jsp 06/18/2011 10:12 PM 4,901 debug_jsp.java let us know you have reached this critical point Bon Chance, Martin ______________________________________________ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sat, 18 Jun 2011 13:41:20 +0100 > Subject: Re: Exception when using Struts debug tag on Glassfish > From: andy.birchall@gmail.com > To: user@struts.apache.org > > Thanks, don't know why I thought 2.2.1 was the latest version, bit of > a brain fail on my part there. > I've tried the latest 2.2.3 and still get the same error though when > using the tag :( > Andy > > On 17 June 2011 01:12, Maurizio Cucchiara wrote: > > 2.2.1 is not exactly the latest version. Take a look at > > http://struts.apache.org, upgrade your S2 version and see what happens (I'm > > not sure it will work, but it surely worths a try) > > > > Maurizio Cucchiara > > > > Il giorno 16/giu/2011 17.18, "Andy Birchall" ha > > scritto: > >> Hello, I am using the latest Struts2 release - 2.2.1 and have it > >> declared as a dependecy in Maven: > >> > >> > >> org.apache.struts > >> struts2-core > >> 2.2.1 > >> > >> > >> and I am running on Glassfish 3.1 > >> > >> I have a simple JSP page which includes the tag in the body > >> > >> With the debug tag I get the following exception: > >> > >> Caused by: java.lang.NullPointerException > >> at > > org.apache.jasper.compiler.TagLibraryInfoImpl.toString(TagLibraryInfoImpl.java:124) > >> at java.lang.String.valueOf(String.java:2826) > >> at java.lang.StringBuilder.append(StringBuilder.java:115) > >> at java.util.AbstractMap.toString(AbstractMap.java:490) > >> at java.lang.String.valueOf(String.java:2826) > >> at java.lang.StringBuilder.append(StringBuilder.java:115) > >> at java.util.AbstractMap.toString(AbstractMap.java:490) > >> at java.lang.String.valueOf(String.java:2826) > >> at java.lang.StringBuffer.append(StringBuffer.java:219) > >> at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:130) > >> at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) > >> at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) > >> at freemarker.core.Expression.getStringValue(Expression.java:93) > >> at > > freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71) > >> at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) > >> at freemarker.core.Expression.getStringValue(Expression.java:93) > >> at freemarker.core.DollarVariable.accept(DollarVariable.java:76) > >> at freemarker.core.Environment.visit(Environment.java:210) > >> at freemarker.core.IfBlock.accept(IfBlock.java:82) > >> at freemarker.core.Environment.visit(Environment.java:210) > >> at freemarker.core.MixedContent.accept(MixedContent.java:92) > >> at freemarker.core.Environment.visit(Environment.java:210) > >> at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) > >> at freemarker.core.Environment.visit(Environment.java:417) > >> at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) > >> at freemarker.core.Environment.visit(Environment.java:210) > >> at freemarker.core.MixedContent.accept(MixedContent.java:92) > >> at freemarker.core.Environment.visit(Environment.java:210) > >> at freemarker.core.Environment.process(Environment.java:190) > >> at freemarker.template.Template.process(Template.java:237) > >> at > > org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:157) > >> at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:559) > >> at org.apache.struts2.components.UIBean.end(UIBean.java:513) > >> ... 93 more > >> > >> Without the the tag the page loads and runs fine. > >> Also if I deploy to Tomcat it works fine. > >> > >> Can anyone help with this? > >> > >> Many thanks > >> Andy Birchall > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> For additional commands, e-mail: user-help@struts.apache.org > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org >