[JBoss Messaging] - Re: Make Messaging server talk to MySQL DB
by vvd
after copying the mysql related file in the respective directories
ie. mysql-persistence-service.xml into <jboss-installdir>/server/standalone-messaging/deploy/jboss-messaging
and mysql-ds.xml into <jboss-installdir>/server/standalone-messaging/deploy directory.
Only common change I made was to change the from 'DefaultDS' to 'msgq'.
In 'mysql-ds.xml' file I mentioned the machine and port, userid and password.
when I start the server I see the following error outputed to screen
13:32:20,213 INFO [Catalina] Server startup in 212 ms
13:32:20,341 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
13:32:20,782 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
13:32:21,781 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
13:32:22,223 INFO [[/web-console]] J2EEFolder: Failed to init plugin, bsh/Interpreter
13:32:22,236 INFO [[/web-console]] SystemFolder: Failed to init plugin, bsh/Interpreter
13:32:22,656 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
13:32:22,971 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:name=msgq,service=DataSourceBinding' to JNDI name 'java:msgq'
13:32:23,019 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver))
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001867#4001867
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001867
19 years, 3 months
[JBoss Seam] - Re: Logging using java.util.logging.*?
by SmokingAPipe
I'll certainly be trying 1.1.1 when it comes out.
But in this case I'm sure that wouldn't help. In my app, I have:
System.out.println: nothing appears
java.util.logging.Logger: nothing appears
Servlet.log(): nothing appears
When all my other apps start up they leave all sorts of chatter about mapping entities, starting message queues, deploying Tomcat, etc. When these two apps deploy, there is NOTHING on the console. I don't even know that they are deploying.
So I'm 99.9% certain that @Logger wouldn't make any difference because none of Seam's other messages are showing up either.
As I said, log4j is fragile junk. The most important feature of a logging system is to log. I have checked over every config file I can think of checking and I can't see any problem.
I'm certain that this is related to virtual hosts and maybe to the way Tomcat handles virtual hosts. I am getting log messages just fine on my other machine here that has only one host entry in the server.xml file. I think I've seen strange behavior like this in Tomcat with virt. hosts before.
None of this excuses it; if it takes me a day to figure out why logger.severe("hello") isn't leaving a message, that is broken. Loggers are debugging tools.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001864#4001864
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001864
19 years, 3 months
[JBoss Seam] - Seam selectItems ignores label tag
by hubaer
Hello,
I tried to figure out how the selectItems component from seam works, but I wasn't very successful yet.
I tried out the examples but I can't figure out how I can transfer this to my application.
Here my scenario:
I have a List of Languages, that I want to display my web gui in a h:selectOneMenu.
I have extend my jsf, wrote a Converter, make a backing bean. The value of the option is set correct through the Converter, but for the description I get always the result of the toString() method. It seems that the label tag is ignored. I can write what ever I want and get always the toString()-result.
Maybe I have configured wrong.
Here some code fragements:
The jsp:
|
| <h:selectOneMenu value="#{user.language}" converter="myLanguageConverter">
| <si:selectItems
| value="#{languages}" var="language" label="#{language.isocode}"/>
| </h:selectOneMenu>
|
The backing bean:
| public class EditUserInformationActionBean implements EditUserInformationAction, Serializable {
|
| @SelectItems
| private List<Language> languages;
|
|
| @Factory("languages")
| public void initLanguages() {
| languages = ItemHelper.initLanguage();
| }
|
| ...
|
| }
|
The Converter:
| public class LanguageConverter extends SelectItemsConverter {
|
| public LanguageConverter() {
| }
|
| public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException {
| throw new ConverterException("Method not supported");
| }
|
| public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException {
| if (null == value) {
| return "";
| }
| if (value instanceof Language) {
| Language l = (Language) value;
| return formatLanguageString(l);
| }
| return "";
| }
|
|
The language class:
| public class Language implements Serializable {
|
| @Id
| @Column(name = "isocode", nullable = false)
| private String isocode;
|
| /** Creates a new instance of Language */
| protected Language() {
| }
|
| // getter/setter, toString, equals etc.
|
The examples works fine. But I think there is an litte error, too. The discount drop-down-field has the descriptions "tenPercent", ""twentyPercent" and "twentyFivePercent", but I would expected the values from the message.properties (10%, 20% and 25%)
I hope someone could give me a hint what's wrong.
My System:
- WinXP Pro
- JBoss 4.0.5.GA
- Seam 1.1.0.GA
Tried:
- selectitems-1.1.1beta4
- selectitems-1.1.0rc2
Regards
Marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001851#4001851
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001851
19 years, 3 months