*
The moose likes Struts and the fly likes problem with  struts in weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with  struts in weblogic" Watch "problem with  struts in weblogic" New topic
Author

problem with struts in weblogic

srinivasM Reddy
Greenhorn

Joined: May 23, 2005
Posts: 5
Hi all,
could any one let me know , where i have gone wrong, i am using weblogic8.1
i have created a application under the exampleWebapp folder, do i need to set any thing else..
when i run the file i get this error

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

Parsing of JSP File '/JSP/HelloWorld.jsp' failed:
--------------------------------------------------------------------------------
/JSP/HelloWorld.jsp(2): Could not parse deployment descriptor: java.io.IOException: cannot resolve '/WEB-INF/struts-html.tld' into a valid tag library
probably occurred due to an error in /JSP/HelloWorld.jsp line 2:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
--------------------------------------------------------------------------------
Mon May 23 17:18:02 GMT+05:30 2005
vijaya bharath
Ranch Hand

Joined: Jun 10, 2005
Posts: 66
Hi,

While deploying struts application the directory structure must be like ---> under your application root directory u shud have WEB-INF directory,under this u shud have classes directory.Till this u know i think. And to run struts and we need to provide tld files in the specified path of web.xml like struts-html.tld,struts-logic.tld etc.. If u have these files under WEB-INF(recommended) u specify that tld location in web.xml and that tld uri apecified in web.xml u use in jsp. So to use that u must specify the correct location of tld files in web.xml. So u must have all these tld files in the specified path. Download them from the apache site. And under WEB-INf only u must have one dorectory by name lib. In that lib folder u must have all the jar files required like struts.jar,commons-beanutils.jar,commons-validator.jar etc... download these also from site.
Try with this structure may be this helps u.


Regards,<br />Vijaya Bharath.<br />SCJP1.4 <br />SCWCD5.0
Varsha Gawari
Greenhorn

Joined: Jun 19, 2006
Posts: 4
srinivas,

did u find the solution for this??

thanks,
- varsha.
Varsha Gawari
Greenhorn

Joined: Jun 19, 2006
Posts: 4
Looks like tld files are not okay.

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

Specifically there is a problem when we use
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"

Has anybody faced the same problem?
I am deploying struts on weblogic 8.1 SP5.
Lalit Vora
Ranch Hand

Joined: Jun 22, 2006
Posts: 37
Hi All,

I am new to weblogic. I have weblogic 8.1. I have struts application running on tomcat5.0 I want to run this application in weblogic. Can you please guide me where create my application folder and where to put all files like java files for form and action, jsp files etc. and how to run it on weblogic.


Currently I have P1 folder in webapps of tomcatin p1 i have web-inf in which i have jsp and web.xml and config.xml and all tag files.
in web-inf i have classes folder where i have my java files in classes i have ch03 folder where i have my .class file after compiling. In web-inf folder i have lib folder where i have all jar files for struts. This is my structure for struts in tomcat.

I want to run this application in weblogic.

Can you please help me how to run and where to place everything? Like placed my main folder in webapps of tomcat where to put my main folder and how to run?

Thanks for support

Lalit
Varsha Gawari
Greenhorn

Joined: Jun 19, 2006
Posts: 4
Weblogic 8.1 SP5.0, Struts and JRocket of Weblogic gives problems invoking struts.

Weblogic 8.1SP4.0, Struts and JRocket of Weblogic goes well.
Varsha Gawari
Greenhorn

Joined: Jun 19, 2006
Posts: 4
Lalit,

There wont be any weblogic specific file/folder structure changes of Struts. If it works on tomcat the same app should work on weblogic.

If you want to check on compatibilty of weblogic and struts try deploying struts-blank.war/struts-examples.war(u should get it on Apache site).

Hope this helps.

- Varsha.
Lalit Vora
Ranch Hand

Joined: Jun 22, 2006
Posts: 37
Hi Varsha,

I am sorry for late reply. I will try and will let you know if i face any problem.

Thanks for your support

Lalit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with struts in weblogic