-
1. Re: applicationContext.xml not found
alesj Apr 15, 2014 1:54 PM (in response to jenchong)Can you provide the app files structure?
-
2. Re: applicationContext.xml not found
jenchong Apr 15, 2014 5:20 PM (in response to alesj)WEB-INF/spring contains all the spring related xml files.
Want more?
-
3. Re: applicationContext.xml not found
alesj Apr 15, 2014 5:37 PM (in response to jenchong)Why is then looking for applicationContext.xml directly in WEB-INF/, and not WEB-INF/spring?
-
4. Re: applicationContext.xml not found
jenchong Apr 15, 2014 8:16 PM (in response to alesj)We don't know, that is we asked Let us ask you, why GAEJ works? With this in web.xml:
<context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/spring/springsecurity-context.xml ... ... Why not working in jboss?
-
5. Re: applicationContext.xml not found
alesj Apr 15, 2014 10:26 PM (in response to jenchong)This is springsecurity-context.xml, and not applicationContext.xml ...
-
6. Re: applicationContext.xml not found
luksa Apr 16, 2014 6:29 AM (in response to jenchong)Jen, if Spring is trying to read the file from the filesystem (and not through the classloader), you must run CapeDwarf with
capedwarf.sh <path_to_war_dir>
This will ensure the working directory for the capedwarf OS process is set to <path_to_war_dir>, as is the case on GAE. If you're running CapeDwarf without specifying the path to the exploded war dir, the working directory is set to wherever you started CapeDwarf from. This means any code trying to read files directly from the file system by only specifying a relative path to the file, will obviously receive a FileNotFoundException.
-
7. Re: applicationContext.xml not found
jenchong Apr 20, 2014 7:53 PM (in response to luksa)We already used the path that points to the war directory Marko. How else can it be started?
What's next?
-
8. Re: applicationContext.xml not found
alesj Apr 21, 2014 4:11 AM (in response to jenchong)What's next?
Can you create a small mock/dummy .war that would expose the issue?
(and attach it here / upload it somewhere)
-
-
10. Re: applicationContext.xml not found
alesj Apr 22, 2014 9:03 AM (in response to jenchong)You have an invalid context-param --> duplicate param-name, param-value in same context-param.
It looks like GAE/J takes the first one, where UnderTow takes the last one.
Imo, both should actually complain aka throw an error.
-
11. Re: applicationContext.xml not found
alesj Apr 22, 2014 9:03 AM (in response to alesj)I'm now past this, but I get this: gist:11178185
Looking into why.
-
12. Re: applicationContext.xml not found
alesj Apr 22, 2014 9:29 AM (in response to alesj)I'm now past this, but I get this: gist:11178185
Looking into why.
It looks like you shared invalid classes: http://stackoverflow.com/questions/1124788/java-unresolved-compilation-problem
-
13. Re: applicationContext.xml not found
jenchong Apr 23, 2014 12:24 PM (in response to alesj)Unfortunately, we do not have any issues related to duplicated context-params and the invalid class/compilations error in GAEJ.
Which one of the context param do you mean? Can you send the corrected one?
Thanks!
-
14. Re: applicationContext.xml not found
alesj Apr 23, 2014 2:15 PM (in response to jenchong)The web.xml in that war/WEB-INF (in the .zip you posted) has invalid context-param element.
And the classes in war/WEB-INF/classes are not properly compiled - have that Eclipse error.
Or which .war should i be looking at?