|
Home > Archive > WebSphere Application Server > January 2004 > classpath setup problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
classpath setup problem
|
|
| ssiripuram 2004-01-19, 2:54 pm |
| Hi All,
I deployed two applications on server1 appserver and setup the classpath for both applications on server1's jvm. But the problem is here that the two applications are using their own properties files with the same file names (properties files and properti
es in the file are same and the values are different). If I setup the classpath for the first applications properties file, it is executing first but not the second one because whichever the classes/properties files are loaded by jvm are executing first:
Solutions:
1. I can create another server and deploy 2 application on new server but i can't becasue the AIX systems memory doesn't support for that one, I am already 3 appserver instances on that one.
2. If I move classloader policies moving from PARENT_FIRST to PARENT_LAST (for this I have to have all the jar files and properties in WEB-INF/lib/.. , I am not sure whether it works or not.
You can help me in this:
Is there any way I can setup the classpath for each application on single server's jvm?
Any help would be appreciated.
Note: I setup the classpath for only webmodule using Application Assembly Tool that didn't work.
Thanks
Sri
| |
| sd9686 2004-01-19, 2:54 pm |
| try using shared libraries
| |
| Ken Hygh 2004-01-19, 2:54 pm |
| ssiripuram wrote:quote:
> Hi All,
> I deployed two applications on server1 appserver and setup the classpath for both applications on server1's jvm. But the problem is here that the two applications are using their own properties files with the same file names (properties files and proper
ties in the file are same and the values are different). If I setup the classpath for the first applications properties file, it is executing first but not the second one because whichever the classes/properties files are loaded by jvm are executing first
:quote:
>
> Solutions:
> 1. I can create another server and deploy 2 application on new server but i can't becasue the AIX systems memory doesn't support for that one, I am already 3 appserver instances on that one.
> 2. If I move classloader policies moving from PARENT_FIRST to PARENT_LAST (for this I have to have all the jar files and properties in WEB-INF/lib/.. , I am not sure whether it works or not.
>
> You can help me in this:
> Is there any way I can setup the classpath for each application on single server's jvm?
> Any help would be appreciated.
> Note: I setup the classpath for only webmodule using Application Assembly Tool that didn't work.
>
> Thanks
> Sri
If these are web applications, put each app's properties file in its
war/WEB-INF/classes directory within the war. Make sure your server is
set to MULTIPLE classpath visibility.
Ken
| |
| ssiripuram 2004-01-19, 2:54 pm |
| Thanks Ken & sd9686
I will place the properties files in WEB-INF/classes directory and will try.
Thanks
Sri
|
|
|
|
|