Author Login
Post Reply
user Digest 20 May 2008 12:04:55 -0000 Issue 8038
Topics (messages 186597 through 186610):
Re: HTML renders incompletely
186597 by: volker.magiccode.eu
186598 by: Antonio Petrelli
186599 by: volker.magiccode.eu
186600 by: Antonio Petrelli
186601 by: volker.magiccode.eu
186602 by: Antonio Petrelli
186603 by: volker.magiccode.eu
186604 by: Antonio Petrelli
186605 by: volker.magiccode.eu
Re: Spring autowiring null values
186606 by: Dave Newton
Re: Problems with forms field
186607 by: Felipe Lorenz
Re: Struts 2 with RAD 6
186608 by: Dave Newton
Re: Jsp struts
186609 by: Sapan
Re: [S2] Hot Deployment in Tomcat?
186610 by: ravi_eze
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_186597.ezm (zipped)Hello struts freaks,
I have a problem with my rendered html. I am using struts2 and tiles.
Some pages seem to be incomplete, as on the bottom I get some readable html fragments like
</html
or
</
Examining the created html code, I can see that the closing > is missing. S
Sometimes my renedered page misses up to 6 signs.
Can anybody give me a hint, where this code is lost or why the page does not render completely ?
Thanx in advance
Volker

Attachment:
user_186598.ezm (zipped)2008/5/20 <volker@(protected)>:
> Can anybody give me a hint, where this code is lost or why the page does not render completely ?
Without a single line of your code we cannot help.
Antonio

Attachment:
user_186599.ezm (zipped)Hello,
this is quite difficult as I'd have to publish a lot of code because of using tiles to make it clear.
Maybe someone has solved a similar problem before and just can give a hint what was the reason for this effect.
Volker
2008/5/20 <volker@(protected)>:
> Can anybody give me a hint, where this code is lost or why the page does not
render completely ?
Without a single line of your code we cannot help.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_186600.ezm (zipped)2008/5/20 <volker@(protected)>:
> this is quite difficult as I'd have to publish a lot of code because of using tiles to make it clear.
You can just post the code for one page not rendering correctly.
Antonio

Attachment:
user_186601.ezm (zipped)Hi Antonio,
here is the code for one page (to chose a report) that is not that large:
my jsp:
<%@(protected)' %>
<%@(protected)" %>
<%@(protected)" %>
<s:set name="headline" value="getLabel('REPORTS.AUSWAHL')" />
<fragment:pageHeader headLine="${headline}"
bannerImage="images/BlueBar.gif"
showHelp="false"
subTitle="" />
<br>
<TABLE>
<TR class='tablehead'>
<TD width="400"><s:property value="getLabel('REPORTS.NAME')"/></TD>
<TD width="800"><s:property value="getLabel('REPORTS.BESCHREIBUNG')"/></TD>
<TD width="30"><s:property value="getLabel('REPORTS.BESCHREIBUNG.ANHANG')"/></TD>
</TR>
<s:iterator id="reports" value="reportList" status="reportStatus">
<s:if test="#status.odd">
<TR class="rowdark">
</s:if>
<s:else>
<TR class="rowlight">
</s:else>
<s:set name="reportName" value="%{getReportName(#reportStatus.index)}" />
<s:set name="reportId" value="id" />
<s:set name="reportParams" value="queryParamsAsJSArray" />
<s:set name="reportDescription" value="%{getReportDescription(#reportStatus.index)}" />
<s:set name="reportDescriptionExtension" value="%{getReportDescriptionExtension(#reportStatus.index)}" />
<TD style="cursor:hand;" onclick="doReport('${reportName}','${reportId}',${reportParams})">${reportName}</TD>
<TD style="cursor:hand;" onclick="doReport('${reportName}','${reportId}',${reportParams})">${reportDescription}</TD>
<s:if test="#reportDescriptionExtension != ''">
<TD style="cursor:hand;" onclick="openWindow('${reportDescriptionExtension}')">
<IMG border="0" src="images//icon_fragezeichen.gif" width="16" height="16"/>
</TD>
</s:if>
<s:else>
<TD/>
</s:else>
</TR>
</s:iterator>
</TABLE>
My Action Class:
package de.xxx.bbbb.action;
import
java.util.List;
import
org.apache.log4j.Logger;
import oracle.toplink.threetier.ClientSession;
... (some more imports)
public class ReportChooserAction extends BaseAction {
private static Logger log = Logger.getLogger(ReportChooserAction.class);
private static final long serialVersionUID = 3030206506547648249L;
private List<Report> reportList = null;
public String execute() throws Exception {
initReportList();
return SUCCESS;
}
@SuppressWarnings("unchecked")
private void initReportList() {
ClientSession dbSession = BADBSessionManager.getClientSession();
try {
reportList = ReportManager.getInstance().getReports(dbSession, getUserSession().getUserID());
} catch (AppSystemErrorException e) {
result=ERROR;
e.printStackTrace();
} catch (AppNoLoginException e) {
result = LOGIN;
log.info("User is not logged in.", e);
}
BADBSessionManager.release(dbSession);
}
public Report getReport(int listIndex) {
return (Report) getReportList().get(listIndex);
}
public String getReportName(int listIndex) {
String reportName="";
try {
reportName= ((Report) getReportList().get(listIndex)).getName(getUserLocale());
} catch (AppNoLoginException e) {
result = LOGIN;
log.info("User is not logged in.", e);
}
return reportName;
}
public String getReportDescription(int listIndex) {
String reportDescription="";
try {
reportDescription= ((Report) getReportList().get(listIndex)).getBeschreibung((getUserLocale()));
} catch (AppNoLoginException e) {
result = LOGIN;
log.info("User is not logged in.", e);
}
return reportDescription;
}
public String getReportDescriptionExtension(int listIndex) {
String reportDE="";
try {
reportDE= ((Report) getReportList().get(listIndex)).getBeschreibungAnhang((getUserLocale()));
} catch (AppNoLoginException e) {
result = LOGIN;
log.info("User is not logged in.", e);
}
return reportDE;
}
public List<Report> getReportList() {
return reportList;
}
public void setReportList(List<Report> reportList) {
this.reportList = reportList;
}
}
my sitelayout for tiles:
<%@(protected)" %>
<%@(protected)" %>
<%@(protected)" %>
<%-- Show usage; Used in Header --%>
<tiles:importAttribute name="title" scope="request" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel='stylesheet' href='css/default.css'>
<meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<title><tiles:getAsString name="title" /></title>
<script type="text/javascript" src="js/init.js" />
<s:head theme="ajax" debug="true" calendarcss="calendar-green" />
<script>
dojo.require("dojo.event.*");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.DatePicker");
</script>
<script language="JavaScript">
/* Hilfe-Fenster */
function help() {
HilfeFenster=open("Hilfe.jsp?context=" + parent.frames['inhalt'].document.title,"HilfeFenster","width=500,height=620,screenX=20,screenY=50");
HilfeFenster.focus();
}
/* Popup für UserGuide */
function userGuide() {
HilfeFenster=open("Hilfe.jsp?context=UserGuides","UserGuides","width=500,height=620,screenX=20,screenY=50");
HilfeFenster.focus();
}
</script>
<!-- Aus Welcome -->
<script language="JavaScript" >
function openBoFrame() {
window.open("hilfe/de/BO_Migration.html","Datenmigration", "width=850,height=750,screenX=20,screenY=50");
}
function doNothing() {}
</script>
<SCRIPT language="JavaScript" src="js/Default.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="js/ISort.js" type="text/javascript"></SCRIPT>
<script language="JavaScript" src="js/Countdown.js"></script>
</head>
<body topmargin="0px" leftmargin="0px" rightmargin="0px" onload="initTimer(<%= request.getSession(false).getMaxInactiveInterval() %>); myStart()" >
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="3"><tiles:insertAttribute name="header" /></td>
</tr>
<tr style="height: 5px"><td colspan="3"> </td></tr>
<tr height="100%">
<td width="180px" valign="top" nowrap="nowrap">
<tiles:insertAttribute name="navigation" />
</td>
<td width="10px" valign="top" nowrap="nowrap">
<tiles:insertAttribute name="navigationSwitch" />
</td>
<td width="100%" height="100%" valign="top">
<tiles:insertAttribute name="body" />
</td>
</tr>
</tbody>
</table>
</body>
</html>
Hope you do not need much more. The other parts of that layout (Navigation.jsp/NavigationSwitch.jsp) never change, even not on the pages without this strange effect, so I do not think they are involved in the problem.
Hope you can help....
Volker
2008/5/20 <volker@(protected)>:
> this is quite difficult as I'd have to publish a lot of code because of using
tiles to make it clear.
You can just post the code for one page not rendering correctly.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_186602.ezm (zipped)2008/5/20 <volker@(protected)>:
> Hope you do not need much more.
In fact we need:
- the version number of Struts and Tiles that you use,
- the interesting part of your Tiles definition file,
- The resulting HTML file.
Antonio

