aspose file tools*
The moose likes Struts and the fly likes struct config.xml(Null pointer Exception) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struct config.xml(Null pointer Exception)" Watch "struct config.xml(Null pointer Exception)" New topic
Author

struct config.xml(Null pointer Exception)

shyamkumar bopannachengalaiah
Ranch Hand

Joined: Dec 30, 2008
Posts: 100
I am working an application which was developed on struts frame work.When i deploy and run the application, occasionally i used to get Null Pointer Exception after i login into that page.when i check the log file i used to get "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*).Is this error because of the version of struts config file does not match and it does not have a doc type tag in struts config file.
in Mkumar
Greenhorn

Joined: Sep 08, 2008
Posts: 20
As you demonstrated errors, It appears that there are mismatching in the declared name attributes of either form-beans or any others components (like bean name,action name, data-source ..etc) please verify struts-config.xml once again and restart server.

or if possible please provide me struts-config.xml details so that i can confirm about the error.

-Manoj

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

This seems to be a question about Struts configuration files, so let's try putting it in the Struts forum.
shyamkumar bopannachengalaiah
Ranch Hand

Joined: Dec 30, 2008
Posts: 100
Thanks for the reply.I cannot give the struts config file, Since it is confidential one.When I viewed my config file I found that there is no document type tag that was present in before the strut-config tag. in strut config file .Can I know is it ok if the document type tag is not present in struts config file?
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
Hi,

Refer this.
http://www.coderanch.com/t/498846/Struts/Struts-Without-Form-Bean.

This post have sample struts-config.xml code.
May be you will get idea.


Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
 
Don't get me started about those stupid light bulbs.
 
subject: struct config.xml(Null pointer Exception)