[JBoss Seam] - Re: SelectOneMenu and OneToMany Seam 2.0 setup
by thinkblue
Oops...I guess I spoke too soon...I'm having a related issue...This time I'm having an issue with my edit mode...After the zipcode is added my app goes back to a the home screen where it displays the person in a table where you can edit it...When clicking on edit it brings up the correct record but the dropdown doesn't select the correct item.
Now I found out the I needed to override my main Entity and I did...Here is the code I used:
|
| @Override
| public boolean equals(Object obj) {
|
| if(this == obj) {
| return true;
| }
|
| if ( !(obj instanceof Person) ) {
| return false;
| }
|
| final Person o = (Person) obj;
|
| return this.personId.equals( o.getPersonId() );
| }
|
| @Override
| public int hashCode() {
| return personId.hashCode();
| }
|
After running the debugger I see the value that I need but is is in a Proxy wrapper...Does anyone know how to get to this information?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097209#4097209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097209
18Â years, 8Â months
[Installation, Configuration & DEPLOYMENT] - localhost:8080 is not working
by beatzepz
Hello everyone,
I downloaded jboss-4.2.1.GA.zip and extracted it into a new folder called
C:\Vorlesung\jboss-4.2.1.GA. After that I edited the run.bat with Java_home pointing to the Java folder:
rem JAVA_HOME set
echo Java_Home set
set JAVA_HOME=C:\Vorlesung\Java\jdk1.5.0_13
The server starts without any errors(I presume that because my last message is:
19:54:08,703 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBos
s_4_2_1_GA date=200707131605)] Started in 38s:610ms
But when I enter http://localhost:8080 in the browser (opera and firefox) I cannot see the start page from jboss. I also tried the IP instead of localhost--> same situation.
Here the messages from the console:
Thanks for comments on my problem
Java_Home set
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\Vorlesung\jboss-4.2.1.GA
JAVA: C:\Vorlesung\Java\jdk1.5.0_13\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
CLASSPATH: C:\Vorlesung\Java\jdk1.5.0_13\lib\tools.jar;C:\Vorlesung\jboss-4.2.
1.GA\bin\run.jar
===============================================================================
19:53:30,062 INFO [Server] Starting JBoss (MX MicroKernel)...
19:53:30,062 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=
JBoss_4_2_1_GA date=200707131605)
19:53:30,078 INFO [Server] Home Dir: C:\Vorlesung\jboss-4.2.1.GA
19:53:30,078 INFO [Server] Home URL: file:/C:/Vorlesung/jboss-4.2.1.GA/
19:53:30,078 INFO [Server] Patch URL: null
19:53:30,078 INFO [Server] Server Name: default
19:53:30,078 INFO [Server] Server Home Dir: C:\Vorlesung\jboss-4.2.1.GA\server\
default
19:53:30,078 INFO [Server] Server Home URL: file:/C:/Vorlesung/jboss-4.2.1.GA/s
erver/default/
19:53:30,078 INFO [Server] Server Log Dir: C:\Vorlesung\jboss-4.2.1.GA\server\d
efault\log
19:53:30,078 INFO [Server] Server Temp Dir: C:\Vorlesung\jboss-4.2.1.GA\server\
default\tmp
19:53:30,078 INFO [Server] Root Deployment Filename: jboss-service.xml
19:53:30,625 INFO [ServerInfo] Java version: 1.5.0_13,Sun Microsystems Inc.
19:53:30,625 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_13-b05
,Sun Microsystems Inc.
19:53:30,625 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
19:53:31,750 INFO [Server] Core system initialized
19:53:37,984 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083
/
19:53:37,984 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:jboss-log4j.xml
19:53:39,734 INFO [TransactionManagerService] JBossTS Transaction Service (JTA
version) - JBoss Inc.
19:53:39,750 INFO [TransactionManagerService] Setting up property manager MBean
and JMX layer
19:53:40,625 INFO [TransactionManagerService] Starting recovery manager
19:53:40,765 INFO [TransactionManagerService] Recovery manager started
19:53:40,765 INFO [TransactionManagerService] Binding TransactionManager JNDI R
eference
19:53:48,500 INFO [EJB3Deployer] Starting java:comp multiplexer
19:53:52,562 INFO [ServiceEndpointManager] jbossws-1.2.1.GA (build=200704151756
)
19:53:55,078 INFO [AprLifecycleListener] The Apache Tomcat Native library which
allows optimal performance in production environments was not found on the java
.library.path: C:\Vorlesung\Java\jdk1.5.0_13\bin;.;C:\WINDOWS\system32;C:\WINDOW
S;C:\Programme\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Syst
em32\Wbem;C:\Programme\Intel\Wireless\Bin\;C:\Programme\Diskeeper Corporation\Di
skeeper\;C:\Programme\ThinkPad\ConnectUtilities;C:\Programme\Gemeinsame Dateien\
Lenovo;C:\Programme\Lenovo\Client Security Solution;C:\Programme\Intel\Wireless\
Bin\;C:\Programme\Intel\Wireless\Bin\;C:\Programme\Intel\Wireless\Bin\;C:\Progra
mme\Intel\Wireless\Bin\;C:\Vorlesung\Java\jdk1.5.0_13\bin\
19:53:55,250 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0
.1-8080
19:53:55,359 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-80
09
19:53:55,359 INFO [Catalina] Initialization processed in 746 ms
19:53:55,359 INFO [StandardService] Starting service jboss.web
19:53:55,359 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.0.GA
19:53:55,468 INFO [Catalina] Server startup in 99 ms
19:53:55,734 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-w
eb.deployer/ROOT.war/
19:53:57,343 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
http-invoker.sar/invoker.war/
19:53:58,218 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/dep
loy/tmp20515jbossws-context-exp.war/
19:53:59,125 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../
deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
19:54:01,562 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
loy/management/console-mgr.sar/web-console.war/
19:54:03,015 INFO [MailService] Mail Service bound to java:/Mail
19:54:03,640 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-local-jdbc.rar
19:54:03,828 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-xa-jdbc.rar
19:54:03,906 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-local-jdbc.rar
19:54:04,031 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-xa-jdbc.rar
19:54:04,250 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jms/jms-ra.rar
19:54:04,328 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/quartz-ra.rar
19:54:04,343 INFO [QuartzResourceAdapter] start quartz!!!
19:54:04,484 INFO [SimpleThreadPool] Job execution threads will use class loade
r of thread: main
19:54:04,562 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
19:54:04,578 INFO [RAMJobStore] RAMJobStore initialized.
19:54:04,578 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedule
r' initialized from default resource file in Quartz package: 'quartz.properties'
19:54:04,578 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
19:54:04,578 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS
TERED started.
19:54:06,078 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
19:54:06,859 INFO [A] Bound to JNDI name: queue/A
19:54:06,859 INFO [B] Bound to JNDI name: queue/B
19:54:06,859 INFO [C] Bound to JNDI name: queue/C
19:54:06,859 INFO [D] Bound to JNDI name: queue/D
19:54:06,875 INFO [ex] Bound to JNDI name: queue/ex
19:54:07,015 INFO [testTopic] Bound to JNDI name: topic/testTopic
19:54:07,015 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
19:54:07,015 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
19:54:07,062 INFO [testQueue] Bound to JNDI name: queue/testQueue
19:54:07,250 INFO [UILServerILService] JBossMQ UIL service available at : /127.
0.0.1:8093
19:54:07,390 INFO [DLQ] Bound to JNDI name: queue/DLQ
19:54:07,750 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
19:54:07,812 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
loy/jmx-console.war/
19:54:08,609 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
080
19:54:08,687 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
19:54:08,703 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBos
s_4_2_1_GA date=200707131605)] Started in 38s:610ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097202#4097202
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097202
18Â years, 8Â months
[JCA/JBoss] - How to configure two ManagedFactorys in ra.xml of one resour
by liujw2001
Hello:
I write two ManageFactorys in one resoure adapter to finish diffirent function. Although I know how to configure these ManagedFactorys separately as follows:
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE connector PUBLIC '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN' 'http://java.sun.com/dtd/connector_1_0.dtd'>
|
| <connector>
| <display-name>FileRA</display-name>
| <vendor-name>HELLKING</vendor-name>
| <spec-version>1.0</spec-version>
| <eis-type>NO TRANS</eis-type>
| <version>1.2</version>
| <resourceadapter>
| <managedconnectionfactory-class>com.jca.FileManagedConnectionFactory</managedconnectionfactory-class>
| <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
| <connectionfactory-impl-class>com.jca.FileConnectionFactoryImpl</connectionfactory-impl-class>
| <connection-interface>com.jca.FileConnection</connection-interface>
| <connection-impl-class>com.jca.FileConnectionImpl</connection-impl-class>
| <transaction-support>NoTransaction</transaction-support>
| <config-property>
| <config-property-name>Server</config-property-name>
| <config-property-type>java.lang.String</config-property-type>
| <config-property-value>localhost</config-property-value>
| </config-property>
| <config-property>
| <config-property-name>Port</config-property-name>
| <config-property-type>java.lang.Integer</config-property-type>
| <config-property-value>2008</config-property-value>
| </config-property>
| <authentication-mechanism>
| <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
| <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
| </authentication-mechanism>
| <reauthentication-support>false</reauthentication-support>
| </resourceadapter>
| </connector>
<?xml version='1.0' encoding='UTF-8'?>
| <connector
| xmlns="http://java.sun.com/xml/ns/j2ee"
| version="1.5"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
| >
| <display-name>OutboundLoanRa</display-name>
| <vendor-name>Vendor Name</vendor-name>
| <eis-type>EIS Type</eis-type>
| <resourceadapter-version>1.5</resourceadapter-version>
| <license>
| <license-required>false</license-required>
| </license>
| <resourceadapter>
| <outbound-resourceadapter>
| <connection-definition>
| <managedconnectionfactory-class>examples.integration.out_loan_ra.ManagedConnectionFactoryImpl</managedconnectionfactory-class>
| <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
| <connectionfactory-impl-class>examples.integration.out_loan_ra.ConnectionFactoryImpl</connectionfactory-impl-class>
| <connection-interface>javax.resource.cci.Connection</connection-interface>
| <connection-impl-class>examples.integration.out_loan_ra.ConnectionImpl</connection-impl-class>
| </connection-definition>
| <transaction-support>LocalTransaction</transaction-support>
| <reauthentication-support>false</reauthentication-support>
| </outbound-resourceadapter>
| </resourceadapter>
| </connector>
How can I put them in one ra.xml?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097188#4097188
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097188
18Â years, 8Â months