RE: Question about database process for developpment

2014-01-07 Thread Nicolas MULLER
Hello,

Thanks Glen for the tutorial. I understand the process.  
Is the best way for working with tomcat to let the war in the maven target
place and to config tomcat to use it at this location (exploded or not). I
will try it. I had roller-custom into tomcat too as you explained.

Just to understand : in which case how to use jetty:run ? demo ? 

Thanks you very much.
Best regards,

-Original Message-
From: Nicolas MULLER [mailto:n.mul...@nouvellemarque.com] 
Sent: vendredi 3 janvier 2014 16:42
To: dev@roller.apache.org
Subject: RE: Question about database process for developpment

Thanks Glen

I will read it now. The checkout seems smaller/simpler

Best regards,

-Original Message-
From: Glen Mazza [mailto:glen.ma...@gmail.com]
Sent: vendredi 3 janvier 2014 14:02
To: dev@roller.apache.org
Subject: Re: Question about database process for developpment

Hi Nicolas, welcome back to Roller, please work off trunk, it's much
smaller/simpler than the 5.0.2 branch.

Our installation guide (lastest version in trunk is the best to go to--check
our homepage menu) shows how to deploy locally on Tomcat with a standalone
MySQL, Derby, or PostgreSQL database.  See the 2nd paragraph of the email I
just sent Gaurav: 
http://markmail.org/message/nxdsqdm25thm6hcw . Our test embedded DB options
just erase at each start, probably not what you want.

Regards,
Glen


On 01/03/2014 07:40 AM, Nicolas MULLER wrote:
 Hello,

   

 I wish you a happy new year 2014.  After a long break and a new child, 
 I try to come back to roller source.

   

 I dare to ask a dumb question : how do you do to keep database between 
 two start ?

 At each run, I lost all data. It is hard to develop with embedded
database.
 Do you change to postgre or ???

   

 I am trying to store images into database and it is hard to test it. I 
 need to create an account at each start.

 For unit test, It is not a problem but for other parts ?


 Thank you very much.

 Best regards





maven tests still do not work on centos 6.5

2014-01-07 Thread Greg Huber
Glen,

I still cannot run the tests due to this error.  There is some other port
that  inmemdb uses in the background.

I have had a look at the source but I think it may be in
com.btmatthews.utils package which is not included in the git download.

Do you have the source for this?   com.btmatthews.utils

port 4224 is not in use:

[INFO] --- inmemdb-maven-plugin:1.3.0:run (run) @ roller-webapp ---
[INFO] Configured database port: 4224
[INFO] Configured database username: APP
[INFO] Configured database password: APP
[INFO] Configured database name: rollerdb
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ roller-webapp
---
[ERROR] Error starting or stopping the monitor
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at
java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
at java.net.ServerSocket.bind(ServerSocket.java:376)
at java.net.ServerSocket.init(ServerSocket.java:237)
at com.btmatthews.utils.monitor.Monitor.runMonitor(Monitor.java:82)
at com.btmatthews.utils.monitor.Monitor$1.run(Monitor.java:108)
at java.lang.Thread.run(Thread.java:722)
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.3:war (default-war) @ roller-webapp ---
[INFO] Packaging webapp
[INFO] Assembling webapp [roller-webapp] in
[/home/ghuber/eclipse43roller/workspace/roller-project/app/target/roller]
[INFO] Processing war project
[INFO] Copying webapp resources
[/home/ghuber/eclipse43roller/workspace/roller-project/app/src/main/webapp]
[INFO] Webapp assembled in [3761 msecs]
[INFO] Building war:
/home/ghuber/eclipse43roller/workspace/roller-project/app/target/roller.war
[INFO] Packaging classes
[INFO] Building jar:
/home/ghuber/eclipse43roller/workspace/roller-project/app/target/roller-classes.jar
[INFO]
[INFO] --- inmemdb-maven-plugin:1.3.0:stop (stop) @ roller-webapp ---
[INFO] Sending command stop to monitor
[ERROR] Error sending command to monitor
java.net.NoRouteToHostException: No route to host
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.init(Socket.java:425)
at java.net.Socket.init(Socket.java:241)
at com.btmatthews.utils.monitor.Monitor.sendCommand(Monitor.java:190)
at
com.btmatthews.utils.monitor.mojo.AbstractStopMojo.execute(AbstractStopMojo.java:40)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)

