Invalid configuration file config.xml

General questions regarding the development with JVx.

Invalid configuration file config.xml

Postby ciprianb » Mon Mar 30, 2015 7:00 pm

Hello everybody,
I've been tried to test demos showcase and jvxfirstapp but I get the folowing error:
"Invalid configuration file: ...\WEB-INF\rad\apps\firstapp\config.xml"
(see pictures attached)
I'm using WildFly-8.2.0
Java JRE-1.8.0_40

Same error when I try to run in Eclipse:
(Exception in thread "AWT-EventQueue-0" : Invalid configuration file: ......\jvxfirstapp-1.4\rad\apps\firstapp\config.xml)

Please help.

Thank you.
Attachments
Picture2.png
showcase
Picture2.png (10.69 KiB) Viewed 8019 times
Picture1.png
jvxfirstapp
Picture1.png (11.64 KiB) Viewed 8019 times
ciprianb
 
Posts: 1
Joined: Mon Mar 30, 2015 6:27 pm

Re: Invalid configuration file config.xml

Postby Support@SIB » Tue Mar 31, 2015 12:29 pm

Wildfly has some special features.

If you expose the war or configure Wildfly to expose war files automatically, it should work out-of-the-box.

But there are also different options to deploy a jvx application:


1) JNDI
2) put rad directory to jvx_rad.jar
3) config loading via classpath

JNDI

Use: java:/comp/env/jvx/<applicationname>/config
Possible values: file-name (String), resource-name (String), XML content (String), InputStream, IVirtualZone


jvx-rad.jar

(Possible if you integrate jar creation in your deployment process)

Simply create a jar archive with rad directory (and all sub directories, files). Put the file to the lib directory.
AND enable classpath option via system property: -DConfiguration.search.classpath=true


config loading via classpath

Put your config.xml to your classpath (server source folder):

Code: Select all
/rad/apps/<applicationname_lowercase>/config.xml
or
Code: Select all
/<applicationname_lowercase>.xml
or
Code: Select all
/config.xml

for server.xml (server zone) it's a different name:

Code: Select all
/rad/server/config.xml
or
Code: Select all
/server.xml



All options are supported, but it depends on your needs and what you prefer.
User avatar
Support@SIB
 
Posts: 198
Joined: Mon Sep 28, 2009 1:56 pm


Return to Development