Attachment:
user_186603.ezm (zipped)Hi,
Ok, here it is:
1) I am using struts2 2.0.11
2) tiles 2.0.5
and 3) the resulting html (important notice: will only have to run in Internet-Explorer 6):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel='stylesheet' href='css/default.css'>
<meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<title>Title</title>
<script type="text/javascript" src="js/init.js" />
<link rel="stylesheet" href="/BADB_Struts/struts/xhtml/styles.css" type="text/css"/>
<script type="text/javascript">
// Dojo configuration
djConfig = {
baseRelativePath: "/BADB_Struts/struts/dojo",
isDebug: true,
bindEncoding: "UTF-8",
debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes
};
</script>
<script type="text/javascript"
src="/BADB_Struts/struts/dojo/dojo.js"></script>
<script type="text/javascript"
src="/BADB_Struts/struts/simple/dojoRequire.js"></script><script type="text/javascript"
src="/BADB_Struts/struts/ajax/dojoRequire.js"></script>
<script type="text/javascript"
src="/BADB_Struts/struts/CommonFunctions.js"></script>
<script>
dojo.require("dojo.event.*");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.DatePicker");
</script>
<script language="JavaScript">
/* Hilfe-Fenster */
function help() {
HilfeFenster=open("Hilfe.jsp?context=" + parent.frames['inhalt'].document.title,"HilfeFenster","width=500,height=620,screenX=20,screenY=50");
HilfeFenster.focus();
}
/* Popup für UserGuide */
function userGuide() {
HilfeFenster=open("Hilfe.jsp?context=UserGuides","UserGuides","width=500,height=620,screenX=20,screenY=50");
HilfeFenster.focus();
}
</script>
<!-- Aus Welcome -->
<script language="JavaScript" >
function openBoFrame() {
window.open("hilfe/de/BO_Migration.html","Datenmigration", "width=850,height=750,screenX=20,screenY=50");
}
function doNothing() {}
</script>
<SCRIPT language="JavaScript" src="js/Default.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="js/ISort.js" type="text/javascript"></SCRIPT>
<script language="JavaScript" src="js/Countdown.js"></script>
</head>
<body topmargin="0px" leftmargin="0px" rightmargin="0px" onload="initTimer(1800); myStart()" >
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="3">
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='topmenu' align='left' height="20">
|
<a style="cursor:hand" class='topmenu' onclick='parent.home()'> Startseite </a>
|
<a style="cursor:hand" class='topmenu' onclick='help()'> Hilfe </a>
|
<a style="cursor:hand" class='topmenu' onclick='userGuide()'> Dokumentation </a>
|
</td>
<td class='topmenu' width='100%'> </td>
<td class='topmenu' align='right' style="cursor:hand" onclick="parent.logout()"> Abmelden </td>
</tr>
<tr>
<td class='topmenu' align='left' ><img src="images/Header_BAD_1_de.jpg" height='40' border="0"></td>
<td class='topmenu' width="100%" ><img src="images/Header_BAD_2.jpg" height='40' border="0" width="100%"></td>
<td class='topmenu' align='right'><img src="images/Header_BAD_3.jpg" height='40' border="0"></td>
</tr>
</table>
</td>
</tr>
<tr style="height: 5px"><td colspan="3"> </td></tr>
<tr height="100%">
<td width="180px" valign="top" nowrap="nowrap">
<!-- Banner - Tag -->
<table width='100%' height='20' cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="180px" style="background:url(images/BlueBar_1.gif);background-repeat:no-repeat; padding-left:20px;" nowrap="true">
<h5><nobr>Bilanz-Analyse</nobr></h5>
</td>
<td width="100%">
<image src="images/BlueBar_2.gif" width="100%" height="20" >
</td>
<td width="20" style="background:url(images/BlueBar_3.gif);background-repeat:no-repeat" align="right">
<a style='cursor:hand' onclick='help()'>
<img src="images/icon_fragezeichen.gif">
</a>
</td>
</table>
<!-- Banner - Tag -->
<table height="100%" width="170px" border="0" background="images/navigationBackground.gif" align="top" >
<tr>
<td colspan='4' height='40' valign='bottom' align='center' style='font:bold; color:red; font-size:18'>
DEV</td></tr><tr>
<td colspan='4' height='30' valign='top' align='center' style='font:bold; color:red; font-size:10'>
(DEV, oefd, badbmig1)
</td></tr>
<tr>
<td height="20"> </td>
<td valign='middle'><img src="images/bulletBlue.gif"></td>
<td valign='middle' colspan=2><p class="nav2">Suchen nach</p></td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
<td><img src="images/bulletWhite.gif"></td>
<td><nobr>
<div class="nav3">
<a href="/BADB_Struts/kundeauswahlneu.action">Kunde/Bilanz</a>
</div>
</nobr></td>
</tr>
<tr>
<td height="20"> </td><td><img src="images/bulletBlue.gif"></td>
<td colspan=2><p class=nav2><nobr>Statuslisten</nobr></p></td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
<td valign='middle'><img src="images/bulletWhite.gif"></td>
<td valign='middle'><nobr>
<div class="nav3">
<a href="/BADB_Struts/statusliste.action?status=W">In Bearbeitung</a>
</div>
</nobr></td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
<td valign='middle'><img src="images/bulletWhite.gif"></td>
<td valign='middle'><nobr>
<div class="nav3">
<a href="/BADB_Struts/statusliste.action?status=P">Vorgelegt zur Freigabe</a>
</div>
</nobr></td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
<td valign='middle'><img src="images/bulletWhite.gif"></td>
<td valign='middle'><nobr>
<div class="nav3">
<a href="/BADB_Struts/statusliste.action?status=D">Vorgelegt zur Löschung</a>
</div>
</nobr></td>
</tr>
<tr>
<td height="7" colspan="4"><img src="images/1x1.gif" height="7" width="1"></td>
</tr>
<tr>
<td height="20"> </td><td><img src="images/bulletBlue.gif"></td>
<td colspan=2><p class=nav2><nobr>Reports</nobr></p></td>
</tr>
<tr>
<td height="16"> </td>
<td> </td>
<td valign='middle'><img src="images/bulletWhite.gif"></td>
<td valign='middle'><nobr>
<div class="nav3">
<a href="/BADB_Struts/reportauswahl.action">Reportauswahl</a>
</div>
</tr>
<tr>
<td height="7" colspan="4"><img src="images/1x1.gif" height="7" width="1"></td>
</tr>
<tr>
<td height="20"> </td><td><img src="images/bulletBlue.gif"></td>
<td colspan=2><p class=nav2><nobr>Adminbereich</nobr></p></td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
<td valign='middle'><img src="images/bulletWhite.gif"></td>
<td valign='middle'><nobr>
<div class="nav3">
<a href="/BADB_Struts/adminabfrage.action">Statistiken</a>
</div>
</nobr></td>
</tr>
<!--
<tr>
<td height="20"> </td>
<td> </td>
<td valign='middle'><img src="images/bulletWhite.gif"></td>
<td valign='middle'><nobr>
<div class="nav3">
<a href="/BADB_Struts/tooltippflege.action">Hilfetexte pflegen</a>
</div>
</nobr></td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
<td valign='middle'><img src="images/bulletWhite.gif"></td>
<td valign='middle'><nobr><a href="BilanzierungstypAendernKundeAuswahl.jsp" target='inhalt' class=nav3>< %= labels.getString("BILANZIERUNGSTYP_AENDERN") %></a></nobr></td>
</tr>
-->
<tr>
<td height="*" colspan="4"> </td>
</tr>
<tr>
<td height="30" colspan="4" class="navinfo">
<h6>Support</h6>Tel.: D XX XXXX
</td>
</tr>
<tr>
<td height="30" colspan="4" class="navinfo">
<h6>e-Mail</h6><a href="mailto:volker@(protected)>
</td>
</tr>
<tr>
<td colspan="4" class="navinfo" height="10">
Release
3.2.3.6 wtp
</td>
<!-- <td colspan="4" class="navinfo" height="10">2.0.0.p11</td> -->
</tr>
<tr>
<td colspan="4" valign="bottom" height="40">
<div id="username" style="font-family:Verdane,sans-serif; font-size:8pt; height:14px; border-width:0px; padding-left: 5; padding-right: 2;">WSY5142 </div>
<div id="countdown" style="font-family:Verdana,sans-serif; font-size:8pt; height:14px; border-width:0px; padding-left: 2; padding-right: 2;"> </div>
</td>
</tr>
<tr>
<td colspan="4" height="20"> </td>
</tr>
</table>
</td>
<td width="10px" valign="top" nowrap="nowrap">
<script>
var navigationVisible = true;
function toggleNav() {
parent.showHideNavigation();
if (navigationVisible) {
navigationVisible = false;
myBody.style.cursor = "e-resize";
icon.src = "images//navigation_show.gif";
icon.alt = 'Navigation einblenden';
} else {
navigationVisible = true;
myBody.style.cursor = "w-resize";
icon.src = "images//navigation_hide.gif";
icon.alt = 'Navigation ausblenden';
}
}
function bodyMouseOver() {
if (navigationVisible) {
myBody.style.backgroundColor = '#cccccc';
icon.style.display = '';
}
}
function bodyMouseOut() {
if (navigationVisible) {
myBody.style.backgroundColor = 'white';
icon.style.display = 'none';
}
}
</script>
<table border="1" style="background-color: white" onclick="toggleNav()" onmouseover="bodyMouseOver()" onmouseout="bodyMouseOut()" style="cursor:w-resize">
<img id=icon src="images/navigation_hide.gif" alt='Navigation ausblenden' style="display:none">
</table>
</td>
<td width="100%" height="100%" valign="top">
<HEAD>
<TITLE>Reportauswahl</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<LINK href="/css/default.css" rel="stylesheet" type="text/css">
<SCRIPT language="javascript">
var excelWindow = null;
var lfd = 0;
function doReport(reportName,reportId, params) {
var link = 'reportRequest/' + reportName + '.xls?id=' + reportId;
if (excelWindow) {
excelWindow.close();
}
for (var i = 0; i < params.length; i=i+2) {
var eingabe = prompt(params[i+1], "");
if (eingabe == null || eingabe == "") {
alert("Report wurde abgebrochen!");
return;
}
link = link + "&" + params[i] + "=" + eingabe;
}
excelWindow = window.open(link,
"Excel",
"left=200,top=200,width=800,height=600,resizable=yes,status=no,",
"menubar=yes,location=no,scrollbars=no,toolbar=no");
}
function openWindow(link) {
neuesFenster = window.open(link,
"BeschreibungReportWindow",
"left=200,top=200,width=400,height=500,resizable=yes,status=no,",
"menubar=no,location=no,scrollbars=no,toolbar=no");
}
</SCRIPT>
</HEAD>
<!-- PageContentHeader - Tag -->
<!-- Header -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr width="100%">
<td align='left'>
<!-- Banner - Tag -->
<table width='100%' height='20' cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="180px" style="background:url(images/BlueBar_1.gif);background-repeat:no-repeat; padding-left:20px;" nowrap="true">
<h5><nobr>Reportauswahl</nobr></h5>
</td>
<td width="100%">
<image src="images/BlueBar_2.gif" width="100%" height="20" >
</td>
<td width="20" align="right">
<img width="100%" src="images/BlueBar_3.gif">
</td>
</table>
<!-- Banner - Tag -->
</td>
</tr>
</table>
<!-- Header Ende -->
<br>
<TABLE>
<TR class='tablehead'>
<TD width="400">Name</TD>
<TD width="800">Beschreibung</TD>
<TD width="30">Beschreibung Anhang</TD>
</TR>
<TR class="rowlight">
<TD style="cursor:hand;" onclick="doReport('FIIMB_Mausberg','3',new Array())">FIIMB_Mausberg</TD>
<TD style="cursor:hand;" onclick="doReport('FIIMB_Mausberg','3',new Array())">FIIMB-Auswertung aus der BADB für WAVE/CRM (Hr. Mausberg)</TD>
<TD/>
</TR>
<TR class="rowlight">
<TD style="cursor:hand;" onclick="doReport('SingleScreening','5',new Array('kndr', 'KundenNummer'))">SingleScreening</TD>
<TD style="cursor:hand;" onclick="doReport('SingleScreening','5',new Array('kndr', 'KundenNummer'))">Screening eines Kunden</TD>
<TD/>
</TR>
<TR class="rowlight">
<TD style="cursor:hand;" onclick="doReport('Screening','4',new Array())">Screening</TD>
<TD style="cursor:hand;" onclick="doReport('Screening','4',new Array())">Alle freigegeben Bilanzen aus der BADB (für Herrn Maass)</TD>
<TD/>
</TR>
</TABLE>
</td>
</tr>
</tbody>
</table>
</body>
</html
2008/5/20 <volker@(protected)>:
> Hope you do not need much more.
In fact we need:
- the version number of Struts and Tiles that you use,
- the interesting part of your Tiles definition file,
- The resulting HTML file.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_186604.ezm (zipped)2008/5/20 <volker@(protected)>:
> </tbody>
> </table>
> </body>
> </html
That's strange, it seems that it is not flushing the content...
I think this is a bug, but I cannot guess what the problem is at the
moment. Could you open a JIRA ticket, attaching a sample webapp (with
source)?
https://issues.apache.org/struts/
In the meantime, try to simply add some newlines at the end of the
Tiles layout page, probably the last part of the page will show up...
Antonio