Cheers Greg


Re: (another idea) Re: ROL-1981 Category ordering

2014-01-07 Thread Gaurav

Hello Glen,

I figured out that issues, as I told when I use getWeblogCategories() 
method, then the error comes, actually its due to  the reason that I 
have removed below one-to-many mapping in orm file and still using the 
method. As you said, I studied JPA and get some time into it and learned 
new things about the mapping relationship. Now, I am thinking of 
implementing the same way as getWeblogEntries are listed  as it also 
come respect to the weblog/website.


one-to-many name=weblogCategories mapped-by=parent 
target-entity=org.apache.roller.weblogger.pojos.WeblogCategory 
fetch=LAZY/one-to-many


Thanks
Gaurav

On Monday 06 January 2014 02:36 AM, Glen Mazza wrote:
I don't know, but I don't like that statement 
c.getWeblogCategories().add(c);   A WeblogCategory should no longer 
have child weblog categories (they are pure siblings of each other 
with no hierarchical relationship), so such an add shouldn't exist.  
You can have --Weblog---.getWeblogCategories().add(c), that would 
make sense.


Glen

On 01/05/2014 03:32 PM, Gaurav wrote:

Hello Glen,

I tried finding the that issues, but did not find anywhere. Also it 
is created dynamically as I changed the entity name to category1 then 
also sameerror come up with category1_category1 doesn't exist. I 
think this might be something I am doing wrong with the code. As, 
Today I cleaned up all the code and now everything is working good. I 
am successful in creating, editing and deleting the weblog, entries, 
categories and everything is showing good.


Just single problem I am having now is showing the categories list in 
feeds and in menu. I figured out after checking that 
$categoryObject.getWeblogCategories() is iterated in velocity file 
which check for the getWeblogCategories() method of type Set in 
WeblogCategory class, Initially I commented this method as the 
comments over this method said Get child categories of this 
category. But I think this is neccasary as whenever a category is 
created this is called to add a category to Set 
rootCat.getWeblogCategories().add(c);


Now, Problem is we did not have any parent or root category now, so 
how it will going to add to that Set and Also I tried creating a 
object of WeblogCategory Class and tried adding it to 
getWeblogCategories() method then again. Now When I tired adding 
category with this c.getWeblogCategories().add(c); the same error 
comes up. If I comment this line that add category, everything works 
fine again, just did not get any list of categories in menu and feed.


Also, I am confused what setWeblogCategories() is doing as I did not 
find anywhere where it is used for setting categories. Just the 
getWeblogCategories() is used with .add for adding child categories 
to parent/root.


Below is what I done in addWeblogContents method of class 
JPAWeblogManagerImpl.


if (cats != null  cats.trim().length()  0) {
String[] splitcats = cats.split(,);
for (int i=0; isplitcats.length; i++) {
WeblogCategory c = new WeblogCategory(
newWeblog,   // newWeblog
splitcats[i],// name
splitcats[i],// description
null );  // image
if (i == 0) {
firstCat = c;
}
System.out.println(Cats===+c);
c.getWeblogCategories().add(c); //previously it was 
root.getWeblogCategories.add(c);

this.strategy.store(c);
}
}


[EL Warning]: 2014-01-05 
17:15:22.179--ClientSession(1956103136)--Exception [EclipseLink-4002] 
(Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): 
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLSyntaxErrorException: Table/View 
'CATEGORY_CATEGORY' does not exist.

Error Code: 2
Call: INSERT INTO category_category (weblogCategories_id, 
WeblogCategory_id) VALUES (?, ?)

bind = [2 parameters bound]
Query: DataModifyQuery(name=weblogCategories sql=INSERT INTO 
category_category (weblogCategories_id, WeblogCategory_id) VALUES (?, 
?))

*

*Also I tried making new ArrayList and new getter setter in 
WeblogCategory class, still I got same error.

ListWeblogCategory catsss = new ArrayListWeblogCategory();
catsss.add(c);
c.setList(catsss);
System.out.println(==+catsss++c.getList());

Got this error, after adding Arraylist.

