MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ayang
Post subject: Unable to deploy project to WebSphere 6.1  PostPosted: Mar 14, 2008 - 10:23 PM



Joined: Mar 14, 2008
Posts: 25

Hi,

I have an Enterprise Application Project (J2EE 1.4 specification) with a single Web module. I deploy it in the WebSphere 6.1 server in the Servers view (Add deployment...) This fails (Status shows as "Redeploy") and the log file contains the following:

!ENTRY com.genuitec.eclipse.ast.deploy.core 1 0 2008-03-14 16:27:50.155
!MESSAGE Deploy failed
!STACK 0
com.genuitec.eclipse.core.GenuitecCoreException: Unable to redeploy application. Use undeploy/deploy manually to continue.
at com.genuitec.eclipse.blue.websphere.BaseWebsphereManager.restartApplication(BaseWebsphereManager.java:228)
at com.genuitec.eclipse.blue.websphere.WebsphereServer.afterDeployment(WebsphereServer.java:103)
at com.genuitec.eclipse.ast.deploy.core.Deployment.ā(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.performStdRedeploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.redeploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.jobs.D.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.core.jobs 4 2 2008-03-14 16:27:50.155
!MESSAGE An internal error occurred during: "Redeploy".
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3563)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.SWT.error(SWT.java:3452)
at org.eclipse.swt.widgets.Widget.error(Widget.java:432)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:274)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:363)
at org.eclipse.jface.window.Window.createShell(Window.java:482)
at org.eclipse.jface.window.Window.create(Window.java:425)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1081)
at org.eclipse.jface.window.Window.open(Window.java:785)
at org.eclipse.jface.dialogs.MessageDialog.openError(MessageDialog.java:322)
at com.genuitec.eclipse.ast.deploy.core.Deployment.redeploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.jobs.D.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

By "manually deploy" I assume this means to deploy the application via MyEclipse/Run as... When I do this, the Server view claims that the app has been deployed ("OK") and is running but it doesn't show up in the Admin Console's list of enterprise applications and I can't hit it from my browser ("Error 404: No target servlet configured for uri: /")

Also, when I deploy it through Run As... any changes I make in the web project doesn't seem to trigger a redploy on the server instance - is this correct behaviour? i.e., auto-deploy only works in certain circumstances?

Thanks!
Andy
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Unable to deploy project to WebSphere 6.1  PostPosted: Mar 17, 2008 - 10:27 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Andy,
You did exactly the right thing, the "Invalid Thread Access" is actually a misleading error that occurs when deployment fails, and occured with our Blue M1 release, but we just made the GA release of Blue with 100s of more fixes in it this morning, are you using this morning's build or using the M1 release?

You should be able to tell by going to MyEclipse > Installation Summary and looking for the version number there, it should be 6.1.0 GA.

If you are using GA, I'll have you dig into the deployment log to see what failed, but if you are using M1, my first suggestion would be to grab our GA release and install that first and reopen your existing workspace and try the deployment again (you might nee dto remove it and make sure it's cleaned out first before successfully deploying it)

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
ayang
Post subject: RE: Unable to deploy project to WebSphere 6.1  PostPosted: Mar 18, 2008 - 07:01 PM



Joined: Mar 14, 2008
Posts: 25

Hi Riyad,

I downloaded and installed the GA release just now. Can you explain how the synchronization between MyEclipse and the WAS install is managed? The Server view didn't show my EAR app deployed but when I tried to add that deployment, the dialog reports:

An existing resource has been found at location $WAS_HOME\profiles\AppSrv01\installedApps\nodeCell\EAR.ear.
Deployment of project TIM EAR will replace this resource. Please specify the action you wish to take during deployment:

However, no matter which of the options I choose for dealing with this (backup/restore, delete or overwrite) the Finish button remains grayed out. There is a directory under ${WAS_HOME}\profiles\AppSrv01\installedApps\nodeCell but after I delete it manually, I still can't deploy it. Even though I don't get that error message above, the list of available projects doesn't show the WAR project, and the Finish button is still inactive.
 
 View user's profile Send private message  
Reply with quote Back to top
support-greg
Post subject: RE: Unable to deploy project to WebSphere 6.1  PostPosted: Mar 18, 2008 - 07:15 PM
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1612

Hello Andy,

Can you tell me what appears under the Servers view for your websphere 6.1 server?

IF you see a deployment there you can right-click and choose "remove". If there are no deployments there, go to your Websphere 6.1 connector preference choose "restore defaults", then restart MyEclipse Blue and then go back in and reconfigure your websphere 6.1 server and change to "enable" and press OK. You should now be able to deploy your project.

IF you still can't deploy for some reason, right click your WebSphere6.1 server and chooes "view deployment log" and go to the last part of the file and paste in the contents of the last deployment that tried to take place.

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
ayang
Post subject: RE: Unable to deploy project to WebSphere 6.1  PostPosted: Mar 18, 2008 - 09:38 PM



Joined: Mar 14, 2008
Posts: 25

Here is the excerpt from the deployment log

Based on my (feeble) interpretation of the last part, I tried renaming the projects involved to get rid of embedded spaces. Results in following post.

------------------------------------------------------------------------------------------------------------------
MyEclipse: deployment START explodedproject: XYZ EAR server: websphere61Server time: Tue Mar 18 16:06:49 EDT 2008
------------------------------------------------------------------------------------------------------------------
WASX7209I: Connected to process "server1" on node pc3662Node01 using SOAP connector; The type of process is: UnManagedProcess
WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[D:\WAS\AppServer\profiles\AppSrv01\installableApps\XYZ EAR.ear, pc3662Node05Cell, pc3662Node01, server1, XYZ EAR, {{"XYZ EARWeb.war" "XYZ EARWeb.war,WEB-INF/web.xml" default_host}}, {{"null" "XYZ EARWeb.war,WEB-INF/ibm-web-ext.xmi"AppDeploymentOption.Yes 1}}, true, false, true, C:/Program Files/MyEclipse 6.1 Blue/myeclipse/eclipse/plugins/com.genuitec.eclipse.blue.websphere_6.1.0.zmyeclipse610200803/scriptutil/scriptutil.jar]"
D:\WAS\AppServer\profiles\AppSrv01\installableApps\XYZ EAR.ear
pc3662Node05Cell
pc3662Node01
server1
XYZ EAR
{"XYZ EARWeb.war" "XYZ EARWeb.war,WEB-INF/web.xml" default_host}
{"null" "XYZ EARWeb.war,WEB-INF/ibm-web-ext.xmi"AppDeploymentOption.Yes 1}
-nopreCompileJSPs -distributeApp -useMetaDataFromBinary -nodeployejb -appname "XYZ EAR" -createMBeansForResources -reloadEnabled -reloadInterval 1 -deployws -validateinstall off -noprocessEmbeddedConfig -filepermission .*.dll=755#.*.so=755#.*.a=755#.*.sl=755 -buildVersion Unknown -noallowDispatchRemoteInclude -noallowServiceRemoteInclude -MapWebModToVH {{"XYZ EARWeb.war" "XYZ EARWeb.war,WEB-INF/web.xml" default_host}} -JSPReloadForWebMod {{"null" "XYZ EARWeb.war,WEB-INF/ibm-web-ext.xmi"AppDeploymentOption.Yes 1}}
true
false
true
C:/Program Files/MyEclipse 6.1 Blue/myeclipse/eclipse/plugins/com.genuitec.eclipse.blue.websphere_6.1.0.zmyeclipse610200803/scriptutil/scriptutil.jar

-nodeployejb
ADMA5016I: Installation of XYZ EAR started.
ADMA5058I: Application and module versions are validated with versions of deployment targets.
WSWS0041I: Web services deploy task completed successfully.
ADMA5005I: The application XYZ EAR is configured in the WebSphere Application Server repository.
ADMA5053I: The library references for the installed optional package are created.
ADMA5005I: The application XYZ EAR is configured in the WebSphere Application Server repository.
ADMA5001I: The application binaries are saved in D:\WAS\AppServer\profiles\AppSrv01\wstemp\Script118c3805f9b\workspace\cells\pc3662Node05Cell\applications\XYZ EAR.ear\XYZ EAR.ear
ADMA5005I: The application XYZ EAR is configured in the WebSphere Application Server repository.
SECJ0400I: Successfuly updated the application XYZ EAR with the appContextIDForSecurity information.
ADMA5011I: The cleanup of the temp directory for application XYZ EAR is complete.
ADMA5013I: Application XYZ EAR installed successfully.
Starting XYZ EAR application.
WASX7017E: Exception received while running file "C:/Program Files/MyEclipse 6.1 Blue/myeclipse/eclipse/plugins/com.genuitec.eclipse.blue.websphere61_6.1.0.zmyeclipse610200803/installEAR.jacl"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7139E: Operation "startApplication" has versions that take one of the following number of parameters: 1; 2 parameters were supplied: "XYZ EAR." The "operations" command on the Help object can be used to learn more about the signatures available for "startApplication."
 
 View user's profile Send private message  
Reply with quote Back to top
ayang
Post subject: RE: Unable to deploy project to WebSphere 6.1  PostPosted: Mar 18, 2008 - 09:45 PM



Joined: Mar 14, 2008
Posts: 25

After renaming the projects, the app deploys successfully, but upon startup, there are some exceptions - stack traces included. Can you tell me whether they're innocuous? The app still seems to have started up successfully.

Also, the jar files involved - are they actually being deployed by MyEclipse? Because I'm not including them as dependencies in my project so I was very surprised to see them in the exploded WAR file.

[3/18/08 16:36:02:727 EDT] 00000021 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file d:\WAS\AppServer\profiles\AppSrv01\logs\ffdc\server1_720a720a_08.03.18_16.36.02_0.txt
[3/18/08 16:36:02:742 EDT] 00000021 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file d:\WAS\AppServer\profiles\AppSrv01\logs\ffdc\server1_720a720a_08.03.18_16.36.02_0.txt
[3/18/08 16:36:02:758 EDT] 00000021 RegistryLoade W CWXRS0010W: Error while processing: wsjar:file:/D:/WAS/AppServer/profiles/AppSrv01/installedApps/pc3662Node05Cell/XyzEar.ear/XyzEarWeb.war/WEB-INF/lib/com.ibm.ws.portletcontainer_2.0.0.jar!/plugin.xml
java.lang.NullPointerException
at com.ibm.wkplc.extensionregistry.Extension.equals(Extension.java:183)
at com.ibm.wkplc.extensionregistry.RegistryCache.putExtension(RegistryCache.java:426)
at com.ibm.wkplc.extensionregistry.PluginDescriptor.convertObjectsToProxies(PluginDescriptor.java:271)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.addPlugin(ExtensionRegistry.java:304)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.addPlugin(ExtensionRegistry.java:284)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadPluginXml(RegistryLoader.java:447)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadAllPluginXmls(RegistryLoader.java:398)
at com.ibm.wkplc.extensionregistry.RegistryLoader.addToRegistry(RegistryLoader.java:309)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadModule(RegistryLoader.java:285)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.load(ExtensionRegistry.java:67)
at com.ibm.wkplc.extensionregistry.FilteredExtensionRegistry.load(FilteredExtensionRegistry.java:259)
at com.ibm.wkplc.extensionregistry.wasservice.ExtensionRegistryService$ExtensionRegistryMetaDataListener.metaDataCreated(ExtensionRegistryService.java:94)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.fireMetaDataCreated(MetaDataMgrImpl.java:151)
at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:194)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:135)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:243)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:561)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:948)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1478)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:3731)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:3813)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1483)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1055)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:948)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:338)
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:206)
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:55)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:680)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:484)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

