[rules-dev] Problem setting up Guvnor to run in hosted mode in eclipse

Mikael Lönneberg emil at snickeboa.com
Wed Nov 2 09:31:00 EDT 2011


Yes it seems to be persistent, I have attached the startup log. I've tried
restarting it a 3-4 times

/Mikael

On Wed, Nov 2, 2011 at 2:14 PM, Michael Anstis <michael.anstis at gmail.com>wrote:

> Is this error persistent?
>
> Sometimes I get errors relating to Logger on start-up and refreshing the
> browser causes it to disappear.
>
> I don't get it all the time, just occasionally.
>
>
> On 2 November 2011 12:53, Mikael Lönneberg <emil at snickeboa.com> wrote:
>
>> Thanks for your help so far, your advice got me a bit further but now I
>> get the following error:
>>
>> Starting Jetty on port 8888
>>    [WARN] Failed startup of context
>> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload at 5b24dfa8
>> {/,/home/miklo/workspace-drools/guvnor/guvnor-webapp/target/guvnor-webapp-5.4.0-SNAPSHOT}
>> org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied
>> dependencies for type [Logger] with qualifiers [@Default] at injection
>> point [[field] @Inject
>> org.jboss.seam.security.permission.SecurityRuleLoader.log]
>>  at
>> org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:270)
>> at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:106)
>>  at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:129)
>> at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:351)
>>  ---- 8< ----------------
>>
>> This seams to be seam related, but as I have never worked with seam
>> before I don't really know how to start troubleshooting it.
>>
>> /Mikael
>>
>>
>> On Wed, Nov 2, 2011 at 12:50 PM, Michael Anstis <michael.anstis at gmail.com
>> > wrote:
>>
>>> In the project properties, set Google->Web Application->This project has
>>> a WAR directory to "target/guvnor-webapp-5.4.0-SNAPSHOT" (will be different
>>> with different versions).
>>>
>>> My run config is as follows:-
>>>
>>> *Main class ("Main" tab in the run config)
>>> *com.google.gwt.dev.DevMode
>>>
>>> *Program arguments ("Arguments" tab in the run config)
>>> *-war
>>> /home/manstis/workspaces/git/droolsjbpm/guvnor/guvnor-webapp/target/guvnor-webapp-5.4.0-SNAPSHOT
>>> -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl index.jsp
>>> -logLevel INFO -codeServerPort 9997 -port 8888
>>> org.drools.guvnor.FastCompiledGuvnor org.drools.guvnor.Guvnor
>>>
>>> Jervis Liu (jliu, on #guvnor) also has problems running from within
>>> Eclipse and we hope to try to work together tomorrow to resolve. I don't
>>> know if his problem is identical to yours.
>>>
>>> I've seen the error you report, but usually refreshing the project in
>>> Eclipse makes it disappear (not sure if it is concidental, but I normally
>>> refresh after mvn -clean -install'ing... and don't experience your problem).
>>>
>>> Have a try and let me know....
>>>
>>>
>>> On 2 November 2011 11:41, Mikael Lönneberg <emil at snickeboa.com> wrote:
>>>
>>>> Yes I'm running the Master branch. I tried to run it following the
>>>> instructions in the readme:
>>>>
>>>> Run GWT in hosted mode
>>>>
>>>>    - Open menu *Run*, menu item *Run configurations...*
>>>>    - In the list, select *Web Application*, button *new launch
>>>>    configuration*
>>>>    - Tab *Main*, Project: guvnor-webapp
>>>>    - Tab *GWT*, list *Available Modules*: Guvnor - org.drools.guvnor
>>>>    - Tab *GWT*, textfield *URL*: org.drools.guvnor.Guvnor/Guvnor.html
>>>>    - Button *Run*.
>>>>
>>>>
>>>>
>>>> In my Run Configuration I have the following arguments -war
>>>> /home/miklo/workspace-drools/guvnor/guvnor-webapp/target -remoteUI
>>>> "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl
>>>> 'org.drools.guvnor.Guvnor/Guvnor.html' -logLevel INFO -codeServerPort 9997
>>>> -port 8888 org.drools.guvnor.FastCompiledGuvnor
>>>>
>>>> Where do I set it up to use an external WAR folder?
>>>>
>>>> Should I do something different?
>>>>
>>>> Kind Regards
>>>>
>>>> Mikael
>>>>
>>>> On Wed, Nov 2, 2011 at 10:38 AM, Michael Anstis <
>>>> michael.anstis at gmail.com> wrote:
>>>>
>>>>> Are you using the master branch?
>>>>>
>>>>> How are you running the application in Eclipse?
>>>>>
>>>>> Since the move to Seam 3 I have found I need to set the project to use
>>>>> an external WAR folder, rather than simply run as GWT Web Application.
>>>>>
>>>>> On 2 November 2011 05:55, Mikael Lönneberg <emil at snickeboa.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I hope one of you nice people will be able to help.
>>>>>> I'm trying to setup Guvnor for development and debugging in eclipse
>>>>>> in hopes of being able to contribute. However I have spent a couple of days
>>>>>> now trying to get it setup but I keep running into problems.
>>>>>> Now when I try to run it I get
>>>>>> Loading modules
>>>>>>    org.drools.guvnor.FastCompiledGuvnor
>>>>>>       Loading inherited module 'org.drools.guvnor.Guvnor'
>>>>>>          [ERROR] Unable to load class
>>>>>> 'org.drools.guvnor.gwtutil.PerspectiveFactoryGenerator'
>>>>>> java.lang.ClassNotFoundException:
>>>>>> org.drools.guvnor.gwtutil.PerspectiveFactoryGenerator
>>>>>>
>>>>>> Full stacktrace is included in an attachment. I get the same error
>>>>>> when I run mvn gwt:compile on the command line.
>>>>>> mvn clean install -DskipTests runs fine without errors and reporting
>>>>>> success.
>>>>>>
>>>>>> Any pointers to other guides that I could follow apart from the
>>>>>> droolsjbpm-build-bootstrap/readme
>>>>>>
>>>>>>
>>>>>> Kind Regards
>>>>>>
>>>>>> Mikael Lönneberg (gwendo)
>>>>>>
>>>>>> _______________________________________________
>>>>>> rules-dev mailing list
>>>>>> rules-dev at lists.jboss.org
>>>>>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> rules-dev mailing list
>>>>> rules-dev at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> rules-dev mailing list
>>>> rules-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>>>
>>>>
>>>
>>> _______________________________________________
>>> rules-dev mailing list
>>> rules-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>>
>>>
>>
>> _______________________________________________
>> rules-dev mailing list
>> rules-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>
>>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20111102/06e3f60d/attachment-0001.html 
-------------- next part --------------
Loading modules
   org.drools.guvnor.FastCompiledGuvnor
      Validating <servlet> tags for module 'org.drools.guvnor.Guvnor'
      For additional info see: file:/home/miklo/opt/gwt-2.3.0/doc/helpInfo/servletMappings.html
         [WARN] Module declares a servlet class 'org.gridcc.mce.mceworkflow.servlets.WorkflowManagerServlet' with a mapping to '/org.drools.guvnor.Guvnor/workflowmanager', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>WorkflowManagerServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/workflowmanager</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.StandaloneEditorServlet' with a mapping to '/org.drools.guvnor.Guvnor/standaloneEditorServlet', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>StandaloneEditorServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/standaloneEditorServlet</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.gridcc.mce.mceworkflow.servlets.WSDLParserServlet' with a mapping to '/org.drools.guvnor.Guvnor/wsdlparser', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>WSDLParserServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/wsdlparser</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.files.RestAPIServlet' with a mapping to '/org.drools.guvnor.Guvnor/api', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>RestAPIServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/api</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.files.PackageDeploymentServlet' with a mapping to '/org.drools.guvnor.Guvnor/package', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>PackageDeploymentServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/package</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.files.OryxEditorServlet' with a mapping to '/org.drools.guvnor.Guvnor/oryxeditor', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>OryxEditorServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/oryxeditor</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.files.WebdavServlet' with a mapping to '/org.drools.guvnor.Guvnor/webdav', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>WebdavServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/webdav</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.files.FeedServlet' with a mapping to '/org.drools.guvnor.Guvnor/feed', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>FeedServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/feed</url-pattern>
</servlet-mapping>
   org.drools.guvnor.Guvnor
      Validating <servlet> tags for module 'org.drools.guvnor.Guvnor'
      For additional info see: file:/home/miklo/opt/gwt-2.3.0/doc/helpInfo/servletMappings.html
         [WARN] Module declares a servlet class 'org.gridcc.mce.mceworkflow.servlets.WorkflowManagerServlet' with a mapping to '/org.drools.guvnor.Guvnor/workflowmanager', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>WorkflowManagerServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/workflowmanager</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.StandaloneEditorServlet' with a mapping to '/org.drools.guvnor.Guvnor/standaloneEditorServlet', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>StandaloneEditorServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/standaloneEditorServlet</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.gridcc.mce.mceworkflow.servlets.WSDLParserServlet' with a mapping to '/org.drools.guvnor.Guvnor/wsdlparser', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>WSDLParserServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/wsdlparser</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.files.RestAPIServlet' with a mapping to '/org.drools.guvnor.Guvnor/api', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>RestAPIServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/api</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.files.PackageDeploymentServlet' with a mapping to '/org.drools.guvnor.Guvnor/package', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>PackageDeploymentServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/package</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.files.OryxEditorServlet' with a mapping to '/org.drools.guvnor.Guvnor/oryxeditor', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>OryxEditorServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/oryxeditor</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.files.WebdavServlet' with a mapping to '/org.drools.guvnor.Guvnor/webdav', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>WebdavServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/webdav</url-pattern>
</servlet-mapping>
         [WARN] Module declares a servlet class 'org.drools.guvnor.server.files.FeedServlet' with a mapping to '/org.drools.guvnor.Guvnor/feed', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
  <servlet-name>FeedServlet</servlet-name>
  <url-pattern>/org.drools.guvnor.Guvnor/feed</url-pattern>
</servlet-mapping>
SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version
[WARN] Server class 'javax.el.ExpressionFactory' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/miklo/.m2/repository/javax/el/el-api/1.2/el-api-1.2.jar' to the web app classpath for this session
   For additional info see: file:/home/miklo/opt/gwt-2.3.0/doc/helpInfo/webAppClassPath.html
Nov 2, 2011 2:27:55 PM org.jboss.weld.util.ServiceLoader loadClass
WARNING: Could not load service class org.jboss.seam.transaction.TransactionExtension
Nov 2, 2011 2:27:55 PM org.jboss.weld.util.ServiceLoader loadClass
WARNING: Could not load service class org.jboss.seam.transaction.scope.TransactionScopeExtension
[WARN] Server class 'org.jboss.solder.bean.ContextualLifecycle' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/miklo/.m2/repository/org/jboss/solder/solder-impl/3.1.0.Beta4/solder-impl-3.1.0.Beta4.jar' to the web app classpath for this session
   For additional info see: file:/home/miklo/opt/gwt-2.3.0/doc/helpInfo/webAppClassPath.html
[WARN] Server class 'com.google.gwt.dev.HostedMode' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/miklo/opt/gwt-2.3.0/gwt-dev.jar' to the web app classpath for this session
   For additional info see: file:/home/miklo/opt/gwt-2.3.0/doc/helpInfo/webAppClassPath.html
[WARN] Server class 'org.jboss.seam.remoting.annotations.WebRemote' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/miklo/.m2/repository/org/jboss/seam/remoting/seam-remoting/3.1.0.Beta4/seam-remoting-3.1.0.Beta4.jar' to the web app classpath for this session
   For additional info see: file:/home/miklo/opt/gwt-2.3.0/doc/helpInfo/webAppClassPath.html
Starting Jetty on port 8888
   [WARN] Failed startup of context com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload at 444cc84d{/,/home/miklo/workspace-drools/guvnor/guvnor-webapp/target/guvnor-webapp-5.4.0-SNAPSHOT}
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [Logger] with qualifiers [@Default] at injection point [[field] @Inject org.jboss.seam.security.permission.SecurityRuleLoader.log]
	at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:270)
	at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:106)
	at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:129)
	at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:351)
	at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:336)
	at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:404)
	at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:206)
	at org.drools.guvnor.server.repository.SafeWeldListener.contextInitialized(SafeWeldListener.java:54)
	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:543)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
	at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:463)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
	at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
	at org.mortbay.jetty.Server.doStart(Server.java:222)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
	at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:667)
	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
	at com.google.gwt.dev.DevMode.main(DevMode.java:309)


More information about the rules-dev mailing list