[JBoss Seam] - Re: Plurals
by petemuir
At least in English there are so many irregular plurals (e.g. dog/dogs, sheep/sheep, pony/ponies) that I think you would need to specify the messages.
I think you would hit problems parsing that last string. Perhaps its not quite what you are after but I would suggest just using (if you are using facelets) something like
...
| <h:outputText value="#{messages[my:pluraliser('found_targets', foundTargets.rowCount)}" />
| ...
public static String pluraliser(String messageBase, Integer rowCount) {
| if (rowCount == null || rowCount.equals(0)) {
| then return messageBase + "_none";
| } else if (rowCount.equals(1) {
| return messageBase + "_one";
| } else {
| return messageBase + "many";
| }
| }
N.B. You might have to play around with the exact signature of the facelets function - I'm not sure whether you can return the result of a function as the key of map (but if you can't you probably should be able to). If you can't you could wrap it in a facelets source file with an inital ui:param or just lookup the message from Messages.instance() in the facelets function.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991150#3991150
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991150
19 years, 7 months
[JBoss Seam] - Re: content of datatables of jbpm
by juangiovanolli
i forget the jbpm.cfg.xml. Voilà
| <jbpm-configuration>
|
| <jbpm-context>
| <service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isTransactionEnabled"><false/></field>
| </bean>
| </factory>
| </service>
| <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
| <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
| <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
|
|
| </jbpm-context>
| <string name='resource.hibernate.cfg.xml'
| value='persistence-jbpm.xml' />
| </jbpm-configuration>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991138#3991138
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991138
19 years, 7 months
[JBoss Seam] - Re: content of datatables of jbpm
by juangiovanolli
the data are being persisted correctly, because i'm using my application without problems.
in summary:
the schema is created
the data are persisted
my application works fine with the data persisted in the database
I CAN'T GET THE DATA PERSISTED IN THE DATABASE THROUGH OTHERS APPLICATIONS, FOR EXAMPLE, DATABASE EXPLORERS.
thks!!!!
this is my hibernate.cfg.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE hibernate-configuration PUBLIC
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
| <hibernate-configuration>
| <session-factory>
| <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
| <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/darwinapp</property>
| <property name="hibernate.connection.username">root</property>
| <property name="hibernate.connection.password"></property>
| <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
| <property name="hibernate.hbm2ddl.auto">update</property>
| <property name="hibernate.show_sql" >true</property>
| <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
| <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
| <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
|
|
| <!-- hql queries and type defs -->
| <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
|
| <!-- graph.def mapping files -->
| <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
| <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
| <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
|
| <!-- graph.node mapping files -->
| <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
| <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
|
| <!-- context.def mapping files -->
| <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
| <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
|
| <!-- taskmgmt.def mapping files -->
| <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
|
| <!-- module.def mapping files -->
| <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
|
| <!-- bytes mapping files -->
| <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
|
| <!-- file.def mapping files -->
| <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
|
| <!-- scheduler.def mapping files -->
| <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
| <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
|
| <!-- graph.exe mapping files -->
| <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
| <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
| <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
| <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
|
| <!-- module.exe mapping files -->
| <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
|
| <!-- context.exe mapping files -->
| <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
| <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
|
| <!-- msg.db mapping files -->
| <mapping resource="org/jbpm/msg/Message.hbm.xml"/>
| <mapping resource="org/jbpm/msg/db/TextMessage.hbm.xml"/>
| <mapping resource="org/jbpm/command/ExecuteActionCommand.hbm.xml"/>
| <mapping resource="org/jbpm/command/ExecuteNodeCommand.hbm.xml"/>
| <mapping resource="org/jbpm/command/SignalCommand.hbm.xml"/>
| <mapping resource="org/jbpm/command/TaskInstanceEndCommand.hbm.xml"/>
|
| <!-- taskmgmt.exe mapping files -->
| <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
|
| <!-- scheduler.exe mapping files -->
| <mapping resource="org/jbpm/scheduler/exe/Timer.hbm.xml"/>
|
| <!-- logging mapping files -->
| <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
| <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
| <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
| <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
| <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
|
|
|
|
| </session-factory>
| </hibernate-configuration>
|
|
and this is my jbpm.cfg.xml.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991137#3991137
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991137
19 years, 7 months
[JBoss Seam] - @End conversation and @Begin new one on same Action
by ekusnitz
Is there a way to @End the previous conversation and @Begin a new one from the same action? We have an application with a list of nodes on the left side and the capability of editing them one at a time on the right. So when one is selected, we want to be in a conversation, but if the user selects a different node we want to end it and start a new one. Similarly, the user may begin a series of edits and then save or cancel; we would like to end that conversation and begin a new one within a single action. I don't see a way of doing it; you can't annotate the same action with both @Begin and @End (no conversation will be created).
If you use nested=true you wind up with the possibility of having multiple nested unended conversations. If you use just a straight Begin, you get an error about trying to start a conversation from within a conversation. It seems like there should be an endPrevious=true option.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991128#3991128
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991128
19 years, 7 months
[JBoss Seam] - is hibernate.cfg.xml mandatory in examples of Seam 1.1 CR2 ?
by cfranky
I have installed Seam 1.1 CR2 and I have tried to deploy the registration example in the JBoss 4.0.5 GA server but I got the following exception:
| ....
| 16:49:56,484 INFO [Lifecycle] starting up: org.jboss.seam.core.hibernate
| 16:49:56,484 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
| 16:49:56,484 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
| 16:49:56,500 ERROR [[/seam-registration]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| org.hibernate.HibernateException: /hibernate.cfg.xml not found
| at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
| ....
|
If I add a convenient hibernate.cfg.xml file to the jboss-seam-registration.ear, the application is sucessfully deployed.
Can anyone help me to clarify if the hibernate.cfg.xml file is now mandatory in the new Seam version (Seam 1.1 CR2) ?
Thanks
Maria Consuelo Franky
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991125#3991125
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991125
19 years, 7 months
[JBoss Seam] - NullPointerException in LogImpl
by c_eric_ray
During activation of a passivated bean I get the following exception.
My code:
| @Logger
| private Log log;
|
| @PostActivation
| public void activate() {
| log.info("activating bean");
| }
|
The exception:
| Caused by: java.lang.NullPointerException
| at org.jboss.seam.log.LogImpl.isInfoEnabled(LogImpl.java:45)
| at org.jboss.seam.log.LogImpl.info(LogImpl.java:92)
| at com.vicor.distributedcapture.session.PackageAction.activate(PackageAction.java:728)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationContextImpl.java:159)
| at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postActivate(LifecycleInterceptorHandler.java:139)
|
Am I not allowed to have code like that or is this an issues with the seam logger?
Thanks.
Eric
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991119#3991119
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991119
19 years, 7 months
[JBossCache] - Re: JBossCache as a message oriented middleware?
by bstansberry@jboss.com
Can you divide your data between different caches? I.e. if on servers 1 and 2, there are processes running that are interested in data structures A, B, and C, then you deploy CacheA, CacheB and CacheC. On servers 3 and 4, the running process are interested in B, C and D, so CacheB, CacheC and CacheD are deployed.
Another possibility is to use the activateRegion() API. There you have just one cache, but it has regions /A, /B, /C and /D. On servers 1 and 2, region /D isn't activated, and thus the cache ignores replication traffic for /D. On servers 3 and 4, /A isn't activated.
The multiple-cache approach has the advantage that no JGroups channel on servers 1 and 2 even sees replication messages for D. With the region-based approach, the channel sees the messages and passes them all the way up to JBoss Cache, where they are then ignored.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991117#3991117
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991117
19 years, 7 months
[JBoss jBPM] - Exception instancing process
by cocampo
Hello:
Tom, Roland, Koen, I hope you jBPM guys can help me (anybody else's help is apreciated too, but as this seems to be a jBPM API problem...)
Tools:
JBoss 4.0.4GA, jBPM 3.1.2, jBPM DB is running on MySQL 5.0, JDK 1.5.08.
I'm having an exception while instancing a process.
Here is the error:
| 15:01:42,171 ERROR [STDERR] java.lang.ClassCastException: org.jbpm.graph.def.ProcessDefinition
| 15:01:42,171 ERROR [STDERR] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:138)
| 15:01:42,171 ERROR [STDERR] at mx.com.gigante.perfil.servlet.SubmitPdfServletOO.instanciarProceso(SubmitPdfServletOO.java:169)
| 15:01:42,187 ERROR [STDERR] at mx.com.gigante.perfil.servlet.SubmitPdfServletOO.doPost(SubmitPdfServletOO.java:138)
| 15:01:42,187 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| 15:01:42,187 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 15:01:42,187 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| 15:01:42,187 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 15:01:42,187 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 15:01:42,187 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 15:01:42,203 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 15:01:42,203 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| 15:01:42,203 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| 15:01:42,203 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| 15:01:42,203 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 15:01:42,203 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| 15:01:42,203 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 15:01:42,203 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| 15:01:42,218 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| 15:01:42,218 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| 15:01:42,218 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| 15:01:42,218 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| 15:01:42,218 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| 15:01:42,234 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 15:01:42,234 ERROR [GraphSession] java.lang.ClassCastException: org.jbpm.graph.def.ProcessDefinition
|
This is my process definition:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.1"
| name="proceso_perfil_proveedor">
| <start-state name="start">
| <transition name="" to="creacion contrato"></transition>
| </start-state>
| <task-node name="creacion contrato">
| <task name="crear_contrato"></task>
| <transition name="" to="1a revision contrato"></transition>
| </task-node>
| <task-node name="1a revision contrato">
| <task name="revision_contrato_1">
| <!-- dejar tiempo suficiente (5 segundos) para que quede almacenado el correo en la variable de tarea -->
| <timer
| name="envio_correo"
| duedate="5 seconds"
| repeat="7 days">
| <action
| class='mx.com.gigante.perfil.timers.GeneradorCorreos' />
| </timer>
| </task>
| <transition name="contrato_revisado"
| to="2a revision contrato">
| </transition>
| <transition name="contrato_cancelado"
| to="cancelacion contrato">
| </transition>
| <transition name="contrato_aprobado" to="impresion contrato"></transition>
| <transition name="contrato_rechazado"
| to="correccion contrato">
| </transition>
| </task-node>
| <task-node name="2a revision contrato">
| <task name="revision_contrato_2" >
| </task>
| <transition name="contrato_cancelado"
| to="cancelacion contrato">
| </transition>
| <transition name="contrato_rechazado"
| to="1a revision contrato">
| <action name="reenviar_contrato"></action>
| </transition>
| <transition name="contrato_aprobado" to="impresion contrato"></transition>
| </task-node>
| <task-node name="correccion contrato">
| <task name="correccion_contrato"></task>
| <transition name="contrato_corregido"
| to="1a revision contrato">
| </transition>
| </task-node>
| <task-node name="cancelacion contrato">
| <task name="cancelar_contrato"></task>
| <transition name="" to="end1"></transition>
| </task-node>
| <task-node name="impresion contrato">
| <task name="imprimir_contrato"></task>
| <transition name="" to="carga documento"></transition>
| </task-node>
| <task-node name="carga documento">
| <task name="cargar_documento"></task>
| <transition name="" to="end1"></transition>
| </task-node>
| <end-state name="end1"></end-state>
| </process-definition>
|
And finally, here is the line where I'm getting the exception...
| ProcessInstance processInstance = jbpmContext.newProcessInstance("proceso_perfil_proveedor");
|
anonymous wrote :
|
| <![CDATA[
| select pd
| from org.jbpm.graph.def.ProcessDefinition as pd
| where pd.name = :name
| order by pd.version desc
| ]]>
|
|
It looks OK to me, but as soon as the values retrieved try to be assigned to a ProcessDefinition-type variable, I got the "ClassCastException".
I've been dealing with this problem for about a week, so any help would be mostly apreciated.
It seems to be an error while executing the next query:
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991113#3991113
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991113
19 years, 7 months
[JBoss Eclipse IDE (users)] - Can't Launch from Windows to Linux
by Charlie Kelly
I'm using JBoss IDE 1.6.0 on a windows XP platform;
JBoss 4.0.4.GA is on a Linux platform
JBoss AS on Linux starts fine from the Linux shell prompt, but not from JBoss IDE. I get the following on the console within JBoss IDE
14:20:37,569 INFO [Server] Starting JBoss (MX MicroKernel)...
14:20:37,569 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
14:20:37,579 INFO [Server] Home Dir: \\192.168.1.5\jboss\jboss-4.0.4.GA
14:20:37,589 INFO [Server] Home URL: file://192.168.1.5/jboss/jboss-4.0.4.GA/
14:20:37,589 INFO [Server] Patch URL: null
14:20:37,589 INFO [Server] Server Name: default
14:20:37,589 INFO [Server] Server Home Dir: \\192.168.1.5\jboss\jboss-4.0.4.GA\server\default
14:20:37,589 INFO [Server] Server Home URL: file://192.168.1.5/jboss/jboss-4.0.4.GA/server/default/
14:20:37,589 INFO [Server] Server Log Dir: \\192.168.1.5\jboss\jboss-4.0.4.GA\server\default\log
14:20:37,589 INFO [Server] Server Temp Dir: \\192.168.1.5\jboss\jboss-4.0.4.GA\server\default\tmp
14:20:37,599 INFO [Server] Root Deployment Filename: jboss-service.xml
14:20:38,040 INFO [ServerInfo] Java version: 1.5.0_02,Sun Microsystems Inc.
14:20:38,050 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_02-b09,Sun Microsystems Inc.
14:20:38,050 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
14:20:38,441 INFO [Server] Core system initialized
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: url file://192.168.1.5/jboss/jboss-4.0.4.GA/server/default/conf/jboss-service.xml could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:770)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)14:20:38,491 INFO [Server] Runtime shutdown hook called, forceHalt: true
14:20:38,491 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
The jboss-service.xml file does exist and its access mode is set (temporarily) to 777
I'll appreciate any suggestions or help.
Thanks
Charlie
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991109#3991109
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991109
19 years, 7 months
[Installation, Configuration & Deployment] - Ear and War isolation, accessing EJB from War
by bholya
Hello,
we are using Jboss 4.01.SP1 and having all EJB deployed as flat classloading, and having some war file with own class-loader, means in jboss-web.xml
own class-loader defined.
<jboss-web>
<class-loading>
<loader-repository>
com.example:loader=unique-archive-name
</loader-repository>
</class-loading>
</jboss-web>
Now on these kind of plattform,without changing any setting we have to deploy some servvices(EJB) from external provider, who has also dependecy to external library like hibernate,jakarta-commons,...... . So external provider deliver us everything packed in EAR with own class-loader and java2ParentDelegation=false, as the same library with other version can be used on our plattform, but they need to look only in EAR file.
Now if i want to access EJB of external provider, as far as is understood, i can access only with call-by-value, so need to change these (global)setting in ear-deployer.xml.
Is it possible to call EJB without making any changes global setting of jboss ?
How? Is it possible to change deployment order so that we can see classes of external provider EAR from our war, which has different class-loader?
Thanks for suggestion
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991105#3991105
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991105
19 years, 7 months