[Beginners Corner] - ear file claims no meta-inf in war
by pyrokenesis
Hello, new to JBoss but not really a novice with development, but cant seem to get the most basic helloworld jsp page on my JBoss server.
My system setup is a Windows 2003 OS, Apache2 server, bundled with Tomcat. IIS is obviously working as well, but turned off.
I have Tomcat on port 8082 and I have JBoss on port 8084. Apache, Tomcat and IIS all work fine. JBoss seems to be working fine but the book I'm using (Beginning Java EE 5: From Novice to Professional, ISBN: 1590594703) has some simple steps to get a jsp showing on server that I cant implement.
After setup, I create a web-app.war with an index.jsp, but then I try to create the helloworld.ear with the following command:
jar cf helloworld.ear web-app.war META-INF
I get an error saying "META-INF: no such file or directory".
Surely someone knows how dumb I'm being. Any help is appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992210#3992210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992210
19 years, 7 months
[JBoss Messaging] - Re: where do i need to specify the JNP port which is used fo
by phanisekhar
hi Feodorov.
I have made the necessary changes to my EAR as specified at jboss WIKIpage given below..
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingUser_Deploying_a_s...
I could solve the communication exception but still facing some errors like invalid destination exception.
I have added jar files to my EAR at client side and used the following code to lookup
Hashtable hst = new Hashtable();
hst.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
hst.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
hst.put(Context.PROVIDER_URL,"jnp://remotehost:1099");
Context context = new InitialContext(hst);
QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) context.lookup("java:JmsXA");
queueConnection = queueConnectionFactory.createQueueConnection();
queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
Queue queue = (Queue) context.lookup("queue/testQueue");
next when the below gets executed I am getting invalid Destination Exception.
QueueSender queueSender = queueSession.createSender(queue);
Following is the list of jar files added to ear at client side as specified in WIKI page
javassist.jar
jboss-aop.jar
jboss-common-softvaluehashmap.jar
jboss-messaging.jar
jboss-remoting.jar
trove.jar
jboss-serialization.jar
and i have placed jboss-messaging-client.jar at following path in server
jboss-4.0.2\server\messaging\lib
Is it manadatory to add all the above files to Ear while lookig for a jboss Remote messaging instance.
can you tell me the steps or procedure what I am following is correct or not?
I have downloaded jboss-messaging-1.0.1.GA.zip and used it as specified
in jboss messaging user guide.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992206#3992206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992206
19 years, 7 months
[EJB 3.0] - classcastexception on redeploy
by Bart1985
Hello,
I am relatively new to EJB3.0 and I am currently developing session and entity beans for a new application.
I'm using Jboss-4.0.5 and when I deploy the first time and I use a standalone application to test my sessionbeans, everything works fine. But when I redeploy my .jar application and use that standalone application again to invoke a sessionbean that passes a remote interface of another sessionbean, I get a classcastexception on PortableRemoteObject.narrow in the standalone application!
This is the remote interface that I invoke to get another sessionbeans remote interface:
@Remote
public interface PermissionRemote
{
public SchoolsRemote getSchoolsBean();//UserlogRemote ulr);
}
And then the interface that causes the classcastexception:
@Remote
public interface SchoolsRemote
{
public boolean subscribeSchool(String adminFullName,
String adminUserName,
String adminEmail,
String adminPhoneNumber,
String adminPassword,
String schoolName);
//public School findSchool(int pKey);
public String sayHi();
}
The JBoss error:
11:08:09,078 ERROR [STDERR] java.lang.ClassCastException
11:08:09,078 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
11:08:09,078 ERROR [STDERR] at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
11:08:09,078 ERROR [STDERR] at schoolTime.ejb.permission.PermissionBean.getSchoolsBean(Unknown Source)
11:08:09,078 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:08:09,078 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:08:09,078 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:08:09,078 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
11:08:09,078 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
11:08:09,078 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.
java:63)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,078 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEn
tityManagerInterceptor.java:54)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,078 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,078 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
11:08:09,078 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,078 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,078 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.
java:62)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,109 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java
:77)
11:08:09,109 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor
.java:131)
11:08:09,109 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,109 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
11:08:09,109 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,109 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:10
6)
11:08:09,109 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,109 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
11:08:09,109 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
11:08:09,109 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandle
r.java:82)
11:08:09,109 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
11:08:09,109 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
11:08:09,109 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
11:08:09,109 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
11:08:09,109 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
11:08:09,109 ERROR [STDERR] Caused by: java.lang.ClassCastException: $Proxy93
11:08:09,109 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
11:08:09,109 ERROR [STDERR] ... 36 more
If anybody can help, I will be most grateful.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992205#3992205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992205
19 years, 7 months
[JBoss Seam] - Re: Errors when using Seam components with Trinidad
by lowecg2004
Agreed - the application runs fine this probably shouldn't be an error, but 4 lines of output per <s:link> instance, per page render is not something I can ignore - I've a job to see any of my own log entries for all the noise, plus this can't be helping the performance of my pages.
I have already run this by the Trinidad guys via the adffaces-user(a)apache.org mailing list. They were surprised at the output and inquired as to how Seam registers its components?
I should say at this point that there's no blame game going on here, I'm just trying to work out what I need to do to eliminate the output when mixing Seam and Trinidad components. Since there are strong recommendations for the use of Trinidad in the Seam reference and on this forum I'd expect this issue will come up again.
Cheers,
Chris.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992194#3992194
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992194
19 years, 7 months
[JBoss jBPM] - Re: pondering over jboss/jBPM (need advice)
by dklio
Rainer,
Thanks a lot for your reply. Nice and simple solution. And as long as it's simple it should be robust :)
The only thing here is as far as I remember jboss does not support clustering for MDB, or at least did not support it in version 3.2.3 which we got in production by the time. The point is we use Oracle DB as a persistent storage for JMS queues and jBPM processes and I'm afraid there'll be synchronization problems when two or more instances of jboss are trying to fetch the next message from the queue that is persisted in the same Oracle table. In fact I tryed something similar. There were two jboss servers and a queue persisted in a DB table. When I issued lookup query from both jboss simultaneously they both got inconsistent and reported invalid queue state.
Has this feature been improved since 3.2.3?
Thank you.
Dmitry Klionskiy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992190#3992190
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992190
19 years, 7 months
[JBoss jBPM] - How can i run jbpm31 on mysql5.x ? Unknown entity: org.jbpm.
by dengzi725
I run jbpm31 on mysql4.x very well . and i try to get it to run on mysql5.x , find some following errors . someone can help to find the issues? Thanks very much .
2006-12-08 16:22:39,576 DEBUG net.sf.ehcache.Cache - org.jbpm.graph.def.Node.events: Is element with key org.jbpm.graph.def.Node.events#10 expired?: false
2006-12-08 16:22:39,576 DEBUG org.jbpm.msg.db.DbMessageService - sending msg 'org.jbpm.command.ExecuteNodeCommand@15c024c' to destination 'CMD_EXECUTOR'
org.hibernate.MappingException: Unknown entity: org.jbpm.command.ExecuteNodeCommand
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:512)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1272)
at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:460)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:520)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:513)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:509)
at org.jbpm.db.MessagingSession.save(MessagingSession.java:48)
at org.jbpm.msg.db.DbMessageService.send(DbMessageService.java:58)
at org.jbpm.graph.def.Node.enter(Node.java:314)
at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$14af7d34_2.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:119)
at org.jbpm.graph.def.Node.leave(Node.java:383)
at org.jbpm.graph.node.StartState.leave(StartState.java:70)
at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$14af7d34_2.leave()
at org.jbpm.graph.exe.Token.signal(Token.java:174)
at org.jbpm.graph.exe.Token.signal(Token.java:123)
at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:217)
at org.jbpm31.example.action.WorkflowManager.forwardTaskInstaceNext(WorkflowManager.java:226)
at org.jbpm31.example.action.WorkflowAction.startProcess(WorkflowAction.java:700)
at org.apache.jsp.workflow.start_jsp._jspService(start_jsp.java:49)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:670)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:517)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:595)
2006-12-08 16:22:39,732 DEBUG org.jbpm.JbpmContext - closing JbpmContext
2006-12-08 16:22:39,732 DEBUG org.jbpm.svc.Services - closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@19b08cc
2006-12-08 16:22:39,732 DEBUG org.jbpm.persistence.db.DbPersistenceService - committing hibernate transaction
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992179#3992179
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992179
19 years, 7 months
[JBoss Seam] - Understanding Seam
by lightbulb432
I just deployed my first simple Seam application, and have some questions about the generated HTML I see. I am wondering how each of the generated hidden fields and javascript in the output below contribute to Seam's functionality.
How do each of these form fields help Seam do what it does? Seam is a wonderful tool, but I'd like to understand "how" it does what it does (on a high enough level that it might be explained in a couple of detailed replies to this post)...because right now it seems a bit "too" transparent and magical.
<input type="hidden" name="registerForm_SUBMIT" value="1" />
| <input type="hidden" name="registerForm:_link_hidden_" />
| <script type="text/javascript"><!--
| function clear_registerForm() {
| var f = document.forms['registerForm'];
| f.elements['registerForm:_link_hidden_'].value='';
| f.target='';
| }
| clear_registerForm();
| //--></script>
| <input type="hidden" name="jsf_tree_64" id="jsf_tree_64" value="rO0ABXNyA=" />
| <input type="hidden" name="jsf_state_64" id="jsf_state_64" value="wcHBwcHh4" />
| <input type="hidden" name="jsf_viewid" id="jsf_viewid" value="/register.xhtml" />
As an example of things I'm wondering: how do these fields store state, are these fields only used with client-side state-saving, how do these fields implement the whole notion of conversations and business processes, what is stored on the client (i.e. in these fields) versus the server, etc.
I've read the manuals and tutorials, but there are still a lot of questions I have. Hopefully people who know can explain or people like me who do not can work through it to figure this all out!
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992174#3992174
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992174
19 years, 7 months
[JBoss Seam] - PostgreSQL collection problem
by sherkan777
Hi all,
Sorry for off topic, but those forum is most often searched:P
My problem is with PostgreSQL db, previous I've used MySQL and everythink worked fine, but when I migrated to Postgre somethink wrong is going on with my collection.
Let's see.
Mother has childrens relation 1->n
List myChildrens = new LinkedList();
when i load mother object from db i have childrens positioned like I inserted them to db. (that is in mysql).
example:
Tom, Mike, Ann.
After migration to postgresql, every time childrens are loaded different like in set collection.
Example:
1. Tom, Mike, Ann
2. Mike, Ann, Tom etc.
Anyone have an idea what should i check or what mechanism is responsible for loading objects from db?
By the way mother object is loaded by Find method NOT query. (order by)
Or maybe i made somethink wrong in my ds xml file with connection properties.
Here's and some source code.
MySQL DS:
| <datasources>
| <local-tx-datasource>
| <jndi-name>MyDS</jndi-name>
|
| <connection-url>jdbc:mysql://localhost:3306/myDB?useUnicode=true&characterEncoding=latin2</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>root</user-name>
| <password>root</password>
| <exception-sorter-class-name>
| org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
| </exception-sorter-class-name>
|
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
|
and PostgreSQL ds:
| <datasources>
| <local-tx-datasource>
| <jndi-name>MyDS</jndi-name>
|
| <connection-url>jdbc:postgresql://localhost:5432/myDB</connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>postgres</user-name>
| <password>root</password>
|
| <metadata>
| <type-mapping>PostgreSQL 8.2</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992172#3992172
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992172
19 years, 7 months
[JBoss Seam] - Icefaces project setup
by venkee17
Hi,
Iam trying to create an icefaces project.
I included jars,configured web.xml,faces-config.xml.
My problem is some thing different.
If iam using
<ice:commandButton id="sampleButton" value="Click" partialSubmit="true"> </ice:commandButton>
it is rendering fine but if iam calling a bean method
<ice:commandButton id="sampleButton" value="#{MainPage.currentDivision}" partialSubmit="true"> </ice:commandButton>
iam unable to retrieve the value in value attribute.
my web.xml................................
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"
metadata-complete="true">
<display-name>Ice Faces Impl</display-name>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.iface</param-value>
</context-param>
<context-param>
<param-name>javax.faces.application.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.icesoft.faces.synchronousUpdate</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
<listener-class>
com.icesoft.faces.util.event.servlet.ContextEventRepeater
</listener-class>
<!-- servlet>
<servlet-name>HibernateTestServlet</servlet-name>
<display-name>HibernateTestServlet</display-name>
<servlet-class>
com.mega.planning2.test.HibernateTestServlet
</servlet-class>
</servlet-->
<!-- Faces Servlet -->
<!--
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
-->
<!-- Faces Servlet Mapping -->
<!-- <servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.ifaces</url-pattern>
</servlet-mapping> -->
<servlet-name>Persistent Faces Servlet</servlet-name>
<servlet-class>
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-name>Blocking Servlet</servlet-name>
<servlet-class>
com.icesoft.faces.webapp.xmlhttp.BlockingServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
<!-- JavaServer Faces Servlet Mapping -->
<!-- servlet-mapping>
<servlet-name>HibernateTestServlet</servlet-name>
<url-pattern>/HibernateTestServlet</url-pattern>
</servlet-mapping-->
<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>*.iface</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>/xmlhttp/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Blocking Servlet</servlet-name>
<url-pattern>/block/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
</web-app>
faces-config.xml.......................
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>DataStore</managed-bean-name>
<managed-bean-class>demo.DataStore</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>items</property-name>
<property-class>java.util.List</property-class>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>MainPage</managed-bean-name>
<managed-bean-class>demo.MainPage</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/page.jspx</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/page.jspx</to-view-id>
</navigation-case>
</navigation-rule>
<locale-config/>
<message-bundle>errorMessages</message-bundle>
</faces-config>
can anybody help me to resolve this problem.
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992166#3992166
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992166
19 years, 7 months
[JBoss Seam] - Re: How many EntityManagers and SFSBs in a web app?
by SmokingAPipe
Gavin, I'm not trying to yell stupid things. PHP is clearly a stupid thing. It doesn't suffer LIEs because it's so primitive it doesn't have any abstraction for access to the DB at all. No (real) objects to initialize means no initialization errors, and applications which are messes of procedural code and no separation of view and logic. It does have a very simple and effective way of managing DB connections, but it's incapable of going to the next generation of web services, which is what Seam is for.
Not using conversation scope is obvoiusly where I'm messing myself up. I didn't understand this. I need to either figure out if Tomahawk can work with Seam and maintain conversation, or just ditch Tomahawk, as cool as some of the Tomahawk stuff is.
anonymous wrote : . I think it is fair to say that you should, in most normal apps, only need to store one entity in the session scope - the logged in user - and I've never had to place any in the application context.
Ok, that's a useful bit of info.
As for SMPC in Conversation scope: So I should change my SFSBs to be conversation-scoped (as you're saying). I should also remove the EXTENDED PersistenceContext parameter? If my SFSB is Conversation scope, I just don't have to worry about it?
As a corollary, if I do all that, and test it with a Tomahawk component, and it breaks, well, I just take out the Tomahawk stuff until they come out with a version that works with Seam.
Is this the right track?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992157#3992157
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992157
19 years, 7 months
[JBoss Messaging] - Re: Exception by getting a reference to the ConnectionFactor
by BjoernWilken
Hey Tim!
The Client is a Program running from Exclipse, that means a stand alone Client. You are right, i didn't include the jboss-messaging-client.jar.
Now i have included the jboss-messaging-client.jar.
But I got a new Exception:
java.lang.RuntimeException: Failed to config client side AOP
at org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:251)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:196)
at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:96)
at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:91)
at Client.main(Client.java:49)
Caused by: java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.io.EOFException
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:306)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.invoke(ClientConnectionFactoryDelegate.java:199)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.invokeNext(ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPConfig(ClientConnectionFactoryDelegate.java)
at org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:233)
... 4 more
Caused by: java.io.EOFException
at java.io.DataInputStream.readByte(Unknown Source)
at org.jboss.serial.io.JBossObjectInputStream.readByte(JBossObjectInputStream.java:225)
at org.jboss.jms.server.remoting.JMSWireFormat.read(JMSWireFormat.java:411)
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
... 11 more
Hum?
Thanks for help!
Björn
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992151#3992151
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992151
19 years, 7 months
[JBoss jBPM] - Re: Deleting processInstance as part of workflow
by ksdeger
I think an end-state that would clean up the processInstance would be useful to systems that don't need to keep a history, like ours.
I have figured out some of the answers to my questions (I think). I created a Node with an Action that ends the token, exactly as EndState does. It also calls deleteProcessInstance which is what I wanted. I'm not seeing any bad side affects yet so this solution may work for us.
The only issue I have right now is that not all the entries in the JPBM_BYTEARRAY and JBPM_BYTEBLOCK table are being removed. I believe this may have something to do with the Map being saved multiple times during the process flow, and that somehow ByteArray values are not correctly removed from the database if they are updated. I'm going to keep investigating this issue, as these two tables are causing most of our problems.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992149#3992149
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992149
19 years, 7 months