[3/18/08 16:36:02:945 EDT] 00000021 ExtensionRegi E CWXRS0004E: Failed to resolve plug-in
[3/18/08 16:36:02:992 EDT] 00000021 RegistryLoade W CWXRS0010W: Error while processing: wsjar:file:/D:/WAS/AppServer/profiles/AppSrv01/installedApps/pc3662Node05Cell/XyzEar.ear/XyzEarWeb.war/WEB-INF/lib/com.ibm.ws.sip.container_6.1.0.jar!/plugin.xml
java.lang.NullPointerException
at com.ibm.wkplc.extensionregistry.Extension.equals(Extension.java:183)
at com.ibm.wkplc.extensionregistry.RegistryCache.putExtension(RegistryCache.java:426)
at com.ibm.wkplc.extensionregistry.PluginDescriptor.convertObjectsToProxies(PluginDescriptor.java:271)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.addPlugin(ExtensionRegistry.java:304)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.addPlugin(ExtensionRegistry.java:284)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadPluginXml(RegistryLoader.java:447)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadAllPluginXmls(RegistryLoader.java:398)
at com.ibm.wkplc.extensionregistry.RegistryLoader.addToRegistry(RegistryLoader.java:309)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadModule(RegistryLoader.java:285)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.load(ExtensionRegistry.java:67)
at com.ibm.wkplc.extensionregistry.FilteredExtensionRegistry.load(FilteredExtensionRegistry.java:259)
at com.ibm.wkplc.extensionregistry.wasservice.ExtensionRegistryService$ExtensionRegistryMetaDataListener.metaDataCreated(ExtensionRegistryService.java:94)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.fireMetaDataCreated(MetaDataMgrImpl.java:151)
at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:194)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:135)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:243)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:561)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:948)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1478)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:3731)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:3813)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1483)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1055)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:948)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:338)
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:206)
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:55)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:680)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:484)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

[3/18/08 16:36:03:039 EDT] 00000021 RegistryLoade W CWXRS0010W: Error while processing: wsjar:file:/D:/WAS/AppServer/profiles/AppSrv01/installedApps/pc3662Node05Cell/XyzEar.ear/XyzEarWeb.war/WEB-INF/lib/com.ibm.ws.webcontainer_2.0.0.jar!/plugin.xml
java.lang.NullPointerException
at com.ibm.wkplc.extensionregistry.Extension.equals(Extension.java:183)
at com.ibm.wkplc.extensionregistry.RegistryCache.putExtension(RegistryCache.java:426)
at com.ibm.wkplc.extensionregistry.PluginDescriptor.convertObjectsToProxies(PluginDescriptor.java:271)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.addPlugin(ExtensionRegistry.java:304)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.addPlugin(ExtensionRegistry.java:284)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadPluginXml(RegistryLoader.java:447)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadAllPluginXmls(RegistryLoader.java:398)
at com.ibm.wkplc.extensionregistry.RegistryLoader.addToRegistry(RegistryLoader.java:309)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadModule(RegistryLoader.java:285)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.load(ExtensionRegistry.java:67)
at com.ibm.wkplc.extensionregistry.FilteredExtensionRegistry.load(FilteredExtensionRegistry.java:259)
at com.ibm.wkplc.extensionregistry.wasservice.ExtensionRegistryService$ExtensionRegistryMetaDataListener.metaDataCreated(ExtensionRegistryService.java:94)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.fireMetaDataCreated(MetaDataMgrImpl.java:151)
at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:194)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:135)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:243)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:561)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:948)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1478)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:3731)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:3813)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1483)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1055)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:948)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:338)
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:206)
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:55)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:680)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:484)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

