Problem with struts-config

hi all,
i have using struts. i have written struts-config file which is giving some error while start the tomcat 5.xxx
struts-config shown below
<?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
              "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
              "http://struts.apache.org/dtds/struts-config_1_2.dtd">
     <struts-config>
    <message-resources parameter="resources.application"/>
    <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor" />
    <plug-in className="org.apache.struts.tiles.TilesPlugin">
        <set-property property="definitions-config"
            value="/WEB-INF/tiles-admin-defs.xml"/>
        <set-property property="moduleAware" value="true"/>
        <set-property property="definitions-parser-validate" value="true"/>
    </plug-in>
    </struts-config>error is
must match "(display-name?,description?,data-sources?,form-beans?,global-excep
ons?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*
org.xml.sax.SAXParseException: The content of element type "struts-config" mus
match "(display-name?,description?,data-sources?,form-beans?,global-exceptions
global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(
known Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
please tell me what did i made wrong

Maybe it makes more sense to ask here
http://jguru.com/forums/Struts
Or at the Jakarta mailing list for Struts.

Similar Messages

  • Problem with reading config file

    Hello,
    I have problem with reading config file from the same dir as class is. Situation is:
    I have servlet which working with DB, and in confing file (config.pirms) are all info about connection (drivers, users, passw, etc.). Everything work fine if I hardcoded like:
    configFileName = "C:\\config.pirms";I need to avoid such hardcoding, I tryied to use:
    configFileName = Pirms.class.getClassLoader().getResourceAsStream ("/prj/config.pirms").toString();but it isn't work.
    My config file is in the same directory as Pirms.class (C:\apache-tomcat-5.5.17\webapps\ROOT\WEB-INF\classes\prj)
    Also I tryied BundledResources, it isn't work fo me also.
    Can anybody help me to solve this problem? with any examples or other stuff?
    Thanks in advance.
    Andrew

    Thanks, but I am getting error that "non-static method getServletConfig() cannot be referenced from a static context"
    Maybe is it possibility to use <init-param> into web.xml file like:
    <init-param>
      <param-name>configFile</param-name>
      <param-value>/prj/config.pirms</param-value>
    </init-param>If yes can anybody explain how to do that?
    I need to have that file for:
    FileReader readFile = new FileReader(configFile);Thanks in advance.

  • Problems with Qt Config (Xfce 4.6)

    Hi
    I have problems with QT Config .
    I use Desktop Environments XFCE , when you save settings QT Congif (set size fonts etc ) .
    Setting do not save
    I have set chmod in catalog QT config .
    How to fix  ?
    Last edited by nocentis (2009-03-16 12:00:29)

    Welcome to the Apple discussion forums.
    As Joeuu stated, assuming you don't have an Intel-based MacBook Pro, that means that your PowerBook is PowerPC-based. There are several steps that should get you back on track.
    First, reset your power management unit (PMU). Follow directions at http://docs.info.apple.com/article.html?artnum=14449
    Next, repair permissions by running Disk Utility, located in your mac hd, application/utilities folder. Highlight your hard drive and repair permissions.
    Did you use the software update function or did you download the update from the Apple support site? In any event, download the combo update 10.4.6 from http://www.apple.com/support/downloads/macosx1046comboforppc.html Updates through the software update function have recently created some unique 'situations', that use of the combo update have solved.
    After the update, repair disk permissions again. This is good housekeeping to do before and after any major software installation.
    PB G4 1.67ghz 1.5gb; mini G4 1.5ghz 1gb   Mac OS X (10.4.6)  

  • A problem with struts -  DispatchAction class

    Hi,
    I am facing a problem with DispatchAction class in struts 1.1.
    Here is my senario:
    I have a two classes that extend DispatchAction - classA and classB.
    In classA, I have a start method. In classB, I have two methods - display and submit.
    When my application starts, my index.jsp does a logic:forward to the struts-config.xml file.
    e.g.:
    index.jsp<logic:forward name="startApp"/>
    struts-config.xml<form-beans>
         <form-bean name="testFormBean" type="package.testFormBean">
         </form-bean>
    </form-beans>
    <global-forwards>
         <forward name="startApp" path="/startApp.do?method=start"/>
    </global-forwards>
    <action-mappings>
         <action name="testFormBean"
    path="/startApp"
    parameter="method"
    validate="false"
    scope="request"
    type="package.StartAppActions">
         <forward name="successOneUser" path="/runSearch.do?method=display"/>
         </action>
         <action name="testBean"
    path="/runSearch"
    parameter="method"
    validate="false"
    scope="request"
    type="package.SearchActions">
                   <forward name="success" path="/html/jsps/success.jsp"/>
         </action>
    </action-mappings>
    when my application starts, the control goes to the index.jsp and then because of the logic forward goes to the start method of the /startApp action(i.e. the StartAppActions class). I return a ActionForward element with the value of "successOneUser".
    Uptill this point everything works fine.
    But now it should go the /runSearch element (i.e. SearchActions class) and the display method of it. But it is not going there. The error I am getting is action[runSearch] does not have a method named "start".
    I checked the value for the method parameter using the RAD/WSAD debugger, the value of parameter is "method" is still "start".
    I do not understand why it is not overiding the value of parameter "method" with display even though I am doing a
    <forward name="successOneUser" path="/runSearch.do?method=display"/> in the /startApp element, which should send the control to the display method of the [runSearch] element (i.e. in the startActions class).
    Can anyone tell me what the problem is ?
    Thanks in advance.
    kaushal

    Try this:
    Runtime.getRuntime().exec("your_batch_file.bat");
    where your_batch_file is:
    SET CLASSPATH=....(place all needed classes here)
    javac.exe filename
    must work,but there is some limitation...
    you must think to solve this problems.
    i hope that will help,
    Marius

  • JDeveloper 10.1.2.0(build 1811): DataAction problem in struts-config

    I've created several data pages (with JHeadstart). With data of one of those pages I must do some calculation and then display the results in another page. I create an DataAction in which I dropped the method that does the calculation. JDeveloper created an UIModel.xml for the DataAction but I had to set the values of the parameters in struts (property inspector). No java file involved. Then I created the Forwards to and from my DataAction. Everything worked nice. So I saved the struts-config.xml and checked it in into PVCS Version Manager. The next day I took all the files of my project from VM and run JHS again. Strut-config is not overwritten, but updated; it looked OK. However when I tested the flow from the first page to the other, the method is not executed but the second page is displayed.
    If I drop the method again in the data action (and set all parameters and the resultlocation to the proper values) everything is working again. It can't be that this again dropping of a method is the way we should work with struts containing data actions!
    The[b] problem is not that the data action has changed into an icon of a datapage with a yellow exclamation mark icon (Re: 10.1.2 Struts Bug? in fact nothing is changed at all. The problem is that the method is not executed.
    The dataAction in the struts_config source - as it was before I checked it in into VM and after checking out:
    <action path="/invokeCalcDownTree" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataAction" name="DataForm">
    <set-property property="modelReference" value="invokeCalcDownTreeUIModel"/>
    <set-property property="methodName" value="invokeCalcDownTreeUIModel.calculateDownstreamTree"/>
    <set-property property="resultLocation" value="${sessionScope.currentDownTraceId}"/>
    <set-property property="numParams" value="6"/>
    <set-property property="paramNames[0]" value="${data.TT_DownstreamUIModel.TT_DownstreamId}"/>
    <set-property property="paramNames[1]" value="${data.TT_DownstreamUIModel.TT_DownstreamProductiepartij}"/>
    <set-property property="paramNames[2]" value="J"/>
    <set-property property="paramNames[3]" value="1"/>
    <set-property property="paramNames[4]" value="RO"/>
    <set-property property="paramNames[5]" value="-1"/>
    <forward name="success" path="/StartTT_DownTree.do"/>
    </action>
    Kind regards,
    Josée Vervaart
    ICT Solutions, Deventer

    The problem was not Version Manager itself but working with Version Manager:
    our policy is only check-in those which are not generate by JHS and those which are customized in JDeveloper (not anymore generated) i.e. check-in the business components, view objects, application structure and a few UNIX's and UIModel-files etc.
    I had to do the first modification in the struts-config: adding a DataAction.
    I checked in the UIX's and UIModel-files of the calling and called page, the UIModel of the DataAction, the struts-config.xml, and later on also the StrutsPageFlow.oxd_struts and modelers.map. Today we saw that the databindings.cpx file must be checked in too.

  • Odd problem with strusts config file

    This morning when I started up J Developer I am unable to open my struts-config file. Last evening when I closed my application everything was working fine, I compiled and ran the app for the last time just before closing J Developer. Now I am unable to compile, open this file (it is the same with other applications, as well). I have gone back to a previous version of my app, uninstalled Jdeveloper and reinstalled. Nothing seems to solve my problem. I am working on a Windows machine. Any thoughts on what might have changed or happened would be greatly appreciated.

    I think that I found the problem. Somewhere along the line I messed with the shortcut(I don't remember doing it or what I did but....) with the shortcut that I created and I got an odd path looking something like .... ...\c$\JDev\jdev\bin\jdevw.exe
    I fixed that and have not had a problem since.
    Thank you for your help.

  • Problem with struts-faces.jar

    hi,
    My requirement is to migrate a struts application to jsf.
    I am using the struts-faces.jar and doing all the configurations as mentioned.I am getting the following error while calling the application itself..
    java.lang.ClassNotFoundException: org.apache.struts.faces.taglib.LifecycleListener
    I am using the following version:
    1)Tried both struts-faces-0.4 and 0.3(downloaded from http://archive.apache.org/dist/struts/struts-faces/)
    2)Tomcat 5.0
    3)jsf-(SUN)
    4)struts 1.1
    Please let me know if i am doing something wrong. and any ways to fix this.
    Regards,
    Mythili

    Given the new release of the JSF ri and api .jar
    files,
    will this .jar provided at the apache site work?
    http://archive.apache.org/dist/jakarta/struts/old/relea
    e/struts-faces/
    No, those JARs only work with the EA versions of JavaServer Faces.
    A nightly build of the struts-faces integration library, that works with the beta release, is available at:
    http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/
    and the corresponding source code is part of the Struts nightly build bundles in:
    http://cvs.apache.org/builds/jakarta-struts/nightly/src/
    in directory "contrib/struts-faces".
    This package is not yet ready to be released, but seems to work for me in all the cases where the old library worked before. (If you're migrating, note particularly some tweaks you need to add in the struts-config.xml file for the new version, documented in README.txt.) Work continues on the Tiles integration which feedback has indicated is really important to people.
    Developers who are building new components and renderers will be quite interested in the techniques used to make all the attributes of your own components value-binding-enalbled (like all the ones on the standard tags are). The source code for the <s:form> tag, plus the corresponding component and renderer, will be helpful in illustrating this.
    Craig McClanahan

  • Problem with TMS config

    Hi all,
            I have a problem with my TMS config.
    When I adjust the transport queue, the "No system found in another group for import queue QAS" message appears.
    My landscape includes a DEV-QAS and a PRD systems.
    can somebody help me?
    thanks in advance.

    Hello,
    I have the same problem.  I just forund the alert from RZ20.  When we are doing transport and checking RFC connections from SM59, seems to be all working fine.  So I am not sure where this alert is coming from. 
    Command  TMS_MGR_READ_TRANSPORT_QUEUE
    Service  Transport Service
    Start    Online
    Function TMS_MGR_TRANSMIT_TR_QUEUE
    Message  TRANSMIT_QUEUE_FAILED
    No system found in another group for import queue <SID>
    I run into this thread but there is no information on how the problem got resolved.  Please let me know if you have any ideas. 
    Regards,
    Tony

  • Problem with struts portlet in Portal

    Hi,
    I would like to make a struts app as a portlet in bea portal.
    But when I try to make it using standard wizard to create Struts portlet
    after point struts-config.xml I get "Cannot parse the struts configuration file".
    What is wrong ? (I tried with many different struts-config.xml files, it doesn't
    work)
    I can't find any error details. in workshop files ?
    I have bea Workshop 8.1.
    Any help ?
    Thanks,
    Tom

    Ok I found solution on
    weblogic.developer.interest.portal.struts
    but where are error details ? which file ?
    "tmm" <[email protected]> wrote:
    >
    Hi,
    I would like to make a struts app as a portlet in bea portal.
    But when I try to make it using standard wizard to create Struts portlet
    after point struts-config.xml I get "Cannot parse the struts configuration
    file".
    What is wrong ? (I tried with many different struts-config.xml files,
    it doesn't
    work)
    I can't find any error details. in workshop files ?
    I have bea Workshop 8.1.
    Any help ?
    Thanks,
    Tom

  • Build shared problem with configure / config.guess

    Hi,
    I'm constructing some 3rd party libraries from source level with configure/automake in Suse 9.2. A common mistake in all libs is done by config.guess: it prints out "i686-pc-linux-gnuaout" which switch off the shared support at all. It's easy to workaround by print "i686-pc-linux" instead directly from configure:
    ac_config_guess="echo i686-pc-linux"
    Then the shared support is enabled and there left some minor problems with linker options -soname and --rpath. Then some libs can create the shared libs, for instance the apr and xml2.
    Others do not, for instance log4cxx and acetao, but they do not produce any error. It looks like that simply the shared link step is not done, however the symbolic links to the release version are done. I also tryed with LD=CC and LD=cc instead of the gnu ld, but then already in config.log the shared support is not recognized. If I build by hand:
    cc -shared *.o -o libACE.so
    it seems to work and the result usable by applications. Since acatao includes lots of libraries to build, the manual creation is not handy / possible. So any hint to solving that are welcome. I'm using the latest sunstudio version (feb2007).
    thanx rolf

    It really depends on autoconf/libtool version those libs are using.
    Till the most recent versions libtool had absolutely no clue that SunStudio exists on Linux. And default fallback happened to be gcc.
    If you give me some specific lib (source URL or name/version) I can tell you why this lib does not configure with Sun Studio :)
    Most recent version of autoconf is wize enough to handle Sun Studio on Linux. So one of the solutions for the libs might be to upgrade to a newer autoconf. Not what common user would commonly do though...
    regards,
    __Fedor.

  • Problem with the config.xml

    Dear all,
    After doing a wscompile on the config.xml file (JWSDP1.6), I am able to generate the wsdl for the interface defined.
    But now the config.xml shows an error
    "Cannot find the declaration of element 'configuration' "
    for the attribute xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"
    Any idea what is the problem as "http://java.sun.com/xml/ns/jax-rpc/ri/config" is no longer available on the sun site.
    Any alternate references to be made to this xml namespace declaration.
    Rgds,
    Seetesh

    My point above is that Project 2007 was extremely buggy and unless files are saved using Project 2007 SP3 first you are likely to experience problems with the files when opening in project 2010. Project 2007 to 2010 with no service packs is problematic.
    With SPs applied you should have far fewer problems.
    Doesn't look like a exe with SP2 is available yet so you need to add the service pack separately, probably in the updates folder.
    If all Project 2007 installs are already at SP3 then no need for this.
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Help! Problem with Struts tag html:errors/

    Hi everybody,
    In my JSP page called addUser.jsp, i have the different Struts Tag
    <html:errors/>
    <html:form action="/addUser" focus="firstName">
    </html:form>
    I have of course the ApplicationResources.properties file with differents Struts properties:
    errors.footer=</ul><hr>
    errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
    errors.ioException=I/O exception rendering error messages: {0}
    and an other one:
    error.fieldsNeeded=<font color="#FF0000">Some fields are missing.</font>
    when I call the addUser form, my JSP page display:
    null Some fields are missing. null
    Have u any suggestion about my prob?
    tx a lot
    s.

    Hi,
    can u post the java code where u are actually adding the error to the action errors. may be there is something wrong with that. I dont see any problem with the jsp or the applicationsResources.properties.
    Thanks
    Latha

  • Itunes7 does not let me start up because detected problem with audio config

    hi,
    i have had itunes for a while now but i just upgraded it to version 7. i restarted my computer afterwards but when i tried to start up itunes for the first time it said there was a problem with the audio configuration.
    this is the message,
    itunes cannot run because it has detected a problem with your audio configuration.
    i am using windows xp and would be very grateful for any help, thanks!
    lenovo 3000, N100   Windows XP  

    this is the message,
    itunes cannot run because it has detected a problem with your audio configuration.
    That one is most commonly caused by a problem with your QuickTime. (iTunes uses QuickTime for audio and video playback.)
    The following document may be of some assistance:
    iTunes 7 for Windows: iTunes has detected an audio configuration problem

  • New Version error - problem with audio config

    iTunes has been working great on Vista so when I was prompted to download the new version I thought why not. It unloaded the old version and then loaded the new without a hitch. Went to run the new version and I get the error:
    iTunes cannot run because it has detected a problem with your audio configuration.
    But nothing has changed! Can anyone shed any light on this?

    I can't help you but I have the same problem but with windows xp.
    *** really..

  • Vista - Problem with Audio config!!! please help!!!

    I just finished a clean install of Vista and installed iTunes. When I try to open iTunes an error message pops up saying "iTunes has detected a problem with youraudio configuration.Audio/Video playback may not operate properly." I have looked on teh forums and all I have seen is something about uninstalling QuickTime and then reinstalling it. I have tried that twice and I still get the same error message. If anyone could help that will be great.

    Try this -> http://docs.info.apple.com/article.html?artnum=304424

Maybe you are looking for