facebook

Problems converting java project

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #196504 Reply

    tzhgosh1
    Member

    hi,
    I have created a simple java project, with the structure:
    Test2
    Test2/src
    Test2/WebRoot
    Test2/WebRoot/lib
    Test2/WebRoot/classes

    I am try to convert this to a Web Module Project as per your instructions.

    I select Test2>MyEclipse>WebProject Configuration.

    Then I select Browse for the WebRoot Directory.
    Nothing pops up, and when I look in the log file I see the following error.

    Any ideas?

    Thanks
    Sharon
    !SESSION Jun 26, 2003 17:52:56.852 ———————————————
    java.version=1.4.0_02
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_CH
    Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/
    !ENTRY org.eclipse.ui 4 4 Jun 26, 2003 17:52:56.852
    !MESSAGE Unhandled exception caught in event loop.
    !ENTRY org.eclipse.ui 4 0 Jun 26, 2003 17:52:56.852
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.j2eedt.ui.wizard.WebProjectConversionMainWizardPage.ā(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.WebProjectConversionMainWizardPage.Ć(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.WebProjectConversionMainWizardPage$A.changeControlPressed(Unknown Source)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.StringButtonDialogField.changeControlPressed(StringButtonDialogField.java:56)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.StringButtonDialogField$1.widgetSelected(StringButtonDialogField.java:113)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
    at org.eclipse.jface.window.Window.open(Window.java:563)
    at com.genuitec.eclipse.j2eedt.ui.action.WebProjectConversionActionDelegate.basicRun(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.action.WebProjectConversionActionDelegate.run(Unknown Source)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
    at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
    at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
    at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
    at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:845)
    at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
    at org.eclipse.core.launcher.Main.run(Main.java:747)
    at org.eclipse.core.launcher.Main.main(Main.java:583)

    #196505 Reply

    Scott Anderson
    Participant

    Well, I gave this example a try and was unable to reproduce the problem, but obviously something is amiss here.

    First, even though it worked for me as specified, the lib and classes subdirectories should be contained in WebRoot/WEB-INF, not in WebRoot itself.

    Also, can you verify exactly which versions of MyEclipse and Eclipse you are using? The Eclipse version can be found by navigating to Help->About Eclipse Platform and reporting the Version and Build Id fields. The MyEclipse version can be found on the same dialog once ‘Feature Details’ is selected.

    –Scott
    MyEclipse Support

    #196584 Reply

    tzhgosh1
    Member

    I tried this again, and still had the same result.
    Version and build for Eclipse:
    Version: 2.1.0
    Build id: 200303272130

    MyEclipse 2.1.1

    Thanks,
    Sharon

    #196586 Reply

    Scott Anderson
    Participant

    Sharon,

    Even though I couldn’t directly recreate the problem, I’ve entered this as a defect into our internal tracking system so that it will have to be cleared before the GA release.

    To help us run this down: Does the project you’re converting happen to be the only project in your workspace?

    As a workaround, would you try creating, rather than converting, the project with the “new web project” wizard. Then, move the files you need from your test project to the new one. Please let me know if that works as expected.

    –Scott
    MyEclipse Support

    #200425 Reply

    amus
    Member

    Hello,
    I have the same problem and th same error with myEclipse
    I’ve tried to convert some projects and it does’nt work
    Even on new project it is the same error
    i am working in a bank and for the others it’s working

    #200429 Reply

    Scott Anderson
    Participant

    Amus,

    Please post your full configuration information as we request in the Posting Guidelines thread in this forum and one of our support engineers will be glad to look at this. Have you tried to determine what’s different in your environment versus the others where you work where everything is working correctly?

    –Scott
    MyEclipse Support

    #200456 Reply

    amus
    Member

    My eclipse version is the same than the others have :
    Eclipse Platform

    Version: 2.1.1
    Build id: 200306271545
    i use the j2sdk1.4.1_01 but i have tried this with the jre1.3 too

    #200459 Reply

    support-michael
    Keymaster

    Thanks for the feedback. We are researching this problem now. Can you tell me more about about your project configuration (e.g., linked resources used) or better yet send me a copy of a problematic project that we can test against? If yes, email a zipped project to support@genuitec.com and address to my attention.

    Regards,

    Michael
    MyEclipse Support

    #201575 Reply

    Hi,

    I’m experiencing the same problem. I only installed Eclipse and myEclipse yesterday for the first time (very impressive apart from this!) and can replicate the problem starting from a completely clean workspace (no projects) as follows:

    1. Create new java project

    2. Go to project properties
    ->Java build path
    ->source tab
    ->add new folder called ‘src’
    ->ok
    ->ok
    ->Confirm that I want to remove project as source folder and update build output folder
    ->OK

    3. Right click on project and select myeclipse-> add webproject capabilities

    …The browse button depresses but has no effect, same with the finish button and I get the same error as earlier in this thread

    My info is:

    What operating system and version are you running? Windows 2000 5.00.2195 SP4, fully patched

    What Eclipse version and build id are you using? Version 2.1.2 build id 200311030802
    – Was Eclipse freshly installed for MyEclipse? Yes, yesterday
    – If not, was it upgraded to its current version using the update manager?
    – Are any other external plugins installed? No
    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.* 7

    What MyEclipse version are you using? 2.6.200

    What JDK version are you using to run Eclipse? (java -version) 1.4.0_01

    What JDK version are you using to launch your application server? 1.4.0_01

    What steps did you take that resulted in the issue? See above

    What application server are you using? Tomcat 5

    Hope this all helps.

    #201581 Reply

    Riyad Kalla
    Member

    Scott,
    When you tried to reproduce this problem, were you running on Windows XP? I wonder if this is a OS-specific issue.

    I’m running XP,E2.1.2,ME2.7RC2 and just tried this and it worked fine.

    #201617 Reply

    Scott Anderson
    Participant

    All,

    I believe this might be an issue with using JDK 1.4.0 with Eclipse. 1.4.0 was notoriously buggy and has been problematic in many areas. If possible, I’d suggest installing a current JDK version and retesting.

    –Scott
    MyEclipse Support

    #201695 Reply

    It worked! I updated to 1.4.2 and now have no problem.

    Many thanks for the swift response – I shall buy my subscription straight away…

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Problems converting java project

You must be logged in to post in the forum log in