tag:jbilling.tenderapp.com,2012-10-15:/discussions/problems/576-jbilling-411-ce-import-to-eclipsejBilling: Discussion 2016-08-12T03:58:12Ztag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-01-08T08:21:08Z2016-01-08T09:47:43Zjbilling 4.1.1 CE import to eclipse. <div><p>Hi<br>
i am ussing GGTS (groovy grails tools suite<br>
is there any error trace?<br>
maven can fail in some case because of some bug related to
HTTPS</p></div>ahmed.drira@gmail.comtag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-01-08T15:45:03Z2016-01-08T15:45:04Zjbilling 4.1.1 CE import to eclipse. <div><p>Hi Ahmed,</p>
<p>There were no errors during import itself but there were errors
during project building I fixed some them manually. e.g. it
couldn't find spring classes and I specified the path to
testlib/spring and most of the errors have gone. But I think its
not the right way to resolve the issue There is probably something
wrong with the import procedure or env. settings. I currently have
the following building error:<br>
Description Resource Path Location Type<br>
The project was not built since its build path is incomplete.
Cannot find the class file for
org.springframework.dao.DataAccessResourceFailureException. Fix the
build path then try building this project
jbilling-example-ws-client Unknown Java Problem</p>
<p>How do you use GGTS? Can you describe it step by step? Any
specific steps you do with it?<br>
I have it installed as well but it doesn't help much so far.</p>
<p>Thanks a lot!</p></div>Alextag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-01-09T22:11:05Z2016-01-10T15:17:10Zjbilling 4.1.1 CE import to eclipse. <div><p>Update:<br>
I've found how to fix the problem above.<br>
I set the correct path for Resource->Linked
Resource->link_to_grails_plugin<br>
that was GRAILS_ROOT/2.4.3/projects/jbilling-telco-4.0.0/plugins by
default.<br>
I changed it to the correct value which in my case is
~/.grails/2.4.3/projects/jbilling-community-4.1.1/plugins</p>
<p>Then I had to include Groovy libs (Groovy->Add Libraries to
the class path)<br>
There was another problem with org.codehaus.groovy.grails.commons.*
import.<br>
so I added the path grails-core.jar to the libs path.</p>
<p>Now I have the error:<br>
Errors occurred during the build.<br>
Errors running builder 'Java Builder' on project
'jbilling-example-ws-client'.<br>
org/springframework/core/io/Resource</p>
<p>Eclipse log:<br>
!MESSAGE Errors running builder 'Java Builder' on project
'jbilling-example-ws-client'. !STACK 0
java.lang.NoClassDefFoundError:
org/springframework/core/io/Resource<br>
at java.lang.Class.forName0(Native Method)<br>
at java.lang.Class.forName(Class.java:274)<br>
at<br>
...
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)<br>
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)<br>
Caused by: java.lang.ClassNotFoundException:
org.springframework.core.io.Resource<br>
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)<br>
..</p>
<p>Looks like eclipse cannot find spring framework jars. How they
can be imported/configured?<br>
The same problem with hibernate and some other libraries.</p></div>Alextag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-01-12T18:53:20Z2016-01-12T18:53:22Zjbilling 4.1.1 CE import to eclipse. <div><p>Finally, I was able to import the project properly. To do that I
installed Grails IDE plugin and imported the project as a grails
projects.</p>
<p>Now I have an issue with the source code in the test
directory.<br>
I have plenty of messages like the one below. It looks like some
dependancies are still missing.</p>
<p>Description Resource Path Location Type<br>
BaseCxfMap cannot be resolved to a type CxfMapAdapterTest.java
/jbilling-community-4.1.1/test/unit/com/sapienter/jbilling/server/util/cxf
line 75 Java Problem</p>
<p>Does anybody know how fix this?</p>
<p>Thanks.</p></div>Alextag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-02-18T03:42:21Z2016-02-18T03:42:23Zjbilling 4.1.1 CE import to eclipse. <div><p>Anybody knows how to import jbilling 4 in GGTS? Please share
it.</p>
<p>Thanks<br>
Sindhu</p></div>sindhutag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-02-18T08:43:22Z2016-02-18T08:43:22Zjbilling 4.1.1 CE import to eclipse. <div><p>i am working on that ,<br>
i suppose if the source code is clean and can be compiled without
error it<br>
can be imported on an ide like GGTS,<br>
i have juste to make the right configuration between the project
and the<br>
IDE</p>
<p>i am working on jbilling 4 under ubuntu installed on a virtual
machine</p>
<p>if it will success i will share all the Virtual machine
containning all<br>
the dev environnement</p></div>ahmed.drira@gmail.comtag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-02-18T10:30:47Z2016-02-18T10:30:47Zjbilling 4.1.1 CE import to eclipse. <div><p>Sindhu - You can simply extract the source zip at a particular
location and<br>
then import existing project from GGTS. That should do it.</p>
<p>The rest is simple, configure the build path.</p>
<p>Alternately, create a new project in GGTS, once created, replace
the entire<br>
source with the jBilling Source extracted folder.</p>
<p>Vikas</p></div>Vikas@WebDataTechnologiesLLPtag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-02-18T11:07:06Z2016-02-18T11:07:06Zjbilling 4.1.1 CE import to eclipse. <div><p>@vikas i have an issue with grails plugins the ide don't
recognise them<br>
how can i attach them to the build path ,</p>
<p>i don't have this issue with jbilling 3 , only with jbilling
4</p></div>ahmed.drira@gmail.comtag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-02-18T15:49:06Z2016-02-18T15:49:06Zjbilling 4.1.1 CE import to eclipse. <div><p>Thank you for the question Ahmed. On version 4, we may not have
to attach<br>
them to the BuildPath. Since the plugins are in BuildConfig.groovy,
GGTS<br>
should automatically collect them as a dependency on the path.<br>
And the grails build system will recognize them as well.</p>
<p>Vikas</p></div>Vikas@WebDataTechnologiesLLPtag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-02-24T13:00:54Z2016-02-24T13:00:54Zjbilling 4.1.1 CE import to eclipse. <div><p>Hi Vikas</p>
<p>using GGTS , i have resolved build path problems , now i am
facing this issue<br>
févr. 24, 2016 1:55:47 PM org.springsource.loaded.jvm.JVM
copyMethod<br>
GRAVE: Problems copying method. Incompatible JVM?<br>
java.lang.reflect.InvocationTargetException<br>
at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497) at
org.springsource.loaded.jvm.JVM.copyMethod(JVM.java:134) at
org.springsource.loaded.ri.OriginalClassInvoker.createJavaMethod(OriginalClassInvoker.java:68)
at
org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetDeclaredMethods(ReflectiveInterceptor.java:151)
at
org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)
at java.security.AccessController.doPrivileged(Native Method) at
org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81)
at
org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79)
at
org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
at
org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
at
org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250)
at
org.codehaus.groovy.reflection.stdclasses.CachedClosureClass.(CachedClosureClass.java:29)
at
org.codehaus.groovy.reflection.ClassInfo.createCachedClass(ClassInfo.java:312)
at
org.codehaus.groovy.reflection.ClassInfo.access$400(ClassInfo.java:37)
at
org.codehaus.groovy.reflection.ClassInfo$LazyCachedClassRef.initValue(ClassInfo.java:484)
at
org.codehaus.groovy.reflection.ClassInfo$LazyCachedClassRef.initValue(ClassInfo.java:475)
at
org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
at
org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
at
org.codehaus.groovy.reflection.ClassInfo.getCachedClass(ClassInfo.java:94)
at
org.codehaus.groovy.reflection.ReflectionCache.getCachedClass(ReflectionCache.java:107)
at groovy.lang.MetaClassImpl.(MetaClassImpl.java:175) at
groovy.lang.MetaClassImpl.(MetaClassImpl.java:211) at
groovy.lang.ExpandoMetaClass.(ExpandoMetaClass.java:301) at
groovy.lang.ExpandoMetaClass.(ExpandoMetaClass.java:297) at
groovy.lang.ExpandoMetaClass.(ExpandoMetaClass.java:344) at
groovy.lang.ExpandoMetaClassCreationHandle.createNormalMetaClass(ExpandoMetaClassCreationHandle.java:46)
at
groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createWithCustomLookup(MetaClassRegistry.java:158)
at
groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:141)
at
org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:209)
at
org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:241)
at
org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:255)
at
org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:859)
at groovy.lang.GroovyObjectSupport.(GroovyObjectSupport.java:32) at
groovy.lang.Closure.(Closure.java:219) at
SetLicense_groovy$_run_closure1.(SetLicense_groovy) at
SetLicense_groovy.run(SetLicense_groovy:30) at
SetLicense_groovy$run.call(Unknown Source) at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at
org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift$0.call(Unknown
Source) at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at Events.run(Events.groovy:22) at
org.codehaus.groovy.grails.cli.support.GrailsBuildEventListener.loadEventsScript(GrailsBuildEventListener.java:149)
at
org.codehaus.groovy.grails.cli.support.GrailsBuildEventListener.loadEventHooks(GrailsBuildEventListener.java:90)
at
org.codehaus.groovy.grails.cli.support.GrailsBuildEventListener.initialize(GrailsBuildEventListener.java:72)
at
org.codehaus.groovy.grails.cli.support.GrailsBuildEventListener$initialize.call(Unknown
Source) at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at <em>GrailsEvents.run(_GrailsEvents.groovy:49) at
<em>GrailsEvents$run.call(Unknown Source) at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at _GrailsClean$run.call(Unknown Source) at
org.codehaus.gant.AbstractInclude.createInstance(AbstractInclude.groovy:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497) at
org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:207)
at
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at
org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:40)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at _GrailsClean.run(_GrailsClean.groovy:29) at
_GrailsClean$run.call(Unknown Source) at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at _GrailsWar$run.call(Unknown Source) at
org.codehaus.gant.AbstractInclude.createInstance(AbstractInclude.groovy:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497) at
org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:207)
at
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at
org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:40)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at _GrailsWar.run(</em>GrailsWar.groovy:27) at
_GrailsWar$run.call(Unknown Source) at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at _GrailsRun$run.call(Unknown Source) at
org.codehaus.gant.AbstractInclude.createInstance(AbstractInclude.groovy:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497) at
org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:207)
at
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at
org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:40)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at _GrailsRun.run(</em>GrailsRun.groovy:28) at
_GrailsRun$run.call(Unknown Source) at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at
org.codehaus.gant.AbstractInclude.createInstance(AbstractInclude.groovy:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497) at
org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:207)
at
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at
org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:40)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at RunApp.run(RunApp.groovy:25) at RunApp$run.call(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at gant.Gant.prepareTargets(Gant.groovy:607) at
org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:776)
at
org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(GrailsScriptRunner.java:572)
at
org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:471)
at
org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.java:415)
at
org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(GrailsScriptRunner.java:379)
at
org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497) at
org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at
org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:236)
at
org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:264)
Caused by: java.lang.IllegalArgumentException: Can not copy a
non-root Method<br>
at java.lang.reflect.Method.copy(Method.java:151) ... 149 more</p>
<p>févr. 24, 2016 1:55:47 PM org.springsource.loaded.jvm.JVM
copyMethod</p></div>ahmed.drira@gmail.comtag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-02-24T13:49:43Z2016-02-24T13:49:43Zjbilling 4.1.1 CE import to eclipse. <div><p>Resolved , the error is due to the version of the spring loader
jar
/home/ahmed/grails-2.4.3/lib/org.springframework/springloaded<br>
i chnaged it to version1.2.6</p>
<p>my virtual machine is done , i can share it if somone need a dev
environnement</p></div>ahmed.drira@gmail.comtag:jbilling.tenderapp.com,2012-10-15:Comment/388670942016-03-23T07:43:44Z2016-03-23T07:43:44Zjbilling 4.1.1 CE import to eclipse. <div><p>Closing this ticket as it is resolved.</p></div>Technical Support