You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thilipkumar TM <st...@yahoo.com> on 2001/04/25 10:41:35 UTC
Help Me !! Deployed in iPlanet Application Servier
Hi,
I have downloaded binary / source version of strut's
examples. I kept file in proper directory. I am
getting following error. It's searching for
MESSAGE.java. But that file is not there in the
directory. I have downloaded again and searched the
same file, but it was not there. Please try to find
out solution.
I am using iPlanet Applicaiton Server 6.0
(Enterprise Edition) under Windows 2000.
ERROR
=====
[25/Apr/2001 14:05:50:2] info:
--------------------------------------
[25/Apr/2001 14:05:50:2] info: JSPRunner: init
[25/Apr/2001 14:05:50:2] info:
--------------------------------------
[25/Apr/2001 14:05:52:3] info:
ENGINE-class_loader_created: New class loader com
.kivasoft.engine.EngineClassLoaderNonVersionable@3c1b02
has just been created
[25/Apr/2001 14:05:55:5] warning:
ENGINE-classload_failed: Failed to load class
org.apache.struts.taglib.html.HtmlTagBeanInfo
[25/Apr/2001 14:05:55:5] warning:
ENGINE-classload_failed: Failed to load class
sun.beans.infos.HtmlTagBeanInfo
[25/Apr/2001 14:05:55:6] warning:
ENGINE-classload_failed: Failed to load class
org.apache.struts.taglib.bean.MessageTagBeanInfo
[25/Apr/2001 14:05:55:6] warning:
ENGINE-classload_failed: Failed to load class
sun.beans.infos.MessageTagBeanInfo
[25/Apr/2001 14:05:55:6] warning:
ENGINE-classload_failed: Failed to load class
org.apache.struts.taglib.html.BaseTagBeanInfo
[25/Apr/2001 14:05:55:6] warning:
ENGINE-classload_failed: Failed to load class
sun.beans.infos.BaseTagBeanInfo
[25/Apr/2001 14:05:55:6] warning:
ENGINE-classload_failed: Failed to load class
org.apache.struts.taglib.logic.NotPresentTagBeanInfo
[25/Apr/2001 14:05:55:6] warning:
ENGINE-classload_failed: Failed to load class
sun.beans.infos.NotPresentTagBeanInfo
[25/Apr/2001 14:05:55:6] warning:
ENGINE-classload_failed: Failed to load class
org.apache.struts.taglib.logic.PresentTagBeanInfo
[25/Apr/2001 14:05:55:6] warning:
ENGINE-classload_failed: Failed to load class
sun.beans.infos.PresentTagBeanInfo
[25/Apr/2001 14:05:55:6] warning:
ENGINE-classload_failed: Failed to load class
org.apache.struts.taglib.logic.ConditionalTagBaseBeanInfo
[25/Apr/2001 14:05:55:7] warning:
ENGINE-classload_failed: Failed to load class
sun.beans.infos.ConditionalTagBaseBeanInfo
[25/Apr/2001 14:05:55:7] warning:
ENGINE-classload_failed: Failed to load class
org.apache.struts.taglib.html.LinkTagBeanInfo
[25/Apr/2001 14:05:55:7] warning:
ENGINE-classload_failed: Failed to load class
sun.beans.infos.LinkTagBeanInfo
[25/Apr/2001 14:05:55:7] warning:
ENGINE-classload_failed: Failed to load class
org.apache.struts.taglib.html.BaseHandlerTagBeanInfo
[25/Apr/2001 14:05:55:7] warning:
ENGINE-classload_failed: Failed to load class
sun.beans.infos.BaseHandlerTagBeanInfo
[25/Apr/2001 14:05:55:7] warning:
ENGINE-classload_failed: Failed to load class
org.apache.struts.taglib.html.ImgTagBeanInfo
[25/Apr/2001 14:05:55:7] warning:
ENGINE-classload_failed: Failed to load class
sun.beans.infos.ImgTagBeanInfo
[25/Apr/2001 14:06:00:2] info:
--------------------------------------
[25/Apr/2001 14:06:00:2] info:
jsp.APPS.fortune.dil1.index: init
[25/Apr/2001 14:06:00:2] info:
--------------------------------------
javax.servlet.jsp.JspException: Cannot find message
resources under key org.apac
he.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.message(RequestUtils.java:285)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:2
39)
at
jsp.APPS.fortune.dil1.index._jspService(index.java:73)
at
jsp.APPS.fortune.dil1.index.service(index.java:35)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unkno
wn Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
callJspCompiler(Unknown Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
callUri(Unknown Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
callUriRestrictOutput(Unknown Source)
at
com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.fo
rward(Unknown Source)
at
com.netscape.server.servlet.jsp.JSPRunner.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
wn Source)
at
com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at
com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native
Method)
at java.lang.Thread.run(Thread.java:479)
javax.servlet.jsp.JspException: Cannot find message
resources under key org.apac
he.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.message(RequestUtils.java:285)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:2
39)
at
jsp.APPS.fortune.dil1.index._jspService(index.java:73)
at
jsp.APPS.fortune.dil1.index.service(index.java:35)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unkno
wn Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
callJspCompiler(Unknown Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
callUri(Unknown Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
callUriRestrictOutput(Unknown Source)
at
com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.fo
rward(Unknown Source)
at
com.netscape.server.servlet.jsp.JSPRunner.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
wn Source)
at
com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at
com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native
Method)
at java.lang.Thread.run(Thread.java:479)
[25/Apr/2001 14:06:01:1] error: Exception:
SERVLET-run_failed: Failed in running
template: /fortune/dil1/index.jsp,
javax.servlet.ServletException: Cannot find
message resources under key
org.apache.struts.action.MESSAGE
Exception Stack Trace:
javax.servlet.ServletException: Cannot find message
resources under key org.apac
he.struts.action.MESSAGE
at
com.netscape.jsp.PageContextImpl.handlePageException(Unknown
Source)
at
jsp.APPS.fortune.dil1.index._jspService(index.java:186)
at
jsp.APPS.fortune.dil1.index.service(index.java:35)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unkno
wn Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
callJspCompiler(Unknown Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
callUri(Unknown Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
callUriRestrictOutput(Unknown Source)
at
com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.fo
rward(Unknown Source)
at
com.netscape.server.servlet.jsp.JSPRunner.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
wn Source)
at
com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at
com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native
Method)
at java.lang.Thread.run(Thread.java:479)
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
Re: java script & struts + scriptlet
Posted by Martin Cooper <ma...@tumbleweed.com>.
An attribute value can be a string literal or the result of an expression,
but you can't embed an expression within a string. You need to put the
string inside the expression (as you effectively do in your workaround). Try
this:
<html:button property="btnInform" onclick='<%= "return
informInventoryLack(\'" + orderItemData.getId() + "\')" %>'>
<bean:message key="button.order"/>
</html:button>
--
Martin Cooper
----- Original Message -----
From: "Nguyen Thanh Phong" <ph...@sdcgrp.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, May 16, 2001 6:29 PM
Subject: Re: java script & struts + scriptlet
> Hi Laurent,
>
> I was using the following but it doesn't work either
>
> <html:button property="btnInform" onclick="return
> informInventoryLack('<%=orderItemData.getId() %>')"><bean:message
> key="button.order"/></html:button>
>
> The error I got is :
>
>
C:\beaWeblogic\wlserver\config\sdcdomain\applications\smartV1_2\WEB-INF\_tmp
>
_war_netcom_netcom_smartV1_2\jsp_servlet\_ebiz\_mall\_gsquickorder.java:1127
> : unclosed string literal
> probably occurred due to an error in /ebiz/mall/gsQuickOrder.jsp line 220:
> <html:button property="btnInform" onclick="return informInventoryLack(<%=
> orderItemData.getId() %>)"><bean:message
key="button.order"/></html:button>
>
> Tracing to the java file, I have:
>
> _html_button0.setOnclick(weblogic.utils.StringUtils.valueOf("return
> informInventoryLack(<%= orderItemData.getId()
> ile://[ /ebiz/mall/gsQuickOrder.jsp; Line: 220]
>
> I have found a work arround:
>
> <%
> String test = "return informInventoryLack"+orderItemData.getId() +
")";
> %>
> <html:button property="btnInform" onclick='<%= test %>'><bean:message
> key="button.order"/></html:button>
>
> Is there more elegant solution?
>
> Phong.
>
> ----- Original Message -----
> From: Laurent Cornelis <la...@ubiquity.be>
> To: <st...@jakarta.apache.org>
> Sent: Wednesday, May 16, 2001 4:04 PM
> Subject: Re: java script & struts + scriptlet
>
>
> > > <html:button property="btnInform" onclick="return
> informInventoryLack('<%=
> > > orderItemData.getId() %\>')"><bean:message
> > > key="button.order"/></html:button>
> >
> > Maybe could you try this (without the /> at the end of the scriplet) :
> >
> > <html:button property="btnInform" onclick="return
> > informInventoryLack('<%=orderItemData.getId() %>')"><bean:message
> > key="button.order"/></html:button>
> >
> > Let me know if it works
> >
> > Laurent
> >
> >
>
>
Re: java script & struts + scriptlet
Posted by Nguyen Thanh Phong <ph...@sdcgrp.com>.
Hi Laurent,
I was using the following but it doesn't work either
<html:button property="btnInform" onclick="return
informInventoryLack('<%=orderItemData.getId() %>')"><bean:message
key="button.order"/></html:button>
The error I got is :
C:\beaWeblogic\wlserver\config\sdcdomain\applications\smartV1_2\WEB-INF\_tmp
_war_netcom_netcom_smartV1_2\jsp_servlet\_ebiz\_mall\_gsquickorder.java:1127
: unclosed string literal
probably occurred due to an error in /ebiz/mall/gsQuickOrder.jsp line 220:
<html:button property="btnInform" onclick="return informInventoryLack(<%=
orderItemData.getId() %>)"><bean:message key="button.order"/></html:button>
Tracing to the java file, I have:
_html_button0.setOnclick(weblogic.utils.StringUtils.valueOf("return
informInventoryLack(<%= orderItemData.getId()
ile://[ /ebiz/mall/gsQuickOrder.jsp; Line: 220]
I have found a work arround:
<%
String test = "return informInventoryLack"+orderItemData.getId() + ")";
%>
<html:button property="btnInform" onclick='<%= test %>'><bean:message
key="button.order"/></html:button>
Is there more elegant solution?
Phong.
----- Original Message -----
From: Laurent Cornelis <la...@ubiquity.be>
To: <st...@jakarta.apache.org>
Sent: Wednesday, May 16, 2001 4:04 PM
Subject: Re: java script & struts + scriptlet
> > <html:button property="btnInform" onclick="return
informInventoryLack('<%=
> > orderItemData.getId() %\>')"><bean:message
> > key="button.order"/></html:button>
>
> Maybe could you try this (without the /> at the end of the scriplet) :
>
> <html:button property="btnInform" onclick="return
> informInventoryLack('<%=orderItemData.getId() %>')"><bean:message
> key="button.order"/></html:button>
>
> Let me know if it works
>
> Laurent
>
>
Re: java script & struts + scriptlet
Posted by Laurent Cornelis <la...@ubiquity.be>.
> <html:button property="btnInform" onclick="return informInventoryLack('<%=
> orderItemData.getId() %\>')"><bean:message
> key="button.order"/></html:button>
Maybe could you try this (without the /> at the end of the scriplet) :
<html:button property="btnInform" onclick="return
informInventoryLack('<%=orderItemData.getId() %>')"><bean:message
key="button.order"/></html:button>
Let me know if it works
Laurent
Help: java script & struts + scriptlet
Posted by Nguyen Thanh Phong <ph...@sdcgrp.com>.
Hello all,
I'm using struts to internationalize my application. In this application I
do use some Java Script to check input from the user before submitting it to
the server.
I have the following code that reports error:
<html:button property="btnInform" onclick="return informInventoryLack('<%=
orderItemData.getId() %\>')"><bean:message
key="button.order"/></html:button>
It check the inventory (stored in a Java Beans) when user clicks on the
submit button.
The problem is JSP compiler stops processing after seeing the ">" of the
scriptlet.
Is there any way to escape this?
All helps are greatly appreciated.
Nguyen Thanh Phong Tel: 84-8-837 25 06/837 25 07
Saigon Software Development Company (SDC) Fax: 84-8-837 25 11
10 Co Giang Street, Dist I, HCMC Email:
phong.nguyen_thanh@sdcgrp.com
Vietnam