This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

WSAD migrating to struts 1.2.4

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can some one please help me with the migration process. I have issues when do so.

I have WSAD 5.0 with struts 1.1. I am trying to migrate to struts 1.2.4.

Can some one please help me in this regards.

Thanks in advance.

Regards.

npan.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Be aware that all the tools in WSAD 5.0 are designed to work with Struts 1.1. You can still use a later version of Struts if you like, but the WSAD tools will tell you that you have errors in your struts-config.xml file, and they may not work as you expect. There's no way around this.

However,If you ignore the tool errors, the application will still run fine.

To upgrade:

1-Replace all the struts related jar files in your WEB-INF/lib directory. This includes all the commons jar files.
2-update the DTD reference in your struts-config.xml file and in your validation files if you're using the Struts validation framework.
3-You may have to update some code. In Version 1.2, you usue ActionMessages instead of ActionErrors as the collection for error messages.
 
npan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Merrill for the response.

I have updated my WSAD to 5.1.0. i hve done all the upgrades to what u have mentioned in the mail (for i still have struts 1.1 integrated with 5.1.0 that i ma currently using).

I am using "MappingDispatchAction" and when i do so, i am getting this exception.

I start my server and at the time of server start - up, i ge this exception. In my struts config file, i have one action mapped to a class which extends this MappingDispatchAction.

######################
[3/8/06 15:33:02:232 PST] 4c95a5a2 Digester E org.apache.commons.digester.Digester Begin event threw error
[3/8/06 15:33:02:242 PST] 4c95a5a2 Digester E org.apache.commons.digester.Digester TRAS0014I: The following exception was logged java.lang.LinkageError: LinkageError while defining class: com.web.java.CustomMapping
Could not be defined due to: com/web/java/CustomMapping (Unsupported major.minor version 48.0)
This is often caused by having a class defined at multiple
locations within the classloader hierarchy. Other potential causes
include compiling against an older or newer version of the class
that has an incompatible method signature.
Dumping the current context classloader hierarchy:
==> indicates defining classloader
==>[0]
com.ibm.ws.classloader.CompoundClassLoader@296a25a4
Local ClassPath: C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\classes;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\antlr.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\commons-beanutils.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\commons-collections.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\commons-digester.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\commons-fileupload.jar;C:\MyPrograms\Projects\Sample\LibWEB \WebContent\WEB-INF\lib\commons-lang.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\commons-logging.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\commons-validator.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\dbbeans.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\dom.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\i18n.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\jakarta-oro.jar;C:\MyProgram s\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\jaxen-full.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\jaxp-api.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\jdbc2_0-stdext.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\jspsql.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\jstl.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\sax.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\saxpath.jar;C:\My Programs\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\standard.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\struts.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\taglibs-application.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\taglibs-datetime.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\taglibs-mailer.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\taglibs-page.jar;C:\MyPrograms\Projects\Sample\LibWEB\Web Content\WEB-INF\lib\taglibs-request.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\taglibs-response.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\taglibs-session.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\taglibs-string.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\utility.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\xalan.jar;C:\MyPrograms\Projects\Sample\LibWEB\WebContent\WEB-INF\lib\xercesImpl.jar;C:\ MyPrograms\Projects\Sample\LibWEB\WebContent;
Delegation Mode: PARENT_FIRST
[1] com.ibm.ws.classloader.JarClassLoader@696149412 Local Classpath: Delegation mode: PARENT_FIRST
[2] com.ibm.ws.classloader.ExtJarClassLoader@1438672303 Local ClassPath: C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5\lib\app; Delegation Mode: PARENT_LAST
[3] com.ibm.ws.classloader.ProtectionClassLoader@d77a5aa
[4] com.ibm.ws.bootstrap.ExtClassLoader@4c9f65a2
[5] sun.misc.Launcher$AppClassLoader@4f6865a2
[6] sun.misc.Launcher$ExtClassLoader@4f6d25a2
---Original exception---
java.lang.UnsupportedClassVersionError: com/web/java/CustomMapping (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:407)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:357)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
at org.apache.struts.config.ActionMappingFactory.createObject(ConfigRuleSet.java:375)
at org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:389)
at org.apache.commons.digester.Digester.startElement(Digester.java:1286)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java(Compiled Code))
at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java(Compiled Code))
at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java(Compiled Code))
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java(Compiled Code))
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java(Compiled Code))
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java(Compiled Code))
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1158)
at org.apache.commons.digester.Digester.parse(Digester.java:1572)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1270)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:277)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:396)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:216)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:984)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:415)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:787)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:351)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:575)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:268)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:246)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
##

Any help in this regards is appreciated.

Thanks.

npan
 
npan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks Like i cannot integrate jdk 1.4 with WSAD 5.1.0. I will have to get WSAD 5.1.1 to work with JDK 1.4.

One of the reasons for the above exceptions is, with WSAD 5.1.0 my highest J2EE compiler version is 1.3. and is why i think i was getting the above exception.

Any Notes (OR corrections) on this is very much welcome.

Thanks.

npan.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From the errors you're getting, my guess is that somewhere within the WebSphere Test Environment, the Struts 1.1 jar is getting loaded prior to the Struts 1.2 jar.

Here's something you may want to try:

Use the import wizard to import the struts-blank.war file that comes with the Struts 1.2 download. Then copy all of your classes and other files from the old project to the new project and see if you get the same error.

Let me know if this fixes it
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're right. You will have to upgrade to WSAD 5.1.1 to make this work.
 
npan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Sir.
off late i have not checked the respone to my Post. I appreciate you insight in this regards.

N Pan.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic