[JBoss Portal] - Help! portal-wsrp-client.jar deploy error
by shijiangpeng
Hi, pals, I am struck here! I installed a JBOSS 4.0.5 and Portal. In my case, I need to use JBoss WSRP and using JBOSS as a producer. The portal works fine and I can add or remove local portal. But WSRP has some problems. From start log, it says protal-wsrp-client.jar deployment failed! Here is the log information. Any help is highly appreciated. Thanks a lot.
org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
2007-02-13 11:46:19,156 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/C:/jboss-4.0.5.GA/server/default/deploy/jboss-portal.sar/portal-wsrp.sar/portal-wsrp-client.jar
org.jboss.deployment.DeploymentException: Failed to setup client ENC; - nested throwable: (org.jboss.deployment.DeploymentException: Cannot bind webservice to client environment; - nested throwable: (org.jboss.ws.WSException: Cannot unmarshall wsdl, cause: WSDLException (at /wsdl:definitions/import/wsdl:definitions/import/wsdl:definitions/wsdl:types/schema/schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'http://www.w3.org/2001/xml.xsd', relative to 'jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp18668portal-wsrp-client.jar!/META-INF/wsdl/wsrp_v1_types.xsd'.: Cannot access imported wsdl [http://www.w3.org/2001/xml.xsd], Connection timed out: connect: java.lang.RuntimeException: Cannot access imported wsdl [http://www.w3.org/2001/xml.xsd], Connection timed out: connect
at org.jboss.ws.metadata.wsdl.WSDL11DefinitionFactory$WSDLLocatorImpl.getImportInputSource(WSDL11DefinitionFactory.java:189)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:740)
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015948#4015948
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015948
19Â years, 2Â months
[Messaging, JMS & JBossMQ] - Re: Using CsIL
by markuskolp
Hello fawce,
thanks for your quick reply.
I have had already tried out the jbossmq-state.xml file and deployed it to jboss/server/default/conf, as well as the file-state-service.xml to the jboss/server/default/deploy/jms folder. while deploying, JBoss brings up a failure, because the StateManager-MBean has already been registered. See the errors below:
| [exec] 19:04:34,272 ERROR [MainDeployer] Could not create deployment: file:/D:/Programme/jboss-4.0.5.GA/server/default/deploy/jms/file-state-service.xml
| [exec] org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=StateManager
|
I found out, that the StateManager is already started by the hsqldb-jdbc-state-service.xml file in the jboss/server/default/deploy/jms folder. It actually starts the StateManager MBean and stores all the information about JMS users and roles into the integrated HSQL Database (Hypersonic). Following listing shows you the content of hsqldb-jdbc-state.xml.
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!-- hsqldb-jdbc-state-service.xml 23386 2004-09-03 21:38:12Z ejort -->
|
|
| <server>
|
| <!-- ==================================================================== -->
| <!-- JBossMQ State Management using HSQLDB -->
| <!-- See docs/examples/jms for other configurations -->
| <!-- ==================================================================== -->
|
| <!-- A Statemanager that stores state in the database -->
| <mbean code="org.jboss.mq.sm.jdbc.JDBCStateManager"
| name="jboss.mq:service=StateManager">
| <depends optional-attribute-name="ConnectionManager">jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
| <attribute name="SqlProperties">
| CREATE_TABLES_ON_STARTUP = TRUE
| CREATE_USER_TABLE = CREATE TABLE JMS_USERS (USERID VARCHAR(32) NOT NULL, PASSWD VARCHAR(32) NOT NULL, \
| CLIENTID VARCHAR(128), PRIMARY KEY(USERID))
| CREATE_ROLE_TABLE = CREATE TABLE JMS_ROLES (ROLEID VARCHAR(32) NOT NULL, USERID VARCHAR(32) NOT NULL, \
| PRIMARY KEY(USERID, ROLEID))
| CREATE_SUBSCRIPTION_TABLE = CREATE TABLE JMS_SUBSCRIPTIONS (CLIENTID VARCHAR(128) NOT NULL, \
| SUBNAME VARCHAR(128) NOT NULL, TOPIC VARCHAR(255) NOT NULL, \
| SELECTOR VARCHAR(255), PRIMARY KEY(CLIENTID, SUBNAME))
| GET_SUBSCRIPTION = SELECT TOPIC, SELECTOR FROM JMS_SUBSCRIPTIONS WHERE CLIENTID=? AND SUBNAME=?
| LOCK_SUBSCRIPTION = SELECT TOPIC, SELECTOR FROM JMS_SUBSCRIPTIONS WHERE CLIENTID=? AND SUBNAME=?
| GET_SUBSCRIPTIONS_FOR_TOPIC = SELECT CLIENTID, SUBNAME, SELECTOR FROM JMS_SUBSCRIPTIONS WHERE TOPIC=?
| INSERT_SUBSCRIPTION = INSERT INTO JMS_SUBSCRIPTIONS (CLIENTID, SUBNAME, TOPIC, SELECTOR) VALUES(?,?,?,?)
| UPDATE_SUBSCRIPTION = UPDATE JMS_SUBSCRIPTIONS SET TOPIC=?, SELECTOR=? WHERE CLIENTID=? AND SUBNAME=?
| REMOVE_SUBSCRIPTION = DELETE FROM JMS_SUBSCRIPTIONS WHERE CLIENTID=? AND SUBNAME=?
| GET_USER_BY_CLIENTID = SELECT USERID, PASSWD, CLIENTID FROM JMS_USERS WHERE CLIENTID=?
| GET_USER = SELECT PASSWD, CLIENTID FROM JMS_USERS WHERE USERID=?
| POPULATE.TABLES.01 = INSERT INTO JMS_USERS (USERID, PASSWD) VALUES ('guest', 'guest')
| POPULATE.TABLES.02 = INSERT INTO JMS_USERS (USERID, PASSWD) VALUES ('j2ee', 'j2ee')
| POPULATE.TABLES.03 = INSERT INTO JMS_USERS (USERID, PASSWD, CLIENTID) VALUES ('john', 'needle', 'DurableSubscriberExample')
| POPULATE.TABLES.04 = INSERT INTO JMS_USERS (USERID, PASSWD) VALUES ('nobody', 'nobody')
| POPULATE.TABLES.05 = INSERT INTO JMS_USERS (USERID, PASSWD) VALUES ('dynsub', 'dynsub')
| POPULATE.TABLES.06 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('guest','guest')
| POPULATE.TABLES.07 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('j2ee','guest')
| POPULATE.TABLES.08 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('john','guest')
| POPULATE.TABLES.09 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('subscriber','john')
| POPULATE.TABLES.10 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('publisher','john')
| POPULATE.TABLES.11 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('publisher','dynsub')
| POPULATE.TABLES.12 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('durpublisher','john')
| POPULATE.TABLES.13 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('durpublisher','dynsub')
| POPULATE.TABLES.14 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('noacc','nobody')
| </attribute>
| </mbean>
|
| </server>
|
|
As you can see, it has the same content (same users and roles e.g. dynsub) like the jbossmq-state.xml has - it just stores them into the database as you can see in the following image. The image shows the HSQL Database Manager and the content of one of these tables.
[img]http://markus-kolp.jimdo.com/cc_images/cache_3071238.jpg[/img]
I'm using JBoss 4.0.5. This version automatically supplies this file and chooses this way via the database - and not the jbossmq-state.xml file.
I've tried to remove the hsqldb-jdbc-state-service.xml file and afterwards deploying the jbossmq-state.xml file.
Then I tested the application again, but I still get the same error messages.
I also tried out the way with the config file (csil-conf.xml) you mentioned, but it doesn't work either.
Do you have a complete VS.NET project/solution that I could try out? My email is markus.kolp(a)freenet.de.
What else could I be doing wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015946#4015946
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015946
19Â years, 2Â months
[JBoss Seam] - <si:selectItems /> and selectMany
by fhh
Hello!
I'm trying to use <si:selectItems /> together with <h:selectMany /> and it seems to be buggy.
|
| @Name("Department")
| @Scope(CONVERSATION)
| public Class Department {
|
| private List<Employee> employees;
|
| }
|
| @Entity
| public Class Employee {
|
| @Id
| private Integer id;
| private String name;
|
| }
|
Now I want to do something like this:
| <h:selectManyCheckbox value="#{department.employees}">
|
| <si:selectItems value="#{employee}" var="employee" label="#{employee.name}" cache="true" />
|
| </h:selectManyCheckbox>
|
This does not work on the first try. I get a validation error - "Selected item cannot be loaded from persistence context." If I try again it works and the ArrayList is updated correctly. Is this a bug or I am doing something wrongly?
Regards
Felix
P.S.: All the "employees" have been persisted before and do have a valid id.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015942#4015942
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015942
19Â years, 2Â months
[JBoss Seam] - Seam and XML configuration files doubt
by fernando_jmt
Hi.
I have the following doubt:
I wanna have pages.xml and even components.xml arranged by module (application specific of course), having as example this distribution:
| WEB-INF/
| + components.xml (general Seam components)
| + components-contacts.xml (Contact module components)
| + components-sales.xml (Sales module components)
| ....
|
and for pages:
| WEB-INF/
| + pages.xml (general pages and exceptions to be used in all app.)
| + pages-contacts.xml (all pages belonging contact module)
| + pages-sales.xml (Sales module pages)
| ....
|
|
Is above configuration possible?
I saw the documentation and check point 4.3. out (Fine-grained configuration files), but this is not what I mean here.
Anybody knows if is this possible? and if not, I think it could be a good alternative to have included. do you?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015941#4015941
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015941
19Â years, 2Â months