Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with struts in weblogic

 
srinivasM Reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Varsha Gawari
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
srinivas,

did u find the solution for this??

thanks,
- varsha.
 
Varsha Gawari
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic