[JBoss Seam] - Re: Getting LazyInitializationErrors with a SMPC
by norman.richards@jboss.com
I'm not a persistence expert - so you'll probably want to ask Gavin when he gets back. In general I try to be careful about session-level data. Sessions generally live a long time, and session data can easily go stale. (a search result, or something) You'll often find that the best strategy is to reload the data from the database on each request to make sure you have uptodate objects. You take the object into a conversation for the purpose of some sort of multi-screen editing transaction.
So, what you might consider doing for the customer is to store the id in the session and use a seam wrapper object to retrieve actual customer as needed. You won't have to worry about a LIE because your object won't detach from the PC until the end of the request. And, you'll always have the most current data. If you are worried about efficiency, you can configure your second level cache to deal with reads.
But, as I said, I'm no persistence guru.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996459#3996459
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996459
19 years, 7 months
[Persistence, JBoss/CMP, Hibernate, Database] - OutOfMemoryError: Java heap space during 2nd execution
by ameisinger
Hi JBoss-Community!
I am using JBoss AS (4.0.4 GA) with Hibernate 3.2.0CR2. While fetching a big amount of data (1 Table with 58 columns and 1000 rows) a 2nd time I got a java.lang.OutOfMemoryError: Java heap space.
The mysterious thing is that the query works properly at the first time but at the second time I get the same exception mentioned above.
I use the JBoss AS inside of eclipse (vmargs -Xms1280m -Xmx1280m).
javax.ejb.EJBException: java.lang.reflect.UndeclaredThrowableException
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:167)
| at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:100)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
| Caused by: java.lang.reflect.UndeclaredThrowableException
| at $Proxy353.get(Unknown Source)
| at ams.uptoip.server.facade.ProjectFacadeImpl.get(ProjectFacadeImpl.java:515)
| at ams.uptoip.service.business.impl.ProjectService.get(ProjectService.java:665)
| 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at ams.uptoip.service.business.impl.ProfilerInterceptor.profile(ProfilerInterceptor.java:30)
| 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.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:167)
| at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:100)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:190)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:78)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
| at $Proxy0.get(Unknown Source)
| at ams.uptoip.services.business.ProjectServiceTest.testGetApplicationKindStatusCountry(ProjectServiceTest.java:369)
| 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 junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
| Caused by: java.io.IOException
| at org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:107)
| at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:269)
| at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:841)
| at org.jboss.serial.io.MarshalledObjectForLocalCalls.get(MarshalledObjectForLocalCalls.java:60)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
| at $Proxy353.get(Unknown Source)
| at ams.uptoip.server.facade.ProjectFacadeImpl.get(ProjectFacadeImpl.java:515)
| at ams.uptoip.service.business.impl.ProjectService.get(ProjectService.java:665)
| 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at ams.uptoip.service.business.impl.ProfilerInterceptor.profile(ProfilerInterceptor.java:30)
| 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.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:167)
| at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:100)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
| Caused by: java.lang.reflect.InvocationTargetException
| 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.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:103)
| ... 54 more
| Caused by: java.lang.OutOfMemoryError: Java heap space
|
|
Does anyone know how to solve this problem?
Best regards,
Alex
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996457#3996457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996457
19 years, 7 months
[Beginners Corner] - Looking up a @Stateful Bean fails cause of AOP Interceptor (
by cwulf
Got a ClassLoader-Problem with EJB 3's Stateful Session Bean's i don't unterstand.
Have got included all required Client-JAR's (incl. jboss-aop-jdk50-client.jar).
Stateless Session Bean's are working fine, but if i look up for a Stateful i am getting a problem with a ClassLoader, can't find org.jboss.aop.advice.Interceptor.
| javax.naming.NamingException: Could not dereference object [Root exception is java.lang.reflect.UndeclaredThrowableException]
| at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| at javax.naming.InitialContext.lookup(InitialContext.java:392)
| at test.Client.main(Client.java:48)
| Caused by: java.lang.reflect.UndeclaredThrowableException
| at $Proxy1.createProxy(Unknown Source)
| at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:52)
| at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
| at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
| at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
| ... 4 more
| Caused by: java.lang.ClassNotFoundException: [Lorg.jboss.aop.advice.Interceptor;
| at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
| at
| ...
|
Don't know if this is a client or server side problem, because the class is definitly in the client's classpath (if i drop jboss-aop-jdk50-client.jar the Stateless stop working cause of the Interceptor class).
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996455#3996455
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996455
19 years, 7 months
[JBossWS] - new to jbossws
by santhoshitha
I am new to jbossws and web services in general. I have been able to follow the userguide and get my server side artifacts generated properly(usng wstools) and my deployment in the server is also fine. i am able to obtain the wsdl once the service is deployed successfully on the server, and now, i am trying to connect via a client.
I intend to use a static java process client and not a j2ee client(although j2ee is recommended in the user guide). I do not know how to configure the service reference and consume the service from my static java client. I am however able to accomplish the same using DII. I would like to know if there is any API for this purpose, and whether it is only possible to use DII if not.
If there are any links to source codes and samples, with illustrations in detail, it will be a big help.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996439#3996439
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996439
19 years, 7 months
[JBoss Portal] - JSF Integration with JBoss Portal
by vikash.anand
Dear All;
I am new to JBoss Portal. I have a sample JSF Application which is running fine. I want that application to run under JBoss Portal. I have configured XML files. these files are:
1. faces-config.xml
2. jboss-app.xml
3. jboss-portlet.xml
4. portlet-object.xml
5. portlet.xml
6. web.xml
Whenever i am starting my JBoss server it gives following error:
17:47:09,938 WARN [ExtensionsFilter] Please adjust your web.xml to use org.apache.myfaces.webapp.filter.ExtensionsFilter
I have included all jar files in WEB-INF and server/default/lib. Please let me know where i am making mistake.
Snapshot of web.xml
| <web-app>
|
| <context-param>
| <param-name>javax.faces.CONFIG_FILES</param-name>
| <param-value>
| /WEB-INF/examples-config.xml
| </param-value>
|
| <description>
|
| Comma separated list of URIs of (additional) faces config files.
| (e.g. /WEB-INF/my-config.xml)
| See JSF 1.0 PRD2, 10.3.2
|
| </description>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>server</param-value>
|
| <description>
|
| State saving method: "client" or "server" (= default)
| See JSF Specification 2.5.2
|
| </description>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
| <param-value>true</param-value>
|
| <description>
|
| This parameter tells MyFaces if javascript code should be allowed in the
| rendered HTML output.
| If javascript is allowed, command_link anchors will have javascript code
| that submits the corresponding form.
| If javascript is not allowed, the state saving info and nested parameters
| will be added as url parameters.
| Default: "true"
|
| </description>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
| <param-value>false</param-value>
|
| <description>
|
| This parameter tells MyFaces if javascript code should be allowed in the
| rendered HTML output.
| If javascript is allowed, command_link anchors will have javascript code
| that submits the corresponding form.
| If javascript is not allowed, the state saving info and nested parameters
| will be added as url parameters.
| Default: "false"
|
| Setting this param to true should be combined with STATE_SAVING_METHOD "server" for
| best results.
|
| This is an EXPERIMENTAL feature. You also have to enable the detector filter/filter mapping below to get
| JavaScript detection working.
|
| </description>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
| <param-value>true</param-value>
|
| <description>
|
| If true, rendered HTML code will be formatted, so that it is "human readable".
| i.e. additional line separators and whitespace will be written, that do not
| influence the HTML code.
| Default: "true"
|
| </description>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
| <param-value>true</param-value>
|
| <description>
|
| If true, a javascript function will be rendered that is able to restore the
| former vertical scroll on every request. Convenient feature if you have pages
| with long lists and you do not want the browser page to always jump to the top
| if you trigger a link or button action that stays on the same page.
| Default: "false"
|
| </description>
| </context-param>
| <!-- WelcomeFile Filter -->
|
| <!--
|
| <filter>
| <filter-name>WelcomeFile Filter</filter-name>
| <filter-class>org.apache.myfaces.webapp.filter.WelcomeFileFilter</filter-class>
| <description>
| Due to the manner in which the JSP / servlet lifecycle
| functions, it is not currently possible to specify default
| welcome files for a web application and map them to the
| MyFacesServlet. Normally they will be mapped to the
| default servlet for the JSP container. To offset this
| shortcoming, we utilize a servlet Filter which examines
| the URI of all incoming requests.
| </description>
| </filter>
|
| -->
| <!-- JavaScriptDetector Filter -->
| <!-- <filter>-->
|
| <!--
| <filter-name>javascriptDetector</filter-name>
| -->
|
| <!--
| <filter-class>org.apache.myfaces.webapp.filter.JavaScriptDetectorFilter</filter-class>
| -->
| <!-- </filter>-->
| <!-- Extensions Filter -->
|
| <filter>
| <filter-name>extensionsFilter</filter-name>
|
| <filter-class>
| org.apache.myfaces.component.html.util.ExtensionsFilter
| </filter-class>
|
| <init-param>
| <param-name>uploadMaxFileSize</param-name>
| <param-value>100m</param-value>
|
| <description>
| Set the size limit for uploaded files.
| Format: 10 - 10 bytes
| 10k - 10 KB
| 10m - 10 MB
| 1g - 1 GB
|
| </description>
| </init-param>
|
| <init-param>
| <param-name>uploadThresholdSize</param-name>
| <param-value>100k</param-value>
|
| <description>
| Set the threshold size - files
| below this limit are stored in memory, files above
| this limit are stored on disk.
|
| Format: 10 - 10 bytes
| 10k - 10 KB
| 10m - 10 MB
| 1g - 1 GB
|
| </description>
| </init-param>
|
| <!--
| <init-param>
| <param-name>uploadRepositoryPath</param-name>
| <param-value>/temp</param-value>
| <description>Set the path where the intermediary files will be stored.
| </description>
| </init-param>
| -->
| </filter>
| <!-- Filter Mappings -->
| <!-- see MyFaces Filter above for a description -->
|
| <!--
|
| <filter-mapping>
| <filter-name>WelcomeFile Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
| -->
| <!-- <filter-mapping>-->
|
| <!--
| <filter-name>javascriptDetector</filter-name>
| -->
|
| <!--
| <url-pattern>/_javascriptDetector_</url-pattern>
| -->
| <!-- </filter-mapping>-->
|
| <filter-mapping>
| <filter-name>extensionsFilter</filter-name>
| <url-pattern>*.jsf</url-pattern>
| </filter-mapping>
|
| <filter-mapping>
| <filter-name>extensionsFilter</filter-name>
| <url-pattern>/faces/*</url-pattern>
| </filter-mapping>
|
| <!--
| Listener, that does all the startup work (configuration, init).
| -->
|
| <listener>
|
| <listener-class>
| org.apache.myfaces.webapp.StartupServletContextListener
| </listener-class>
| </listener>
| <!-- Faces Servlet -->
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
| <!-- Faces Servlet Mapping -->
| <!-- virtual path mapping -->
|
| <!--
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>/faces/*</url-pattern>
| </servlet-mapping>
|
| -->
| <!-- extension mapping -->
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.jsf</url-pattern>
| </servlet-mapping>
| <!-- Welcome files -->
|
| <welcome-file-list>
| <welcome-file>index.html</welcome-file>
| <welcome-file>index.htm</welcome-file>
| <welcome-file>index.jsp</welcome-file>
| <welcome-file>default.html</welcome-file>
| <welcome-file>default.htm</welcome-file>
| <welcome-file>default.jsp</welcome-file>
| </welcome-file-list>
| </web-app>
|
Thanks in advance for your help;
Regards;
Vikash Anand
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996435#3996435
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996435
19 years, 7 months
[Installation, Configuration & Deployment] - Class not found
by chrismalan
There is a utility class (UsernamePasswordHandler) in the war container. It is used for log-ins. When instantiated from any class in the war container, things are fine.
However, when the only class in the jar container that needs it tries to instantiate it, a java.lang.NoClassDefFoundError exception is thrown.
The package structure is as for EJB3, a war and a jar inside an ear.
The UsernamePasswordHandler is not mentioned in the web.xml - I don't know if this is relevant.
The jboss-app.xml looks like this:
<jboss-app>
| <loader-repository>
| transportsite:app=ejb3
| </loader-repository>
| </jboss-app>
Any idea how to solve this problem that seems to be class loader related?
As an aside, the time and dates displayed by the console as JBoss starts up are all 11 hours behind. Same for the log files. That safely places it in one of the USA time zones. I am in Aussie. The system time is correct. Is this a JBoss problem, a log4j problem or a Java problem? Any idea how to fix it? There is a timer which which needs times. Subtracting 11 hours from the time the timer should fire makes things work, but that is not really the way to go.
Thanks for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996434#3996434
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996434
19 years, 7 months
[JBoss Portal] - WSRP
by vpnuser
Hi,
I am trying to add a remote portlet to JBoss Portal Server V2.4 following the steps given in the JBoss Portal Server Reference guide. I added Oracle portlet in the required xml files and in the Management Portlet upon selecting oracle and clicking on "Change portlet provider" an exception is getting in the console and in the Management Portlet the none of the portlets are listed under Oracle.
The reference guide says "As of 2.4, the optional Portlet Management interface of WSRP is NOT supported". If the Management Interface is not supported in 2.4 is it possible for me to add a remote portlet, not using the
Management Portlet ?
Could anyone please help me in this matter ?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996433#3996433
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996433
19 years, 7 months
[JBoss Messaging] - Mismatch version of JBossSerialization signature
by mskonda
Server A is purely an applicaiton server (call it as EAI server) without JMS (JBossMessaging) capabilities.
Server B is purely JMS server (with JBossMessage 1.0.1GA) call it as JMS Server.
The EAI server has been started on Dec 21 at 11pm. It connected to JMS server and all is happy.
On 23rd December, the EAI reported an error:
| [20061223 02:14:44.357GMT] SEVERE [JDK14LoggerPlugin] [error] [16] Caught exception from connection
| java.lang.Exception: Could not connect to server.
| at org.jboss.remoting.ConnectionValidator.run(ConnectionValidator.java:117)
| at java.util.TimerThread.mainLoop(Timer.java:512)
| at java.util.TimerThread.run(Timer.java:462)
|
| [20061223 02:14:44.359GMT] WARNING [JDK14LoggerPlugin] [warn] [16] JMS provider failure detected:
| javax.jms.JMSException: Throwable received from underlying connection
| at org.jboss.jms.client.container.ConnectionAspect.handleConnectionException(ConnectionAspect.java:203)
| at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:139)
|
| [20061223 02:14:45.362GMT] SEVERE [JDK14LoggerPlugin] [error] [17] Caught exception from connection
| java.lang.Exception: Could not connect to server.
| at org.jboss.remoting.ConnectionValidator.run(ConnectionValidator.java:117)
| at java.util.TimerThread.mainLoop(Timer.java:512)
| at java.util.TimerThread.run(Timer.java:462)
|
|
At the same time, JMS Server reported error too:
| [20061223 02:15:21.843GMT] WARNING [JDK14LoggerPlugin] [warn] [11] A problem has been detected with the connection to remote client a32652m-q2uq3e-ew0lj9yf-1-ew0m566c-16k. It is possible the client has exited without closing its connection(s) or there is a network problem. All connection resources corresponding to that client process will now be removed.
| [20061223 02:15:25.435GMT] SEVERE [JDK14LoggerPlugin] [error] [12] Failed to accept socket connection
| java.lang.reflect.InvocationTargetException
| at sun.reflect.GeneratedConstructorAccessor35.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at org.jboss.remoting.transport.socket.ServerThread.createServerSocket(ServerThread.java:202)
| at org.jboss.remoting.transport.socket.ServerThread.wakeup(ServerThread.java:243)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.processInvocation(SocketServerInvoker.java:535)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:450)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.net.SocketException: Connection reset
| at java.net.SocketInputStream.read(SocketInputStream.java:168)
| at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
| at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
| at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
| at java.io.FilterInputStream.read(FilterInputStream.java:90)
| at org.jboss.serial.io.JBossObjectInputStream.checkSignature(JBossObjectInputStream.java:110)
| at org.jboss.serial.io.JBossObjectInputStream.<init>(JBossObjectInputStream.java:94)
| at org.jboss.remoting.serialization.impl.jboss.JBossSerializationManager.createInput(JBossSerializationManager.java:59)
| at org.jboss.remoting.transport.socket.ServerSocketWrapper.createInputStream(ServerSocketWrapper.java:56)
| at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:76)
| at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:54)
| at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:50)
| ... 8 more
|
| [20061223 02:15:25.436GMT] SEVERE [JDK14LoggerPlugin] [error] [12] Failed to accept socket connection
| java.lang.reflect.InvocationTargetException
| at sun.reflect.GeneratedConstructorAccessor33.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at org.jboss.remoting.transport.socket.ServerThread.createServerSocket(ServerThread.java:202)
| at org.jboss.remoting.transport.socket.ServerThread.wakeup(ServerThread.java:243)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.processInvocation(SocketServerInvoker.java:535)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:450)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.io.IOException: Mismatch version of JBossSerialization signature
| at org.jboss.serial.io.JBossObjectInputStream.checkSignature(JBossObjectInputStream.java:113)
| at org.jboss.serial.io.JBossObjectInputStream.<init>(JBossObjectInputStream.java:94)
| at org.jboss.remoting.serialization.impl.jboss.JBossSerializationManager.createInput(JBossSerializationManager.java:59)
| at org.jboss.remoting.transport.socket.ServerSocketWrapper.createInputStream(ServerSocketWrapper.java:56)
| at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:76)
| at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:54)
| at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:50)
| ... 8 more
|
|
After following the previous threads, I have checked the versions of JBoss Serialisation and Remoting on both the servers and can confirm they are same.
We dont' have a firewall on these boxes and also we have got all permissions to create sockets.
This situation only happens when the server is left running overnight or long..
Any clues much appreciated!
Thanks
Madhu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996430#3996430
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996430
19 years, 7 months
[EJB 3.0] - Re: EJB 3.0 AND JBOSS 4.0.4 G.A
by alexg79
Please, in future posts wrap your code using the "code" button on the posting page (where you write your post). That way it'll preserve the indentation and use a monospace font so it'll be much easier to read.
Regarding your problem, the JNDI path you're using is wrong, assuming you use JBoss of course. I don't know where you got that code, but the correct JNDI path would be APPNAME/FacadeBean/remote. Replace APPNAME with the name of your deployed application. It's best to verify from the JMX console that the resulting JNDI path actually exists on your server after deployment.
One more tip:
MessageFormat.format("{0}/{1}Bean/remote", APPNAME, beanName);
This is what I use in my own application.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996429#3996429
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996429
19 years, 7 months
[JBoss Portal] - same application running fine on Sun appserver but giving Nu
by Palam
16:37:22,143 ERROR [STDERR] java.lang.NullPointerException
16:37:22,143 ERROR [STDERR] at HServlet.doGet(HServlet.java:37)
16:37:22,143 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
16:37:22,143 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
16:37:22,143 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
16:37:22,143 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
16:37:22,143 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
16:37:22,143 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
16:37:22,143 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
16:37:22,143 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
16:37:22,143 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
16:37:22,143 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
16:37:22,159 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
16:37:22,159 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
16:37:22,159 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
16:37:22,159 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
16:37:22,159 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
16:37:22,159 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
16:37:22,159 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
16:37:22,159 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
16:37:22,159 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
16:37:22,159 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
16:37:22,159 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996421#3996421
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996421
19 years, 7 months
[JBoss jBPM] - Re: Problem testing Hello BPEL sample
by zauberlehrling
Hi Alex,
thank you very much for your advice! I've found in one implementation of QName the following explanation:
* <p>Due to a historical defect, QName was released with multiple
| * serialVersionUID values even though its serialization was the
| * same.</p>
| *
| * <p>To workaround this issue, serialVersionUID is set with either
| * a default value or a compatibility value. To use the
| * compatiblity value, set the system property:</p>
| *
| * <code>com.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0</code>
| *
| * <p>This workaround was inspired by classes in the javax.management
| * package, e.g. ObjectName, etc.
| * See CR6267224 for original defect report.</p>
| */
| private static final long serialVersionUID;
| /**
| * <p>Default <code>serialVersionUID</code> value.</p>
| */
| private static final long defaultSerialVersionUID = -9120448754896609940L;
| /**
| * <p>Compatibility <code>serialVersionUID</code> value.</p>
| */
| private static final long compatibleSerialVersionUID = 4418622981026545151L;
| /**
| * <p>Flag to use default or campatible serialVersionUID.</p>
| */
| private static boolean useDefaultSerialVersionUID = true;
|
In my test code I inserted the value 1.0 for the system property com.sun.xml.namespace.QName.useCompatibleSerialVersionUID:
public void test()
| {
| try {
| Properties system = System.getProperties();
| system.put("com.sun.xml.namespace.QName.useCompatibleSerialVersionUID", "1.0");
| System.setProperties(system);
|
| Properties properties = new Properties();
| properties.setProperty("java.naming.provider.url","jnp://localhost:1099");
| properties.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
| properties.setProperty("java.naming.factory.url.pkgs","org.jboss.naming.client");
| properties.setProperty("j2ee.clientName", "jbpmbpel-client");
| Service service = null;
| if (service == null) {
| InitialContext iniCtx = new InitialContext(properties);
| Object object = iniCtx.lookup("java:comp/env/service/Hello");
| service = (Service)object;
| String portTypeNS = "http://jbpm.org/examples/hello";
| Call call = service.createCall(new QName(portTypeNS, "GreeterPort"),"sayHello");
| String greeting = (String) call.invoke(new Object[] { "Olive" });
| System.out.println("Greeting: "+greeting);
| }
| } catch (Exception e) {
| e.printStackTrace();
| }
| }
With this code code I got an answer:
....
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns1:sayHelloResponse xmlns:ns1='http://jbpm.org/examples/hello'>
| <greeting>Hello, Olive!</greeting>
| </ns1:sayHelloResponse>
| </env:Body>
| </env:Envelope>
| 11:21:44,647 DEBUG SOAPBindingProvider : unbindResponseMessage: {http://jbpm.org/examples/hello}sayHello
| 11:21:44,653 DEBUG EndpointInvocation : setReturnValue: org.jboss.ws.soap.SOAPContentElement
| 11:21:44,653 DEBUG EndpointInvocation : getReturnValue
| 11:21:44,657 DEBUG SOAPContentElement : getObjectValue [xmlType={http://www.w3.org/2001/XMLSchema}string,javaType=class java.lang.String]
| 11:21:44,658 DEBUG SOAPContentElement : getXMLFragment from DOM
| 11:21:44,658 DEBUG SOAPContentElement : xmlFragment: <greeting>Hello, Olive!</greeting>
| 11:21:44,659 DEBUG SimpleDeserializer : deserialize: [xmlName=greeting,xmlType={http://www.w3.org/2001/XMLSchema}string]
| 11:21:44,662 DEBUG SOAPContentElement : objectValue: java.lang.String
| 11:21:44,662 DEBUG EndpointInvocation : transformPayloadValue: org.jboss.ws.soap.SOAPContentElement -> java.lang.String
| 11:21:44,663 DEBUG MessageContextAssociation : popMessageContext: org.jboss.ws.soap.SOAPMessageContextImpl@53ab04
| Greeting: Hello, Olive!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996416#3996416
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996416
19 years, 7 months
[Beginners Corner] - jboss doesn't use my datasource
by Sanver
First of all, merry Christmas to everybody.
I'm using Jboss4.0.4 with xdoclet and, once deployed an ear file with my project, I access a CMP bean by its home interface and it throws the following exception:
10:33:36,587 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
| javax.ejb.ObjectNotFoundException: No such entity!
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:64)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:604)
| at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:315)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:236)
| at org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1103)
| at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:669)
| 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.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1130)
| at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
| at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:203)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
| at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:134)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:43)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)
| at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145)
| at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
| at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:514)
| at org.jboss.ejb.Container.invoke(Container.java:975)
| at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:359)
| at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
| at $Proxy57.findByUser(Unknown Source)
| at mat.icm.ICMCoreBean.BuscarUsuario(ICMCoreBean.java:87)
| at mat.icm.ICMCoreBean.GetContactosDeUsuario(ICMCoreBean.java:107)
| 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.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
| at org.jboss.ws.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:64)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| 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.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.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
| at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:206)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:192)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
| at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| at $Proxy67.GetContactosDeUsuario(Unknown Source)
| at org.apache.jsp.icmTest_jsp._jspService(icmTest_jsp.java:68)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| 10:47:44,572 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
| javax.ejb.ObjectNotFoundException: No such entity!
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:64)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:604)
| at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:315)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:236)
| at org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1103)
| at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:669)
| 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.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1130)
| at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
| at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:203)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
| at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:134)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:43)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)
| at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145)
| at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
| at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:514)
| at org.jboss.ejb.Container.invoke(Container.java:975)
| at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:359)
| at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
| at $Proxy57.findByUser(Unknown Source)
| at mat.icm.ICMCoreBean.BuscarUsuario(ICMCoreBean.java:87)
| at mat.icm.ICMCoreBean.GetContactosDeUsuario(ICMCoreBean.java:107)
| 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.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
| at org.jboss.ws.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:64)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| 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.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.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
| at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:206)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:192)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
| at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| at $Proxy67.GetContactosDeUsuario(Unknown Source)
| at org.apache.jsp.icmTest_jsp._jspService(icmTest_jsp.java:68)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
I think it is because the project doesn't read the datasource correctly, because the data i'm trying to access exists on the database
<datasources>
| <local-tx-datasource>
| <jndi-name>mySQL-DS</jndi-name>
| <connection-url>jdbc:mysql://localhost:3306/icm</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 in the jbosscmp-jdbc.xml i've written this
| <defaults>
| <datasource>mySQL-DS</datasource>
| <datasource-mapping>mySQL</datasource-mapping>
| </defaults>
|
Can anyone help me? best regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996415#3996415
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996415
19 years, 7 months
[JBoss jBPM] - HibernateLongInstance Object Persistance basic question, how
by dslevine
Cuddled up so warm in my office at 2am between XMas and NYE, full of holiday cheer!! Happy (almost) New Year everyone! =)
I am adding a Hibernate variable to the contextInstance, and would like for it to persist with the HibernateLongInstance:
HibernateLongInstance (this is used for hibernatable types with a long id field. One java.lang.Object field is mapped as a reference to a hibernate entity in the database)
But instead of matching the HibernateLongIdMatcher, my hibernate classes are matching the SerializableMatcher. I dont see the Test case doing any special declaration anywhere, so I assume it looks it up by the Hibernate metadata. Or... Should I have to register my Hibernate classes somewhere explicitly?
I saw Tom's JIRA issue: http://preview.tinyurl.com/y6kn4e But that is not what my problem is.
I know it is something very basic, and i've reread the docs and looked at the test cases and searched the forums. Harumph. ?
Thanks! I'll post the answer here if I figure it out...
dan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996407#3996407
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996407
19 years, 7 months
[JBoss Portal] - load page with portlet maximized
by den74
I'm usung JBossPortal 2.4.1 with jsf based portlets
I have a page with 6 portlets and i would like to open one of these maximized. I think i understood it is not possible so i was looking for prepare a page with 6 links that each one opens the specific portlet in maximized form but i didn't fin a way to do.
I looked in the forum and i already tried these way:
1.
<a id="port1" href="
<portlet:actionURL windowState="maximized">
<portlet:param name="myName" value="myValue"/>
<portlet:param name="locationURL" value="/portal/portal/default/myPage"/>
</portlet:actionURL>">
go to portlet 1
but it is not working, maybe i lost to do something (i don't understand if myValue means i have to develope a method somewhere)
2.
portlet 1
this opens my page but not maximized
Someone have some suggestion.
Thanks in advance to anyone will help me
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996403#3996403
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996403
19 years, 7 months
[JBoss Portal] - Getting PortletPreferences in StrutsPortlet
by sridhark79
Hi,
I am trying to obtain PortletPreferences from a Struts Action class as follows
public ActionForward execute(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) throws Exception {
PortletRequest portRequest = (PortletRequest)request.getAttribute("javax.portlet.request");
PortletPreferences prefs = renderRequest.getPreferences();
System.out.println("The value of attribute is "+prefs.getValue("attribute1","default"));
}
But all the time i get only default printed on the server console. The attribute1 has a value in the HSQL portal database.
I ma accesing only after sucessful portal logging. Though i was unable to retreive the values i am able to set the value of this attribute.
Can anyone let me know whats incorrect or wrong here.?
Thanks & Regards
Sridhar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996401#3996401
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996401
19 years, 7 months
[EJB 3.0] - Re: Getting Syntax error with EJB 3.0.
by dvuday
Thanks for the reply...
I have packaged the bean and deployed in the server. But when I tried to access the calculator.jsp and hit 'calculate' button...getting an exception....
anonymous wrote : 12:39:13,162 ERROR [STDERR] javax.naming.NameNotFoundException: EJB3Trail not bound
| 12:39:13,162 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| 12:39:13,162 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| 12:39:13,162 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| 12:39:13,162 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| 12:39:13,162 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
| 12:39:13,162 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| 12:39:13,162 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
| 12:39:13,162 ERROR [STDERR] at org.apache.jsp.calculator_jsp.jspInit(calculator_jsp.java:19)
| 12:39:13,162 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:78)
| 12:39:13,162 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:155)
| ...........
| ...........
|
| Extra lines not included
|
Where are we actually binding the EJB to a JNDI name ?
Thanks and Regards
Uday
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996398#3996398
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996398
19 years, 7 months
[JBoss Seam] - Re: Getting LazyInitializationErrors with a SMPC
by SmokingAPipe
Ok, what I am doing is I am using a SFSB (temp. conversation scope) to act as an intermediary when needed, and it's working fine (of course) and it's not cumbersome or unnatural. I'll use a real conversation bean (with Begin and End) when I come to some part like building up a complex report or query, where the user might want to try it, refine it, and repeat, and might want to have different queries being developed in different windows or tabs.
And I'm now starting to delve into Facelets. One cool thing I have noticed about Facelets is that I now have Seam debugging available. Now I need to figure out how to use it for templating or whatever else it's for.
One question about Facelets compared to JSP: How does the performance compare? I know JSP gets turned into a Servlet class, which gets compiled and classloaded, so it runs as fast as any compiled Java code. How about Facelets? Do they get XML-parsed every time they display, or are they cached in some compiled state?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996396#3996396
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996396
19 years, 7 months
[Management, JMX/JBoss] - Running TWIDDLE..Name Not Found Exception..JNDI.PROPERTIES a
by mahendra_kutare
While trying to run twiddle on my Jboss 4.0.4 installation it throws the
following error -
sh ./twiddle.sh -s 10.129.50.4 serverinfo --count
04:29:29,352 ERROR [Twiddle] Exec failed
org.jboss.util.NestedRuntimeException Source code of org.jboss.util.NestedRuntimeException: jmx not bound; - nested throwable:
(javax.naming.NameNotFoundException Source code of javax.naming.NameNotFoundException: jmx not bound) at org.jboss.console
.twiddle.Twiddle$1.getServer(Twiddle.java:143)
at org.jboss.console.twiddle.command.MBeanServerCommand Source code of org.jboss.console.twiddle.command.MBeanServerCommand
(MBeanServerCommand.java:59)
at org.jboss.console.twiddle.command.ServerInfoCommand Source code of org.jboss.console.twiddle.command.ServerInfoCommand
(ServerInfoCommand.java:130)
at org.jboss.console.twiddle.Twiddle Source code of org.jboss.console.twiddle.Twiddle(Twiddle.java:305)
Caused by: javax.naming.NameNotFoundException Source code of javax.naming.NameNotFoundException: jmx not bound
at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:529)
at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:537)
at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:543)
at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:267)
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 Source code of java.lang.reflect.Method(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController Source code of java.security.AccessController(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java
:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:707)
at java.lang.Thread Source code of java.lang.Thread(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java
:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext Source code of org.jnp.interfaces.NamingContext(NamingContext.java:625)
at org.jnp.interfaces.NamingContext Source code of org.jnp.interfaces.NamingContext(NamingContext.java:587)
at javax.naming.InitialContext Source code of javax.naming.InitialContext(InitialContext.java:351)
at org.jboss.console.twiddle.Twiddle Source code of org.jboss.console.twiddle.Twiddle
(Twiddle.java:250)
at org.jboss.console.twiddle.Twiddle Source code of org.jboss.console.twiddle.Twiddle(Twiddle.java:268)
at org.jboss.console.twiddle.Twiddle Source code of org.jboss.console.twiddle.Twiddle$300(Twiddle.java:62)
at org.jboss.console.twiddle.Twiddle Source code of org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:139)
... 3 more
Can anyone please explain this and possible solution ?
- Mahendra
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996389#3996389
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996389
19 years, 7 months