[Installation, Configuration & DEPLOYMENT] - Re: JBOSS Stop error
by harish73
As i can see firewall is disable on the server. I have no idea about selinux.
I have to use customize the jboss in such a way that when the server reboot jboss starts up automatically. For this i have put 'jboss' script in /etc/rc.d/init.d directory whcih calls the run.sh file to start and shutdown.sh file to stop jboss.
When i start jboss /etc/rc.d/init.d/jboss start
then jboss run perfectly fine. But when i tries to stop jboss (which calls shutdown.sh file of jboss) then it gives me that error.
How to fix this.
I know alternatively i can kill the jboss process to stop which i don't want. I want to use shutdown.sh script.
Is it a problem with Jboss configuration or something else. Please correct me.
Thanks.
"PeterJ" wrote : Looks like either firewall or selinux issues.
|
| You can also stop the app server by doing ctrl-c in the terminal in which you started it. Or by using 'kill' to send a SIGINT signal. Either one causes the app server to shut down cleanly.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112974#4112974
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112974
18 years, 4 months
[JBoss Seam] - SelectOneMenu problem
by limousyf
Hello,
I make a second post following hager's one as we have new informations about our problem.
The problem is about a datatable and a selectOneMenu.
The objects in the selectOneMenu can be added to the table, creating a new line (and vice-versa, a line in the datatable can be removed and goes back in the selectOneMenu)
On the business side we have two lists
- one representing the actual lines of the dataTable
| private List<Assignable> lignes;
|
| public List<Assignable> getLignes()
| {
| return this.lignes;
| }
|
| public void setLignes(List<Assignable> lignes)
| {
| this.lignes = lignes;
| }
|
- and another representing the lines availables for adding (the lines in the selectOneMenu)
| private List<Assignable> availableLines;
|
| public List<Assignable> getAvailableLines()
| {
| return availableLines;
| }
|
| public void setAvailableLines(List<Assignable> availableLines)
| {
| this.availableLines = availableLines;
| }
|
On the view side we have:
| <h:selectOneMenu id="selectOneAssignable"
| value="#{activitesByCollaborateurCrossData.selectedAssignable}"
| converter="#{activitesByCollaborateurCrossData.assignableConverter}">
| <s:selectItems
| value="#{activitesByCollaborateurCrossData.availableLines}"
| var="assign" label="#{assign.designation}"
| id="selectAssignable" />
|
| </h:selectOneMenu>
| <h:commandLink action="#{activitesByCollaborateurCrossData.addAssignable}">
| <h:graphicImage value="img/add.png" />
| <s:conversationId />
| </h:commandLink>
|
The problem is: when we add a line using the button, the line is actually added to the datatable, moved from one list to another in the business side (we have checked this in debug) and the getter returns the list for the selectOneMenu without the selectedObject.
But in the view the object is still in the options of the selectOneMenu !
And, of course, when we try to do something else, adding another line, doing something else in the page, etc ... there is an error in the log :
| sourceId=activitesByCollaborateurCrossDataForm:selectOneAssignable[severity=(ERROR 2), summary=(Valeur invalide), detail=(Valeur invalide)]
|
| ("Invalid Data" localized)
|
which looks normal because the model and the view are "desynchronized" on this list.
After the "try an action - get the invaid data error" routine, the list is correctly displayed in the selectOneMenu and we can add another line, as the model and the view are once again "synchronized" I guess.
But adding another line repeats the problem ... etc ...
Our bean is a stateful one:
| @Stateful
| @Scope(ScopeType.CONVERSATION)
| @Name("activitesByCollaborateurCrossData")
| public class activitesByCollaborateurCrossDataBean implements activitesByCollaborateurCrossData {
|
I initially thought it was a converting issue, as "Assignable" is interface, so I created a converter that handle all the objects implementing the interface, but it didn't change anything.
The most annoying stuff is the same code was actually working in seam 1.2
The error appeared after upgrading to Seam 2.0.0.GA + JBoss 4.2.1
Does anyone have an idea on that one ?
Regards,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112973#4112973
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112973
18 years, 4 months
[JBoss Seam] - Re: @Factory & Pagination
by Andy Gibson
Hey Sven,
Well, here's the problem, the factory method needs to know what page you are on, and then return the results for that page.
The first easy option is to use an EntityQuery which has the firstResult and maxResults, next, first, last, previous and a bunch of other properties and methods to let you control the data.
You can roll your own, but then you find yourself writing a bunch of code that is the same as the existing EntityQuery object code.
The problem with the rich:dataScroller is that it works on the whole list at once. The EntityQuery queries the database for the number of rows in the result, and then only fetches the number of rows on a page.
You can set up params in pages.xml to pass from one page to the next the values of the current page so you have a stateless viewer as opposed to keeping all items in memory (or keep reloading them) for the data scroller.
Cheers,
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112971#4112971
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112971
18 years, 4 months