Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: No Longer Reproducible
-
Affects Version/s: 6.1.20 EE GA2
-
Fix Version/s: 6.2.0 CE M4
-
Component/s: Security, Security > PACL
-
Labels:None
-
Fix Priority:5
-
Similar Issues:Show 5 results
LPS-30769Security Manager fails with usage of org.codehaus.jackson.map.ObjectMapper LPS-30606Services cannot be deployed with security manager enableds LPS-31044Websphere throws transaction manager error when setting up xa datasource LPS-30876MVCPortlet can't initialize under security manager LPS-34370 Error deploying Spring MVC Portlet with security manager enabled
Description
Place the attached SpedOne-portlet-6.1.20.1.war to the deploy directory. You will get error message (see in the attachment: SPEDONE_deploy.txt).
I attach the source code also (SpedOne-portlet.zip). When I start the server (it contains this portlet) I get error message: Attempted to get class loader (see in the attachment: Attempted to get class loader.txt).
-
- Attempted to get class loader.txt
- 05/Dec/12 2:11 AM
- 80 kB
- Gabor Kovacs
-
- SPEDONE_deploy.txt
- 05/Dec/12 2:11 AM
- 31 kB
- Gabor Kovacs
-
Hide
- SpedOne-portlet.zip
- 05/Dec/12 2:11 AM
- 207 kB
- Gabor Kovacs
-
- SpedOne-portlet/.classpath 1 kB
- SpedOne-portlet/.project 1 kB
- SpedOne-portlet/.settings/.jsdtscope 0.5 kB
- SpedOne-portlet/.../org.eclipse.core.resources.prefs 3 kB
- SpedOne-portlet/.../org.eclipse.jdt.core.prefs 0.4 kB
- SpedOne-portlet/.../org.eclipse.jst.jsp.core.prefs 0.1 kB
- SpedOne-portlet/.../org.eclipse.wst.common.component 0.5 kB
- SpedOne-portlet/.../org.eclipse.wst.common.project.facet.core.prefs.xml 0.2 kB
- SpedOne-portlet/.../org.eclipse.wst.common.project.facet.core.xml 0.4 kB
- SpedOne-portlet/.../org.eclipse.wst.jsdt.ui.superType.container 0.0 kB
- SpedOne-portlet/.../org.eclipse.wst.jsdt.ui.superType.name 0.0 kB
- SpedOne-portlet/build.xml 0.2 kB
- SpedOne-portlet/docroot/.../main.css 0.0 kB
- SpedOne-portlet/docroot/css/main.css 0.0 kB
- SpedOne-portlet/docroot/.../trucks/edit.jsp 0.5 kB
- SpedOne-portlet/docroot/.../edit_truck.jsp 1 kB
- SpedOne-portlet/docroot/.../trucks/help.jsp 0.2 kB
- SpedOne-portlet/docroot/.../trucks/init.jsp 1 kB
- SpedOne-portlet/.../truck_actions.jsp 1 kB
- SpedOne-portlet/docroot/.../trucks/view.jsp 1 kB
- SpedOne-portlet/docroot/icon.png 0.5 kB
- SpedOne-portlet/docroot/js/main.js 0.0 kB
- SpedOne-portlet/docroot/.../MANIFEST.MF 0.0 kB
- SpedOne-portlet/.../TruckBaseImpl.class 0.8 kB
- SpedOne-portlet/.../TruckCacheModel.class 3 kB
- SpedOne-portlet/docroot/.../TruckImpl.class 0.4 kB
- SpedOne-portlet/.../TruckModelImpl.class 17 kB
- SpedOne-portlet/.../TruckLocalServiceBaseImpl.class 10 kB
- SpedOne-portlet/.../TruckLocalServiceClpInvoker.class 6 kB
- SpedOne-portlet/.../TruckLocalServiceImpl.class 3 kB
-
Hide
- SpedOne-portlet-6.1.20.1.war
- 05/Dec/12 2:11 AM
- 192 kB
- Gabor Kovacs
-
- META-INF/MANIFEST.MF 0.0 kB
- WEB-INF/classes/META-INF/base-spring.xml 4 kB
- WEB-INF/classes/.../cluster-spring.xml 0.9 kB
- WEB-INF/.../dynamic-data-source-spring.xml 0.8 kB
- WEB-INF/classes/.../hibernate-spring.xml 1 kB
- WEB-INF/.../infrastructure-spring.xml 0.5 kB
- WEB-INF/classes/META-INF/portlet-hbm.xml 2 kB
- WEB-INF/classes/.../portlet-model-hints.xml 0.7 kB
- WEB-INF/classes/META-INF/portlet-orm.xml 1 kB
- WEB-INF/classes/.../portlet-spring.xml 0.6 kB
- WEB-INF/.../shard-data-source-spring.xml 1 kB
- WEB-INF/classes/.../TorzsTrucksPortlet.class 5 kB
- WEB-INF/.../TorzsTrucksValidator.class 1 kB
- WEB-INF/classes/.../impl/TruckBaseImpl.class 0.8 kB
- WEB-INF/classes/.../TruckCacheModel.class 3 kB
- WEB-INF/classes/com/.../impl/TruckImpl.class 0.4 kB
- WEB-INF/classes/.../TruckModelImpl.class 17 kB
- WEB-INF/.../TruckLocalServiceBaseImpl.class 10 kB
- WEB-INF/.../TruckLocalServiceClpInvoker.class 6 kB
- WEB-INF/.../TruckLocalServiceImpl.class 3 kB
- WEB-INF/.../TruckPersistenceImpl$1.class 0.9 kB
- WEB-INF/.../TruckPersistenceImpl$2.class 0.9 kB
- WEB-INF/.../TruckPersistenceImpl.class 24 kB
- WEB-INF/classes/.../Language.properties 0.6 kB
- WEB-INF/classes/.../Language_ar.properties 0.9 kB
- WEB-INF/classes/.../Language_bg.properties 0.9 kB
- WEB-INF/classes/.../Language_ca.properties 0.9 kB
- WEB-INF/classes/.../Language_cs.properties 0.9 kB
- WEB-INF/classes/.../Language_da.properties 0.9 kB
- WEB-INF/classes/.../Language_de.properties 0.9 kB
Activity
I followed the next steps:
1. Download the plugins sdk from trunk, and the portal from the trunk also.
2. Change the liferay-versions property to 6.2.0 in liferay-plugin-package.properties.
3. After some security problems, I found out what other lines are needed in liferay-plugin-package.properties' security-manager-get-bean-property:
"com.liferay.portal.kernel.xml.SAXReaderUtil,\
com.liferay.portal.kernel.util.LocaleUtil,\
com.liferay.portal.model.ModelHintsUtil,\
com.liferay.portal.kernel.util.MethodCache"
4. Run an ant build-service and an ant deploy, then copy the new war into the deploy directory of the trunk version portal.
It succeeded!
I see the portlet in Add -> More -> SpedOne.
You can add to the page, and it appears well.
So it seems working on the trunk, but I think, it should be backported to 6.1.20, because it is the latest version for our users.
Hi Gabor,
This ticket is a critical fix for the SP1 release. Can you provide me with a status report on your progress for this ticket? Thanks!
No Longer reproducible on trunk. Git: 6b7defb818ca7be926207855a141e3b30e5898f4
There are two things here:
1. getting class loader by a taglib, which is not declared. The fix for this is already on master
2. get declared members by jodd's ReflectUtil. The fix to this is also on master.
Please retest this with the current master and update the ticket accordingly.
Thanks.