source path

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

source path

Postby edross » Fri Jan 29, 2010 3:21 am

I have two eclipse projects - one with the data model and the other with GWT items. I would like to use many classes of the data model project inside of my GWT project.

What is the correct method to accomplish this goal. Here is what I've tried.

1 - Include the model project as part of the build path on the GWT project
2 - Modify the gwt.xml file to include a path statement

Ive tried
<source path="" />
<source path="com/cc/model"
<public path=""/>

Seems no mater what I put there I get a stack trace

com.instantiations.designer.core.utils.exception.DesignerException: 4102 (Error loading module(s).).
at com.instantiations.designer.gwt.parser.ParseFactory.getClassLoader(
at com.instantiations.designer.core.parser.AbstractParseFactory.initializeClassLoader(
at com.instantiations.designer.gwt.parser.ParseFactory.getRootContext(
at com.instantiations.designer.core.parser.JavaInfoParser.prepareParseContext(
at com.instantiations.designer.core.parser.JavaInfoParser.parse(
at com.instantiations.designer.core.parser.JavaInfoParser.access$9(
at com.instantiations.designer.core.parser.JavaInfoParser$1.runObject(
at com.instantiations.designer.core.parser.JavaInfoParser$1.runObject(
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTime(
at com.instantiations.designer.core.parser.JavaInfoParser.parse(
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(
at com.instantiations.designer.core.editor.DesignPage.access$9(
at com.instantiations.designer.core.editor.DesignPage$7$
at org.eclipse.swt.widgets.Synchronizer.syncExec(
at org.eclipse.ui.internal.UISynchronizer.syncExec(
at org.eclipse.swt.widgets.Display.syncExec(
at com.instantiations.designer.core.editor.DesignPage$
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(
at com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(
at com.instantiations.designer.core.editor.DesignPage.refreshGEF(
Posts: 6
Joined: Fri Jan 29, 2010 3:12 am

Re: source path

Postby Eric Clayberg » Fri Jan 29, 2010 8:41 am

Does your code actually run in GWT hosted mode? GWT Designer does not impose any requirements on your project structure beyond those required by GWT itself. If your project and dependencies are set up correctly from GWT's point of view, GWT Designer should be fine with it as well.

In general, we need to see an actual test case and your complete Eclipse ".log" file and ".gwt-log" file. That exception fragment doesn't tell us anything.

It is best to click the "Contact Support" button in the error window and submit the case that way.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest