Re: Magja

62 views
Skip to first unread message

Hendy Irawan

unread,
Aug 7, 2012, 1:46:17 PM8/7/12
to Eric Jernigan, magja-...@googlegroups.com

Hi Eric,

Just skip the tests:

mvn -DskipTest install

Even with right connection settings the tests wont pass because they depend on various datasets various magja contributors have accumulated ;-)

I only run the tests inside Eclipse and even that only the tests I'm currently interested at particular time. Bippo/Soluvas Jenkins CI builds also skip tests.

Btw I'm not the only contributor. For further stuff please use the magja googlegroups.

Hendy

On Aug 8, 2012 12:39 AM, "Eric Jernigan" <jeje...@gmail.com> wrote:
Hendy,

I was wanting to email you because this isn't really a issue with the project as a whole…more or less a problem i am having. I am basically unable to get he soap connection to work when i do my own compile. If i do your sonatype repository my connection works just fine (properties file is in local /resources folder).

I do have my magenta-api.properties file in both my local code AND the projects /src/main/resources folder. I am running the basic maven build lifecycle to creat the javadoc and the sources jars.

mvn process-resources
mvn compile
mvn test
mvn package
mvn install

I have also cloned your repository to my local computer and i can't get the tests to connect eather. Your readme talks about a magja-consloe but i don't see that shell file. I can go look at history and get the magja-console script but when i run that maven says i don't have a profile named console. I just was wanting to know what i was doing wrong.

Thanks for your hard work. This connector s the best one i have seen and i am glad someone is working so hard on this project!

Eric


Eric Jernigan

unread,
Aug 7, 2012, 3:19:44 PM8/7/12
to magja-...@googlegroups.com, Eric Jernigan
I just tried to compile and put the jar into my project and i am still unable to connect to my magento site.  I am getting this stack. I am using the .jar located at this path is this the correct one? C:\Users\ejernigan\.m2\repository\com\google\code\magja\magja\1.0.3-SNAPSHOT

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/AxisFault
at com.google.code.magja.service.RemoteServiceFactory.getCustomerRemoteService(RemoteServiceFactory.java:186)
at com.google.code.magja.service.RemoteServiceFactory.getCustomerRemoteService(RemoteServiceFactory.java:176)
at org.taylorcollection.data.MagentoCustomerRepository.CreateNewMagentoCustomer(MagentoCustomerRepository.java:82)
at org.taylorcollection.domain.services.CustomerService.findDeltaChange(CustomerService.java:88)
at org.taylorcollection.A2MCustomer.main(A2MCustomer.java:30)
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.AxisFault
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 5 more

Hendy Irawan

unread,
Aug 7, 2012, 3:21:41 PM8/7/12
to magja-...@googlegroups.com, Eric Jernigan

Is your project using Maven?

Because if not, you'll need other dependencies like Axis2, guava etc.

Better use Maven so you'll get all the transitive dependencies.

Hendy

Eric Jernigan

unread,
Aug 7, 2012, 3:37:23 PM8/7/12
to magja-...@googlegroups.com, Eric Jernigan
yes 

i am running m2e.I imported the project via a mvn eclipse:eclipse then converted the project to a maven project. I then ran mvn eclipse:clean. I do see the Maven Dependencies in the left hand side 


On Tuesday, August 7, 2012 2:21:41 PM UTC-5, Hendy Irawan wrote:

Is your project using Maven?

Because if not, you'll need other dependencies like Axis2, guava etc.m

mvn.png

Hendy Irawan

unread,
Aug 7, 2012, 3:42:51 PM8/7/12
to magja-...@googlegroups.com, Eric Jernigan

there seems to be at least 2 mistakes:

1. You're using m2e, but you also used mvn eclipse:eclipse which should not be used.
2. I see that your project (not magja) lists magja as a Library dependency,which is wrong. You should put magja as a dependench on your project's pom.xml. Then magja should be listed *inside* Maven dependencies of your project. Not as a sibling of Maven dependencies as depicted on your screenshot.

Hendy

Eric Jernigan

unread,
Aug 7, 2012, 5:35:03 PM8/7/12
to magja-...@googlegroups.com, Eric Jernigan
GOT IT!

Thanks for your help!
Reply all
Reply to author
Forward
0 new messages