Platform
Learn
Community
Support
Partner Center
Sign up
or
Log in
logout
Account Settings
Profile
messages
Messages
logout
Logout
Platform
Home
Downloads
IPP
Licensing
Project Sizing
Learn
Training
Documentation
Evaluation Guide
What's New
Community
Home
Forums
Forge
Ideas
Members
Support
Partner Guide
Resources Library
Opportunities
Account Management
Sign up
or
Log in
Home
Forums
Forge
Ideas
Members
Dear ,
What would improve your OutSystems Community experience? Let us know by taking this 2-minute survey.
Pick up the survey
Community
›
Forums
›
Technology & Integration
Integration Studio - Resource load
Community
›
Forums
›
Technology & Integration
Integration Studio - Resource load
New Post
New Post
Euber Bispo
Posted on 2013-10-04
Euber Bispo
Rank: #4218
Posted on 2013-10-04
I create a extesion that load a XML file and return some values.
The problem is the extension dont find the XML.
Im using XMLParser parser = new XMLParser("Resources/states.xml");
In the debugger just show the exception "/opt/jboss/bin/Resources/states.xml" .
The exception show the states.xml are looked inside the bin folder, and not inside the app folder.
Im tried change the Resource to bin/applicaiton folder, but nothing works.
Pradeep Badiger
Posted on 2013-10-04
Pradeep Badiger
Rank: #10480
Posted on 2013-10-04
Solution
Hi Euber,
Have you specified the "Deploy Action" property of the resource?
Open the resource tab in Integration studio, double click the file that you want to load and set "Deploy Action" to "Copy to Binaries directory".
Load it using the name of the file.
thanks,
Pradeep V.B.
Solution
Euber Bispo
Posted on 2013-10-04
Euber Bispo
Rank: #4218
Posted on 2013-10-04
Solution
Pradeep Badiger
wrote:
Hi Euber,
Have you specified the "Deploy Action" property of the resource?
Open the resource tab in Integration studio, double click the file that you want to load and set "Deploy Action" to "Copy to Binaries directory".
Load it using the name of the file.
thanks,
Pradeep V.B.
Now works.
Code
String path = HttpContext.getCurrent().getServletContext().getRealPath("states.xml");
XMLParser parser = new XMLParser(path);
In Extension Studio, i changed the deploy action to application.
Solution
Quick Reply
attachment
Choose File
No file chosen
Submit
Login to reply
New Post
Available Forums
Technology & Integration
News and Announcements
Forge Discussions
Meta
Community Quick Guides
Usability
Installation Troubleshooting
Personal Environment Troubleshooting
Forum Notifications
Email Digest Settings
Loading...