Seetesh Hindlekar

Ranch Hand
+ Follow
since Feb 13, 2004
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 Seetesh Hindlekar

Hello all,

I am now planning to use Single Sign On in Spring framework either using Acegi/CAS.

Any inputs for the same?

Rgds,

Seetesh
16 years ago
Any ideas what to do in such cases?

Rgds,

Seetesh
17 years ago
Hello

Its working now.
Slight change in springapp-servlet.xml and now it works.

Thks,

Seetesh
AProjSpring
===========
build.xml
build.properties
----src
-------SpringappController.java
----war
-------index.jsp
----WEB-INF
-------index.jsp
-------springapp-servlet.xml
-------web.xml
-------classes
-----------log4j.properties
-----------SpringappController.class
-------lib
-----------commons-logging.jar
-----------spring.jar
-----------log4j-1.2.13.jar
-----------etc all other jar files
Hello

I reconfigured the path settings of log4j.xml and now there are no ERROR's displayed.

I use Jboss 4.0.4 GA App Server and the war file created is put in the deploy folder.

web.xml
=======

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
<web-app>
<servlet>
<servlet-name>springapp</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>springapp</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.jsp
</welcome-file>
</welcome-file-list>

</web-app>

Structure is as follows

AProjSpring
===========
build.xml
build.properties
src
SpringappController.java
war
index.jsp
WEB-INF
index.jsp
springapp-servlet.xml
web.xml
classes
log4j.properties
SpringappController.class
lib
commons-logging.jar
spring.jar
log4j-1.2.13.jar
etc all other jar files

Not able to run the index.jsp page. 404 Error.

Rgds,

Seetesh
No where in the SpringappController.java is DispatcherServlet used.

springapp-servlet.xml has
<beans>
<bean id="springappController" class="SpringappController"/>
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/hello.htm">springappController</prop>
</props>
</property>
</bean>
</beans>

Stack Trace
===========

15:31:53,546 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
15:31:53,546 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
15:31:53,546 ERROR [STDERR] log4j:ERROR [WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
java.net.FactoryURLClassLoader@1c3e3fb
] whereas object of type
15:31:53,546 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@1833955].


Rgds,

Seetesh
I cant post a thread with 30 characters continued and thats why I had to break up these words.

Yes I have included all jar files including spring-webmvc.

I believe this class is in Srping.jar too

Rgds,

Seetesh
Hello All,

I have included most of the jar files during build. Any one in particular which I have missed out?

Rgds,

Seetesh
Hi,

Pls refer to my post for multiple resource files in one struts-config.xml.

Rgds,

Seet
17 years ago
Hello,

I managed to create a user plugin and add the same to a new tiles-defs.xml.

struts-config.xml
=================
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<!-- Path to XML definition file -->
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
<set-property property="seet-definitions-config" value="/WEB-INF/seet-tiles-defs.xml" />

<!-- Set Module-awareness to true -->
<set-property property="moduleAware" value="true" />
</plug-in>


No issues faced.

rgds,

Seetesh
17 years ago
Hello

Our application connects to the above ports like it connects to COM1 / COM2 ports and exchanges data with connected device on that port.

We need to emulate connection for USB port in MAC machines.

Any software or url link to assist me in the same.'

We tried a software called SerialIO but it doesnt work on MAC machines.

Rgds,

Seetesh
17 years ago
Hello,

while creating new plugins in Struts, why is it mandatory for jsp's to be in pages directory.

If I create a folder called "ast" under WEB-INF and keep the jsp page in this new folder under WEB-INF (WEB-INF\ast), I am not able to run the jsp page from the url

http://localhost:8080/strutstutorial/WEB-INF/ast/plugin.jsp

Rgds,

Seetesh
17 years ago
Hello,

Are validator-rules.xml and validation.xml files in the same WEB-INF folder?

rgds,

seetesh
17 years ago