[EL Warning]: 2014-01-05 
19:42:56.209--ClientSession(1732472947)--Exception [EclipseLink-4002] 
(Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): 
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLSyntaxErrorException: Table/View 
'CATEGORY_CATEGORY' does not exist.

Error Code: 2
Call: INSERT INTO category_category (list_id, WeblogCategory_id) 
VALUES (?, ?)

bind = [2 parameters bound]
Query: DataModifyQuery(name=list sql=INSERT INTO category_category 
(list_id, 

Re: (another idea) Re: ROL-1981 Category ordering

2014-01-07 Thread Gaurav

Hello Glen,

I am completed with the Database, JPA, UI Layer. I have tested all 
possible ways by creating, deleting, updating entries, categories and 
also the complete weblog.
The only single issue left is in Template Layer. Actually in weblog.vm 
file for iterating categories list for menu and feeds, it uses 
($weblog.weblogCategories). It try getting list from WeblogCategory 
method getWeblogCategories() and wrapping up with WeblogCategoryWrapper 
and WeblogWrapper classes. But as this method is no longer required, as 
it was for maintaining relations of parent-child, It did not get any list.


I though of retaining getWeblogCategories() method in WeblogCategory 
class, and getting list of categories directly from 
JPAWeblogEntryManager but it seems wrong to me according to the 
structure. Can you please guide me what should be the best way to go ?


Thanks
Gaurav

On Wednesday 08 January 2014 01:25 AM, Gaurav wrote:

Hello Glen,

I figured out that issues, as I told when I use getWeblogCategories() 
method, then the error comes, actually its due to  the reason that I 
have removed below one-to-many mapping in orm file and still using the 
method. As you said, I studied JPA and get some time into it and 
learned new things about the mapping relationship. Now, I am thinking 
of implementing the same way as getWeblogEntries are listed  as it 
also come respect to the weblog/website.


one-to-many name=weblogCategories mapped-by=parent 
target-entity=org.apache.roller.weblogger.pojos.WeblogCategory 
fetch=LAZY/one-to-many


Thanks
Gaurav

On Monday 06 January 2014 02:36 AM, Glen Mazza wrote:
I don't know, but I don't like that statement 
c.getWeblogCategories().add(c);   A WeblogCategory should no longer 
have child weblog categories (they are pure siblings of each other 
with no hierarchical relationship), so such an add shouldn't 
exist.  You can have --Weblog---.getWeblogCategories().add(c), that 
would make sense.


Glen

On 01/05/2014 03:32 PM, Gaurav wrote:

Hello Glen,

I tried finding the that issues, but did not find anywhere. Also it 
is created dynamically as I changed the entity name to category1 
then also sameerror come up with category1_category1 doesn't 
exist. I think this might be something I am doing wrong with the 
code. As, Today I cleaned up all the code and now everything is 
working good. I am successful in creating, editing and deleting the 
weblog, entries, categories and everything is showing good.


Just single problem I am having now is showing the categories list 
in feeds and in menu. I figured out after checking that 
$categoryObject.getWeblogCategories() is iterated in velocity file 
which check for the getWeblogCategories() method of type Set in 
WeblogCategory class, Initially I commented this method as the 
comments over this method said Get child categories of this 
category. But I think this is neccasary as whenever a category is 
created this is called to add a category to Set 
rootCat.getWeblogCategories().add(c);


Now, Problem is we did not have any parent or root category now, so 
how it will going to add to that Set and Also I tried creating a 
object of WeblogCategory Class and tried adding it to 
getWeblogCategories() method then again. Now When I tired adding 
category with this c.getWeblogCategories().add(c); the same error 
comes up. If I comment this line that add category, everything works 
fine again, just did not get any list of categories in menu and feed.


Also, I am confused what setWeblogCategories() is doing as I did not 
find anywhere where it is used for setting categories. Just the 
getWeblogCategories() is used with .add for adding child categories 
to parent/root.


Below is what I done in addWeblogContents method of class 
JPAWeblogManagerImpl.


if (cats != null  cats.trim().length()  0) {
String[] splitcats = cats.split(,);
for (int i=0; isplitcats.length; i++) {
WeblogCategory c = new WeblogCategory(
newWeblog,   // newWeblog
splitcats[i],// name
splitcats[i],// description
null );  // image
if (i == 0) {
firstCat = c;
}
System.out.println(Cats===+c);
c.getWeblogCategories().add(c); //previously it was 
root.getWeblogCategories.add(c);

this.strategy.store(c);
}
}


[EL Warning]: 2014-01-05 
17:15:22.179--ClientSession(1956103136)--Exception 
[EclipseLink-4002] (Eclipse Persistence Services - 
2.5.0.v20130507-3faac2b): 
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLSyntaxErrorException: Table/View 
'CATEGORY_CATEGORY' does not exist.

Error Code: 2
Call: INSERT INTO category_category (weblogCategories_id, 
WeblogCategory_id) VALUES (?, ?)

bind = [2 parameters bound]
Query: DataModifyQuery(name=weblogCategories 

Re: maven tests still do not work on centos 6.5

2014-01-07 Thread Glen Mazza
https://github.com/bmatthews68/monitor/tree/master/src/main/java/com/btmatthews/utils 
maybe...  Brian Matthews was very responsive on prior suggestions I had 
for him, so if you find something that he can do to make Centos work 
just let him know.  Also, if you can find a working configuration for 
your machine I can test that it works on Ubuntu.


Regards,
Glen


On 01/07/2014 09:36 AM, Greg Huber wrote:

Glen,

I still cannot run the tests due to this error.  There is some other port
that  inmemdb uses in the background.

I have had a look at the source but I think it may be in
com.btmatthews.utils package which is not included in the git download.

Do you have the source for this?   com.btmatthews.utils

port 4224 is not in use:

[INFO] --- inmemdb-maven-plugin:1.3.0:run (run) @ roller-webapp ---
[INFO] Configured database port: 4224
[INFO] Configured database username: APP
[INFO] Configured database password: APP
[INFO] Configured database name: rollerdb
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ roller-webapp
---
[ERROR] Error starting or stopping the monitor
java.net.BindException: Cannot assign requested address
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at
java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
 at java.net.ServerSocket.bind(ServerSocket.java:376)
 at java.net.ServerSocket.init(ServerSocket.java:237)
 at com.btmatthews.utils.monitor.Monitor.runMonitor(Monitor.java:82)
 at com.btmatthews.utils.monitor.Monitor$1.run(Monitor.java:108)
 at java.lang.Thread.run(Thread.java:722)
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.3:war (default-war) @ roller-webapp ---
[INFO] Packaging webapp
[INFO] Assembling webapp [roller-webapp] in
[/home/ghuber/eclipse43roller/workspace/roller-project/app/target/roller]
[INFO] Processing war project
[INFO] Copying webapp resources
[/home/ghuber/eclipse43roller/workspace/roller-project/app/src/main/webapp]
[INFO] Webapp assembled in [3761 msecs]
[INFO] Building war:
/home/ghuber/eclipse43roller/workspace/roller-project/app/target/roller.war
[INFO] Packaging classes
[INFO] Building jar:
/home/ghuber/eclipse43roller/workspace/roller-project/app/target/roller-classes.jar
[INFO]
[INFO] --- inmemdb-maven-plugin:1.3.0:stop (stop) @ roller-webapp ---
[INFO] Sending command stop to monitor
[ERROR] Error sending command to monitor
java.net.NoRouteToHostException: No route to host
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
 at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
 at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
 at java.net.Socket.connect(Socket.java:579)
 at java.net.Socket.connect(Socket.java:528)
 at java.net.Socket.init(Socket.java:425)
 at java.net.Socket.init(Socket.java:241)
 at com.btmatthews.utils.monitor.Monitor.sendCommand(Monitor.java:190)
 at
com.btmatthews.utils.monitor.mojo.AbstractStopMojo.execute(AbstractStopMojo.java:40)
 at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
 at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
 at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)


Re: (another idea) Re: ROL-1981 Category ordering

2014-01-07 Thread Glen Mazza
Hi Gaurav, weblog.weblogCategories should still exist as probably a Set 
of some sort (Set because of no duplicate Categories allowed), a List is 
another option.  A weblog does own a collection of categories even with 
the change. What should not exist is some child set of categories under 
each category--any code asking for the latter can be removed because 
there are never any subcategories under a category anymore.


Might you be getting confused with this code?
#set($categories = $weblog.weblogCategories )
#foreach( $cat in $categories )

The above should be fine, you're not for-eaching child categories under 
the *category* but under the *weblog*.


Grepping the code for #showWeblogCategoryLinksList, is showing that 
this is its most common usage:


#showWeblogCategoryLinksList($rootCategory false false)

I.e., just show the top-level categories with no subcategories. With the 
new code, all three params are useless now.


I think what we need to do is create a new macro:

#showWeblogCategoryLinksList
that does the same as
#showWeblogCategoryLinksList($rootCategory false false)

And, for backward compatibility (at least so it compiles), have this macro:

(A) #showWeblogCategoryLinksList($categoryObj $expanding $subcats)
ignore all three of its arguments and just call
(B) #showWeblogCategoryLinksList

So (A) will be a deprecated method to be pulled out at a future time 
(maybe in 5.1) -- we'll have to update each of our templates that 
currently call (A) to have them call (B) instead -- a simple change to make.


I'm not sure if I'm answering your questions but I think this might be 
what you're getting at.


Regards,
Glen


On 01/07/2014 04:35 PM, Gaurav wrote:

Hello Glen,

I am completed with the Database, JPA, UI Layer. I have tested all 
possible ways by creating, deleting, updating entries, categories and 
also the complete weblog.
The only single issue left is in Template Layer. Actually in weblog.vm 
file for iterating categories list for menu and feeds, it uses 
($weblog.weblogCategories). It try getting list from WeblogCategory 
method getWeblogCategories() and wrapping up with 
WeblogCategoryWrapper and WeblogWrapper classes. But as this method is 
no longer required, as it was for maintaining relations of 
parent-child, It did not get any list.


I though of retaining getWeblogCategories() method in WeblogCategory 
class, and getting list of categories directly from 
JPAWeblogEntryManager but it seems wrong to me according to the 
structure. Can you please guide me what should be the best way to go ?


Thanks
Gaurav

On Wednesday 08 January 2014 01:25 AM, Gaurav wrote:

Hello Glen,

I figured out that issues, as I told when I use getWeblogCategories() 
method, then the error comes, actually its due to  the reason that I 
have removed below one-to-many mapping in orm file and still using 
the method. As you said, I studied JPA and get some time into it and 
learned new things about the mapping relationship. Now, I am thinking 
of implementing the same way as getWeblogEntries are listed  as it 
also come respect to the weblog/website.


one-to-many name=weblogCategories mapped-by=parent 
target-entity=org.apache.roller.weblogger.pojos.WeblogCategory 
fetch=LAZY/one-to-many


Thanks
Gaurav

On Monday 06 January 2014 02:36 AM, Glen Mazza wrote:
I don't know, but I don't like that statement 
c.getWeblogCategories().add(c);   A WeblogCategory should no 
longer have child weblog categories (they are pure siblings of each 
other with no hierarchical relationship), so such an add shouldn't 
exist.  You can have --Weblog---.getWeblogCategories().add(c), 
that would make sense.


Glen

On 01/05/2014 03:32 PM, Gaurav wrote:

Hello Glen,

I tried finding the that issues, but did not find anywhere. Also it 
is created dynamically as I changed the entity name to category1 
then also sameerror come up with category1_category1 doesn't 
exist. I think this might be something I am doing wrong with the 
code. As, Today I cleaned up all the code and now everything is 
working good. I am successful in creating, editing and deleting the 
weblog, entries, categories and everything is showing good.


Just single problem I am having now is showing the categories list 
in feeds and in menu. I figured out after checking that 
$categoryObject.getWeblogCategories() is iterated in velocity file 
which check for the getWeblogCategories() method of type Set in 
WeblogCategory class, Initially I commented this method as the 
comments over this method said Get child categories of this 
category. But I think this is neccasary as whenever a category is 
created this is called to add a category to Set 
rootCat.getWeblogCategories().add(c);


Now, Problem is we did not have any parent or root category now, so 
how it will going to add to that Set and Also I tried creating a 
object of WeblogCategory Class and tried adding it to 
getWeblogCategories() method then again. Now When I tired adding 
category with this 

Jenkins build is still unstable: Roller ยป Roller Webapp #1126

2014-01-07 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/Roller/org.apache.roller$roller-webapp/changes



Re: maven tests still do not work on centos 6.5

2014-01-07 Thread Greg Huber
https://github.com/bmatthews68/inmemdb-maven-plugin/issues/15


On 8 January 2014 02:43, Glen Mazza glen.ma...@gmail.com wrote:

 https://github.com/bmatthews68/monitor/tree/master/src/main/java/com/
 btmatthews/utils maybe...  Brian Matthews was very responsive on prior
 suggestions I had for him, so if you find something that he can do to make
 Centos work just let him know.  Also, if you can find a working
 configuration for your machine I can test that it works on Ubuntu.

 Regards,
 Glen


 On 01/07/2014 09:36 AM, Greg Huber wrote:

 Glen,

 I still cannot run the tests due to this error.  There is some other port
 that  inmemdb uses in the background.

 I have had a look at the source but I think it may be in
 com.btmatthews.utils package which is not included in the git download.

 Do you have the source for this?   com.btmatthews.utils

 port 4224 is not in use:

 [INFO] --- inmemdb-maven-plugin:1.3.0:run (run) @ roller-webapp ---
 [INFO] Configured database port: 4224
 [INFO] Configured database username: APP
 [INFO] Configured database password: APP
 [INFO] Configured database name: rollerdb
 [INFO]
 [INFO] --- maven-surefire-plugin:2.16:test (default-test) @ roller-webapp
 ---
 [ERROR] Error starting or stopping the monitor
 java.net.BindException: Cannot assign requested address
  at java.net.PlainSocketImpl.socketBind(Native Method)
  at
 java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
  at java.net.ServerSocket.bind(ServerSocket.java:376)
  at java.net.ServerSocket.init(ServerSocket.java:237)
  at com.btmatthews.utils.monitor.Monitor.runMonitor(Monitor.java:82)
  at com.btmatthews.utils.monitor.Monitor$1.run(Monitor.java:108)
  at java.lang.Thread.run(Thread.java:722)
 [INFO] Tests are skipped.
 [INFO]
 [INFO] --- maven-war-plugin:2.3:war (default-war) @ roller-webapp ---
 [INFO] Packaging webapp
 [INFO] Assembling webapp [roller-webapp] in
 [/home/ghuber/eclipse43roller/workspace/roller-project/app/target/roller]
 [INFO] Processing war project
 [INFO] Copying webapp resources
 [/home/ghuber/eclipse43roller/workspace/roller-project/app/
 src/main/webapp]
 [INFO] Webapp assembled in [3761 msecs]
 [INFO] Building war:
 /home/ghuber/eclipse43roller/workspace/roller-project/app/
 target/roller.war
 [INFO] Packaging classes
 [INFO] Building jar:
 /home/ghuber/eclipse43roller/workspace/roller-project/app/
 target/roller-classes.jar
 [INFO]
 [INFO] --- inmemdb-maven-plugin:1.3.0:stop (stop) @ roller-webapp ---
 [INFO] Sending command stop to monitor
 [ERROR] Error sending command to monitor
 java.net.NoRouteToHostException: No route to host
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at
 java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:
 339)
  at
 java.net.AbstractPlainSocketImpl.connectToAddress(
 AbstractPlainSocketImpl.java:200)
  at
 java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:
 182)
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
  at java.net.Socket.connect(Socket.java:579)
  at java.net.Socket.connect(Socket.java:528)
  at java.net.Socket.init(Socket.java:425)
  at java.net.Socket.init(Socket.java:241)
  at com.btmatthews.utils.monitor.Monitor.sendCommand(Monitor.
 java:190)
  at
 com.btmatthews.utils.monitor.mojo.AbstractStopMojo.execute(
 AbstractStopMojo.java:40)
  at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
 DefaultBuildPluginManager.java:106)
  at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(
 MojoExecutor.java:208)
  at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(
 MojoExecutor.java:153)
  at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(
 MojoExecutor.java:145)
  at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
 LifecycleModuleBuilder.java:84)
  at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
 LifecycleModuleBuilder.java:59)
  at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(
 LifecycleStarter.java:183)
  at
 org.apache.maven.lifecycle.internal.LifecycleStarter.
 execute(LifecycleStarter.java:161)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
  at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:57)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:601)
  at
 org.codehaus.plexus.classworlds.launcher.Launcher.
 launchEnhanced(Launcher.java:290)