[3/18/08 16:36:03:101 EDT] 00000021 RegistryLoade W CWXRS0010W: Error while processing: wsjar:file:/D:/WAS/AppServer/profiles/AppSrv01/installedApps/pc3662Node05Cell/XyzEar.ear/XyzEarWeb.war/WEB-INF/lib/runtime-6.1.0.jar!/plugin.xml
java.lang.NullPointerException
at com.ibm.wkplc.extensionregistry.Extension.equals(Extension.java:183)
at com.ibm.wkplc.extensionregistry.RegistryCache.putExtension(RegistryCache.java:426)
at com.ibm.wkplc.extensionregistry.PluginDescriptor.convertObjectsToProxies(PluginDescriptor.java:271)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.addPlugin(ExtensionRegistry.java:304)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.addPlugin(ExtensionRegistry.java:284)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadPluginXml(RegistryLoader.java:447)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadAllPluginXmls(RegistryLoader.java:398)
at com.ibm.wkplc.extensionregistry.RegistryLoader.addToRegistry(RegistryLoader.java:309)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadModule(RegistryLoader.java:285)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.load(ExtensionRegistry.java:67)
at com.ibm.wkplc.extensionregistry.FilteredExtensionRegistry.load(FilteredExtensionRegistry.java:259)
at com.ibm.wkplc.extensionregistry.wasservice.ExtensionRegistryService$ExtensionRegistryMetaDataListener.metaDataCreated(ExtensionRegistryService.java:94)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.fireMetaDataCreated(MetaDataMgrImpl.java:151)
at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:194)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:135)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:243)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:561)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:948)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1478)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:3731)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:3813)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1483)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1055)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:948)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:338)
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:206)
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:55)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:680)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:484)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

