This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Generating Xml file in run-time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Generating Xml file in run-time" Watch "Generating Xml file in run-time" New topic
Author

Generating Xml file in run-time

Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

HI,

I am generating the xml file at runtime and when i try to run the application, i find that xml file is not in the classpath. How to solve this issue.


The bean wiring is all working fine. I have this issue of xml file not being found in the classpath. Any suggestions


Ashwin Sridhar
SCJP | SCWCD | OCA
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

When i read the XML from FileSystem, it is working fine.
But when i read from Classpath, it doesn't find the file in the classpath
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

This was resolved by pointing the run-time Xml file directly to the build path.
Rohit Mehta
Ranch Hand

Joined: Mar 11, 2005
Posts: 79

I was pondering upon generating the xml file at runtime for some time. Your code seems useful. Thanks.
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

Thank you. I am happy it helped you out
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating Xml file in run-time
 
Similar Threads
Error in Context xml file - cvc-complex-type.2.4.c:
Problem in spring mvc configuration
Strange Spring problem
Spring 2.5 - Transaction example
Spring JDBC Problem getting log messages