Nadda Habba

Greenhorn
+ Follow
since Feb 16, 2005
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 Nadda Habba

The server is started. Actually it is for the login screen. when the user tries to visit the url "http://localhost:8080/Appl/login.do" the user is redirected to the tiles page "loginPage"
Hope this helps.
Regards

Nadda
12 years ago
I have the following in my tiles-def.xml


and in my struts-config.xml, iam configuring the Tiles Plugin as follows


Iam forwarding as follows


But i get an error as mentioned below


Please assist
Thanks in advance
12 years ago
I am trying to bind my SessionFactory in Hibernate 3.0 to JNDI using Websphere 6.0, but have been unable to do so as it throws an error, the stack trace of which is mentioned below.

Please assist.
Thanks in advance.
13 years ago
I have kept my logger configuration file[config.properties] at /WEB-INF/config folder.But iam unable to read the file from my servlet class. In my servlet iam trying to read the file using path '/WEB-INF/config/config.properties'. Have i placed the file at the right location ? Would it be included in the classpath? Thanks in advance.
Nadda
13 years ago
use Global.ERRORKEY to get the name of the parameter which saves the Error object.
13 years ago
you could use TagUtilities and get the ErrorMessages stored in the session. You could then display the count on the jsp page. hope this helps
13 years ago
All the failed validations will have a corresponging error object in the Errors collection, size method would give the no of error objects and also failed validations.
13 years ago
You can try using the second Action Form, populate them in the action. You need to put the Action Form in request / session scope. Then forward the request from the Action to the jsp which has the Action Form.
When displaying the Forwarded jsp, it will check whether the Action Form exists in scope, if it does it will populate else will display default values.
13 years ago
please check the tld's, they should have a matching uri element on the tld.
13 years ago
The problem was with the dtd being referenced in validator-rules.xml and validator.xml. I modified it to refere to the local file rather than an interenet http:// url and it works. Thanks for the help
13 years ago
Hi, Iam trying to use Struts Validator Framework and am getting the below mentioned error. Please advice
Thanks in advance
13 years ago
the same war works fine when deployed to tomcat but doesnot in JBoss. Could this be an issue with the appserver rather than the war ? Please suggest
13 years ago
i do have "commons-digester-1.8.jar" in my lib folder of the Web Applctn. Any other suggestions ?
13 years ago
hi, i have my struts war file deployed on JBoss. But iam unable to access the application as it throws the following error
------------------------------------------------------------------------

09:40:59,464 INFO [ActionServlet] Loading chain catalog from jar:file:/C:/Softw
are/java/JBoss/jboss-4.0.1RC1/server/default/tmp/deploy/tmp45064TimeSheet-exp.wa
r/WEB-INF/lib/struts-core-1.3.8.jar!/org/apache/struts/chain/chain-config.xml
09:40:59,684 ERROR [ActionServlet] Unable to initialize Struts ActionServlet due
to an unexpected exception or error thrown, so marking the servlet as unavailab
le. Most likely, this is due to an incorrect or missing library dependency.
java.lang.NoSuchMethodError: org.apache.commons.digester.Digester.parse(Ljava/ne
t/URL Ljava/lang/Object;
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:740)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:689)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:356)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1029)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
a:687)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:144)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
ContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
ipalValve.java:66)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:153)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:54)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:534)
09:40:59,684 INFO [Engine] StandardContext[/TimeSheet]Marking servlet action as
unavailable

------------------------------------------------------------------------

My JBoss starts up sucessfully, the config files are mentioned below

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
<action-mappings>
<action path="logon"
type="com.natesh.logon.LogonAction">
<forward name="success" path="/WEB-INF/jsp/Logon.jsp" />
</action>
</action-mappings>
</struts-config>

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
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_4.xsd">

<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/config/struts-config.xml</param-value>
</init-param>
</servlet>


<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>


</web-app>


Can somebody please assist ?
13 years ago
Thanks it worked i had to place the jars externally and refer them in the manifedt while creating the jar file.

you need to use the command using the followin command
jar -cfm <file1> <file2> <class1.class> <class2.class>
where file1=jar file name
file2= file from which the manifest will be created
file2 will have entry for "Class-Path:" which will contain path for the externally placed lib files.
Hope this helps
13 years ago