[3/18/08 16:36:03:133 EDT] 00000021 WebGroup A SRVE0169I: Loading Web Module: XyzEarWeb.war.
[3/18/08 16:36:04:647 EDT] 00000021 SystemOut O [18/03/08 16:36:04:647 EDT] XYZ INFO O Logging configured with file /WEB-INF/classes/log-config.xml [SoapConnectorThreadPool : 0] com.xyz.ui.servlets.Log
[3/18/08 16:36:04:647 EDT] 00000021 ServletWrappe I SRVE0242I: [XyzEar] [/] [Log]: Initialization successful.
[3/18/08 16:36:04:662 EDT] 00000021 WebApp A SRVE0180I: [XyzEar#XyzEarWeb.war] [/] [Servlet.LOG]: configuring cewolf app..
[3/18/08 16:36:04:678 EDT] 00000021 WebApp A SRVE0180I: [XyzEar#XyzEarWeb.war] [/] [Servlet.LOG]: using storage class de.laures.cewolf.storage.TransientSessionStorage
[3/18/08 16:36:04:678 EDT] 00000021 WebApp A SRVE0180I: [XyzEar#XyzEarWeb.war] [/] [Servlet.LOG]: using overlibURL etc/overlib.js
[3/18/08 16:36:04:678 EDT] 00000021 WebApp A SRVE0180I: [XyzEar#XyzEarWeb.war] [/] [Servlet.LOG]: debugging is turned off
[3/18/08 16:36:04:678 EDT] 00000021 WebApp A SRVE0180I: [XyzEar#XyzEarWeb.war] [/] [Servlet.LOG]: ...done.
[3/18/08 16:36:04:678 EDT] 00000021 ServletWrappe I SRVE0242I: [XyzEar] [/] [CeWolfServlet]: Initialization successful.
[3/18/08 16:36:04:943 EDT] 00000021 SystemOut O [18/03/08 16:36:04:943 EDT] XYZ INFO O Initial text resources: standard [SoapConnectorThreadPool : 0] com.xyz.struts.OtppActionServlet
[3/18/08 16:36:04:959 EDT] 00000021 ServletWrappe I SRVE0242I: [XyzEar] [/] [OtppActionServlet]: Initialization successful.
[3/18/08 16:36:04:959 EDT] 00000021 VirtualHost I SRVE0250I: Web Module <null> has been bound to default_host[*:9084,*:80,*:9447,*:5069,*:5068,*:443].
[3/18/08 16:36:04:990 EDT] 00000021 ApplicationMg A WSVR0221I: Application started: XyzEar
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Unable to deploy project to WebSphere 6.1  PostPosted: Mar 18, 2008 - 11:39 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Andy I asked one of our guys from the Blue team to swing back with you on this ASAP.

(btw I have no idea where that porlet plugin is coming form...)

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-greg
Post subject:   PostPosted: Mar 19, 2008 - 02:20 PM
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1612

Hey Andy,

Looks like your application did start successfully. MyEclipse Web Projects by default will deploy everything that is on the WEB-INF/lib directory of your project. Also I've attached an image that I captured from MyEclipse Blue that shows you what else is deployed by default.

I imagine that one of those options is causing the webcontainer/portlet jars to be deployed in your WAR. If you find out which one of those options is causing the unneeded deployment you can turn that particular option off on a per-project basis.

1. Go to your project, right-click and choose properties
2. select MyEclipse -> Web -> Deployment tab
3. Uncheck that you want to use workbench defaults and customize the deployment settings there.

Hope this helps.

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
ayang
Post subject:   PostPosted: Mar 19, 2008 - 03:05 PM



Joined: Mar 14, 2008
Posts: 25

Hi Greg,

I'm not sure I understand which options correspond to "workbench defaults." One thing I did notice was that the web project build path was still using the JRE from the MyEclipse Blue 6.1 M1 build. I'm not sure that
made a difference, but I pointed it into the GA files, undeployed the web app, shutdown/restarted MyEclipse Blue and deployed the app again. Starting up the server and app now only shows the one exception:

[3/19/08 9:49:32:681 EDT] 00000016 RegistryLoade W CWXRS0010W: Error while processing: wsjar:file:/D:/WAS/AppServer/profiles/AppSrv01/installedApps/pc3662Node05Cell/XyzEar.ear/XyzEarWeb.war/WEB-INF/lib/runtime-6.1.0.jar!/plugin.xml
java.lang.NullPointerException
at com.ibm.wkplc.extensionregistry.Extension.equals(Extension.java:183)
at com.ibm.wkplc.extensionregistry.RegistryCache.putExtension(RegistryCache.java:426)
at com.ibm.wkplc.extensionregistry.PluginDescriptor.convertObjectsToProxies(PluginDescriptor.java:271)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.addPlugin(ExtensionRegistry.java:304)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.addPlugin(ExtensionRegistry.java:284)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadPluginXml(RegistryLoader.java:447)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadAllPluginXmls(RegistryLoader.java:398)
at com.ibm.wkplc.extensionregistry.RegistryLoader.addToRegistry(RegistryLoader.java:309)
at com.ibm.wkplc.extensionregistry.RegistryLoader.loadModule(RegistryLoader.java:285)
at com.ibm.wkplc.extensionregistry.ExtensionRegistry.load(ExtensionRegistry.java:67)
at com.ibm.wkplc.extensionregistry.FilteredExtensionRegistry.load(FilteredExtensionRegistry.java:259)
at com.ibm.wkplc.extensionregistry.wasservice.ExtensionRegistryService$ExtensionRegistryMetaDataListener.metaDataCreated(ExtensionRegistryService.java:94)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.fireMetaDataCreated(MetaDataMgrImpl.java:151)
at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:194)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:135)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:243)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:561)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:948)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2114)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:340)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

However, looking into the deployed WEB-INF/lib directory on the WAS instance, I see the following jars which I didn't include - are these added because of the "Smart Deployment"?

