On Sun, May 4, 2008 at 7:29 PM, ftjn689 <[EMAIL PROTECTED]> wrote: > > I did following steps : > > <dependency> > <groupId>org.apache.struts</groupId> > <artifactId>struts2-spring-plugin</artifactId> > <version>${struts.version}</version> > <exclusions> > <exclusion> > <groupId>org.springframework</groupId> > <artifactId>spring-beans</artifactId> > </exclusion> > <exclusion> > <groupId>org.springframework</groupId> > <artifactId>spring-core</artifactId> > </exclusion> > <exclusion> > <groupId>org.springframework</groupId> > <artifactId>spring-context</artifactId> > </exclusion> > <exclusion> > <groupId>org.springframework</groupId> > <artifactId>spring-web</artifactId> > </exclusion> > </exclusions> > </dependency> > > mvn jetty:run-war > and i got some errors : > > Running com.yeeach.framework.service.UserSecurityAdviceTest > WARN - UserSecurityAdvice.before(71) | Access Denied: 'user' tried to modify > 'ad > min'! > WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change > the > ir role(s)! > WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change > the > ir role(s)! > Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.516 sec > Running com.yeeach.framework.service.impl.UserManagerImplTest > WARN - UserManagerImpl.saveUser(105) | AuthenticationProvider not set, > skipping > password encryption... > DEBUG - UserManagerImpl.removeUser(126) | removing user: 5 > WARN - UserManagerImpl.saveUser(105) | AuthenticationProvider not set, > skipping > password encryption... > org.springframework.dao.DataIntegrityViolationException: > at org.jmock.core.stub.ThrowStub.invoke(ThrowStub.java:21) > at org.jmock.core.InvocationMocker.invoke(InvocationMocker.java:55) > at > org.jmock.core.AbstractInvocationDispatcher.dispatch(AbstractInvocati > onDispatcher.java:68) > WARN - UserManagerImpl.saveUser(105) | AuthenticationProvider not set, > skipping > password encryption... > at > org.jmock.core.AbstractDynamicMock.mockInvocation(AbstractDynamicMock > .java:89) > at org.jmock.core.CoreMock.invoke(CoreMock.java:39) > at $Proxy17.saveUser(Unknown Source) > at > com.yeeach.framework.service.impl.UserManagerImpl.saveUser(UserManage > rImpl.java:110) > at > com.yeeach.framework.service.impl.UserManagerImplTest.testUserExistsE > xception(UserManagerImplTest.java:98) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at junit.framework.TestCase.runTest(TestCase.java:168) > at > org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > WARN - UserManagerImpl.saveUser(113) | > at junit.framework.TestSuite.runTest(TestSuite.java:232) > at junit.framework.TestSuite.run(TestSuite.java:227) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner. > java:81) > at > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet. > java:62) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes > tSet(AbstractDirectoryTestSuite.java:140) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab > stractDirectoryTestSuite.java:127) > DEBUG - UserManagerImplTest.testUserExistsException(101) | expected > exception: U > ser 'admin' already exists! > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.156 sec > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su > refireBooter.java:338) > Running com.yeeach.framework.service.MailEngineTest > INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading > cont > ext for locations: > /applicationContext-resources.xml,classpath:/applicationConte > > xt-dao.xml,/applicationContext-service.xml,classpath*:/**/applicationContext.xml > > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j > ava:997) > >
This is a stack trace, not a test failure. Do you get "BUILD SUCCESSFUL"? Matt > > > mraible wrote: > > > > After running full-source, please try changing your pom.xml from: > > > > <dependency> > > <groupId>org.apache.struts</groupId> > > <artifactId>struts2-spring-plugin</artifactId> > > <version>${struts.version}</version> > > </dependency> > > > > To: > > > > <dependency> > > <groupId>org.apache.struts</groupId> > > <artifactId>struts2-spring-plugin</artifactId> > > <version>${struts.version}</version> > > <exclusions> > > <exclusion> > > <groupId>org.springframework</groupId> > > <artifactId>spring-beans</artifactId> > > </exclusion> > > <exclusion> > > <groupId>org.springframework</groupId> > > <artifactId>spring-core</artifactId> > > </exclusion> > > <exclusion> > > <groupId>org.springframework</groupId> > > <artifactId>spring-context</artifactId> > > </exclusion> > > <exclusion> > > <groupId>org.springframework</groupId> > > <artifactId>spring-web</artifactId> > > </exclusion> > > </exclusions> > > </dependency> > > > > Matt > > > > On Mon, Apr 28, 2008 at 9:38 PM, ftjn689 <[EMAIL PROTECTED]> wrote: > >> > >> I'm trying to start a new proyect but i can't make it woks. > >> > >> enviroment: > >> maven 2.09 (new repo) > >> jdk1.5.0_06 > >> mysql-5.0.51b > >> > >> my steps were: > >> 1. C:\Source>mvn archetype:create > >> -DarchetypeGroupId=org.appfuse.archetypes > >> -DarchetypeArtifactId=appfuse-basic-struts > >> -DremoteRepositories=http://static.appfuse.org/releases^ > >> -DarchetypeVersion=2.0.1 -DgroupId=com.mycompany.app > >> -DartifactId=myproject > >> 2. make changes to pom.xml file (changed mysql root password) > >> 3. C:\myproject>mvn appfuse:full-source (SUCCESS!) > >> 4. C:\Source\myproject>mvn jetty:run-war (ERROR!!): > >> > >> [ERROR] The method findAnnotation(Method, Class ) in the type > >> AnnotationUtils > >> is not applicable for the arguments (Class<User>, Class<Table>) > >> [ERROR] The method findAnnotation(Method, Class ) in the type > >> AnnotationUtils > >> is not applicable for the arguments (Class<User>, Class<Table>) > >> [INFO] > >> ------------------------------------------------------------------------ > >> [ERROR] BUILD ERROR > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Compiler errors : > >> error at Table table = AnnotationUtils.findAnnotation(User.class, > >> Table.class); > >> ^^^^^ > >> > >> > D:\myproject\src\main\java\org\appfuse\dao\hibernate\UserDaoHibernate.java:85:0::0 > >> Th > >> e method findAnnotation(Method, Class ) in the type AnnotationUtils is > >> not > >> app > >> licable for the arguments (Class<User>, Class<Table>) > >> error at Table table = AnnotationUtils.findAnnotation(User.class, > >> Table.class); > >> > >> HELP!HELP!HELP! > >> > >> best regards, > >> jack > >> -- > >> View this message in context: > >> > http://www.nabble.com/problem-occurred-after-running-mvn-jetty%3Arun-war-tp16952700s2369p16952700.html > >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/problem-occurred-after-running-mvn-jetty%3Arun-war-tp16952700s2369p17053421.html > > > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]