[Beginner's Corner] - How to share additional libraries, Jboss 5.1.0GA?
by Akaine Harga
Akaine Harga [http://community.jboss.org/people/akaine] created the discussion
"How to share additional libraries, Jboss 5.1.0GA?"
To view the discussion, visit: http://community.jboss.org/message/553566#553566
--------------------------------------------------------------
Hello
I know this is one the most common questions, still after an extensive search I couldn't find the answer.
The problem is simple:
I've got one or more EAR apps and their WAR components use external libraries (richfaces, commons, etc.). While I deploy the EARs with their respective libs inside I have no problems but as soon as I try to put at least one lib inside any of known shared dirs (common/lib/ or server/default/lib/) I can't even start the AS without admin-console app throwing exceptions. Needless to say my apps won't deploy as well after this.
Normally I could live with all my libs staying inside the WARs. But since I frequently redeploy the applications remotely and JBoss fails to wait until I upload them entirely trying to deploy partially uploaded EARs I was thinking to share the used libs so I could limit myself to uploading the pure compiled projects which weight ten times less than my libs.
I don't know if this is a normal behavior but even with one richfaces jar inside any of two previously mentioned dirs (no EARs deployed, clean Jboss installation) I get:
20:15:11,656 INFO [TomcatDeployment] deploy, ctxPath=/admin-console
20:15:11,734 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'
20:15:12,375 ERROR [Digester] End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor260.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
...
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.ajax4jsf.resource.InternetResourceBase.restoreData(InternetResourceBase.java:248)
at org.richfaces.renderkit.html.Paint2DResource.getRenderer(Paint2DResource.java:68)
at org.ajax4jsf.resource.ResourceBuilderImpl.addResource(ResourceBuilderImpl.java:406)
... 104 more
20:15:12,390 ERROR [[/admin-console]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)
...
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.ajax4jsf.resource.InternetResourceBase.restoreData(InternetResourceBase.java:248)
at org.richfaces.renderkit.html.Paint2DResource.getRenderer(Paint2DResource.java:68)
The complete start log is in the attacked txt.
Thanks in advance :)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553566#553566]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months
[JBoss Tools] - name conflict: surrogate and business key both want name 'id'
by John Franey
John Franey [http://community.jboss.org/people/jjfraney] created the discussion
"name conflict: surrogate and business key both want name 'id'"
To view the discussion, visit: http://community.jboss.org/message/553564#553564
--------------------------------------------------------------
This has impact on my team's use of jboss tools. If we chose a different name for surrogate key (not 'id') then I'd have a question about changing the generated xhtml and java code.
In short, we want to use a surrogate key, which we believe is the recommendation of Hibernate devlopers. I think Hibernate, Seam and JBoss tools are all using the name 'id' for the surrogate key. 'id' is not meant to be a business (natural) key. The trouble is that 'id' is such a natural name for business level keys. So, we could have a customer id that is known to the user of the webapp; the 'customer id' is NOT the surrogate key.
So, our first try is to build convention that a field named 'sid' would be the surrogate id and 'id' as the natural key. A customer table would have both fields and so we would refer to the business key as the 'customer id'. That seems like a natural fit. The trouble with that is all the code generated by seam which uses 'id' as the surrogate field. I don't think its viable to change the code generators.
Another alternative is to retain 'id' as the name of surrogate key, but use the 'tablename_id' as the business (natural) id. For example, a customer table would have an 'id' and a 'customer_id' field, former is surrogate, latter is natural. I think this could be a bit more confusing than the first option. Developers would get confused if they forgot to put themselves in the business perspective when talking about 'id'.
So, I'm fishing for suggestions from this group on what approach would fit best with the jboss tools and lead to the least confusion.
If you use 'sid' as the surrogate id, how do you work with the seam generated code? Do you generate it and then manually edit? or do you alter the code generator, and how did you do that? As your project progressed, did you suffer any regret?
Regards,
John
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553564#553564]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months
[jBPM Development] - History details
by Maciej Swiderski
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] created the discussion
"History details"
To view the discussion, visit: http://community.jboss.org/message/553528#553528
--------------------------------------------------------------
Hi,
I am about to start work on history details and before I start want to collect your ideas and expectations on what shall be included. Here is a list of items that I identified (or was already defined in code/jira) and I find them required:
* task assignment changes
* start work on task
* change priority of task
* start of the process mainly user information (who did it)
* signal wait state again, mainly user information (who did it)
* variables updates, since history can be already enabled but it will keep the most recent value
All of them will rely on provided user information, it will be secured when working with BPM console but if working though API it must be provided manually.
Please share your thoughts so we could have the most complete solution with 4.5.
Cheers,
Maciej
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553528#553528]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months
[JBoss Portal] - How to suppress "Server Credentials required" screen in Eclipse
by baa baa
baa baa [http://community.jboss.org/people/baabaa] created the discussion
"How to suppress "Server Credentials required" screen in Eclipse"
To view the discussion, visit: http://community.jboss.org/message/553513#553513
--------------------------------------------------------------
I have 2 machines
Machine A has "jboss community 5.0"
Machine B has "jboss EAP 4.3"
On machine B, I am trying to start the "JBOSS eap 4.3 runtime server" from eclipse. However I always get this warning messagebox.
"Server credential required"
"Your server is responding to JMX inquiries with a security exception. You can try entering new credentials below or can click ignore but deploying and stopping may not function."
If I ignore it server starts but deployment does not fucntion well.
How do I figure out what credentials it is looking for?
If I use run.bat on machine B, I do not get a warning message. But I cannot use run.bat as I want to start the server from within eclipse so that I can use eclipse for debugging and auto generation/deployment of wsdd, etc.
If I use machine A, with Jboss 5.0, I do not get the warning messagebox. The server just starts without asking for credentials.
How do I suppress the credentials required screen on machine B?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553513#553513]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months