Unfortunately, I don't know what the problem could be - I've
only ever
done modular projects with nested modules rather than
putting them in
the same directory.
You could always use IDEA - it works with Maven
out-of-the-box.
Matt
On 11/5/07, rfusaro <rickf doc.ks.gov> wrote:
>
> I get this from the command line. I want to use eclipse
but I'm trying to get
> it to work from the command line first.
>
> Thanks Rick
>
> mraible wrote:
> >
> > Do you get this when running from the command line
or w/in Eclipse? If
> > it's w/in Eclipse, it's probably because your
source paths are setup
> > incorrectly.
> >
> > Matt
> >
> > On 11/2/07, rfusaro <rickf doc.ks.gov> wrote:
> >>
> >> Sorry I should have included this:
> >>
> >>
org.springframework.beans.factory.BeanDefinitionStoreExcepti
on: Could not
> >> resolve bean definition resource pattern
> >> [classpath */applicatio
nContext*.xml]; nested exception is
> >> java.io.FileNotFoundException: class path
resource [] cannot be resolved
> >> to
> >> URL because it does not exist
> >> Caused by: java.io.FileNotFoundException:
class path resource [] cannot
> >> be
> >> resolved to URL because it does not exist
> >>
> >> I am confused on where it references the class
path above. I thought it
> >> be
> >> in the same location relative to the core
project.
> >>
> >> Rick
> >>
> >>
> >>
> >>
> >> mraible wrote:
> >> >
> >> > What are the errors from your tests? Look
in target/surefire-reports
> >> > for *.txt files or use "mvn test
-Dsurefire.useFile=false".
> >> >
> >> > Matt
> >> >
> >> > On 11/2/07, rfusaro <rickf doc.ks.gov> wrote:
> >> >>
> >> >> I have changed the directory
structure of the archetype
> >> >> appfuse-modular-jsf
> >> >> so that I have 3 projects to bring
into eclipse for doing maven
> >> builds. I
> >> >> have created a parent pom project at
the same directory level as the
> >> core
> >> >> and the web projects. Now the
hibernate and dao test report errors.
> >> >>
> >> >> In the parent pom I changed the
modules section to reflect that they
> >> were
> >> >> on
> >> >> the same directory level.
> >> >> <modules>
> >> >>
<module>../kdoccore</module>
> >> >>
<module>../contactsweb</module>
> >> >> </modules>
> >> >>
> >> >> In the web and core poms I changed it
to the following:
> >> >> <parent>
> >> >>
<groupId>gov.ks.doc.contacts</groupId>
> >> >>
<artifactId>contactsbuild</artifactId>
> >> >>
<version>1.0-SNAPSHOT</version>
> >> >>
<relativePath>../contactsbuild/pom.xml</relativePat
h>
> >> >> </parent>
> >> >>
> >> >> When I run mvn package or test the
following tests each report an
> >> error.
> >> >>
> >> >> Tests in error:
> >> >>
> >> >>
> >>
testColumnMapping(gov.ks.doc.contacts.dao.hibernate.Hibernat
eConfigurationTest)
> >> >>
testGetRoles(gov.ks.doc.contacts.dao.LookupDaoTest)
> >> >>
testGetUserInvalid(gov.ks.doc.contacts.dao.UserDaoTest)
> >> >>
testGetUser(gov.ks.doc.contacts.dao.UserDaoTest)
> >> >>
testUpdateUser(gov.ks.doc.contacts.dao.UserDaoTest)
> >> >>
testAddUserRole(gov.ks.doc.contacts.dao.UserDaoTest)
> >> >>
testAddAndRemoveUser(gov.ks.doc.contacts.dao.UserDaoTest)
> >> >>
testUserExists(gov.ks.doc.contacts.dao.UserDaoTest)
> >> >>
testUserNotExists(gov.ks.doc.contacts.dao.UserDaoTest)
> >> >>
testCRUD(gov.ks.doc.contacts.dao.UniversalDaoTest)
> >> >>
testGetRoleInvalid(gov.ks.doc.contacts.dao.RoleDaoTest)
> >> >>
testGetRole(gov.ks.doc.contacts.dao.RoleDaoTest)
> >> >>
testUpdateRole(gov.ks.doc.contacts.dao.RoleDaoTest)
> >> >>
testAddAndRemoveRole(gov.ks.doc.contacts.dao.RoleDaoTest)
> >> >>
> >> >> When I put the core and web projects
back under the parent pom
> >> directory
> >> >> the
> >> >> tests work.
> >> >>
> >> >> I want to be able to deploy the web
project to tomcat from eclipse
> >> using
> >> >> maven. It's my understanding that
eclipse can not correctly identify a
> >> >> sub
> >> >> project as a tomcat project.
> >> >>
> >> >> What do I need to do so that these
tests work. The following is an
> >> >> example
> >> >> of the messages maven prints out for
that test.
> >> >>
> >> >> Running
gov.ks.doc.contacts.dao.hibernate.HibernateConfigurationTest
> >> >> INFO -
AbstractSingleSpringContextTests.loadContextLocations(177)
|
> >> >> Loading
> >> >> context for locations:
> >> >>
> >>
classpath:/applicationContext-resources.xml,classpath:/appli
cationContext-dao.xml,classpath*:/applicationContext.xml,cla
sspath */applicatio
n
> >> >> Context*.xml
> >> >> Tests run: 1, Failures: 0, Errors: 1,
Skipped: 0, Time elapsed: 0.328
> >> sec
> >> >> <<< FAILURE!
> >> >>
> >> >> Thanks in advance for any help ....
Rick
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/Archetype-appfuse-mod
ular-jsf---test-HibernateConfigurationTest-reports-error-tf4
737408s2369.html#a13547547
> >> >> Sent from the AppFuse - User mailing
list archive at Nabble.com.
> >> >>
> >> >>
------------------------------------------------------------
---------
> >> >> To unsubscribe, e-mail:
users-unsubscribe appfuse.dev.java.net
> >> >> For additional commands, e-mail:
users-help appfuse.dev.java.net
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > http://raibledesigns.com
> >> >
> >> >
------------------------------------------------------------
---------
> >> > To unsubscribe, e-mail:
users-unsubscribe appfuse.dev.java.net
> >> > For additional commands, e-mail:
users-help appfuse.dev.java.net
> >> >
> >> >
> >> >
> >>
> >> --
> >>
> >> View this message in context:
> >> http://www.nabble.com/Archetype-appfuse-mod
ular-jsf---test-HibernateConfigurationTest-reports-error-tf4
737408s2369.html#a13553772
> >>
> >> Sent from the AppFuse - User mailing list
archive at Nabble.com.
> >>
> >>
------------------------------------------------------------
---------
> >> To unsubscribe, e-mail: users-unsubscribe appfuse.dev.java.net
> >> For additional commands, e-mail:
users-help appfuse.dev.java.net
> >>
> >>
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
------------------------------------------------------------
---------
> > To unsubscribe, e-mail: users-unsubscribe appfuse.dev.java.net
> > For additional commands, e-mail: users-help appfuse.dev.java.net
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Archetype-appfuse-mod
ular-jsf---test-HibernateConfigurationTest-reports-error-tf4
737408s2369.html#a13587661
>
> Sent from the AppFuse - User mailing list archive at
Nabble.com.
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: users-unsubscribe appfuse.dev.java.net
> For additional commands, e-mail: users-help appfuse.dev.java.net
>
>
--
http://raibledesigns.com
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe appfuse.dev.java.net
For additional commands, e-mail: users-help appfuse.dev.java.net
|