Thinking about trying Shopizer But...

695 views
Skip to first unread message

mysare...@gmail.com

unread,
Mar 12, 2016, 6:20:40 PM3/12/16
to Shopizer
I would like to use shopizer or any other opensource java ecommerce solution. I have been trying different things but they all miss the only feature that is the most important for me. So I am asking you guys: Can I do run shopizer from within eclipse? Run -> Main
I am just too old to deploy an application before I can test/remote-debug it.
Thank you for your help.

Umesh Awasthi

unread,
Mar 12, 2016, 6:30:55 PM3/12/16
to shop...@googlegroups.com
All you need to do is to enable Shopizer for the eclipse , after downloading latest source code, build it with Maven and use

1. mvn eclipse:eclipse

Import your modules to eclipse,also make sm-shop to be eligible to run within eclipse by mvn eclipse:eclipse -Dwtpversion=2.0

This is all you need to run Shopizer inside eclipse

Have a look at

https://github.com/shopizer-ecommerce/shopizer/wiki/Eclipse-Setup-%28for-version-2.0.1%29

Hope this will help

Thanks
Umesh


--
You received this message because you are subscribed to the Google Groups "Shopizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shopizer+u...@googlegroups.com.
To post to this group, send email to shop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shopizer/95fa6ddb-b804-4c19-9b8a-f1d50dd947a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
With Regards
Umesh Awasthi
http://www.travellingrants.com/

   

David

unread,
Mar 12, 2016, 8:52:05 PM3/12/16
to Shopizer, mysare...@gmail.com
Hi,

why? how old are you?

after you did what Umesh said, you can control the tomcat via the eclipse tomcat plugin or you use eclipse jetty. With eclipse jetty i had to add two jars in the jetty classpath (or in the pom.xml) described here: 

after setup that, it is easy like "Run -> Main"


Kind regards
David

akeme

unread,
Mar 12, 2016, 9:36:02 PM3/12/16
to Shopizer, mysare...@gmail.com
One reason I left javaland years ago was because web development required a lot of patience. I was very patient back then. Not so much today. Reading your reply had me thinking: these tricks sound familiar. I am testing what you guys just described and it seems the eclipse maven integration has got much better since then. Sadly, Eclipse on Ubuntu is having trouble installing maven and wtp and complain about some dependencies issues. Thats another issue though.
Thank you for your suggestion.

David

unread,
Mar 12, 2016, 10:52:48 PM3/12/16
to Shopizer, mysare...@gmail.com
Hi,

i don't agree, as i am working with shopizer on ubuntu too.

install oracle java8 jdk:

use eclipse for jee developers:
it comes with integration of wtp, maven, git
you even can clone from eclipse and run maven from eclipse

on ubuntu with these tools you are able to run shopizer in eclipse in about one hour or less.


kind regards
David

umesha...@gmail.com

unread,
Mar 13, 2016, 12:45:01 AM3/13/16
to shop...@googlegroups.com, mysare...@gmail.com
My suggestion is to have Maven independent of eclipse as it give you a lot more flexibily outside of eclipse 

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Shopizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shopizer+u...@googlegroups.com.
To post to this group, send email to shop...@googlegroups.com.

anon

unread,
Mar 13, 2016, 10:52:52 AM3/13/16
to shop...@googlegroups.com
Almost got there but:

Operation details
Cannot complete the install because one or more required items could not be found.
Software being installed: Maven Integration for AJDT (Optional) 0.14.0.201506231302 (org.maven.ide.eclipse.ajdt.feature.feature.group 0.14.0.201506231302)
Missing requirement: Maven Integration for AJDT (Optional) 0.14.0.201506231302 (org.maven.ide.eclipse.ajdt.feature.feature.group 0.14.0.201506231302) requires 'org.eclipse.ajdt.core 1.5.0' but it could not be found

Sadly sm-shop cannot compile in eclipse.... :-(

David

unread,
Mar 13, 2016, 11:07:40 AM3/13/16
to Shopizer
Not sure, but is ajdt eclipse installed? At least the message implies missing ajdt plugin.
Not sure which Version i have installed, but i think same which is recommended here:
http://www.homebrewandtechnology.com/blog/developinganddebuggingshopizerineclipsewithmavenandjetty

anon

unread,
Mar 13, 2016, 2:33:03 PM3/13/16
to shop...@googlegroups.com
I retried with eclipse luna and I still could not install the aspectJConnecter as before. I googled it up and I has to wrap all plugins elements in <pluginManagement> to get it to compile.... so far so good.
I have now started the application but I get this error on the first page:

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.apache.commons.collections.CollectionUtils.isEmpty(Ljava/util/Collection;)Z
	org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1275)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:951)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:951)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:155)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)

root cause

java.lang.NoSuchMethodError: org.apache.commons.collections.CollectionUtils.isEmpty(Ljava/util/Collection;)Z
	com.salesmanager.web.filter.StoreFilter.getConfigurations(StoreFilter.java:885)
	com.salesmanager.web.filter.StoreFilter.getMerchantConfigurations(StoreFilter.java:407)
	com.salesmanager.web.filter.StoreFilter.preHandle(StoreFilter.java:347)
	org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:134)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:928)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:951)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

umesha...@gmail.com

unread,
Mar 13, 2016, 3:07:43 PM3/13/16
to shop...@googlegroups.com
It seems that apache common depedency is missing 

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Shopizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shopizer+u...@googlegroups.com.
To post to this group, send email to shop...@googlegroups.com.

anon

unread,
Mar 13, 2016, 3:50:52 PM3/13/16
to shop...@googlegroups.com
I thought maven was taking care of everything. Or should I copy the dependency manually into the tomcat /lib directory? Better yet: Has anyone had the same issue?
You received this message because you are subscribed to a topic in the Google Groups "Shopizer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shopizer/-VY_iM-2GPU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shopizer+u...@googlegroups.com.

To post to this group, send email to shop...@googlegroups.com.

anon

unread,
Mar 13, 2016, 3:53:11 PM3/13/16
to shop...@googlegroups.com
I think tomcat is loading an different version of apache-commons-collections from the one inside eclipse.


On 13.03.2016 20:09, umesha...@gmail.com wrote:
You received this message because you are subscribed to a topic in the Google Groups "Shopizer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shopizer/-VY_iM-2GPU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shopizer+u...@googlegroups.com.

To post to this group, send email to shop...@googlegroups.com.

David

unread,
Mar 13, 2016, 8:03:01 PM3/13/16
to Shopizer, mysare...@gmail.com
Hi,

i got same error with latest tomcat 8 on ubuntu 15.10 (didn't triy jetty there) but not on ubuntu 14.04 with latest tomcat8 and eclipse jetty, i could not figure out why.

Anyway it is fixed already by applied pullrequest #68

But i think with this change #68 a new error in the .classpath of sm-shop came in:
<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-collections4/4.1/commons-collections4-4.1.jar" sourcepath="M2_REPO/org/apache/commons/commons-collections4/4.1/commons-collections4-4.1-sources.jar"/>

I had to delete that entry in my setup.

As Umesh said before, the code base should be independent from eclipse settings, so i hope shopizer team will delete the eclipse related files soon.

In order to quick fix that in your setup:
just move 
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>

to version 3.2.2 in all pom files and this error will disapear.

or for permanent fix:
git clone the latest shopizer 2.0.3 branch with applied pullrequest #68
(maybe you have to delete that classpath entry mentioned above)

Moving stuff to tomcat/lib is never an good idea (just in my eyes).


Kind regards
David

carlo

unread,
Mar 14, 2016, 1:59:29 PM3/14/16
to Shopizer, mysare...@gmail.com

Yes, that is what i am doing

- Have eclipse for JEE development with WTP installed (it should)
- Install maven ad configure it to be available from eclipse
- Import shopizer and make sure eclipse recognizes it as a maven project
- Rick click shopizer maven -> clean
- Rick click shopizer maven -> install
- Configure tomcat as WTP server (by adding a new server)
- Right click on the server, add sm-shop and run

anon

unread,
Mar 14, 2016, 5:26:12 PM3/14/16
to Shopizer
I was already working with shopizer 2.0.3. The culprit is actually
        <dependency>
            <groupId>org.jopendocument</groupId>
            <artifactId>jOpenDocument</artifactId>
            <version>1.3b1</version>
        </dependency>
For some reason, eclipse decides that he was going to look up that package for apache-commons-collections.
Somehow, the author of that library did manage to copy an old version of commons.collections and add it to their code. Sadly, I cannot get rid of the dependency without breaking many other things.
Any Idea?

viljem....@gmail.com

unread,
Apr 28, 2016, 8:07:39 AM4/28/16
to Shopizer, mysare...@gmail.com
Any solution to this problem yet - I'm experiencing the same error!

anon

unread,
Apr 28, 2016, 2:37:37 PM4/28/16
to viljem....@gmail.com, Shopizer
You will have to remove
<dependency>
<groupId>org.jopendocument</groupId>
<artifactId>jOpenDocument</artifactId>
<version>1.3b1</version>
</dependency>
and some other dependencies to be able to run it (at least in eclipse).
Reply all
Reply to author
Forward
0 new messages