title: Referencing a GWT project from another GWT one - Problems
body: <p>I am already using an open source GWT project (iServe) and I would like to integrate into it another open source GWT project (PetalsBPM), by which I mean being able to call it and reference its methods. </p>
  
  <p>I have imported iServe in Eclipse (it has multiple modules) as separate Maven projects referencing its other and can run it successfully through Runas -> Web application in development mode. </p>
  
  <p>If I do that and run the other project through the console as mvn gwt:run, I call initiate PetalsMBP through iServe. However, that means that the two programs have to run as is, without communication with each other. </p>
  
  <p>I have also imported the second project into eclipse as a java project successfully (converting into a Maven one causes problems - various lifecycle configurations ones), but whenever I try to add to to iServe through Properties -> Java Build Path -> Projects, although it does not cause any errors immediately, I cannot launch iServe anymore. It produces the following error: </p>
  
  <p><em>"Exception occurred executing command line.
  Cannot run program "C:\Program Files\Java\jre7\bin\javaw.exe" (in directory "C:...iserve-sal-gwt-1.0.0-SNAPSHOT"): CreateProcess error=206, The filename or extension is too long"</em></p>
  
  <p>Are my problems related to the fact that PetalsBPM is not a Maven project in Eclipse (I doubt it)?
  Am I doing something wrong, i.e., this is not the way to reference a project from another one? should I add a reference to the first project's (iServe) gwt.xml file?
  Is there a way to do what I want without having to wrap the second project as a jar and calling it from iServe? I would prefer not to, since producing a jar every time I make a slight change is not exactly efficient! </p>
  
  <p>P.S: The second project is a regular GWT project with an entrypoint, not just a module. Should I remove this?</p>
  
  <hr>
  
  <p><strong>UPDATE:</strong> Trying to figure out the source of this error, I attempted to simplify the problem, so I performed the following moves:</p>
  
  <ol>
  <li>I created two new simple GWT projects and tried to reference one
  from the other. Worked fine </li>
  <li>I referenced the project I actually want
      to use (PetalsBPM) from the simple one I just created. Also works
      fine.</li>
  <li>I referenced the new simple project from the original one I
          want to use (iServe). Also works fine.</li>
  <li>Tried doing what I actually
      want to do, copying the settings from 2&amp;3. Produces the same error
      "CreateProcess error=206, The filename or extension is too long" if
      I reference PetalsBPM (does not when I remove it from the referenced
      projects)</li>
  </ol>
  
  <p>So, I tried switching workspaces. I created a new workspace in C:\, and moved the actual projects there. Still it did not work. :( </p>
  
  <p>Any more ideas?</p>