Hello,
I try to develop Extensions for ME 6.1, but it doesn't work
What I try so far ...
1. I create a Software-Component with dependencies to ENGFACADE, ENGINEAPI, FRAMEWORK, SAPMECORE, SAP_BUILDT, WSRM.
2. I create a Java EE Web Module type DC in the SC use the following JSF settings:
a. Use JSF: (checked)
b. JSF Version: 1.2
c. Use SAP Component Libraries for JSF: (checked)
3. I remove the following lines in web.xml
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-
class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
4. I add a Build-Time depedency from my Web-DC to
SC: SAPMECORE[sap.com]
● DC: /me/papi
○ Public Part: api
● DC: /me/lsf/libs
○ Public Part: api
● DC: /me/wpmf/libs
○ Public Part: api
● DC: /me/buildplugin-resources
○ Public Part: def
○ Public Part: RESOURCES
5. I create a service-config.xml in "Java Resources/source" with the following content
<?xml version=“1.0“ encoding“UTF-8“
<!DOCTYPE service-config SYSTEM
"http://visiprise.com/dtd/service-config.dtd">
<service-config moduleId="com.vendor.web">
<import moduleId="com.sap.me.activity" service="ExtensionLoaderParent"/>
<service name="ExtensionLoader" parent="ExtensionLoaderParent"/>
</service-config>
6. I create a Java EE Enterprise Application type DC in the SC, selecting the web DC as a referenced project
7. Add Deploy Time and Run Time dependencies from the EAR to SAPMECORE[sap.com]/me/ear.
8. I have created a Folder-Structure in "WebContent"-Folder (com/vendor/wpmf/podplugin)
9. I have placed a jsp, for example test.jsp in com/vendor/wpmf/podplugin
10. Create a package in "Java Resources/source" like com.vendor.production.web.podplugin
11. Place a Test.class in it that extends the BasePodPlugin
12. Added entrys in faces-config.xml like
<managed-bean> | |
<description>Test POD-Plugin</description> | |
<managed-bean-name>test</managed-bean-name> | |
<managed-bean-class>com.vendor.production.web.podplugin.test</managed-bean-class> | |
<managed-bean-scope>session</managed-bean-scope> | |
<managed-property> | |
<property-name>beanName</property-name> | |
<value>test</value> | |
</managed-property> | |
<managed-property> | |
<property-name>backingBeanName</property-name> | |
<value>testBackingBean</value> | |
</managed-property> |
</managed-bean>
<managed-bean> | |
<managed-bean-name>testBackingBean</managed-bean-name> | |
<managed-bean-class>com.sap.me.wpmf.PluginBackingBean</managed-bean-class> | |
<managed-bean-scope>request</managed-bean-scope> | |
<managed-property> | |
<property-name>beanName</property-name> | |
<value>testBackingBean</value> | |
</managed-property> | |
<managed-property> | |
<property-name>assignedBeanName</property-name> | |
<value>test</value> | |
</managed-property> | |
</managed-bean> |
13. I deploy the SC to the System, no Errors. In the Netweaver J00/j2ee/cluster/apps/vendor there is the EAR and in it also the web.war
14. In ME-> Activity Maintenance I added a activity ... Type: Java Class: com.vendor.production.web.podplugin.Test with the Rule PLUGIN_URL -> /COM/VENDOR/WPMF/PODPLUGIN/TEST.JSP
15. I have configured the permissions, added the Plugin to the Popup-Layout-Area and add a Button that executes the Activity
------------------>
When I open the POD I get the error 'The "jsp" file "/com/vendor/wpmf/podplugin/test.jsp" not found (Message 10008)' when I click the button I also runs in an Error --> Logviewer:
[EXCEPTION]
java.lang.ClassNotFoundException: com.systemagmbh.production.web.podplugin.PartialScrapPlugin
at com.sap.me.wpmf.util.FacesUtility.loadClass(FacesUtility.java:1035) ...
==============================================================================
Any Ideas what goes wrong?