Attachment:
user_186605.ezm (zipped)Hello Antonio,
I will do it this evening as I cannot publish all the code here at work.
I will construct a sample application and attach it to a JIRA-Ticket.
Tankx so far...
Volker
2008/5/20 <volker@(protected)>:
> </tbody>
> </table>
> </body>
> </html
That's strange, it seems that it is not flushing the content...
I think this is a bug, but I cannot guess what the problem is at the
moment. Could you open a JIRA ticket, attaching a sample webapp (with
source)?
https://issues.apache.org/struts/
In the meantime, try to simply add some newlines at the end of the
Tiles layout page, probably the last part of the page will show up...
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_186606.ezm (zipped)Have you *tried* setting autowiring to "no" in the spring config file?
I'm still not convinced this is the issue you're trying to solve, but
as more details aren't forthcoming, this is all I have for you.
Dave
--- Ian Meikle <imeikle@(protected):
> Hi Dave,
>
> Thanks for that, I have now read the Spring documentation.
> It seems that the default in Spring is no autowiring so no further
> config
> required here.
>
> It seems that it is the STRUTS2 Spring plugin that needs to be
> configured
> to not perform autowiring, specifically
>
com.opensymphony.xwork2.spring.SpringObjectFactory> which is a part of xwork2.
>
> Looking at the source code it does not seem that autowiring can be
> switched off and this I feel is a problem.
>
> Regards
> Ian
>
> CSC Solutions Norge AS
> Registered Office: Sandsli�sen 57, 5254 Sandsli, Norway
> Registered in Norway No: 958 958 455
>
>
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> This is a PRIVATE message. If you are not the intended recipient,
> please
> delete without copying and kindly advise us by e-mail of the mistake
> in
> delivery.
> NOTE: Regardless of content, this e-mail shall not operate to bind
> CSC to
> any order or other contract unless pursuant to explicit written
> agreement
> or government initiative expressly permitting the use of e-mail for
> such
> purpose.
>
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
>
>
> Dave Newton <newton.dave@(protected)>
> 19.05.2008 17:16
> Please respond to
> "Struts Users Mailing List" <user@(protected)>
>
>
> To
> Struts Users Mailing List <user@(protected)>
> cc
>
> Subject
> Re: Spring autowiring null values
>
>
>
>
>
>
> --- Ian Meikle <imeikle@(protected):
>
> > I have already read this page, the possible values are given as:
> >
> > name, type, auto or constructor.
> >
> > There is no NONE, or OFF value, and looking at the source code
> there
> > does not seem to be support for it either.
> > Hence why I am asking if there is another way of turning this off.
>
> That's why I mentioned the Spring documentation.
>
>
http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-autowire
>
>
> Unless you're using 2.5, in which case look in the 2.5 documentation.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

