Make sure and run the following commands after "mvn war:inplace":
rm -r src/main/webapp/WEB-INF/lib
rm src/main/webapp/WEB-INF/classes/struts.xml
Matt
On 4/9/07, nmall <[EMAIL PROTECTED]> wrote:
Hi
I want to change the table names and the column names slightly and add a
couple of columns th
1) it will work (i had it working ;) )
2) what happens if you run mvn clean jetty:run-war
3) can you check if the appfuse core classes (user role etc) are in your
war file.
tibi
nmall wrote:
Hi
I want to change the table names and the column names slightly and add a
couple of columns that
Hi
I want to change the table names and the column names slightly and add a
couple of columns that I need. So I changed all the annotations in the
User.java and Role.java, added the new column getters setters and changed
the old names to mine.
Added the exclusions as in the tutorial and in you
mmm i'm thinking hard why i had that error.
anyway in the end i got it working.
i added the classes sources (java files) to my project and changed the
database names in the java files
added the exclusion like below and got everything working apart from the
cobertura plugin (code covarege).
if
Hi
To use your own database names and build the org.appfuse.model in your
directory, do we need to remove the in the pom.xml which has
org.appfuse and instead put in the following dependency you have mentioned.
I changed the names and structure of the tables in sample-data.xml as well
as
ok sory i only read your post
i changed the database table names without any problem
as long as you add things i expect everything will koop working.
luckaly it there are tests ;)
tibi
nmall wrote:
Hi,
What if we want to change the column names in the table or add a few new
column names
did you look at this guide??
http://appfuse.org/display/APF/AppFuse+Core+Classes
tibi
nmall wrote:
Hi,
What if we want to change the column names in the table or add a few new
column names. I know we would need to change the Core classes that are
based on these definitions. Is it possible to
Hi,
What if we want to change the column names in the table or add a few new
column names. I know we would need to change the Core classes that are
based on these definitions. Is it possible to do this w/o breaking anything
else.
Thanks for your help
Niru
mraible wrote:
>
> If you want to c
The exception is not thrown by cobertura, but by the hibernate3
plugin. The cobertura plugin does some dirty on-the-fly things with
the runtime classpath that breaks the hibernate3 plugin when it wants
to scan your classes for annotations. The workaround I use is to move
it into a profile that's t
yes i put the core classes (sources) in my project (so i can change them
;) )
i already have coberture version 2.0
thanks,
tibi
Matt Raible wrote:
When you exclude the core classes, are you putting the source for them
into your project? If so, it might be because cobertura has issues
with t
When you exclude the core classes, are you putting the source for them
into your project? If so, it might be because cobertura has issues
with the two different package structures. You might also try
downgrading cobertura to version 2.0.
Matt
On 3/19/07, tibi <[EMAIL PROTECTED]> wrote:
ok tri
ok tried a couple of things.
remove core classes and exclusions from pom.
than cobertura works fine
put only exclusions back
cobertura fails with same error
put only core classes back
cobertura fails with same error
put exclusions on both war and on warpath
cobertura fails with same error
in t
michael i tried it but it did not work.
so my conclusion is that when i add the core classes and the exclusions
bit than the cobertura reports will fail.
again this is the error:
[INFO] Instrumentation was successful.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filt
you are right i have 2...
now i understand what you mean and i will try to set the exclusions on
the warpath bit.
thanks and i'm sorry for missing that...
tibi
Michael Horwitz wrote:
Just to be absolutely clear, you should have two dependencies in the
pom.xml file on org.appfuse:appfuse-${
oeps that was a bit too fast.
i did an extra mvn clean and now i can get cobertura report.
so it seems to be influenced by the inclusion of the core classes in my
project...
tibi
tibi wrote:
ok i removed the core classes from my project removed the exclusions
part and now i still can't make
ok i removed the core classes from my project removed the exclusions
part and now i still can't make a cobertura report.
so i think it doesn't have anything to doe with me changing the table
names by including the core classes in my project.
so i will start a new thread...
tibi
tibi wrote:
i does... but not if i put warpath in here (type):
>> >
>> >org.appfuse
>> >appfuse-${web.framework}
>> >${appfuse.version}
>> >war
>> >
>> >
>> >org.appfuse
>>
You should be able to do:
mvn war:inplace
rm -r src/main/webapp/WEB-INF/lib
rm -r src/main/webapp/WEB-INF/classes/struts.xml (if you're using Struts)
Then mvn jetty:run should work.
Matt
On 3/19/07, tibi <[EMAIL PROTECTED]> wrote:
ok so warpath does not work clear.
tibi
Matt Raible wrote:
ok so warpath does not work clear.
tibi
Matt Raible wrote:
You need webapp/WEB-INF/classes because the Jetty Plugin currently
isn't aware of warpath dependencies.
http://issues.appfuse.org/browse/APF-686
Matt
On 3/19/07, tibi <[EMAIL PROTECTED]> wrote:
that warpath is kind of strange.
whe
You need webapp/WEB-INF/classes because the Jetty Plugin currently
isn't aware of warpath dependencies.
http://issues.appfuse.org/browse/APF-686
Matt
On 3/19/07, tibi <[EMAIL PROTECTED]> wrote:
that warpath is kind of strange.
when i change it from war to warpath and i delete my classes dir in
that warpath is kind of strange.
when i change it from war to warpath and i delete my classes dir in
main/webapp/WIN-INF
run war:inplace i can't start mvn jetty:run
it complains about missing "nested exception is
java.lang.NoClassDefFoundError: org/appfuse/webapp/action/BaseAction"
when i cha
removing the coberture plugin works...
but now i miss my coberture... :(
i will dive in
tibi
Matt Raible wrote:
That's a strange error, but I recall seeing similar issues with the
cobertura-maven-plugin. Can you try removing it from your pom.xml?
If that doesn't work, try "mvn site -Dmav
I'm not sure if this will make too much of a difference, but the exclude
should be on the dependency of type warpath as opposed to the dependency of
type war.
Mike.
On 3/19/07, tibi <[EMAIL PROTECTED]> wrote:
problem: mvn site
i now have moved the org.appfuse.model.* into my own project and
That's a strange error, but I recall seeing similar issues with the
cobertura-maven-plugin. Can you try removing it from your pom.xml?
If that doesn't work, try "mvn site -Dmaven.test.skip=true".
Matt
On 3/19/07, tibi <[EMAIL PROTECTED]> wrote:
problem: mvn site
i now have moved the org.appfu
problem: mvn site
i now have moved the org.appfuse.model.* into my own project and changed
my pom to:
org.appfuse
appfuse-${web.framework}
${appfuse.version}
war
org.appfuse
app
ok than i will take my loss.
tibi
Nathan Anderson wrote:
Glad to hear you got it working as you wanted. After thinking about
this thread a bit I have come to the conclusion that Bryan and Matt
are probably right. In most cases it is best as is, but there are
exceptions [like yours] where t
Glad to hear you got it working as you wanted. After thinking about
this thread a bit I have come to the conclusion that Bryan and Matt are
probably right. In most cases it is best as is, but there are
exceptions [like yours] where the developer can just go in and make the
simple change.
Na
ok followed your guid.
perfect!
its a real plus for appfuse that even changing core classes is
documented well!
i changed the table name off role to app_role.
org.appfuse.model.Role.java
@Table(name="app_role")
i changed the sample-data.xml in the src/test/resources:
from:
to
and integr
If you want to change the table names, you may need to use the
following and modify the @Table annotation.
http://appfuse.org/display/APF/AppFuse+Core+Classes
It's possible there's a way to override this (ideally in
hibernate.cfg.xml), but I've never done it, so don't know.
Matt
On 3/15/07, ti
ok now i do have the problem...
i had a role table
matt you said something about using hibernate to change the table name
for tha appfuse tables?
tibi
tibi wrote:
nope only app_ for the tables needed
so only the 3 which come with appfuse.
i have a db with 41 tables with a lot of data. I'm wo
nope only app_ for the tables needed
so only the 3 which come with appfuse.
i have a db with 41 tables with a lot of data. I'm working on making a
report manager on it
luckily no table name corresponds to app_user, role user_role but if it
did i had to rename the tables.
and that is inconvenie
I'd give a -1 for adding some standard prefix to the front of the table
names by default. Seems like a bunch of wasted characters to me. I
think creating a different db is better.
Matt Raible wrote:
Yes, but are you really going to add the app_ prefix to all the tables
in your application w
Yes, but are you really going to add the app_ prefix to all the tables
in your application while you're developing it? The reason I've seen
this done most of the time is so you can deploy multiple applications
in one database. Databases are cheap - get a 2nd instance. ;-)
Another reason I don't
great more votes for app_* ;-)
there are only 3 tables i would change it to
app_user
app_role
app_user_role
and all problems are gone. no reserved words and only very rarely
problems with existing db's
its clear and simpel
tibi
Nathan Anderson wrote:
This all seems like familiar ground ;)
This all seems like familiar ground ;)
I like the prefix idea. It's always kinda bugged me that the only table
with a prefix was "app_user". It's like, "one of these things is not
like the others." ;)
In an ideal world I would like to see all the tables have a matching
prefix that is config
Matt Raible wrote:
I'm considering renaming "app_user" to "user" to be more standard.
Since these names can be changed, it seems to make sense, no?
As long as "user" is not a reserved word for any DB implementations
(which is why I thought you used "app_user").
-Dale
---
Yeah, but the problem with that is we get into the whole
plural-table-names debate. I chose app_user because of Oracle
originally. I thought "role" was a keyword too, but apparently not.
Matt
On 3/14/07, Sanjiv Jivan <[EMAIL PROTECTED]> wrote:
I prefer "users" as "user" is a reserved word in
I prefer "users" as "user" is a reserved word in Oracle.
On 3/14/07, Matt Raible <[EMAIL PROTECTED]> wrote:
Are you using Hibernate? If so, there's a NamingStrategy feature you
can use to add your own prefixes.
I'm considering renaming "app_user" to "user" to be more standard.
Since these nam
You can do this in your projects... Just go to the User and Role objects
and change the table name in hibernate ;)
David M.
tibi wrote:
>IMHO, most companies don't want traces of AppFuse in their
if that is the case you are right.
i did not come acros those company's
you could also start with
>IMHO, most companies don't want traces of AppFuse in their
if that is the case you are right.
i did not come acros those company's
you could also start with app_* app for application.
the user and the roles are for the appliaction anywhy.
but either why its no big deal.
greatings
tibi
Matt R
IMHO, most companies don't want traces of AppFuse in their
applications, so I think this is a bad idea.
Sorry, we won't be making this change.
Matt
On 3/14/07, tibi <[EMAIL PROTECTED]> wrote:
ha you are just moving the other way ;)
i would reather see that the appfuse tables are easaly found
ha you are just moving the other way ;)
i would reather see that the appfuse tables are easaly found in a
database with lots of tables.
offcourse there is a way around with hiberante but why make live difficult.
if the 3 tables ware named appfuse_* than no problem would accure.
if database wou
Are you using Hibernate? If so, there's a NamingStrategy feature you
can use to add your own prefixes.
I'm considering renaming "app_user" to "user" to be more standard.
Since these names can be changed, it seems to make sense, no?
Matt
On 3/14/07, tibi <[EMAIL PROTECTED]> wrote:
hi matt and
hi matt and others,
i use appfuse on an existing database structure. appfuse uses 3 tables.
i would like to see that the naming off these tables would be kind of
unique (like appfuse_rol, appfuse_user_rol)
just an idea...
ciao,
tibi
--
44 matches
Mail list logo