And in other bonus news, something really odd is going on.  I blew away the 
.m2 and .groovy as suggested on
stackoverflow for @grab issues, and the message is now:

Caught: BUG! exception in phase 'conversion' in source unit 
'/Users/user1/torgo' # Licensed to the Apache Software Foundation (ASF) 
under one or more
BUG! exception in phase 'conversion' in source unit '/Users/user1/torgo' # 
Licensed to the Apache Software Foundation (ASF) under one or more

when @Grab includes geb....



On Monday, September 26, 2016 at 5:39:37 PM UTC-4, Dan Schmitt wrote:
>
> And further testing, it's just something with @Grab and the geb stuff 
> (selenium and tagsoup load fine):
>
> #!/bin/bash
> //usr/bin/env groovy  -cp extra.jar:spring.jar:etc.jar -d 
> -Dlog4j.configuration=file:/etc/myapp/log4j.xml "$0" $@; exit $?
>
>
> // @Grab(group='org.gebish',module='geb-spock', version='1.0-rc-1')
> @Grab(group='org.seleniumhq.selenium',module='selenium-firefox-driver', 
> version='2.51.0')
> @Grab(group='org.seleniumhq.selenium',module='selenium-support', 
> version='2.51.0')
>
> @Grab(group='org.ccil.cowan.tagsoup',
>       module='tagsoup', version='1.2' )
> def tagsoupParser = new org.ccil.cowan.tagsoup.Parser()
> def slurper = new XmlSlurper(tagsoupParser)
> def htmlParser = slurper.parse("http://stackoverflow.com/";)
>
> htmlParser.'**'.findAll{ it.@class == 'question-hyperlink'}.each {
>     println it
> }
>
>
> On Monday, June 6, 2016 at 7:32:43 PM UTC-4, Sean Lanter wrote:
>>
>> I have a 2-line script "example.groovy" that does nothing more than 
>> create a default Browser:
>>
>>    import geb.Browser
>>    def browser = new Browser()
>>
>> When I run it as follows:
>>
>>    groovy -cp 
>> geb-core-0.13.1.jar:selenium-server-standalone-2.53.0.jar:.  example.groovy
>>
>> this is what comes back:
>>
>>    Caught: java.lang.NoClassDefFoundError: geb/error/UnableToLoadException
>>    java.lang.NoClassDefFoundError: geb/error/UnableToLoadException
>>        at geb.Browser.<init>(Browser.groovy:58)
>>        at example.run(example.groovy:2)
>>
>> The script and the two jars file are all in the same directory.
>>
>> I am certain I am missing something obvious...  Can someone point out 
>> what I am overlooking?
>>
>> TIA!
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/4219f449-dcd1-4169-8499-7e068c835a1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to