Yi Zhou

Greenhorn
+ Follow
since Sep 25, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yi Zhou

the same problem with mine
you can read the article I post and some gentlemen replied ,maybe it can help you.

By the way, if you get it, please inform of me and vice versa.
20 years ago
struts.jar file has been placed within TOMCAT_HOME\lib folder
20 years ago
I added but same.
now I think it is a Parse Error !
the struts can't parse my .tld files.
20 years ago
unfortunately, I found the code you give had been included in the web.xml.
anyway, thanks your replying.
20 years ago
I am trying a struts Internationalization example in "struts tutorials" writen by stphan.
1 I have made the resouce file : "ApplicationResources.properties" in which is just one line code : index.title=Struts Tutorial
and placed it into class directory.
2 My JSP file content as follows
<%@ page language="java" %>
<%@ taglib uri="struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html locale="true">
<head><html:base/><title>
<bean:message key = "index.title"/>
</title></head>
<body><h2>BookView</h2></body>
</html:html>
3 My struts-config.xml is empty
web.xml include:
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResource</param-value>
</init-param>
When I start up tomcat3.1 and typed "http://localhost:8080/strutsShop/bookview.jsp" in IE address column
The page shows:
Location: /strutsShop/bookview.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to open taglibrary struts-bean.tld : Parse Error in the tag library descriptor: com.sun.xml.parser/V-034 servlet-name servlet-name (#PCDATA)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:672)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1073)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:534)
Can't open the tld!!!??
Why?
can anybody tell me ?
Thanks
20 years ago
I think I have configured them appropriately.
And When I changed tomcat 4.x to 3.1, all problems disappeared. why?
20 years ago
I have downloaded Tomcat4 and Struts 1.1
and install tomcat4 to c:\tomcat
So , startup tomcat, it is normal!
but,
copy %struts_home%\webapps\*.war c:\tomcat\webapps
now, restart the tomcat, it throws exceptions as follows:
and I run IE, with http://localhost:8080 it is normal.
The page of http://localhost:8080/struts-examples/index.jsp is invalid and
show :
"A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:481)
at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0.java:456)"
Could you tell me the correct way to use Sturts?
Thank you for your reading my post.

tomcat's exception:
---------------------------------------
2003-10-8 22:15:02 org.apache.struts.util.MessageResourcesFactory createFactory 严重(Error): MessageResourcesFactory.createFactory java.lang.ExceptionInInitializerError at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192) at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:755) at org.apache.catalina.core.StandardContext.start(StandardContext.java:2979) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:816) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:334) at org.apache.catalina.core.StandardHost.deploy(StandardHost.java:545) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:294) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:383) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:226) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1172) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:217) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:454) at org.apache.catalina.startup.Catalina.start(Catalina.java:654) at org.apache.catalina.startup.Catalina.execute(Catalina.java:595) at org.apache.catalina.startup.Catalina.process(Catalina.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:157) Caused by: java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577) at org.apache.struts.util.RequestUtils.<clinit>(RequestUtils.java:134) ... 27 more Starting service Tomcat-Apache Apache Tomcat/4.0-b1 2003-10-8 22:27:22 org.apache.struts.util.PropertyMessageResources <init> 信息: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true -------------------------------------------------------------------------
20 years ago
Websphere
maybe We should use Weblogic !
Anyway, Thank you so much.
Object java.rmi.RemoteException: CORBA NO_IMPLEMENT 1 No; nested exception is: org.omg.CORBA.NO_IMPLEMENT: Unable to locate value class ordergoodsprocess.OrderKey minor code: 1 completed: Nonaming

I get the information by running the lines as follows
"catch (Exception e) {
out.print(e);
} "
but i am still confused.
Thank you very much and I can't agree with you more.
But what i am doing is to modify some horrible programme somebody wrote two years ago. I cannot modify the servlet class and EJB because the source code is unavailable.
So I have to handle it in JSP.
In my JSP I try to write : OrderKey orderKey = (OrderKey) order.getPrimaryKey . I remember the line worked fine one year ago ,but now when run it , it throws exception. I am sure I have imported neccessary packages.
Iknow it is a stupid question. but I cannot handle it with getPrimaryKey()
who can give me a hand?
Thanks