File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 2.0 simple first login application

 
manish panchal
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
adeeb alexander
Ranch Hand
Posts: 268
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show the web.xml code here, so someone can find out what is wrong in your web.xml.
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class bytes found but defineClass()failed for: 'org.apache.struts2.dispatcher.FilterDispatcher

Use latest filter StrutsPrepareAndExecuteFilter above one is deprecated.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic