Tomcat 5.0.25 and struts 1.1
Dear all,
I copied struts.jar into myAapplication/WEB-INF/lib under the Tomcat webapps directory.
Then I run my JSP example to use struts. But I failed.
Could you tell me where I was wrong.
Best regards,
PY
PS: The exception:
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
java.lang.Class.getConstructor0(Class.java:1922)
java.lang.Class.newInstance0(Class.java:278)
java.lang.Class.newInstance(Class.java:261)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
java.lang.Thread.run(Thread.java:534)
You need to copy all the JAR files contained in the Struts distribution to your WEB-INF/lib directory, not just struts.jar.
From the Struts readme:
'Copy the JAR files from the "lib" directory of the Struts distribution (such as "struts.jar" and "commons-*.jar") into the "WEB-INF/lib" directory of your web application.'
Similar Messages
-
Please hepl me. i m intergrating ejb3 and struts in two server. but is not working
it is simple application i m runing in tow server but i m get classsnotfound error pleas solve my problem. i will give my direct structure of application
i m runing ejb3 in weblogic 10.3 and struts in tomcat server. both communication is not happening pleas help me. i m try from many days. But is not working form me
root dir
onlyenb6
account class
package ejb3.onlyejb;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class account implements Serializable{
@Id
int accno;
public int getAccno() {
return accno;
public void setAccno(int accno) {
this.accno = accno;
public String getName() {
return name;
public void setName(String name) {
this.name = name;
public float getBalance() {
return balance;
public void setBalance(float balance) {
this.balance = balance;
String name;
float balance;
Int6_clss code
package ejb3.onlyejb;
import java.io.Serializable;
public interface Int6_cls extends Serializable {
public void storing(int acc, String name, float amt);
Session.class code
package ejb3.onlyejb;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@Stateless(mappedName="saigoud")
@Remote
public class Session_ben implements Int6_cls {
@PersistenceContext
EntityManager mrg;
public void storing(int acc, String name, float amt) {
System.out.println("session="+acc);
System.out.println("sess="+name);
account accs=new account();
accs.setAccno(acc);
accs.setName(name);
accs.setBalance(amt);
mrg.persist(accs);
build.xml
<project name="onlyejb5" default="saifile">
<property name="bea.home" value="C:/bea"/>
<property name="wl_home" value="${bea.home}/wlserver_10.3"/>
<path id="main.class.path">
<pathelement path="${bea.home}/modules/com.bea.core.utils_1.4.0.0.jar"/>
<pathelement path="${bea.home}/modules/com.bea.core.jarbuilder_1.2.0.0.jar"/>
<pathelement path="${java.class.path}"/>
</path>
<target name="saifile">
<echo message="***ANT Script should run from inside the ${wl.home}/server/lib *****" />
<echo message="***** ********* ********* *****" />
<java classname="com.bea.jarbuilder.JarBuilder">
<classpath refid="main.class.path"/>
<jvmarg value="-d ${wl.home}/server/lib -jar wljarbuilder.jar"/>
</java>
</target>
</project>
after run with ant i get successfully create wlfullclient.jar
i m taking this wlfullclient.jar and pasting in tomcat lib directery and run webapplication
my webapplication code
package ejb3.onlyejb;
import java.io.Serializable;
public interface Int6_cls extends Serializable {
public void storing(int acc, String name, float amt);
package ejb3.onlywed;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Hashtable;
import java.util.Properties;
import javax.ejb.EJB;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import ejb3.onlyejb.Int6_cls;
public class Action_cls extends Action {
public ActionForward execute(ActionMapping map, ActionForm fm, HttpServletRequest req, HttpServletResponse res)
throws IOException{
String respkey="fails";
Action_form_bean bean=(Action_form_bean)fm;
int ac=bean.getAccno();
String na=bean.getName();
float bal=bean.getAmt();
System.out.println("accno="+ac);
System.out.println("na="+na);
System.out.println("bal="+bal);
System.out.println("enter in to if loop");
Hashtable p=new Hashtable();
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL,"t3://localhost:7001");
System.out.println("jndi properties nuderprocess");
try {
System.out.println("loading p file="+p);
InitialContext ic = new InitialContext(p);
System.out.println("loading p file over="+ic);
System.out.println("jndi file is loaded");
//System.out.println("wrs="+wrs);
System.out.println("entry in try block");
Int6_cls wrs=(Int6_cls)ic.lookup("saigoud#ejb3.onlyejb.Int6_cls");
System.out.println("lookup susfull");
wrs.storing(ac, na, bal);
respkey="ok";
} catch (NamingException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
catch (Exception e) {
// TODO: handle exception
ActionForward fw=map.findForward(respkey);
return fw;
get error
accno=44
na=hjhjhj
bal=777.0
enter in to if loop
jndi properties nuderprocess
jndi properties nuderprocess22
loading p file={java.naming.provider.url=t3://localhost:7001, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory}
loading p file over=javax.naming.InitialContext@12f9bcd
jndi file is loaded
entry in try block
Jul 5, 2013 1:36:22 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
java.lang.ClassNotFoundException: ejb3.onlyejb.Int6_cls
at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.getClassBytes(RemoteBizIntfClassLoader.java:151)
at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.loadClass(RemoteBizIntfClassLoader.java:96)
at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:54)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(RemoteBusinessIntfProxy.java:205)
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:597)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at ejb3.onlywed.Action_cls.execute(Action_cls.java:62)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)Locking multipost.
-
Hi all,
I download and put com.cross.easystruts.eclipse_0.6.4 under D:\eclipse\plugins , then I reopen the eclips Windows->Preferences
I did not have Debug and easy struts, why . I can install tomcat plug in why not struts plug in
thank youHi thank you!
I download eclipse 3.1 what plug in I should use for struts?
Thank you -
Problem: Localisation with JSTL FMT and Struts
Hello!
I am working on my first project with JSP / Servlets including JSTL and Struts Tag Libraries.(plus tiles from JSTL)
I am trying to use localised messages, to deploy a webshop in multiplle languages.
I allready managed to accomplish that the messages are read out of a file ApplicationResources.en.properties and another one ApplicationResources.de.properties which will be chosen by the preferences of the browser (JSTL FMT:message tag).
The strange this is, this only works the first time the servlets are compiled. After I opened the servlet once in my browser, I am allways seeing the message in that language that was used first, even if I set the the locale trough a link in the URL. I am using this code:
http://localhost:8080/Inkrement18/buchladenseite.jsp?lang=en
<c:if test='${param.lang == "de"}'>
DE <fmt:setLocale value="de" scope="session" />
<fmt:setBundle basename="ApplicationResources" scope="session" />
</c:if>
<c:if test='${param.lang == "en"}'>
EN <fmt:setLocale value="en" scope="session" />
<fmt:setBundle basename="ApplicationResources" scope="session" />
</c:if>It seems to me, the servlet is compiled once, and afterwards the locale does not get checked anymore. Is that possible?
When I delete the compiled servlets from the work directory by hand, my link to change the locale manually works once, till I delete the servlets again (the session does not get killed by deleting the servlets!)
My webserver is Jakarta Tomcat 5.5.9 and IDE Is eclipse.
I am not sure if it matters here, but the main page consists of 4 parts like banner, menu, main-page, footer which gets assembled trough "tiles".
Most submenues like shopping basket / catalogue are action servlets, realised with struts, calling another .jsp page by forward.
Any ideas are really apreciated - I have no idea where to look for the error!
If you need any more input from my side, please let me know!
Best regards
JanHey Experts!
Nobofy has a clue on this? I have really no clue where to start to look for the problem...
Cheers...Jan -
Tomcat 6.0.9 and jsf 1.2 and jstl 1.2 using *.tag file error
I using :tomcat 6.0.9 and jsf 1.2 and jstl 1.2
My web.xml is at version 2.5 and I am using a custom tag (with the .tag extension). I am trying to use the http://java.sun.com/jsf/html library and values from my attribute. I'm new to this so I figure I must just me missing something.
I am run http://192.168.1.1/test.jsf laster,view:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:212)
org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:576)
org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:50)
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:627)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:631)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:645)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:190)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:414)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:455)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:139)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.9 logs.
if go to /WEB-INF/tags/test.tag ,delete line: <h:outputText id="test" value="hello!" />
run http://192.168.1.1/test.jsf is OK!(no error),So I guess error for "<h:outputText id="test" value="hello!" />" line ,why in test.tag file do can't use the "http://java.sun.com/jsf/html " library,please help me.......
Here is file WEB-INF/web.xml content:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
version="2.5">
<display-name>Welcome to Tomcat</display-name>
<description>
Welcome to Tomcat
</description>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
</web-app>
Here is file /test.jsp code:
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
<html>
<head>
<title>test</title>
</head>
<body>
<!-- body start -->
<h:outputText id="myinfo" value="test success" />
<tags:test/>
<!-- body end -->
</body>
</html>
</f:view>
Here is file /WEB-INF/tags/test.tag code:
<%@tag pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<h:outputText id="test" value="hello!" />
Thanks for any help.Don't know if it's important, but there is no schema avaiable at: http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd
I found the right one at: http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
/perty
Message was edited by:
perajonsson -
Can any body give some info on integration of JSF to existing struts application
I describe the main differences between JSF and Struts in this sample Chapter from my JSF book:
http://www.oreilly.com/catalog/jsvrfaces/chapter/ch01.pdf
Hope that helps. -
JSF and Struts - differences and integration goal.
I am a newbie J2EE developer and I am not clear about main differences between JSF and Struts also I saw couple of articles describing integration between JSF and Struts. Could someone give me an explanation, what the main conceptual differences between those technologies and what's the goal of integration both of them?
I describe the main differences between JSF and Struts in this sample Chapter from my JSF book:
http://www.oreilly.com/catalog/jsvrfaces/chapter/ch01.pdf
Hope that helps. -
Does Oracle ADF UIX use Struts components internally? If yes, Does Oracle Support the issues that arises because this internally used Struts components? (I am using Oracle ADF in my application.
Thanks,
Aravind.DataForwardAction and DataAction are build on top of struts actions to coordinate ADF databindings and it's life cycle;
UIX, has xmlns:struts="http://xmlns.oracle.com/uix/struts" this XML namespace has some elements like
<struts:form> and <struts:messageTextInput> also <struts:dataScope>
They work like struts jsp tag;
here a good paper;
http://download-west.oracle.com/otn_hosted_doc/jdeveloper/904preview/uixhelp/uixdevguide/struts.html
Marcos Ortega
Brazil -
We're trying to upgrade to jdk1.5 from 1.4.0. We're running tomcat 4.1.2 and jwsdp 1.0.0.1. When running wsdeploy, we're receiving the following error:
[echo] Running wsdeploy...
[echo] /db/dbdev/jwsdp-1_0_01/bin/wsdeploy.sh -tmpdir build/wsdeploy-generated -o dist/cpws.war dist/cpws-portable.war -verbose
[exec] Note: sun.tools.javac.Main has been deprecated.
[exec] 1 warning
[exec] error: javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:/export/home/dnassirp/RIDE/Profiler/build/wsdeploy-generated/jaxrpc-deploy-a64a8e/WEB-INF/web.xml (No such file or directory)
[exec] javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:/export/home/dnassirp/RIDE/Profiler/build/wsdeploy-generated/jaxrpc-deploy-a64a8e/WEB-INF/web.xml (No such file or directory)
[exec] at org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:1043)
[exec] at org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:934)
The original web.xml file does exist (but in it's original location). There is a web-before.xml in the wsdeploy-generated directory but no web.xml (we're execting that wsdeploy should generate this).
Has anyone else had this problem? Any suggestions?
Thanks.I'm seeing exactly the same thing in Netbeans.
I upgraded to Netbeans 5.0 today and used a JDK1.5 (1.5.0_06) that I already had installed as the JDK for it.
I see exactly the same problem (web.xml not found) with an ant build script that does a wscompile first and which works fine with my previous Netbeans 4.1 install. My Netbeans 4.1 was using a 1.4.2_02 JDK. -
JSR 168 and Struts support sample error
I'm trying to get the sample webapp for JSR 168 and Struts support working with
WebLogic 8.1, and I'm having problems with the struts portlet. The other portlets
seem to work fine, but the Struts portlet gives the following error after clicking
"Save" on most of the forms:
Page Flow Error - Action Not Found
Page Flow: Global.app
Action: html-setters.do
Unable to find action html-setters.do.
That error appears in the browser. At the same time, the following exception
appears in the server window:
<Aug 18, 2003 4:34:12 PM EDT> <Error> <netui> <BEA-420012> <There was an error
while running a lifecycle stage :: Lifecycle: UIControl.render :: for the control
:: null ::.
com.bea.netuix.nf.UIControlException: For portlet [strutsPortlet], could not do
page flow lookup for the given action [html-setters.do] in the given PageFlow:
[struts/exercise-taglib].
This exception is followed by hundreds of lines of the following:
at com.bea.wlw.netui.pageflow.scoping.ScopedServletUtils.strutsLookup(ScopedServletUtils.java:363)
as well as several stack overflow errors.
I believe I have installed the JSR168 and Struts support package according to
the instructions, and have copied the required jars into the samples WEB-INF/lib
directory. I also have tried to write my own Struts application in a portlet,
and it gets the exact same errors when I try to submit a form to my actions.
Any insight would be much appreciated!
Thanks,
PatrickHi Brodi,
I am having the same problem as Patrick. The problem is not in the struts portlet,
but in the forms the portlet navigates to. After the struts portlet loads, I
am able to use the html:links and navigate through the pages. Though when I try
to submit a form I get the action not found error. For example the html-select
page has a form. This page loads fine, but when I hit the save button I get the
following error.
<Aug 25, 2003 11:00:00 AM EDT> <Error> <netui> <BEA-420012> <There was an error
while running a lifecycle stage :: Lifecycle: UIControl.render :: for the contro
l :: null ::.
com.bea.netuix.nf.UIControlException: For portlet [strutsPortlet], could not do
page flow lookup for the given action [html-select.do] in the given PageFlow:
struts/exercise-taglib].
The application appears to loose the struts context. It tries to find the localhost:7001/samples/html-select.do
action instead of localhost:7001/samples/struts/exercise-taglib/html-select.do
action. How do I keep the application from loosing context?
Thank you,
Karen
"Brodi Beartusk" <[email protected]> wrote:
>
Patrick-
I've seen similar things happen when the module name is either not specified
correctly
in the StrutsContent element in the portlet, or when the module is misconfigured,
usually because of either a mising config file or a mis-named config
file.
Ensure that you have a the struts config file for the exercise-taglib
module in
WEB-INF, named jpf-struts-config-struts-exercise-taglib.xml.
-Brodi Beartusk
"Patrick Callis" <[email protected]> wrote:
I'm trying to get the sample webapp for JSR 168 and Struts support working
with
WebLogic 8.1, and I'm having problems with the struts portlet. Theother
portlets
seem to work fine, but the Struts portlet gives the following errorafter
clicking
"Save" on most of the forms:
Page Flow Error - Action Not Found
Page Flow: Global.app
Action: html-setters.do
Unable to find action html-setters.do.
That error appears in the browser. At the same time, the followingexception
appears in the server window:
<Aug 18, 2003 4:34:12 PM EDT> <Error> <netui> <BEA-420012> <There was
an error
while running a lifecycle stage :: Lifecycle: UIControl.render :: for
the control
:: null ::.
com.bea.netuix.nf.UIControlException: For portlet [strutsPortlet], could
not do
page flow lookup for the given action [html-setters.do] in the given
PageFlow:
[struts/exercise-taglib].
This exception is followed by hundreds of lines of the following:
at com.bea.wlw.netui.pageflow.scoping.ScopedServletUtils.strutsLookup(ScopedServletUtils.java:363)
as well as several stack overflow errors.
I believe I have installed the JSR168 and Struts support package according
to
the instructions, and have copied the required jars into the samples
WEB-INF/lib
directory. I also have tried to write my own Struts application ina
portlet,
and it gets the exact same errors when I try to submit a form to myactions.
Any insight would be much appreciated!
Thanks,
Patrick -
Tomcat 4.0.4 and Win2k Installation
I've installed Tomcat 4.0 on different systems and have never had a problem before, but I seem to be having a problem when trying to install it on my Windows 2000 Server machine.
I installed the J2RE 1.4.0 and then Tomcat 4.0.4 and also set the appropriate Environment Variables (CATALINA_HOME and JAVA_HOME).
The installation, at first, appeared to work just fine. I could start up the server and pull up the sample sites without any problems... except for any JSP page. When I try to open a JSP page (even the sample JSPs that come with the installation) I get the following error:
============================================
exception
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
root cause
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
============================================
After being very confused for a day, I have uninstalled and re-installed several times and have recently noticed that there IS a problem with the installation. Near the beginning of the install, in the log window that it displays during installation, I see a line that says:
============================================
Copy to: C:\apache\Apache Tomcat 4.0\common\lib
Copy failed
============================================
Has anyone run into this problem? I can't figure out why this is happening. (or even WHAT the problem is exactly!)
There are files that are in the directory that is specified, so it's definitely not a permissions problem.
I haven't seen any other error or warning messages in the log, so I'm assuming this is the problem. (But I suppose it could be something entirely unrelated.)
Any ideas? Anyone? Anyone?Well, thank you.
(Sometimes I guess you just need someone else to look at the problem.)
I downloaded the RE instead of the SDK. (Clicked on the link in the left column on the download page instead of the right column. DUH!)
I guess I just figured that since Tomcat installed correctly, my java install was fine.
I'll try it over again, but I'm sure it's fine now.
Thanks again! -
For those of you interested in using JavaServer Faces and Struts together (and my mailbox indicates that this is quite a few people :-), I'm happy to announce the immediate availability of an integration library that allows you to use the EA3 release of JavaServer Faces with a recent nightly build (20030216 or later) of Struts 1.1 -- it will also work with the upcoming 1.1-rc2 and 1.1-final releases -- together. Nightly builds of the integration library are available at <http://jakarta.apache.org/builds/jakarta-struts/nightly/struts-faces/>.
The sources for this package are in the Struts CVS repository, in the "contrib/struts-faces" directory, and will be included in the source nightly distributions starting with the 20030307 version. It is not currently planned to include the struts-faces integration library with binary distributions of Struts 1.1, since it is still an EA quality release.
See the README.txt file (included in the nightly build) for more information on running the example application and using the integration library in your own applications.What are the reasons not to have extended
RequestProcessor from Struts with the
capabilities of the FacesServlet... a sort of
"FacesProcessor" (extended the regular
RequestProcessor)? (should be nice for views
with no JSF components: in order not to execute
FacesServlet for each views , event if there is
no JSF component in the view)It turned out that I needed a customized RequestProcessor anyway (a couple of the processXxx methods had to work differently), but it actually would have been more work incorporating FacesServlet directly into it. In essence, there is now (in the combined version) a "front controller" for UI events , FacesServlet, and a "middle controller" for form submit events (RequestProcessor). When a UI event happens that just causes the current page to be redisplayed (think of a tree control where you click on the "expand this node" icon), you don't really want the Struts controller servlet to even be bothered by this request. Indeed, if you're using a presentation that was based on DHTML+Javascript, such an event would have been handled on the client anyway, and would never have been sent to the server at all.
The combined approach still supports Faces and non-Faces pages, though. This means you can migrate one page at a time and test things (which is exactly what I did when I ported the pages of the example app). -
Problem with Pop up windows and struts
Hi
I have problem in working with pop-up windows and struts.
I have parent page which basically lists some data and has a button for adding new record. when I press that button a child windndow will be opened for data entry. The child window has submit button to save data.
when I press the button for save, It will go to action class and saves it in a database and forwards a new page.
but I do not want to forward any new page. If any exception is raised during database saving, a message should be showed in child window otherwise the child window should close and the parent window should get refreshed.
Can any one write me how we can handle this in struts.
Thanks in Advance,
SRThis has nothing to do with struts, you can do the same with some plain JavaScript. Do the following...
1) On error, forward to a error page
2) On success, forward to a temp.html page.
The code in temp.html would be like this
<html>
<head><script>
window.opener.reload();
self.close();
</script></head>
<body>Closing...</body>
</html>Cheers
-P -
Revision: 18538
Revision: 18538
Author: [email protected]
Date: 2010-11-11 09:59:23 -0800 (Thu, 11 Nov 2010)
Log Message:
Remove apache-tomcat-6.0.14 and apache-tomcat-6.0.26 versions from trunk
checkintests: passed
Ticket Links:
http://bugs.adobe.com/jira/browse/tomcat-6
http://bugs.adobe.com/jira/browse/tomcat-6
Removed Paths:
blazeds/trunk/servers/apache-tomcat-6.0.14/
blazeds/trunk/servers/apache-tomcat-6.0.26/I haven't studied your problem in detail and don't actually use Tomcat 6, but in earlier versions of Tomcat the handling of JNDI leaves a lot to be desired. If you search this forum for posts about Tomcat and JNDI, you will find some useful information.
One thing I found was that you really need to use the context.xml file in your Meta-inf directory, putting the datasource anywhere else gets into one kind of trouble or another. I tried using server.xml, a context file for the application and the web-inf file. -
Ann: North East Conference on MVC Frameworks and Struts in 3 weeks:
Ann: North East Conference on MVC Frameworks and Struts in 3 weeks:
Most people already know what MVC is, once you know what it is, here is the next step. Presenting will be the popular frameworks and components in use by 8 speakers:
-Ted Husted Author Struts Chains/2.0 the dominant framework in use, from Ziff Davis, to Apple Store to most large commercial sites.
Husted.com
-Rod Johnson Author EJB/Spring
springFrameWork.com
-Christophe Coenraets Flex-MacroMedia - back to rich UI w/SOA (Great blog entry on Struts + Flex)
markMe.com/cc
-Howard Lewis Ship Author HiveMind (SOA, IOC, AOP) commonly referred to as the next big thing
javaTapestry.blogspot.com
-Clinton Begin DAO/iBatis/SQLMaps the best DAO layer
imo, used by Spring, jPetStore, basicPortal, etc.
-Matt Raible Author displayTag/strutsMenu (displayTag is my favorite J2EE component)
Raibledesigns.com
-Jason Carreira WebWork 2
freeroller.net/page/jCarreira
- Vic Cekvenich Author basicPortal (J2EZ easy and simple to customize application for membership, portal, cms, community, store, etc. using bestPractices for large, profitable commercial sites. )
+ more
You will get a CD mailed to you once you register.
April 3rd from 8AM to 7PM in NYC at nyhotel.com, next to MSG. Advertised in JDJ, NY Times, etc. My guess is that you wont find half as many good sessions at Suns Java One.
It $99 to register now at baseBeans.com, in a few day's price keeps going up.Hey Jan,
Oracle's E-Business suite is moving to a JSF solution. This is really for three main reasons (abbreviated version):
1) JSF is much more focused on the 'view' components. The component model has a clean separation of the component definition from its rendering. This, among many other things, allows us to provide a consistent development environment and APIs for developers building apps for browsers, mobile devices, telnet devices, etc.
2) JSF has a better defined lifecycle. The JSF lifecycle maps much closer to the phases that enterprise applications need when processing data from a web application. We are able to easily extend this to add things not currently in the spec, like portlets, wireless, etc., as well as more easily plug new components into the framework.
3) Once you remove the JSP tags & FormBean from Struts, all you are left with is the navigation. There is nothing special in the Struts navigation that would cause us to try to make the two technologies work together. In fact, the Faces navigation will not be robust enough in its current form to support the declarative navigation requirements for Oracle apps. We plan to extend the JSF navigation and then work to submit that back into the standards.
Hope this helps,
Ted Farrell
Oracle Corporation.
Maybe you are looking for
-
Error msg shown while cancelling the GR - Material Document
Hi All, While trying to cancell the GR for an Asset / Material the following error msg shown: Balance for transaction type group 10 negative for the area 01 Message no. AA629 Asset affected: 000000107102-0000 Diagnosis With the transaction entered, t
-
How do i simulate a digital instrument using FP
Hi I am a new user of LabView and need to construct an application to verify the operation of data logger programs. I need simulate data from various analogue and digital instruments using standard test data from a spreadsheet. I have just about fi
-
I can't find any of my mom's information that was on her computer before I convinced to do the upgrade. HELP!!!!! I did the upgrade on my iMac with no problems.
-
Hi All, I have Done HTTP--RFC Scenario and i got the Bellow Error in Receiver RFC CC Receiver channel 'CC_RFC_Receiver_IB' for party '', service 'Sub_ssd_subdev' Error can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: err
-
Why not Solutions Authored?
I suspect that this question has been asked before but why do we not see the solutions authored on the front page along with the kudos for each forum? I like the report that Laura generates that shows where you stand and it seem that it should be mor