bootstrap.jar
com.ibm.mq.jar
com.ibm.mqjms.jar
com.ibm.ws.ejbportable_6.1.0.jar
com.ibm.ws.emf_2.1.0.jar
com.ibm.ws.portletcontainer_2.0.0.jar
com.ibm.ws.runtime.dist_6.1.0.jar
com.ibm.ws.runtime_6.1.0.jar
com.ibm.ws.sib.server_2.0.0.jar
com.ibm.ws.sip.container_6.1.0.jar
com.ibm.ws.wccm_6.1.0.jar
com.ibm.ws.webcontainer_2.0.0.jar
j2ee.jar
j2ee-6.1.jar
mail-impl.jar
marshall.jar
runtime-6.1.0.jar
 
 View user's profile Send private message  
Reply with quote Back to top
ayang
Post subject:   PostPosted: Mar 19, 2008 - 03:07 PM



Joined: Mar 14, 2008
Posts: 25

Oh whoops, just noticed that the list of jars above are in the WebSphere Application Server v6.1 library. Which of the Library Deployment Policies would need to be unchecked to omit these from the deployment? Do I even want to do this? i.e., should these jars be added to my web app's WEB-INF/lib folder??

Thanks,
Andy
 
 View user's profile Send private message  
Reply with quote Back to top
ayang
Post subject:   PostPosted: Mar 19, 2008 - 03:19 PM



Joined: Mar 14, 2008
Posts: 25

Sigh. Is there any way to edit/delete forum posts? I just found where the workbench default checkbox was.....

So, here are my libraries:

JRE System Library
J2EE 1.4 Libraries
WebSphere Application Server v6.1
Maven Classpath Container

What combination of checkboxes would I want to use to include the Maven Classpath Container library, but omitting the others. I do want to leave out the first 3 won't I?

Thanks,
Andy
 
 View user's profile Send private message  
Reply with quote Back to top
support-greg
Post subject:   PostPosted: Mar 20, 2008 - 03:26 PM
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1612

Hey Andy,

If you have the option "Jars in the webproject's user libraries", then any jars in the classpath containers on the webproject will get deployed *except* for JRE containers, or J2EE containers. So in your case with that option selected both "WebSphere Application Server v6.1" and "Maven Classpath Container" would get deployed.

We obviously don't want to deploy the WebSphere Application Server v6.1 jars because all of those will be automatically available to your webapp after its deployed.

What is in your Maven Classpath containers? Dependencies that you have setup? Give me an idea of what is in there but its likely you do need those deployed.

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
ayang
Post subject:   PostPosted: Mar 20, 2008 - 10:00 PM



Joined: Mar 14, 2008
Posts: 25

Hi Greg,

Yes, we've got a whole host of dependencies - internal jars as well as third party jars (commons, hibernate etc.) but mostly it would be our own jars. I think it makes sense to be able to deploy libraries independent of each other (instead of all user libraries at once)

Thanks,
Andy
 
 View user's profile Send private message  
Reply with quote Back to top
support-greg
Post subject:   PostPosted: Mar 20, 2008 - 10:13 PM
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1612

Hey Andy,

Here is a workaround that I'd like to propose.

1. Reenable the setting that will deploy all jars in user libraries out of your web project
2. Configure the classpath containers on your web project to only include those jars that are unavailable when running in websphere (most likely this is all the jars in your maven classpath conatiner)
3. Create a normal java project
4. add the Websphere Application Server v6.1 classpath container to that project
5. right-click the java project and choose properties > java build path > order and export tab, select the websphere container you just added to be exported.
6. right-click your webproject go to properties > java build path, and add this new java project on the project dependencies list
7. under project properties > MYEclipse > Web > Deployment, and uncheck the option that says : User libraries exported from dependent java projects

So now you should have all the classpath containers with all the jars available to your project for compilation/validation but only those jars in the maven classpath container will be deployed to websphere. Does that make sense?

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits