wood burning stoves 2.0*
The moose likes Struts and the fly likes struts 2.0 simple first login application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 2.0 simple first login application " Watch "struts 2.0 simple first login application " New topic
Author

struts 2.0 simple first login application

manish panchal
Greenhorn

Joined: May 10, 2012
Posts: 2
Hello Sir,

I have developed simple struts Login application using myeclipse8.0 and weblogic 8.1.
And i have got this error.


>
<May 10, 2012 10:30:36 AM PDT> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\bea\user_projects\domains\mydomain\applications', Module: 'FirstStruts']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. (line 6, column 54).>
<May 10, 2012 10:30:37 AM PDT> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=1816810,name=FirstStruts,context-path=/)]: Deployment descriptor "jar:file:C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver__appsdir_FirstStruts_war_FirstStruts\jarfiles\WEB-INF\lib\struts2-core-2.3.3.jar!/META-INF/struts-tags.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 2, column 228).>
<May 10, 2012 10:30:37 AM PDT> <Error> <HTTP> <BEA-101165> <Could not load user defined filter in web.xml: ServletContext(id=1816810,name=FirstStruts,context-path=/FirstStruts) org.apache.struts2.dispatcher.FilterDispatcher.
java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'org.apache.struts2.dispatcher.FilterDispatcher'
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:187)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
at weblogic.servlet.internal.WebAppServletContext.loadClass(WebAppServletContext.java:6127)
at weblogic.servlet.internal.WebAppServletContext.registerFilter(WebAppServletContext.java:3076)
at weblogic.servlet.internal.WebAppServletContext.initFilters(WebAppServletContext.java:3053)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3354)
at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:6208)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:864)
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2134)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2175)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2520)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2438)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2155)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2254)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2149)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2401)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: java.lang.UnsupportedClassVersionError: org/apache/struts2/dispatcher/FilterDispatcher (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:480)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
... 25 more


I am using these struts jars

1. commons-logging-1.1.1
2. commons-collections-3.1
3. freemarker-2.3.19
4. ognl-3.0.5
5. struts2-core-2.3.3
6. xwork-core-2.3.3

and using jdk1.5.

please tell me the reason of error and could you please tell me the specification of version , I mean which type of jdk version i used with which type of eclipse and weblogic version.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8843
    
    7

manish panchal wrote:
<May 10, 2012 10:30:36 AM PDT> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\bea\user_projects\domains\mydomain\applications', Module: 'FirstStruts']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. (line 6, column 54).>
<May 10, 2012 10:30:37 AM PDT> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=1816810,name=FirstStruts,context-path=/)]: Deployment descriptor "jar:file:C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver__appsdir_FirstStruts_war_FirstStruts\jarfiles\WEB-INF\lib\struts2-core-2.3.3.jar!/META-INF/struts-tags.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 2, column 228).>



Sounds like your web.xml file is malformed.
You should probably use a more up-to-date version of Weblogic, seeing as how support for 8.1 was discontinued years ago.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
adeeb alexander
Ranch Hand

Joined: May 29, 2008
Posts: 268
Show the web.xml code here, so someone can find out what is wrong in your web.xml.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Class bytes found but defineClass()failed for: 'org.apache.struts2.dispatcher.FilterDispatcher

Use latest filter StrutsPrepareAndExecuteFilter above one is deprecated.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts 2.0 simple first login application
 
Similar Threads
Deployment in Weblogic 8.1
Weblogic 8.1: "java.lang. ClassNotFoundException: weblogic.servlet. WlwJSPServlet"
Problem regading Entity bean....
deployment problem
GlassFishConfigureListener Version Exception while deploying on Weblogic