| Author |
Message |
|
|
Post subject: Classloading policy not working
Posted: Dec 08, 2011 - 01:26 PM
|
|
Registered Member

Joined: Dec 07, 2010
Posts: 57
|
|
We are using MyEclipse 10 Bling and the classloading policy isn't working. We have a maven multi module project and the changes aren't applied at the application server.
- Create a maven project of type "pom".
- Create a maven module of type "war".
- Create a maven module of type "ear".
- Add the "war" module to the "ear" as an dependency.
- Update project settings
- Click the application.xml and change the classloading policy to "PARENT_LAST" on the war module.
- Save (project is broken)
- Update project settings
- Deploy the application
- Check the WAS Integrated Solutions Console
-> The class loading policy "PARENT_LAST" is neither set for the global application nor for the web module.
Kind regards
clavis_uhe |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 09, 2011 - 09:51 AM
|
|

Joined: Nov 11, 2010
Posts: 2154
|
|
clavis ,
Sorry that you are seeing this issue with MyEclipse.
Can you answer some more questions for us ?
1) Which version of WAS are you working with ?
2) Can you clarify that you created a maven module with type "ear" or "jar" ? What are the other packaging types do you see in the wizard ?
3) Can you check if you see the issue with class loader in the projects which are not maven based ? Please create a project without maven and check if the issue persists. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 09, 2011 - 10:21 AM
|
|
Registered Member

Joined: Dec 07, 2010
Posts: 57
|
|
1) 7.0.0.13
2) As listed "ear" for the wrapping deployment module. I choose the skip arch type selection and choose the simple one.
3) I have to check that |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 12, 2011 - 09:13 AM
|
|

Joined: Nov 11, 2010
Posts: 2154
|
|
clavis ,
I am afraid I could not create an enterprise project using the simple maven project wizard.
Can you give us detailed steps on how you created the EAR project for us to be able to replicate it at our end ? |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 13, 2011 - 10:14 AM
|
|
Registered Member

Joined: Dec 07, 2010
Posts: 57
|
|
After creating the pom project and the web module.
Right-Click the pom project.
New -> Other -> Maven Module
Check "create a simple project (skip archetype selection) and choose a module name.
Next
Change packaging to "ear". -> Finish
Kind regards
clavis_uhe |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 13, 2011 - 11:49 AM
|
|
Registered Member

Joined: Dec 07, 2010
Posts: 57
|
|
Meanwhile I created a non maven EAR-Application.
It works partially there. The webmodule is loaded with PARENT_LAST, however the base application is still PARENT_FIRST.
Kind regards
clavis_uhe |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 14, 2011 - 10:36 PM
|
|

Joined: Mar 09, 2011
Posts: 715
|
|
clavis,
We'll be raising a problem report for this issue. It seems as though the deployment.xml file (it's way down deep within the META-INF/ibmconfig folder) is not correctly updated, in some situations. As a workaround, you can check that file and change it yourself (using the Text Editor or XML Editor).
Sorry for the inconvenience. |
_________________ Tony
MyEclipse Support
|
| |
|
|
|
 |
|
|