MyEclipse Forums
 EJB Deploy Classnot path found error Goto page 1, 2  Next
Author Message
 sg0210
 Post subject: EJB Deploy Classnot path found error  Posted: Dec 19, 2011 - 04:36 PM
 Joined: Dec 19, 2011 Posts: 12
 MY Eclpise Blue 9.0 Websphere 9.0.23 Issue Description and steps to reproduce - Export your project as EAR file without generating stubs. - Deploy your ear file on websphere 6.1.0.23 server. The websphere console will throw class not found errors. How to fix? You can provide additional class path entries during the ear deployment then it will stop throwing that exception. I am getting the same errors during my eclipse deployment. Internally my eclipse blue runs a jacl script located at “C:\Program Files\MyEclipse Blue Edition\Common\plugins\com.genuitec.eclipse.blue.websphere61_9.0.0.me201103012021\installEAR.jacl” The current script does not add custom class path during the deployment on websphere. Do you have any idea how we can fix this issue?

 sg0210
 Post subject: Websphere Class not found error issue during EJBDeploy  Posted: Dec 19, 2011 - 05:46 PM
 Joined: Dec 19, 2011 Posts: 12
 Is there a way to add class path in plugin jacl script instead of Manifest file? Here is the websphere issue description http://www-01.ibm.com/support/docview.wss?uid=swg21265051

 support-swapna
 Post subject:   Posted: Dec 20, 2011 - 05:42 AM
 Joined: Nov 11, 2010 Posts: 2339
 sg0210 , Can you tell us why you want to add classpath to jacl script instead of Manifest file ? Any reason why you cannot use the Manifest file ? _________________Swapna MyEclipse Support

 sg0210
 Post subject: EJBDeploy Issue  Posted: Dec 20, 2011 - 01:19 PM
 Joined: Dec 19, 2011 Posts: 12

 sg0210
 Post subject: EJBDeploy Classnotfound error  Posted: Dec 21, 2011 - 01:25 PM
 Joined: Dec 19, 2011 Posts: 12
 Is there any update on this?

 support-tony
 Post subject:   Posted: Dec 22, 2011 - 06:37 AM
 Joined: Mar 09, 2011 Posts: 830
 Sharad, Sorry for the delay. I've been trying to figure out how to replicate your problem but I'm not sure how to do that. Can you provide more details about the kind of project you're trying to deploy, how you're exporting the project and what you mean by "without generating stubs". Please provide as much information as you can, including the precise steps you are taking to export and deploy the project when you see this error. Also, what other methods have you tried to deploy the project without getting the errors? I'm not clear on what you've tried and where you're seeing errors. _________________Tony MyEclipse Support

 sg0210
 Post subject: EJBDeploy Error  Posted: Dec 22, 2011 - 02:33 PM
 Joined: Dec 19, 2011 Posts: 12

 sg0210
 Post subject: Steps to Create Temp Project  Posted: Dec 22, 2011 - 02:58 PM
 Joined: Dec 19, 2011 Posts: 12
 Specify shared classpath settings Reference sccreenshot - Create EAR project which must include EJB specification 2.1 - Create Some dummy classes may be you can refer the following guidelines and deploy this on Websphere 6.1.0.23 server - The project must be dependent on some shared classpath settings Thanks Sharad

 Support-Brian
 Post subject:   Posted: Dec 23, 2011 - 03:08 AM
 Moderator Joined: Aug 21, 2004 Posts: 2562
 Sharad, I believe we have seen a variation of this problem before and are researching your particular case right now. We do not have a workaround available at this time but will look into putting a fix for this in the 10.0.1 milestone stream, once we have one ready. If we need any more information from you, we will post additional questions to this thread- sorry for the inconvenience caused and thanks for asking. _________________Brian MyEclipse Support

 sg0210
 Post subject: EJBDeploy Classnotfound error  Posted: Dec 23, 2011 - 02:11 PM
 Joined: Dec 19, 2011 Posts: 12
 No problem Brian I have more question Is it possible to put classpath settings somewhere in classpath plugin xml? I can try to do that if you can guide me how I can do this? C:\Program Files\ibm\WebSphere\WAS4D6.1\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\plugin.xml

 Support-Brian
 Post subject:   Posted: Dec 23, 2011 - 05:25 PM
 Moderator Joined: Aug 21, 2004 Posts: 2562
 Sharad, I'm afraid not, we do not read this extension point (we have custom deployment code) and so any changes you make here will be ignored. _________________Brian MyEclipse Support

 support-denis
 Post subject:   Posted: Dec 27, 2011 - 09:20 PM
 Registered Member Joined: Sep 26, 2011 Posts: 30

 sg0210
 Post subject:   Posted: Dec 30, 2011 - 03:50 PM
 Joined: Dec 19, 2011 Posts: 12
 Denis 1. We already have shared class path but that is not being added during ejbdeploy. Please refer my screen shot 2. I tried it is not working The other solution we tried to override ws.ext.dir during server configuration but it is not picking up the additional classpath entries basically it is not overriding our custom classpath. ws.ext.dirs = C:\Program Files\ibm\WebSphere\WAS4D6.1\java\lib;C:\was6.1\atpco_WAS4D6.1\classes;C:\Program Files\ibm\WebSphere\WAS4D6.1\classes;C:\Program Files\ibm\WebSphere\WAS4D6.1\lib;C:\Program Files\ibm\WebSphere\WAS4D6.1\installedChannels;C:\Program Files\ibm\WebSphere\WAS4D6.1\lib\ext;C:\Program Files\ibm\WebSphere\WAS4D6.1\web\help;C:\Program Files\ibm\WebSphere\WAS4D6.1\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime -Dws.ext.dir=N:\Tools\Shared Java Lib\apache\log4j;C:\Program Files\ibm\WebSphere\WAS4D6.1\java\lib;C:\was6.1\atpco_WAS4D6.1\classes;C:\Program Files\ibm\WebSphere\WAS4D6.1\classes;C:\Program Files\ibm\WebSphere\WAS4D6.1\lib;C:\Program Files\ibm\WebSphere\WAS4D6.1\installedChannels;C:\Program Files\ibm\WebSphere\WAS4D6.1\lib\ext;C:\Program Files\ibm\WebSphere\WAS4D6.1\web\help;C:\Program Files\ibm\WebSphere\WAS4D6.1\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime; Thanks Sharad

 support-denis
 Post subject:   Posted: Jan 04, 2012 - 02:15 AM
 Registered Member Joined: Sep 26, 2011 Posts: 30

 sg0210
 Post subject: EJB Deploy  Posted: Jan 04, 2012 - 07:25 PM
 Joined: Dec 19, 2011 Posts: 12
 Hello Brian The screenshot that you have provided that is our problem like it is not considering the shared classpath while invoking ejbdeploy. The screenshot that I have is a solution to this problem,. If we can define EJB custom classpath then we can eliminate this problem. We have solved the problem by using two ways but not by using inside the project classpath settings Export and deploy EAR and try to reproduce the classnotfound error Solution 1: Specify EJB classpath refer my screenshot Solution 2: Fixed JACL script and add the additional classpath entries Solution 3: If somehow we can implement solution 1 or 2 in the ear classpath settings that might work while doing the ear deployment. I will try your libraries and deployment settings and let you know.

 Display posts from previous:  All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 Jump to: Select a forum Forum index|--[Frequently Asked Questions]|   |-- FAQ - Installation, Configuration & Subscriptions|   |-- FAQ - Development|--[MyEclipse IDE]|   |-- MyEclipse IDE Announcements|   |-- Installation, Configuration & Updates|   |-- General Development|   |-- Java EE Development (EJB, JSP, Struts, XDoclet, etc.)|   |-- Spring Development|   |-- Maven for MyEclipse (Maven4MyEclipse)|   |-- WebSphere Development|   |-- Mobile Tooling|   |-- Feature Requests|   |-- Comments|   |-- Off Topic|--[Archived]|   |-- General|   |-- Genuitec Announcements|   |-- ICEfaces Integration|   |-- News|   |-- Blue Feature Requests|   |-- Spring Feature Requests|   |-- Eclipse News|   |-- Comments|   |-- Old Posts|   |-- UML Development|   |-- Application Servers and Deployment|   |-- Web Development (HTML, CSS, etc.)|   |-- Database Tools (DB Explorer, Hibernate, etc.)|   |-- FAQ - Complete|   |-- Web 2.0 / AJAX|   |-- Matisse/Swing UI Development|   |-- MyEclipse Reports|   |-- Web Services|   |-- SNAPs (Simple Non-integrated APplications)|   |-- Documentation|   |-- Examples On-Demand|   |-- Bugs
All times are GMT - 6 Hours