Attachment:
user_186607.ezm (zipped)hummm this is not necessary.. i just want do send, not retrieve... but i fix
the problem... i dont know whats happen, i did create a new project in
NetBeans... maybe it lost something... i dont know...
But thanks folks...
On Tue, May 20, 2008 at 2:59 AM, Laurie Harper <laurie@(protected):
> Looks like you're missing a getter for dadosPessoais in your action
> class...
>
> L.
>
>
> Felipe Lorenz wrote:
>
>> Ok.. i did it... its all right.. but i dont know...
>>
>> i will print my code:
>>
>> JSP:
>> <%@(protected)"%>
>> <%@(protected)" %>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd">
>> <html>
>> <head>
>> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>> <title>JSP Page</title>
>> </head>
>> <body>
>> <s:form action="save_dadosPessoais" method="POST" theme="xhtml">
>> <s:textfield name="dadosPessoais.nome" theme="xhtml"/>
>> <s:textfield name="dadosPessoais.cpf" theme="xhtml"/>
>> <s:textfield name="dadosPessoais.origem" theme="xhtml"/>
>> <s:submit value="Enviar" theme="xhtml" />
>> </s:form>
>> </body>
>> </html>
>>
>> MY STRUTS.XML:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE struts PUBLIC
>> "-//Apache Software Fundation//DTD Struts Configuration 2.0//EN"
>> "./struts-2.0.dtd">
>> <struts>
>> <include file="struts-default.xml" />
>> <package name="default" extends="struts-default">
>> <action name="save_dadosPessoais" method="create"
>> class="br.com.mercur.th.action.DadosPessoaisAction">
>> <result>/TH_DadosPessoais.jsp</result>
>> </action>
>> </package>
>> </struts>
>>
>> ACTION CLASS
>> public class DadosPessoaisAction
>> {
>> private DadosPessoais dadosPessoais;
>> public String create()
>> {
>> System.out.println("DADOS PESSOAIS");
>> System.out.println(dadosPessoais.getNome());
>> System.out.println(dadosPessoais.getOrigem());
>> System.out.println(dadosPessoais.getCpf());
>>
>> return ActionSupport.SUCCESS;
>> }
>>
>> public void setDadosPessoais(DadosPessoais dadosPessoais) {
>> this.dadosPessoais = dadosPessoais;
>> }
>> }
>>
>> DadosPessoais Class:
>> public class DadosPessoais
>> {
>> private String nome;
>> private String origem;
>> private String cpf;
>> public void setNome(String nome) {
>> this.nome = nome;
>> }
>> public String getNome() {
>> return nome;
>> }
>> public void setOrigem(String origem) {
>> this.origem = origem;
>> }
>> public String getOrigem() {
>> return origem;
>> }
>> public String getCpf() {
>> return cpf;
>> }
>> public void setCpf(String cpf) {
>> this.cpf = cpf;
>> }
>>
>>
>> }
>>
>>
>> On Mon, May 19, 2008 at 3:30 PM, Milan Milanovic <
>> milanmilanovich@(protected)>
>> wrote:
>>
>> Check the names of the fields, they must mach with attributes names in
>>> action class, and also check that you have correct get/set methods for
>>> them
>>> in your action class.
>>>
>>> --
>>> Milan
>>>
>>> Jim Kiley <jhkiley@(protected),
>>>
>>> It would be much easier for others to help you if you would include
>>> relevant
>>> parts of your code, as well as let us know what version of Struts you are
>>> using.
>>>
>>> jk
>>>
>>> On Mon, May 19, 2008 at 2:15 PM, Felipe Lorenz
>>> wrote:
>>>
>>> Hi,
>>>>
>>>> i did work with struts, and im work with it. But, i dont how, the value
>>>>
>>> of
>>>
>>>> field are not send to Action class.. for example:
>>>>
>>>> My forms have 3 fields.. text.. normal.. simple..
>>>>
>>>> so, when i submit this the form only the last filed are set.
>>>>
>>>> I put a System.out in my action class, and i see only the last field
>>>> seted..
>>>> the other stay NULL...
>>>>
>>>> Why?
>>>>
>>>>
>>>
>>> --
>>> Jim Kiley
>>> Technical Consultant | Summa
>>> [p] 412.258.3346 [m] 412.445.1729
>>> http://www.summa-tech.com
>>>
>>>
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_186608.ezm (zipped)--- achandra <alokcs@(protected):
> I am trying to make Struts 2 work with RAD 7.0.
We're running under RAD7 with no issues.
You'll have to be more specific. If you're running under RAD6/Java 1.4
you must use the 1.4 build (and make sure any supporting libraries are
also converted). You also need the 1.4 support libraries (backport, I
forget what else).
You're getting an error that suggests you're trying to run 1.5 classes
under a 1.4 JVM.
Dave
It is not working
> I mean
> the very first page is fine but after that when it tries to look for
> the
> action, it is giving error and in the url it is ending .action. It is
> not
> able to find the jsp page. I can send the directory structure and
> struts.xml
> and the folder where I am putting struts.xml and jsp pages. I am
> missing
> something or placing things in wrong directories. I am very close and
> I
> guess there is small change that can make it work.
> Thank you
>
> Cheng Wei Lee wrote:
> >
> > I've no difficulties using Struts 2 on RAD v7. What are you
> actually
> > trying
> > to do? To build Struts 2 from scratch?
> >
> > On Jan 17, 2008 9:42 PM, <Rushabh_Raval@(protected)>
> wrote:
> >
> >> Hi,
> >>
> >> I am trying to figure out how could I use Strus-2 with RAD-6 which
> has
> >> Jdk
> >> 1.4.
> >>
> >> I even tried to run the mail reader application on RAD -7 which
> has jdk
> >> 1.5 with JRE 5.
> >>
> >> Could someone please help me running the sample code on RAD-6. I
> was also
> >> not able to figure out how I could use jdk 1.5 on RAD-6.
> >>
> >> I am aware that there is a build for jdk1.4 but does it have some
> >> functional or performance difference from the Struts-2 build for
> jdk 1.5
> >>
> >> I am getting an exception
> >>
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R
> >>
java.lang.LinkageError: LinkageError while defining class:
> >>
org.apache.struts2.dispatcher.FilterDispatcher> >> Could not be defined due to:
> >> org/apache/struts2/dispatcher/FilterDispatcher (Unsupported
> major.minor
> >> version 49.0)
> >> This is often caused by having a class defined at multiple
> >> locations within the classloader hierarchy. Other potential
> causes
> >> include compiling against an older or newer version of the class
> >> that has an incompatible method signature.
> >> Dumping the current context classloader hierarchy:
> >> ==> indicates defining classloader
> >> [0] com.ibm.ws.bootstrap.ExtClassLoader@(protected)
> >> [1]
sun.misc.Launcher$AppClassLoader@(protected)
> >> [2]
sun.misc.Launcher$ExtClassLoader@(protected)
> >> ---Original exception---
> >>
java.lang.UnsupportedClassVersionError:
> >> org/apache/struts2/dispatcher/FilterDispatcher (Unsupported
> major.minor
> >> version 49.0)
> >> at
java.lang.ClassLoader.defineClass0(Native Method)
> >> at
>
java.lang.ClassLoader.defineClass (
ClassLoader.java(Compiled
> >> Code))
> >> at
> >>
java.security.SecureClassLoader.defineClass(SecureClassLoader.java
> >> (Compiled
> >> Code))
> >> at
> >> com.ibm.ws.classloader.CompoundClassLoader._defineClass(
> >> CompoundClassLoader.java:576)
> >> at
> >> com.ibm.ws.classloader.CompoundClassLoader.findClass(
> >> CompoundClassLoader.java(Compiled
> >> Code))
> >> at
> >> com.ibm.ws.classloader.CompoundClassLoader.loadClass(
> >> CompoundClassLoader.java(Compiled
> >> Code))
> >> at
>
java.lang.ClassLoader.loadClass (
ClassLoader.java(Compiled
> >> Code))
> >> at
java.beans.Beans.instantiate (
Beans.java:202)
> >> at
java.beans.Beans.instantiate (
Beans.java:63)
> >> at
> >> com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(
> >> WebAppFilterManager.java:289)
> >> at
> >>
> >>
>
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper
> >> (WebAppFilterManager.java:155)
> >> at
> >> com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(
> >> WebAppFilterManager.java:202)
> >> at
> >>
>
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(
> >> DefaultExtensionProcessor.java:536)
> >> at
> >>
>
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(
> >> DefaultExtensionProcessor.java:500)
> >> at
> >>
> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
> >> at
> >>
>
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
> >> at
> >>
>
com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
> >> at
> >>
>
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
> >> at
> >>
>
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
> >> at
> >>
>
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(
> >> HttpInboundLink.java:421)
> >> at
> >>
>
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(
> >> HttpInboundLink.java:367)
> >> at
> >> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(
> >> HttpICLReadCallback.java:94)
> >> at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(
> >> WorkQueueManager.java:548)
> >> at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(
> >> WorkQueueManager.java:601)
> >> at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(
> >> WorkQueueManager.java:934)
> >> at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(
> >> WorkQueueManager.java:1021)
> >> at
> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
> >>
> >> --- end Original exception----
> >>
> >> at
> >> com.ibm.ws.classloader.CompoundClassLoader._defineClass(
> >> CompoundClassLoader.java:621)
> >> at
> >> com.ibm.ws.classloader.CompoundClassLoader.findClass(
> >> CompoundClassLoader.java(Compiled
> >> Code))
> >> at
> >> com.ibm.ws.classloader.CompoundClassLoader.loadClass(
> >> CompoundClassLoader.java(Compiled
> >> Code))
> >> at
>
java.lang.ClassLoader.loadClass (
ClassLoader.java(Compiled
> >> Code))
> >> at
java.beans.Beans.instantiate (
Beans.java:202)
> >> at
java.beans.Beans.instantiate (
Beans.java:63)
> >> at
> >> com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(
> >> WebAppFilterManager.java:289)
> >> at
> >>
> >>
>
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper
> >> (WebAppFilterManager.java:155)
> >> at
> >> com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(
> >> WebAppFilterManager.java:202)
> >> at
> >>
>
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(
> >> DefaultExtensionProcessor.java:536)
> >> at
> >>
>
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(
> >> DefaultExtensionProcessor.java:500)
> >> at
> >>
> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
> >> at
> >>
>
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
> >> at
> >>
>
com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
> >> at
> >>
>
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
> >> at
> >>
>
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
> >> at
> >>
>
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(
> >> HttpInboundLink.java:421)
> >> at
> >>
>
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(
> >> HttpInboundLink.java:367)
> >> at
> >> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(
> >> HttpICLReadCallback.java:94)
> >> at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(
> >> WorkQueueManager.java:548)
> >> at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(
> >> WorkQueueManager.java:601)
> >> at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(
> >> WorkQueueManager.java:934)
> >> at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(
> >> WorkQueueManager.java:1021)
> >> at
> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
> >>
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >> com.ibm.ws.classloader.CompoundClassLoader._defineClass(
> >> CompoundClassLoader.java:621)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >> com.ibm.ws.classloader.CompoundClassLoader.findClass(
> >> CompoundClassLoader.java(Compiled
> >> Code))
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >> com.ibm.ws.classloader.CompoundClassLoader.loadClass(
> >> CompoundClassLoader.java(Compiled
> >> Code))
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
java.lang.ClassLoader.loadClass (
ClassLoader.java(Compiled Code))
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
java.beans.Beans.instantiate (
Beans.java:202)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
java.beans.Beans.instantiate (
Beans.java:63)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >> com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(
> >> WebAppFilterManager.java:289)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
> >>
>
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper
> >> (WebAppFilterManager.java:155)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >> com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(
> >> WebAppFilterManager.java:202)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
>
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(
> >> DefaultExtensionProcessor.java:536)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
>
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(
> >> DefaultExtensionProcessor.java:500)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
>
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
>
com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
>
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
>
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
>
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(
> >> HttpInboundLink.java:421)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >>
>
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(
> >> HttpInboundLink.java:367)
> >> [1/16/08 18:14:21:842 IST] 0000003d SystemErr R at
> >> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(
> >> HttpICLReadCallback.java:94)
> >> [1/16/08 18:14:21:858 IST] 0000003d SystemErr R at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(
> >> WorkQueueManager.java:548)
> >> [1/16/08 18:14:21:858 IST] 0000003d SystemErr R at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(
> >> WorkQueueManager.java:601)
> >> [1/16/08 18:14:21:858 IST] 0000003d SystemErr R at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(
> >> WorkQueueManager.java:934)
> >> [1/16/08 18:14:21:858 IST] 0000003d SystemErr R at
> >> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(
> >> WorkQueueManager.java:1021)
> >> [1/16/08 18:14:21:858 IST] 0000003d SystemErr R at
> >> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
> >>
> >> Thanks & Regards,
> >> Rushabh Raval
> >> +=========================================================+
> >> This message may contain confidential and/or privileged
> >> information. If you are not the addressee or authorized to
> >> receive this for the addressee, you must not use, copy,
> >> disclose or take any action based on this message or any
> >> information herein. If you have received this message in
> >> error, please advise the sender immediately by reply e-mail
> >> and delete this message. Thank you for your cooperation.
> >> +=========================================================+
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Struts-2-with-RAD-6-tp14919091p17330163.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_186609.ezm (zipped)
Hi,
Thank a lot for prompt reply,
But I donot have any idea about <fmt:message> tag.Because I am totally new
to struts .
Could you please help me out how to get out of this problem
Regards
Swapna.
Antonio Petrelli-3 wrote:
>
> 2008/5/19 Sapan <swapna.khedkar@(protected)>:
>> ???en_US.errors.required??????en_US.errors.required???
>
> Usually this happens when you are using the <fmt:message> tag: it does
> not find a property with that name, in this case
> "en_US.errors.required", or possibly "errors.required" with "en_US"
> locale.
> Check your message bundles, the configuration and the correctness of
> your JSP page.
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186610.ezm (zipped)hi,
i am not sure how to fix ur problem.. but i use the following steps in
remote debugging.. may b it helps u.
1. in catalina.sh :JAVA_OPTS="$JAVA_OPTS -Xmx512m -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
2. in eclipse under windows> preferences> in dialogue box on left click on
remote debugging> right click & new> on right side give the ip of the
tomcat, port as '8000'
now run > open debug dialogue> remote application > configured debug
thats it.
hope it helps
ravi
Rubens wrote:
>
> Does anyone know how to get Hot deployment to work with Tomcat?
>
> I am using Struts2, Spring, Hibernate, and MySQL
>
> Tomcat Version: 6.0.16
> Java version: JDK 1.6.0_06
> Eclipse version: 3.4.0
> Tomcat Sysdeo Plugin version: 3.2.1
> Struts version: 2.0.11.1
> Spring Framework version: 2.5.1
> Hibernate version: 3.2.6.ga
> MySQL JDBC driver: 5.1.5
> C3P0 connection pool: 0.9.1.2
>
>
> I started tomcat outside eclipse using a remote JPDA debugging connection
> (catalina jpda start). And I started tomcat from within Eclipse using the
> SYSDEO tomcat pluggin. In both instances, I get the following message
> right after I change a line of code and save it when debug stepping. I
> have also tried to use JDK 1.5 and had the same error.
>
>
> "Obsolete Methods on the Stack"
> Reason:
> The virtual machine was unable to remove all the stack frames running old
> code from the call stack.
> The virtual machine is not supplying the debugger with valid data for
> those frames...
>
> I see the following exception on the logs when the above error is
> displayed:
>
>
> May 18, 2008 10:55:30 AM
org.apache.catalina.core.StandardContext reload
> INFO: Reloading this Context has started
> May 18, 2008 10:55:30 AM
org.apache.catalina.core.StandardWrapper unload
> INFO: Waiting for 1 instance(s) to be deallocated
> May 18, 2008 10:55:31 AM
org.apache.catalina.core.StandardWrapper unload
> INFO: Waiting for 1 instance(s) to be deallocated
> May 18, 2008 10:55:32 AM
org.apache.catalina.core.StandardWrapper unload
> INFO: Waiting for 1 instance(s) to be deallocated
> May 18, 2008 10:55:32 AM
org.apache.catalina.core.ApplicationContext log
> INFO: Closing Spring root WebApplicationContext
> May 18, 2008 10:55:32 AM
org.apache.catalina.loader.WebappClassLoader> loadClass
> INFO: Illegal access: this web application instance has been stopped
> already. Could not load com.mysql.jdbc.profiler.ProfileEventSink. The
> eventual following stack trace is caused by an error thrown for debugging
> purposes as well as to attempt to terminate the thread which caused the
> illegal access, and has no functional impact.
>
java.lang.IllegalStateException> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1246)
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1206)
> at
java.lang.ClassLoader.loadClassInternal (
ClassLoader.java:319)
> at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4235)
> at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1453)
> at
> com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:549)
> at
> com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:234)
> at
> com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
> at
> com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
> at
> com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:989)
> at
> com.mchange.v2.resourcepool.BasicResourcePool.access$100(BasicResourcePool.java:32)
> at
> com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:1174)
> Exception in thread "Resource Destroyer in BasicResourcePool.close()"
>
java.lang.NoClassDefFoundError: com/mysql/jdbc/profiler/ProfileEventSink
> at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4235)
> at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1453)
> at
> com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:549)
> at
> com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:234)
> at
> com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
> at
> com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
> at
> com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:989)
> at
> com.mchange.v2.resourcepool.BasicResourcePool.access$100(BasicResourcePool.java:32)
> at
> com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:1174)
> Caused by:
java.lang.ClassNotFoundException:
> com.mysql.jdbc.profiler.ProfileEventSink
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1360)
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1206)
> at
java.lang.ClassLoader.loadClassInternal (
ClassLoader.java:319)
> ... 9 more
> May 18, 2008 10:55:34 AM
org.apache.catalina.core.StandardContext> addApplicationListener
> INFO: The listener
> "
org.acegisecurity.ui.session.HttpSessionEventPublisher" is already
> configured for this context. The duplicate definition has been ignored.
> May 18, 2008 10:55:34 AM
org.apache.catalina.core.StandardContext> addApplicationListener
> INFO: The listener "com.softlagos.web.listener.WebAppHttpSessionListener"
> is already configured for this context. The duplicate definition has been
> ignored.
> May 18, 2008 10:55:34 AM
org.apache.catalina.core.StandardContext> addApplicationListener
> INFO: The listener "com.softlagos.web.common.SpringBeanFactory" is already
> configured for this context. The duplicate definition has been ignored.
> May 18, 2008 10:55:35 AM
org.apache.catalina.loader.WebappClassLoader> loadClass
> INFO: Illegal access: this web application instance has been stopped
> already. Could not load com.mysql.jdbc.SQLError. The eventual following
> stack trace is caused by an error thrown for debugging purposes as well as
> to attempt to terminate the thread which caused the illegal access, and
> has no functional impact.
>
java.lang.IllegalStateException> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1246)
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1206)
> at
java.lang.ClassLoader.loadClassInternal (
ClassLoader.java:319)
> at
com.mysql.jdbc.MysqlIO.send (
MysqlIO.java:3134)
> at
com.mysql.jdbc.MysqlIO.quit (
MysqlIO.java:1616)
> at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4223)
> at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1257)
> at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2663)
> at
java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
> at
java.lang.ref.Finalizer.runFinalizer (
Finalizer.java:83)
> at
java.lang.ref.Finalizer.access$100(Finalizer.java:14)
> at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
> May 18, 2008 10:55:36 AM
org.apache.catalina.core.ApplicationContext log
> INFO: Initializing Spring root WebApplicationContext
> May 18, 2008 10:55:56 AM
org.apache.catalina.core.StandardContext> filterStart
> SEVERE: Exception starting filter struts2Filter
> Caught exception while loading file struts-default.xml - [unknown
> location]
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:839)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (
XmlConfigurationProvider.java:131)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init (
XmlConfigurationProvider.java:100)
> at
>
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload (
DefaultConfiguration.java:130)
> at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:52)
> at
>
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (
Dispatcher.java:395)
> at
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:452)
> at
>
org.apache.struts2.dispatcher.FilterDispatcher.init (
FilterDispatcher.java:201)
> at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter (
ApplicationFilterConfig.java:275)
> at
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (
ApplicationFilterConfig.java:397)
> at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
> at
>
org.apache.catalina.core.StandardContext.filterStart (
StandardContext.java:3709)
> at
>
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4356)
> at
>
org.apache.catalina.core.StandardContext.reload (
StandardContext.java:3099)
> at
>
org.apache.catalina.loader.WebappLoader.backgroundProcess (
WebappLoader.java:404)
> at
>
org.apache.catalina.core.ContainerBase.backgroundProcess (
ContainerBase.java:1309)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
> at
java.lang.Thread.run (
Thread.java:619)
> Caused by:
java.lang.ClassCastException:
>
org.apache.xerces.parsers.XML11Configuration cannot be cast to
>
org.apache.xerces.xni.parser.XMLParserConfiguration> at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
> at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
> at
>
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
> Source)
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:69)
> at
>
com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler (
TransletOutputHandlerFactory.java:187)
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler (
TransformerImpl.java:392)
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult (
TransformerHandlerImpl.java:137)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:213)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:198)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:189)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:175)
> at
com.opensymphony.xwork2.util.DomHelper.parse (
DomHelper.java:115)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:830)
> ... 20 more
> May 18, 2008 10:55:56 AM
org.apache.catalina.core.StandardContext start
> SEVERE: Error filterStart
> May 18, 2008 10:55:56 AM
org.apache.catalina.core.StandardContext start
> SEVERE: Context [/webphone] startup failed due to previous errors
> May 18, 2008 10:55:56 AM
org.apache.catalina.core.ApplicationContext log
> INFO: Closing Spring root WebApplicationContext
> log4j:ERROR LogMananger.repositorySelector was null likely due to error in
> class reloading, using NOPLoggerRepository.
>
>
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.