[JBoss Seam] - Re: seam cannot reference EJB, why?
by hsiung
my startup log:
00:24:54,296 INFO [ServletContextListener] Welcome to Seam 1.2.1
| 00:24:54,336 INFO [Scanner] scanning: /D:/Ideartis/Software-assets/FBN/FBN-EJB/jboss-seam.jar
| 00:24:54,376 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp54865FBN-JSF-exp.war/WEB-INF/lib/jboss-seam.jar
| 00:24:54,396 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.secur
| ity
| 00:24:54,396 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
| 00:24:54,396 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
| 00:24:54,396 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
| 00:24:54,396 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
| 00:24:54,396 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
| 00:24:54,396 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
| 00:24:54,396 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.cor
| e.framework
| 00:24:54,406 INFO [Scanner] scanning: D:\opt\jboss-4.0.5\server\default\.\tmp\deploy\tmp54865FBN-JSF-exp.war\WEB-INF\classes
| 00:24:54,406 INFO [Scanner] scanning: /D:/Ideartis/Software-assets/FBN/FBN-EJB/jboss-seam-debug.jar
| 00:24:54,406 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp54865FBN-JSF-exp.war/WEB-INF/lib/jboss-seam-ui.jar
| 00:24:54,406 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp54865FBN-JSF-exp.war/WEB-INF/lib/jboss-seam-debug.jar
| 00:24:54,426 INFO [Initialization] reading /WEB-INF/components.xml
| 00:24:54,486 INFO [Initialization] reading jar:file:/D:/Ideartis/Software-assets/FBN/FBN-EJB/jboss-seam.jar!/META-INF/components.xml
| 00:24:54,496 INFO [Initialization] reading jar:file:/D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp54865FBN-JSF-exp.war/WEB-INF/lib/jboss-seam.ja
| r!/META-INF/components.xml
| 00:24:54,527 INFO [Initialization] reading properties from: /seam.properties
| 00:24:54,547 INFO [Initialization] reading properties from: /jndi.properties
| 00:24:54,557 INFO [Initialization] initializing Seam
| 00:24:54,587 INFO [Scanner] scanning: D:\opt\jboss-4.0.5\server\default\.\tmp\deploy\tmp54865FBN-JSF-exp.war\WEB-INF\classes
| 00:24:54,617 INFO [Scanner] scanning: /D:/Ideartis/Software-assets/FBN/FBN-EJB/jboss-seam-debug.jar
| 00:24:54,627 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp54865FBN-JSF-exp.war/WEB-INF/lib/jboss-seam-ui.jar
| 00:24:54,827 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp54865FBN-JSF-exp.war/WEB-INF/lib/jboss-seam-debug.jar
| 00:24:54,837 INFO [Scanner] scanning: /D:/Ideartis/Software-assets/FBN/FBN-EJB/jboss-seam.jar
| 00:24:56,640 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp54865FBN-JSF-exp.war/WEB-INF/lib/jboss-seam.jar
| 00:24:57,401 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
| 00:24:57,441 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
| 00:24:57,481 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
| 00:24:57,521 INFO [Initialization] Installing components...
| 00:24:57,541 INFO [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Appl
| icationContext
| 00:24:57,541 INFO [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.
| BusinessProcessContext
| 00:24:57,541 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversat
| ion
| 00:24:57,541 INFO [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Con
| versationContext
| 00:24:57,541 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Convers
| ationEntries
| 00:24:57,541 INFO [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationL
| ist
| 00:24:57,541 INFO [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
| Stack
| 00:24:57,551 INFO [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventConte
| xt
| 00:24:57,551 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
| 00:24:57,551 INFO [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions
| 00:24:57,571 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
|
| 00:24:57,571 INFO [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesConte
| xt
| 00:24:57,571 INFO [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMes
| sages
| 00:24:57,571 INFO [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage
| 00:24:57,581 INFO [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
| 00:24:57,581 INFO [Component] Component: org.jboss.seam.core.image, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Image
| 00:24:57,581 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
|
| 00:24:57,581 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRo
| le
| 00:24:57,581 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
| 00:24:57,581 INFO [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelect
| or
| 00:24:57,581 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
| 00:24:58,242 INFO [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
| 00:24:58,242 INFO [Component] Component: org.jboss.seam.core.methodContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.MethodCon
| text
| 00:24:58,242 INFO [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
|
| 00:24:58,252 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
| 00:24:58,272 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pe
| rsistenceContexts
| 00:24:58,272 INFO [Component] Component: org.jboss.seam.core.pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
| 00:24:58,272 INFO [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
| 00:24:58,272 INFO [Component] Component: org.jboss.seam.core.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRe
| nderer
| 00:24:58,272 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBund
| le
| 00:24:58,282 INFO [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
|
| 00:24:58,282 INFO [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionC
| ontext
| 00:24:58,282 INFO [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
| 00:24:58,282 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
| 00:24:58,282 INFO [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrinc
| ipal
| 00:24:58,622 INFO [Component] Component: org.jboss.seam.core.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Validation
| 00:24:58,622 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
| 00:24:58,632 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.Cur
| rentDate
| 00:24:58,652 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework
| .CurrentDatetime
| 00:24:58,652 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.Cur
| rentTime
| 00:24:58,662 INFO [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
|
| 00:24:58,662 INFO [Component] Component: org.jboss.seam.security.configuration, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.C
| onfiguration
| 00:24:58,662 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity
| 00:24:58,672 INFO [Component] Component: org.jboss.seam.servlet.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Excep
| tionFilter
| 00:24:58,682 INFO [Component] Component: org.jboss.seam.servlet.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Multi
| partFilter
| 00:24:58,682 INFO [Component] Component: org.jboss.seam.servlet.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Redire
| ctFilter
| 00:24:58,682 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
| 00:24:58,682 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelect
| or
| 00:24:58,682 INFO [Component] Component: org.jboss.seam.ui.entityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConv
| erter
| 00:24:58,693 INFO [Component] Component: org.jboss.seam.ui.entityConverterStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConvert
| erStore
| 00:24:58,693 INFO [Component] Component: org.jboss.seam.ui.graphicImage.dynamicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.s
| eam.ui.graphicImage.DynamicImageResource
| 00:24:58,693 INFO [Component] Component: org.jboss.seam.ui.graphicImage.dynamicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.
| graphicImage.DynamicImageStore
| 00:24:58,693 INFO [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resour
| ce.WebResource
| 00:24:58,693 INFO [Lifecycle] starting up: org.jboss.seam.servlet.exceptionFilter
| 00:24:58,713 INFO [Lifecycle] starting up: org.jboss.seam.ui.graphicImage.dynamicImageResource
| 00:24:58,713 INFO [Lifecycle] starting up: org.jboss.seam.servlet.multipartFilter
| 00:24:58,713 INFO [Lifecycle] starting up: org.jboss.seam.ui.resource.webResource
| 00:24:58,713 INFO [Lifecycle] starting up: org.jboss.seam.servlet.redirectFilter
| 00:24:58,713 INFO [Initialization] done initializing Seam
| 00:24:58,713 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.multipartFilter
| 00:24:58,713 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.exceptionFilter
| 00:24:58,713 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.redirectFilter
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041366#4041366
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041366
17 years, 8 months
[JBoss Messaging] - Re: ServiceBindingManager config is not honoured
by mskonda
Tim, here's my service-config def in bindings file:
| < <config>
| < <invoker transport="bisocket">
| < <attribute name="marshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| < <attribute name="unmarshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| < <!-- Serialization type must be jms - do not change! -->
| < <attribute name="serializationtype" isParam="true">jms</attribute>
| < <attribute name="dataType" isParam="true">jms</attribute>
| < <attribute name="socket.check_connection" isParam="true">false</attribute>
| < <attribute name="timeout">0</attribute>
| < <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| < <attribute name="serverBindPort">4457</attribute>
| < <attribute name="leasePeriod">10000</attribute>
| < <attribute name="callbackStore">org.jboss.remoting.callback.CallbackStore</attribute>
| < <attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
| < <attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
| < <attribute name="callbackErrorsAllowed">1</attribute>
| < <attribute name="numberOfRetries" isParam="true">1</attribute>
| < <attribute name="NumberOfCallRetries" isParam="true">2</attribute>
| < <attribute name="clientMaxPoolSize" isParam="true">50</attribute>
| < </invoker>
| < <handlers>
| < <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
| < </handlers>
| < </config>
|
and the def of remote-service.xml here:
<config>
| > <invoker transport="bisocket">
| > <attribute name="marshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| > <attribute name="unmarshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| > <!-- Serialization type must be jms - do not change! -->
| > <attribute name="serializationtype" isParam="true">jms</attribute>
| > <attribute name="dataType" isParam="true">jms</attribute>
| > <attribute name="socket.check_connection" isParam="true">false</attribute>
| > <attribute name="timeout">0</attribute>
| > <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| > <attribute name="serverBindPort">19032</attribute>
| > <attribute name="leasePeriod">10000</attribute>
| > <attribute name="callbackStore">org.jboss.remoting.callback.CallbackStore</attribute>
| > <attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
| > <attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
| > <attribute name="callbackErrorsAllowed">1</attribute>
| > <attribute name="numberOfRetries" isParam="true">1</attribute>
| > <attribute name="NumberOfCallRetries" isParam="true">2</attribute>
| > <attribute name="clientMaxPoolSize" isParam="true">50</attribute>
| > </invoker>
| > <handlers>
| > <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
| > </handlers>
| > </config>
|
The only diff I can see is the serverBindPort which is what you expect to change in the main port bindings file rather than changing at instance level (That is, editing remote-service.xml)
This setup however throws the AddresAlreadyInUseException:
2:54:31,995 INFO [ServerPeer] ServerPeer[0] creating server peer with ID 0
| 12:54:32,401 ERROR [SocketServerInvoker] Error starting ServerSocket. Bind port: 4457, bind address: /0.0.0.0
| 12:54:32,405 ERROR [Connector] Error starting connector.
| java.net.BindException: Address already in use
|
Ofcouser this is because, someother server is already using 4457 (and hence using server-config to attah a new port)
Thanks
Madhu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041357#4041357
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041357
17 years, 8 months