- This topic has 8 replies, 5 voices, and was last updated 8 years, 1 month ago by hqiu6828.
-
AuthorPosts
-
mikekonikoffMemberInstallation summary:
*** Date:
Wednesday, April 8, 2015 2:54:26 PM EDT*** System properties:
OS=Windows7
OS version=6.1.0
OS arch=amd64
Profile arch=x86_64
Window system=win32
Java version=1.7.0_45
Workspace=file:/C:/Users/knurskm/Workspaces/dev15b/
VM Args=-Xmx768m
-XX:MaxPermSize=320m
-XX:ReservedCodeCacheSize=64m
-Dosgi.nls.warnings=ignore
-jar
C:\Users\knurskm\AppData\Local\MYECLI~2\plugins/OR45D0~1.JAR*** Subscription information
Product Id: E3MP (MyEclipse Professional Subscription)
License version: 3.0
Full Maintenance Included
Subscription expiration date (YYYYMMDD): 20150720
Number of users: 2*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 2015 CI 11
Build id: 13.0.0-20150216com.genuitec.eclipse.mobile.feature – 13.0.0.me201502181324
com.genuitec.myeclipse.blue.feature – 13.0.0.me201502181324
com.genuitec.myeclipse.database – 13.0.0.me201502181324
com.genuitec.myeclipse.db2 – 13.0.0.me201502181324
com.genuitec.myeclipse.desktop – 13.0.0.me201502181324
com.genuitec.myeclipse.enterprise.workbench – 13.0.0.me201502181324
com.genuitec.myeclipse.icefaces.feature – 13.0.0.me201502181324
com.genuitec.myeclipse.imageeditor – 13.0.0.me201502181324
com.genuitec.myeclipse.jsf – 13.0.0.me201502181324
com.genuitec.myeclipse.maven – 13.0.0.me201502181324
com.genuitec.myeclipse.persistence – 13.0.0.me201502181324
com.genuitec.myeclipse.reports – 13.0.0.me201502181324
com.genuitec.myeclipse.struts – 13.0.0.me201502181324
com.genuitec.myeclipse.uml2 – 13.0.0.me201502181324
com.genuitec.myeclipse.visualvm – 13.0.0.me201502181324
com.genuitec.myeclipse.ws – 13.0.0.me201502181324
com.genuitec.myeclipse.ws.blue – 13.0.0.me201502181324
com.skyway.myeclipseforspring.feature – 13.0.0.me201502181324
org.eclipse.birt – 4.4.1.me201502181324
org.eclipse.datatools.connectivity.feature – 1.12.0.me201502181324
org.eclipse.datatools.enablement.feature – 1.12.0.me201502181324
org.eclipse.datatools.modelbase.feature – 1.12.0.v201406061321-7707GCcNBHLDaKTEcRi
org.eclipse.datatools.sqldevtools.feature – 1.12.0.me201502181324
org.eclipse.emf – 2.10.1.v20140901-1055
org.eclipse.gef – 3.9.101.201408150207
org.eclipse.graphiti.feature – 0.11.1.v20140903-1228
org.eclipse.jpt.jpa.feature – 3.4.0.me201502181324
org.eclipse.jpt.jpadiagrameditor.feature – 1.2.100.me201502181324
org.eclipse.jst.common.fproj.enablement.jdt – 3.6.1.me201502181324
org.eclipse.jst.enterprise_ui.feature – 3.6.1.me201502181324
org.eclipse.jst.server_adapters.ext.feature – 3.3.300.me201502181324
org.eclipse.jst.server_adapters.feature – 3.2.301.me201502181324
org.eclipse.jst.server_ui.feature – 3.4.101.me201502181324
org.eclipse.jst.ws.axis2tools.feature – 1.1.301.me201502181324
org.eclipse.m2e.feature – 1.5.0.me201502181324
org.eclipse.sapphire.platform – 8.0.2.201411041416
org.eclipse.wst.common.fproj – 3.6.1.me201502181324
org.eclipse.wst.server_adapters.feature – 3.2.401.me201502181324
org.eclipse.xsd – 2.10.0.v20140901-1055
org.springframework.ide.eclipse.feature – 3.6.2.me201502181324AnyEditTools – 2.4.11.201409071702
angularjs-eclipse-feature – 0.9.0.me201502181324
angularjs-eclipse-jsp-feature – 0.9.0.me201502181324
angularjs-eclipse-php-feature – 0.9.0.me201502181324
com.collabnet.subversion.merge.feature – 4.1.0
com.googlecode.veloeclipse.ui – 2.0.8
com.vmware.vfabric.ide.eclipse.tcserver – 3.6.2.me201502181324
com.vmware.vfabric.ide.eclipse.tcserver.insight – 3.6.2.me201502181324
fr.obeo.acceleo.bridge.feature – 2.6.0.me201502181324
net.java.dev.jna – 4.1.0.v20140626_1915
net.jeeeyul.swtend.feature – 2.2.2
org.eclipse.cvs – 1.4.100.v20140925-0400
org.eclipse.draw2d – 3.9.101.201408150207
org.eclipse.e4.rcp – 1.3.100.v20140909-1633
org.eclipse.e4.rcp.R441patch – 1.0.0
org.eclipse.ecf.core.feature – 1.1.0.v20140827-1444
org.eclipse.ecf.core.ssl.feature – 1.0.0.v20140827-1444
org.eclipse.ecf.filetransfer.feature – 3.9.0.v20140827-1444
org.eclipse.ecf.filetransfer.httpclient4.feature – 3.9.1.v20140827-1444
org.eclipse.ecf.filetransfer.httpclient4.ssl.feature – 1.0.0.v20140827-1444
org.eclipse.ecf.filetransfer.ssl.feature – 1.0.0.v20140827-1444
org.eclipse.egit – 3.4.2.201412180340-r
org.eclipse.epp.mpc – 1.3.1.v20140908-1651
org.eclipse.equinox.p2.core.feature – 1.3.0.v20140523-0116
org.eclipse.equinox.p2.discovery.feature – 1.0.200.v20140512-1802
org.eclipse.equinox.p2.extras.feature – 1.2.0.v20140911-0143
org.eclipse.equinox.p2.rcp.feature – 1.2.0.v20140523-0116
org.eclipse.equinox.p2.user.ui – 2.2.0.v20140911-0143
org.eclipse.help – 2.0.102.v20140925-0400
org.eclipse.jdt – 3.10.0.v20140925-0400
org.eclipse.jet – 1.1.1.v201101271243-5319sC7HCAGERASDK3924
org.eclipse.jet.uml2 – 1.1.0.v201006011447-2-07w311A1A152813
org.eclipse.jgit – 3.4.2.201412180340-r
org.eclipse.jsf.feature – 3.8.0.me201502181324
org.eclipse.mylyn.bugzilla_feature – 3.13.0.v20140830-0030
org.eclipse.mylyn.commons – 3.13.0.v20140704-2323
org.eclipse.mylyn.commons.identity – 1.5.0.v20140702-2248
org.eclipse.mylyn.commons.notifications – 1.5.0.v20140702-2248
org.eclipse.mylyn.commons.repositories – 1.5.0.v20140905-0008
org.eclipse.mylyn.context_feature – 3.13.0.v20140819-2236
org.eclipse.mylyn.cvs – 1.5.0.v20140702-2223
org.eclipse.mylyn.discovery – 3.13.0.v20140820-1854
org.eclipse.mylyn.git – 1.5.0.v20140702-2223
org.eclipse.mylyn.ide_feature – 3.13.0.v20140702-2225
org.eclipse.mylyn.java_feature – 3.13.0.v20140819-2236
org.eclipse.mylyn.monitor – 3.13.0.v20140702-2155
org.eclipse.mylyn.tasks.ide – 3.13.0.v20140704-0050
org.eclipse.mylyn.team_feature – 3.13.0.v20140702-2225
org.eclipse.mylyn.versions – 1.5.0.v20140702-2223
org.eclipse.mylyn_feature – 3.13.0.v20140826-1734
org.eclipse.ocl – 3.1.0.v20110606-1427
org.eclipse.osgi.compatibility.plugins.feature – 1.0.0.v20140416-1648
org.eclipse.pde – 3.10.0.v20140925-0400
org.eclipse.platform – 4.4.0.v20140925-0400
org.eclipse.rcp – 4.4.0.v20140925-0400
org.eclipse.wb.core.feature – 1.7.0.r44x201405021445
org.eclipse.wb.core.java.feature – 1.7.0.r44x201405021448
org.eclipse.wb.core.ui.feature – 1.7.0.r44x201405021455
org.eclipse.wb.core.xml.feature – 1.7.0.r44x201405021458
org.eclipse.wb.doc.user.feature – 1.7.0.r44x201405021506
org.eclipse.wb.layout.group.feature – 1.7.0.r44x201405021517
org.eclipse.wb.rcp.SWT_AWT_support – 1.7.0.r44x201405021546
org.eclipse.wb.rcp.doc.user.feature – 1.7.0.r44x201405030426
org.eclipse.wb.rcp.feature – 1.7.0.r44x201405021526
org.eclipse.wb.swing.doc.user.feature – 1.7.0.r44x201405030444
org.eclipse.wb.swing.feature – 1.7.0.r44x201405021531
org.eclipse.wb.swt.feature – 1.7.0.r44x201405021519
org.eclipse.wb.xwt.feature – 1.7.0.r44x201405021548
org.sonatype.m2e.mavenarchiver.feature – 0.16.0.201401211452-signed-20140310144306
org.springsource.ide.eclipse.commons – 3.6.2.me201502181324
org.tigris.subversion.clientadapter.feature – 1.10.3
org.tigris.subversion.clientadapter.javahl.feature – 1.8.11
org.tigris.subversion.clientadapter.svnkit.feature – 1.8.9
org.tigris.subversion.subclipse – 1.10.9
org.tigris.subversion.subclipse.graph.feature – 1.1.1
org.tigris.subversion.subclipse.mylyn – 3.0.0
org.tmatesoft.svnkit – 1.8.8.r10386_v20150206_1954
tern-feature – 0.9.0.me201502181324
tern-jsdt-feature – 0.9.0.me201502181324
tern-server-nodejs-feature – 0.9.0.me201502181324
tern.eclipse.ide.tools.feature – 0.9.0.me201502181324Eclipse startup command=-data
C:\Users\knurskm\Workspaces\dev15b
-os
win32
-ws
win32
-arch
x86_64
-showsplash
-launcher
C:\Users\knurskm\AppData\Local\MyEclipse 2015 CI\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Users\knurskm\AppData\Local\MyEclipse 2015 CI\plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700\eclipse_3215.dll
-startup
C:\Users\knurskm\AppData\Local\MyEclipse 2015 CI\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-exitdata
30dd8_5c
-install
C:\Users\knurskm\AppData\Local\MyEclipse 2015 CI
-vm
C:\Users\knurskm\AppData\Local\MyEclipse 2015 CI\binary/com.sun.java.jdk7.win32.x86_64_1.7.0.u45/bin/javaw.exeProblem
Unable to deploy to either MyEclipse Tomcat 7 or external Tomcat 7. In either case, I right-click on the server, Add Deployments, add my project (exploded). For internal tomcat I updated server.xml to add global naming resources and my host. In both cases I then right-click on server to Publish.
Error message is
Publishing failed
Could not publish to the server.
java.lang.NullPointerException
Could not publish to the server.
java.lang.NullPointerExceptionError log has this:
!SUBENTRY 1 org.eclipse.wst.server.core 4 0 2015-04-08 14:39:21.056 !MESSAGE Could not publish to the server. !STACK 0 java.lang.NullPointerException at org.eclipse.core.runtime.Path.append(Path.java:261) at org.eclipse.jst.server.tomcat.core.internal.TomcatServer.getServerDeployDirectory(TomcatServer.java:395) at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.getServerDeployDirectory(TomcatServerBehaviour.java:759) at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.publishFinish(TomcatServerBehaviour.java:340) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish2(ServerBehaviourDelegate.java:1072) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:782) at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3331) at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:353) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
I have environment variables defined for both CATALINA_HOME and CATALINA_BASE.
I can start tomcat as a windows service and it starts fine, app runs fine. I can add a Debug Config that uses the external tomcat server, and it runs fine, but I cannot publish to it. I have to manually add vm arguments and jar files to get it to run, and manually point it to my source code. This is a big pain of a workaround. This app runs fine in MyE 2014 and earlier. This is a *huge* pain and regression in behavior, seriously considering switching to another IDE after years of using MyE. Already wasted 2 days on this nonsense. Someone help, please.
support-piotrParticipantMike,
I am really sorry that your recent experience with MyEclipse has been so frustrating! I am sure we will be able to put you back on dev track quickly. From the stack trace, my guess is that your server.xml configuration file is somehow malformed (missing/broken <Host> element) and connector cannot locate information related to auto-deployment folder. If so, we will correct MyEclipse to better inform users about such a situation in the future. However, please send us your server.xml file, so that I can make sure that this is exactly the case and I could also help you to correct the file in such a case. On the other hand, if it would turn out that this is indeed a bug with MyEclipse, which blocks your work, we will provide you with a patch, so that you can start working ASAP 🙂
tl9222MemberI met the same problem before, and I solve it with following steps:
Try Right click on the “MyEclipse” icon, and use “Open with administrator privileges” to open MyEclipse.
Then I could deploy the Web Project from MyEclipse to the Tomcat.
The reason for my problem is that I setup my MyEclipse and it’s workspace(that is where the Web Project is ) on C Disk, which need administrator privileges to deploy Project.
In order to aviod this inconvenient open step(I mean evertime have to open MyEclipse with Right click for administrator privileges), I finally resetup MyEclipse from C Disk to D disk(which is not the System Dick).Also I put Tomcat away from C Disk(I’m not sure whether tomcat should be away from C Disk if not use administrator privileges to deploy).
Hope this could be help.
support-piotrParticipanttl9222,
Thanks for the information! Let’s see if it helps Mike.
mikekonikoffMember@support-piotr wrote:
tl9222,
Thanks for the information! Let’s see if it helps Mike.
Thanks very much for the suggestion to run as admin, however it did not work for me.
Piotr’s suggestion to check the server.xml did lead me to a solution using the MyEclipse Tomcat v7.0 server. I had to modify the Host entry from what we had been using (an absolute path to appBase and a custom host name) to simply appBase=”webapps” and name=”localhost”. I also had to configure the runtime environment for this server, manually adding all the jars from the embedded tomcat core plugin’s lib directory (having to do this step seems very odd, shouldn’t embedded tomcat know about it’s own jar lib?) After that, everything started working.
However, the same procedure did not work for external tomcat. The error that it gives now is:
!ENTRY org.eclipse.jst.server.tomcat.core 4 0 2015-04-09 11:42:40.072 !MESSAGE Removing obsolete files from server... !SUBENTRY 1 org.eclipse.jst.server.tomcat.core 4 0 2015-04-09 11:42:40.072 !MESSAGE Could not clean server of obsolete files: null !STACK 0 java.lang.NullPointerException at org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHelper.getCatalinaServerInstance(TomcatVersionHelper.java:219) at org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHelper.cleanupCatalinaServer(TomcatVersionHelper.java:296) at org.eclipse.jst.server.tomcat.core.internal.Tomcat70Configuration.cleanupServer(Tomcat70Configuration.java:732) at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.publishServer(TomcatServerBehaviour.java:261) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish2(ServerBehaviourDelegate.java:1028) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:782) at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3331) at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:353) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Other weirdness:
-
* To get the “Store server configuration files in the workspace” option to be enabled on the external tomcat 7, I had to open the Server Overview page, attempt to start the server, then the checkbox was no longer disabled.
* There is no Save button on the Server Overview page. To get the “Store server configuration files in the workspace” settings to save, I had to close the page, and was then presented with “Tomcat v7.0 Server at … has been modified. Save changes?”
I would like to have the option to run my app on external tomcat, in case I want to use a different version than comes embedded with MyE. I would also like the option to run more than one host, with different host names. I can’t get either of these things to work in MyE 2015 without setting up a separate Debug configuration for the external tomcat server, a cumbersome process.
I’d appreciate any assistance you can provide. I’ve attached my server.xml files, one is the working one for embedded tomcat, the other is the non-working one for external tomcat.
Attachments:
You must be logged in to view attached files.
support-piotrParticipantMike,
I am glad it started to work with at least Embedded Tomcat. I need some time to investigate this issue further; you can expect something tomorrow. I hope I will be able to reproduce your issues and come up with the solution for external Tomcat as well.
To get the “Store server configuration files in the workspace” option to be enabled on the external tomcat 7, I had to open the Server Overview page, attempt to start the server, then the checkbox was no longer disabled.
Actually, you just have to invoke publish on the server. The server has to be published with no modules present so that there are no issues when you change configuration location. I will note down to make it more clear.
There is no Save button on the Server Overview page. To get the “Store server configuration files in the workspace” settings to save, I had to close the page, and was then presented with “Tomcat v7.0 Server at … has been modified. Save changes?”
Server configuration is just another editor, so the save button is on toolbar and in menu Edit- > Save.
I would also like the option to run more than one host, with different host names.
I don’t recall such an option in any version of ME. That’s an interesting use case and I will file this as an enhancement. I’ll let you know when the feature is complete.
Please let us know if you have any further questions or issues!
support-piotrParticipantMike,
I am sorry, but I have not been able to start debugging your issue due to other high priority tasks. I hope to get to this in 2 or 3 days. In any case I will keep you posted on the progress.
support-swapnaModeratorMike,
The fix for the issue with publishing on Tomcat is out with our latest CI release, MyEclipse 2015 CI 13.
We have also added ‘Remove any modules and publish’ button besides the message ‘Server must be published with no modules present to make any changes to this section’ in the Tomcat Overview page.Please go to Help > Check for Updates and update to CI 13.
Let us know if you see any issues.
–Swapna
MyEclipse Support -
AuthorPosts