[JBoss Seam] - Re: Seam generate-entities failing
by Azavia
OK, some more problems.
I was trying a bit more complicated example.
I had some tabls like the following:
mysql> show create table user;show create table article;show create table commen
| t;
| +-------+-----------------------------------------------------------------------
| --------------------------------------------------------------------------------
| -------+
| | Table | Create Table
|
| |
| +-------+-----------------------------------------------------------------------
| --------------------------------------------------------------------------------
| -------+
| | user | CREATE TABLE `user` (
| `username` varchar(50) NOT NULL,
| `email` varchar(255) NOT NULL,
| PRIMARY KEY (`username`)
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
| +-------+-----------------------------------------------------------------------
| --------------------------------------------------------------------------------
| -------+
| 1 row in set (0.22 sec)
|
| +---------+---------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| -------------------------------------------------------+
| | Table | Create Table
|
|
|
| |
| +---------+---------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| -------------------------------------------------------+
| | article | CREATE TABLE `article` (
| `id` int(10) unsigned NOT NULL auto_increment,
| `username` varchar(50) NOT NULL,
| `title` varchar(100) NOT NULL,
| `text` text NOT NULL,
| PRIMARY KEY (`id`),
| KEY `username` (`username`),
| CONSTRAINT `article_ibfk_1` FOREIGN KEY (`username`) REFERENCES `user` (`usern
| ame`) ON UPDATE CASCADE
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
| +---------+---------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| -------------------------------------------------------+
| 1 row in set (0.03 sec)
|
| +---------+---------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------+
| | Table | Create Table
|
|
|
|
|
|
| |
| +---------+---------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------+
| | comment | CREATE TABLE `comment` (
| `id` int(10) unsigned NOT NULL,
| `username` varchar(50) NOT NULL,
| `article_id` int(10) unsigned NOT NULL,
| `title` varchar(100) NOT NULL,
| `comment` text NOT NULL,
| PRIMARY KEY (`id`),
| KEY `username` (`username`),
| KEY `article_id` (`article_id`),
| CONSTRAINT `comment_ibfk_1` FOREIGN KEY (`username`) REFERENCES `user` (`usern
| ame`) ON DELETE CASCADE ON UPDATE CASCADE,
| CONSTRAINT `comment_ibfk_2` FOREIGN KEY (`article_id`) REFERENCES `article` (`
| id`) ON DELETE CASCADE ON UPDATE CASCADE
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
| +---------+---------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------------------------------------------------------------------
| --------------------+
| 1 row in set (0.01 sec)
|
| mysql>
so, i run seam generate-entities using this database, and a project I called blog.
It builds successfully, but I get some errors when I go to the project at http://localhost:8080/blog
The first noticeable thing is that when i go to create an article, or a user, etc, I get an error about requiring an ending s:button tag. When I looked at the template, for one of the tags, there was an s:button, but s:link was used to close it.
I don't know why is this happening. I'm guessing it is some bug. I figured this wasn't too complicated of an example to test on, but I don't know.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990723#3990723
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990723
18 years, 1 month
[JBoss and NetBeans] - I want to use jboss deploy my web app, error!
by lcfzgb
I use jboss4.0.4 + netbeans5.5 + visualweb pack to develop a simple web application supporting jsf.
that doesn't works.
there is only a page and a table component on it bound a connected database (mssqlserver2000,I can see the connection status on the panel of ide)
when I run the project ,the iexplorer display as below:
HTTP Status 404 - /firstweb
--------------------------------------------------------------------------------
type Status report
message /firstweb
description The requested resource (/firstweb) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.17
So I don't know whether jboss as support jsf or confict with the netbeans' jsf implementation .I config the server to jboss as when set up the project.
I want to use jboss deploy my web app, what should I do? Please help me ! thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990720#3990720
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990720
18 years, 1 month
[JBoss Seam] - Help - seam component not found:
by dustismo
I have been banging my head at this all day. I created an app using seam-gen backed by a mysql database with a few tables in it. Everything seemed to work fine, I can view the generated app but it won't display any of the records in the DB. I believe it is connected to the db, but for some reason it is not finding ANY of the components.
| 2006-12-01 20:20:45,728 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@e75a11, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3e91e7{ url=null ,addedOrder=0}
| 2006-12-01 20:20:45,859 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: subUserHome
| 2006-12-01 20:20:45,859 DEBUG [org.jboss.seam.Component] seam component not found: subUserHome
| 2006-12-01 20:20:45,860 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
| 2006-12-01 20:20:45,860 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: subUserHome
| 2006-12-01 20:20:45,860 DEBUG [org.jboss.seam.Component] seam component not found: subUserHome
| 2006-12-01 20:20:45,860 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
| 2006-12-01 20:20:45,878 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: subUserHome
| 2006-12-01 20:20:45,878 DEBUG [org.jboss.seam.Component] seam component not found: subUserHome
| 2006-12-01 20:20:45,878 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
| 2006-12-01 20:20:45,879 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: subUserHome
| 2006-12-01 20:20:45,879 DEBUG [org.jboss.seam.Component] seam component not found: subUserHome
| 2006-12-01 20:20:45,879 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
| 2006-12-01 20:20:45,880 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: subUserHome
| 2006-12-01 20:20:45,880 DEBUG [org.jboss.seam.Component] seam component not found: subUserHome
| 2006-12-01 20:20:45,880 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
| 2006-12-01 20:20:45,881 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: subUserHome
| 2006-12-01 20:20:45,881 DEBUG [org.jboss.seam.Component] seam component not found: subUserHome
| 2006-12-01 20:20:45,881 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
| 2006-12-01 20:20:45,881 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: subUserHome
| 2006-12-01 20:20:45,881 DEBUG [org.jboss.seam.Component] seam component not found: subUserHome
| 2006-12-01 20:20:45,881 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
| 2006-12-01 20:20:45,882 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: subUserHome
| 2006-12-01 20:20:45,882 DEBUG [org.jboss.seam.Component] seam component not found: subUserHome
| 2006-12-01 20:20:45,882 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
|
|
Any help?
-Dustin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990718#3990718
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990718
18 years, 1 month