Problems when trying to debug Aggregate 1.4.8 in an Eclipse Google Aplication Engine server

Hi all,

I'm trying to setup my Eclipse environment to work with Aggregate 1.4.8.

First I would suggest to change the line of the CONFIGURE.txt file from:

(1) Finally, start Eclipse (Mars) and select this ODK Aggregate 

workspace.

to:

(1) Finally, start Eclipse (Mars) and select the clone source code 

directory/folder as workspace.

(I think it's more or less the same line than in previous versions of the
file.)

Well, I got it to compile but when I tried to deploy on the server I got
next error:

....

INFORMACIÓN: Loading properties file from class path resource
[logging.properties]

abr 19, 2016 11:22:15 AM
org.springframework.web.context.support.XmlWebApplicationContext refresh

ADVERTENCIA: Exception encountered during context initialization -
cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'datastore' defined in class path resource
[odk-settings.xml]: Instantiation of bean failed; nested exception is
java.lang.NoClassDefFoundError:
com/google/appengine/api/datastore/EntityNotFoundException

abr 19, 2016 11:22:15 AM org.springframework.web.context.ContextLoader
initWebApplicationContext

GRAVE: Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'datastore' defined in class path resource
[odk-settings.xml]: Instantiation of bean failed; nested exception is
java.lang.NoClassDefFoundError:
com/google/appengine/api/datastore/EntityNotFoundException

            at 

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105)

            at 

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)

            at 

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)

            at 

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)

            at 

org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)

            at 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

            at 

org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)

...

Does anyone suffer it before? Do you know the solution?

My working environment is Windows 7 64b, Java 1.7_0_79 and the rest as
suggested by the CONFIGURE.txt file

Thanks in advance and best regards.

A.S.: I would published on the ODK Developers group but I'm not allowed.

You should be able to post to opendatakit-developers@ now.

Did you right-click on the server (on the Servers tab) and choose Clean and
Publish?

You may need to toggle the selection of the App Engine library from the
default configured App Engine to the "1.9.34" version (which would also be
the default). This causes the Eclipse plugin to sometimes pick up and add
missing libraries.

··· On Tue, Apr 19, 2016 at 2:35 AM, Francisco J. Lacueva < francisco.jose.lacueva@gmail.com> wrote:

Hi all,

I'm trying to setup my Eclipse environment to work with Aggregate 1.4.8.

First I would suggest to change the line of the CONFIGURE.txt file from:

(1) Finally, start Eclipse (Mars) and select this ODK Aggregate

workspace.

to:

(1) Finally, start Eclipse (Mars) and select the clone source code

directory/folder as workspace.

(I think it's more or less the same line than in previous versions of the
file.)

Well, I got it to compile but when I tried to deploy on the server I got
next error:

....

INFORMACIÓN: Loading properties file from class path resource
[logging.properties]

abr 19, 2016 11:22:15 AM
org.springframework.web.context.support.XmlWebApplicationContext refresh

ADVERTENCIA: Exception encountered during context initialization -
cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'datastore' defined in class path resource
[odk-settings.xml]: Instantiation of bean failed; nested exception is
java.lang.NoClassDefFoundError:
com/google/appengine/api/datastore/EntityNotFoundException

abr 19, 2016 11:22:15 AM org.springframework.web.context.ContextLoader
initWebApplicationContext

GRAVE: Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'datastore' defined in class path resource
[odk-settings.xml]: Instantiation of bean failed; nested exception is
java.lang.NoClassDefFoundError:
com/google/appengine/api/datastore/EntityNotFoundException

            at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105)

            at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)

            at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)

            at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)

            at

org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)

            at

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

            at

org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)

...

Does anyone suffer it before? Do you know the solution?

My working environment is Windows 7 64b, Java 1.7_0_79 and the rest as
suggested by the CONFIGURE.txt file

Thanks in advance and best regards.

A.S.: I would published on the ODK Developers group but I'm not allowed.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Hi Mitch,

Thanks for accepting me in the odk developers groups.

I'll try your suggestions and give you my feed back.

Br.

Hi Mitch,

I got it but! I had to make a couple of changes in the purposed steps in
the CONFIGURE.TXT:

  1. I installed the Eclipse SDK plugins (which are not need according to the
    guide).
  2. When creating the debug/run environment I changed the default JVM
    arguments replacing:

-Xmx512m

by:

-Xmx2048m -XX:MaxPermSize=1024m

I think it was suggested in previous versions of the CONFIGURE.TXT

I suffered another problem (not important for me right now): when the
server seemed to work redirection give an error: "...found localhost when
<my_ip> was expected ...". I think (I can assure after several attemps) I
configured correctly the security. I solved it by replacing the <my_ip> by
localhost in the security.properties file. I will try to review it.

Anyway, many thanks for your help.

BR

A.S.; I answer you on this thread because I think it would be easy for you
to track it, if not please apologize me. Next doubts will be on the
developers' one.

··· El jueves, 21 de abril de 2016, 9:00:52 (UTC+2), Francisco J. Lacueva escribió: > > Hi Mitch, >> > > Thanks for accepting me in the odk developers groups. > > I'll try your suggestions and give you my feed back. > > Br. >

Thanks for the feedback on the instructions; I will make some changes to
them.

The Google Eclipse plugin is needed -- it was part of step (1) of the
Minimal AppEngine Eclipse Setup -- (I will renumber the steps to make this
its own step); the versions of the SDKs that come with were all out-of-date
(I believe the plugin has since been updated and may have up-to-date SDKs
for the present moment) -- that was why the instructions download and
install the newer SDKs as a separate step.

The JVM settings were also covered in step (18) of that section and earlier
in the Minimal Eclipse Installation Setup section.

··· On Thu, Apr 21, 2016 at 6:38 AM, Francisco J. Lacueva < francisco.jose.lacueva@gmail.com> wrote:

Hi Mitch,

I got it but! I had to make a couple of changes in the purposed steps in
the CONFIGURE.TXT:

  1. I installed the Eclipse SDK plugins (which are not need according to
    the guide).
  2. When creating the debug/run environment I changed the default JVM
    arguments replacing:

-Xmx512m

by:

-Xmx2048m -XX:MaxPermSize=1024m

I think it was suggested in previous versions of the CONFIGURE.TXT

I suffered another problem (not important for me right now): when the
server seemed to work redirection give an error: "...found localhost when
<my_ip> was expected ...". I think (I can assure after several attemps) I
configured correctly the security. I solved it by replacing the <my_ip> by
localhost in the security.properties file. I will try to review it.

Anyway, many thanks for your help.

BR

A.S.; I answer you on this thread because I think it would be easy for you
to track it, if not please apologize me. Next doubts will be on the
developers' one.

El jueves, 21 de abril de 2016, 9:00:52 (UTC+2), Francisco J. Lacueva escribió:

Hi Mitch,

Thanks for accepting me in the odk developers groups.

I'll try your suggestions and give you my feed back.

Br.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com