If you set a CATALINA_HOME environment variable, Cargo will deploy the WAR to 
this server and run tests against it. If you're simply looking to copy your WAR 
to your server and run it, that's a different story (and I'm guessing what 
you're trying to do). The error from doing that is:

[INFO] [talledLocalContainer] ERROR [main] 
ContextLoader.initWebApplicationContext(215) | Context initialization failed
[INFO] [talledLocalContainer] 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource 
[META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Could not instantiate 
bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw 
exception; nested exception is java.lang.LinkageError: JAXB 2.0 API is being 
loaded from the bootstrap classloader, but this RI (from 
jar:file:/C:/Source/SP5SyncPoint/syncpoint/target/tomcat6x/container/webapps/syncpoint-1.0-SNAPSHOT/WEB-INF/lib/jaxb-impl-2.1.12.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
 needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in 
the bootstrap classloader. (See 
http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
[INFO] [talledLocalContainer]   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
[INFO] [talledLocalContainer]   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
[INFO] [talledLocalContainer]   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
[INFO] [talledLocalContainer]   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
[INFO] [talledLocalContainer]   at 
java.security.AccessController.doPrivileged(Native Method)

To fix, use Java 5 or see section 7.1.2 on the following page:

https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6.html

Hope this helps,

Matt

On Nov 4, 2010, at 9:12 AM, Vanessa Pacheco wrote:

> Matt,
> 
> I made the changes you asked me to, but it seems to be something else I think.
> 
> I ran "mvn package" and put the war in ${CATALINA_HOME}\webapps. However the 
> app won't start there either.
> 
> I can't tell much from the log, but its attached. All the tests pass, then it 
> tries to start the app and freaks out there.
> 
> I've attached 2 txt file, one from running the mvn command, and the other 
> from placing the war in my tomcat/webapps and starting tomcat (its what came 
> up in the command prompt)
> 
> Thanks for all your help
> Vanessa
> ----- Original Message -----
> From: "Matt Raible" <m...@raibledesigns.com>
> To: users@appfuse.dev.java.net
> Sent: Wednesday, November 3, 2010 5:17:54 PM (GMT-0500) America/New_York
> Subject: Re: [appfuse-user] changed from spring to struts (still facing 
> issues)
> 
> To use your local installation, you can set a CATALINA_HOME environment 
> variable that points to c:\tomcat6 and everything should work. You can also 
> hard-code c:\tomcat6 into the following property.
> 
> <cargo.container.home>${env.CATALINA_HOME}</cargo.container.home>
> 
> On Nov 3, 2010, at 2:25 PM, Vanessa Pacheco wrote:
> 
>> I could continue with my spring installation if only I could get a handle on 
>> how to get past the tests (error below). I would prefer deploying to my own 
>> tomcat installation which is @ c:\tomcat6 (v. 6.0.18)
>> 
>> I get the this error. how do i resolve it
>> 
>> Login: 
>>>> [INFO] 
>>>> ------------------------------------------------------------------------ 
>>>> [ERROR] BUILD ERROR 
>>>> [INFO] 
>>>> ------------------------------------------------------------------------ 
>>>> [INFO] An Ant BuildException has occured: The following error occurred 
>>>> while exe 
>>>> cuting this line: 
>>>> C:\Source\SyncPoint\src\test\resources\login.xmlf:1: HTTP error 404 
>>>> 
>>>> 404 Not Found for http://localhost:8081/SyncPoint-1.0-SNAPSHOT/ 
>> 
>> Vanessa
>> ----- Original Message -----
>> From: "Vanessa Pacheco" <vpach...@bowmansystems.com>
>> To: users@appfuse.dev.java.net
>> Sent: Wednesday, November 3, 2010 4:09:24 PM (GMT-0500) America/New_York
>> Subject: Re: [appfuse-user] changed from spring to struts (still facing 
>> issues)
>> 
>> Would 2.1.0-M2-SNAPSHOT work, cos I don't see 2.0.2-M2-SNAPSHOT in the 
>> drop-down to generate the archtype
>> 
>> I'm looking at instructions on this page
>> http://appfuse.org/display/APF/AppFuse+QuickStart
>> 
>> Thanks for all your help. Sorry to bother so much
>> Vanessa
>> 
>> 
>> ----- Original Message -----
>> From: "Matt Raible" <m...@raibledesigns.com>
>> To: users@appfuse.dev.java.net
>> Sent: Wednesday, November 3, 2010 3:43:56 PM (GMT-0500) America/New_York
>> Subject: Re: [appfuse-user] changed from spring to struts (still facing 
>> issues)
>> 
>> The error you're seeing is caused by a newer version of the archetype 
>> plugin. The 2.0-alpha-5 version creates projects that have duplicate package 
>> names (as you see below). This has been fixed in 2.0.2-M2-SNAPSHOT. 
>> 
>> 
>> On Wed, Nov 3, 2010 at 1:40 PM, Vanessa Pacheco < vpach...@bowmansystems.com 
>> > wrote: 
>> 
>> 
>> I haven't set up my smtp server, but I don't think that should affect the 
>> tests? since that is mainly for email stuff. Am I right? 
>> 
>> Attaching my pom.xml, since I made changes to use postgres. This is the only 
>> place I made changes. Did I have to make changes elsewhere (hibernate), 
>> since my tables have -ve values for primary key IDs. 
>> 
>> 
>> Vanessa 
>> ----- Original Message ----- 
>> From: "Matt Raible" < m...@raibledesigns.com > 
>> To: users@appfuse.dev.java.net 
>> Sent: Wednesday, November 3, 2010 3:27:22 PM (GMT-0500) America/New_York 
>> Subject: Re: [appfuse-user] changed from spring to struts (still facing 
>> issues) 
>> 
>> 
>> 
>> 
>> When you say "changed to use struts", did you create a new project or try to 
>> switch your own? Which version of AppFuse are you using? 
>> 
>> On Nov 3, 2010 , at 12:43 PM, Vanessa Pacheco wrote: 
>> 
>>> I've changed to use struts now 
>>> 
>>> When I run mvn, all of my 17 tests fail. In one of the reports I see this 
>>> (I attached the error report). Where do I make changes? 
>>> 
>>> -------------------------------------------------------------------------------
>>>  
>>> Test set: com.mycompany.webapp.webapp.action.SignupActionTest 
>>> -------------------------------------------------------------------------------
>>>  
>>> Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec 
>>> <<< FAILURE! 
>>> warning(junit.framework.TestSuite$1)  Time elapsed: 0 sec  <<< FAILURE! 
>>> junit.framework.AssertionFailedError: Exception in constructor: testExecute 
>>> (java.lang.Error: Unresolved compilation problem: 
>>>      The declared package "com.mycompany.webapp.action" does not match the 
>>> expected package "com.mycompany.webapp.webapp.action" 
>>> ========================================== 
>>> 
>>> <com.mycompany.webapp.action.SignupActionTest.txt>---------------------------------------------------------------------
>>>  
>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net 
>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net 
>> 
>> 
>> --------------------------------------------------------------------- 
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net 
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net 
>> 
>> 
>> --------------------------------------------------------------------- 
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net 
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> 
> <out.txt><localtomcat_error.txt>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to