Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failure #10

Closed
Jay-Krish opened this issue Aug 2, 2013 · 3 comments
Closed

Build Failure #10

Jay-Krish opened this issue Aug 2, 2013 · 3 comments
Assignees
Labels

Comments

@Jay-Krish
Copy link
Contributor

BUILD FAILURE
nested exception is java.lang.NoClassDefFoundError: com/felees/hbnpojogen/persistence/GenericDAO
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1144)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:505)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:362)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
.......
.....

@ghost ghost assigned kanarupan Aug 2, 2013
@Jay-Krish
Copy link
Contributor Author

Found the reason

yschool-ui pom files uses lite_repo as a dependency.
lite_repo pom has local file access for felees


    <dependency>
        <groupId>com.felees</groupId>
        <artifactId>hbnpojogen-persistence</artifactId>
        <version> 1.4.4</version>
        <scope>system</scope>
        <systemPath>${basedir}/hbnPojoGenResource/hbnpojogen-persistence-1.4.4.jar</systemPath>
    </dependency>

so the transitive dependency by yschool-ui cann't be resolved due to this local access, and this causes all the slf4j and spring annotation missing...
I solved it by placing hbnpojogen-persistence jar into .m2 and remove the local access from pom.
One solution would be to host com.felees and refer it from tag.

@kanarupan
Copy link
Contributor

As a temporary solution:

First run the command from base directory (or from anywhere with the care on ''-Dfile=$Path")

mvn install:install-file -Dfile=modules\lite_repo\hbnPojoGenResource\hbnpojogen-persistence-1.4.4.jar -DgroupId=com.felees -DartifactId=hbnpojogen-persistence -Dversion=1.4.4 -Dpackaging=jar

then run Maven command from the super pom.xml level
mvn clean install

go inside of the yschool module (yschool/yschool) and run command, to start the jetty server
mvn clean jetty:run-war

open, localhost:8080/yschool

...and it should work!

@Jay-Krish
Copy link
Contributor Author

closing the failure issue as there is a temporary solution
opened a defect #13 to deal with felees artifact missing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants