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: mgai...@hotmail.com
To: user@struts.apache.org; andy.birch...@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 %
html
head
titleNon-UI Tags Example: Debug/title
s:head/
/head
body
h1Debug Tag Usage/h1
p/
This page shows a simple example of using the debug tag. br/
Just add tt style=font-size: 12px; font-weight:bold;color:
blue;lt;s:debug /gt;/tt to your JSP page
and you will see the debug link.
p/
Just click on the Debug label to see the Struts ValueStack Debug
information.
p/
s:debug /
/body
/html
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.birch...@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 s:debug tag :(
Andy
On 17 June 2011 01:12, Maurizio Cucchiara mcucchi...@apache.org 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 andy.birch...@gmail.com ha
scritto:
Hello, I am using the latest Struts2 release - 2.2.1 and have it
declared as a dependecy in Maven:
dependency
groupIdorg.apache.struts/groupId
artifactIdstruts2-core/artifactId
version2.2.1/version
/dependency
and I am running on Glassfish 3.1
I have a simple JSP page which includes the s:debug/ tag in the body
With the debug tag I get the following exception: