[JBoss Eclipse IDE (users)] - Many Errors in Console when Launching Debug
by forumer
I am using JBoss IDE 1.5 with JBoss-4.0.4.CR2. I can start JBoss just fine, without any errros, from command line. But when I launch a debug configuration I am getting a whole bunch of errors before he server gets started. I'd appreciate any suggestions on why this could be happening. I am enclosing these errors from Console.... Thanks
16:34:54,864 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.CR2/server/all/deploy/ejb3.deployer/
org.jboss.deployment.DeploymentException: Unexpected error during load of: org.jboss.ejb3.JarsIgnoredForScanning, msg=org/jboss/ejb3/JarsIgnoredForScanning (Unsupported major.minor version 49.0); - nested throwable: (java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.ejb3.JarsIgnoredForScanning, msg=org/jboss/ejb3/JarsIgnoredForScanning (Unsupported major.minor version 49.0))
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
16:34:55,555 WARN [ServiceController] Problem creating service jboss.aop:service=AspectManager
java.lang.NoClassDefFoundError: org/jboss/aop/advice/Scope
at org.jboss.aop.advice.ScopeUtil.parse(ScopeUtil.java:19)
at org.jboss.aop.AspectXmlLoader.deployInterceptor(AspectXmlLoader.java:145)
at org.jboss.aop.AspectXmlLoader.loadInterceptors(AspectXmlLoader.java:310)
16:34:55,575 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.CR2/server/all/deploy/jboss-aop-jdk50.deployer/
org.jboss.deployment.DeploymentException: create operation failed for package file:/C:/jboss-4.0.4.CR2/server/all/deploy/jboss-aop-jdk50.deployer/; - nested throwable: (javax.management.InstanceNotFoundException: jboss.remoting:handler=ejb3,name=DefaultEjb3Connector,type=Connector is not registered.)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:278)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
16:34:57,518 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.CR2/server/all/deploy/jbossws.sar
org.jboss.deployment.DeploymentException: Unexpected error during load of: org.jboss.ws.server.ServiceEndpointManager, msg=org/jboss/ws/server/ServiceEndpointManager (Unsupported major.minor version 49.0); - nested throwable: (java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.ws.server.ServiceEndpointManager, msg=org/jboss/ws/server/ServiceEndpointManager (Unsupported major.minor version 49.0))
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
16:35:09,156 WARN [EjbModule] Could not load the org.jboss.ws.server.ServiceEndpointInterceptor interceptor
java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.ws.server.ServiceEndpointInterceptor
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:490)
16:35:11,910 ERROR [Digester] Begin event threw exception
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)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972128#3972128
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972128
19 years, 7 months
[JBoss Seam] - setParameter: weird query behaviour
by mgombocz
Hi folks,
I am using Seam, JBoss AS, Facelets, MyFaces and would like to create application-scoped components (lists with salutations, titles etc.) for filling dropdown lists.
I am doing that by having a SLSB with a @Factory method that initially fills my outjected variable "salutationItems".
In the @Factory method I call "createQuery":
Query query = em.createQuery("SELECT new javax.faces.model.SelectItem(s.value, s.label) FROM StringListItem s WHERE s.listType = 'SALUTATION' ORDER BY s.label");
| salutationItems = query.getResultList();
|
In this case everything works fine!
But, as soon as I want to use "setParameter" instead of the hardcoded Select statement...Query query = em.createQuery("SELECT new javax.faces.model.SelectItem(s.value, s.label) FROM StringListItem s WHERE s.listType = :lType ORDER BY s.label");
| query.setParameter("lType", "SALUTATION");
| salutationItems = query.getResultList();
...I get the error when I call the JSF page:javax.ejb.EJBTransactionRolledbackException: java.lang.ClassCastException: java.lang.String
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
| 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.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.localInvoke(StatelessContainer.java:181)
| at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
| at $Proxy496.loadSalutations(Unknown Source)
| 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.seam.util.Reflections.invoke(Reflections.java:13)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
| at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1293)
| at org.jboss.seam.Component.getInstance(Component.java:1260)
| ...
I am trying on my own for hours now and give up...
Could anyone of you please help me?
Thanks!
PS. Here's the complete code:
@Stateless
| @Name("stringLists")
| public class StringListManager implements StringListManagerLocal {
|
| @Logger
| Log log;
|
| @PersistenceContext
| private EntityManager em;
|
| @Out(scope = ScopeType.APPLICATION)
| private List<SelectItem> salutationItems;
|
| @Factory("salutationItems")
| public void loadSalutations() {
| log.info("Start loading salutationItem");
|
| Query query = em
| .createQuery("SELECT new javax.faces.model.SelectItem(s.value, s.label) FROM StringListItem s WHERE s.listType = :lType ORDER BY s.label");
| query.setParameter("lType", "SALUTATION");
|
| salutationItems = query.getResultList();
|
| log.info("End loading salutationItem. Count: "+ salutationItems.size());
| }
| }
Part of the JSF page: <h:selectOneMenu id="salut">
| <f:selectItems value="#{salutationItems}" />
| </h:selectOneMenu>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972126#3972126
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972126
19 years, 7 months
[JBoss Portal] - Re: Is the header a portlet?
by PeterJ
I tried your iframe protlet and after a few changes it showed up just fine, in the banner area, without any decorations.
First, in iframe-object.xml, the statement:
<region>center</region>
places the iframe in the center column, not in the banner(header). If you want it in the banner area, use:
<region>navigation</region>
Second, in iframe-object.xml, the statement:
<page-name>IFrame</page-name>
causes a new page, named IFrame to be created, and the portlet window to be placed on that page. Not sure if that is what you really intended, so I changed it to:
<page-name>default</page-name>
However, I image that since the iframe is in the bannner area that you really want it to show up on all the pages. In that case, you will need several < deployment > entries, each with all the same subnodes though with different < page-name > entries, one for each page.
Fianlly, you stated that you could not provide a jboss-portal.xml file because you were getting errors on the < portal > entry. I think the cause is that you earlier deployed the iframe portal, possibly deleted the war file, and are now deploying it again. You really need the jboss-portal.xml file because it links the portal name to the instance name, which is used in the iframe-object.xml file.
I think that perhaps the previous deployment of the iframe portlet is what is causing the problem. If you are still just experimenting, I suggest wiping out your database and starting over with a fresh installation of the portal. If you can't do that, rename your portlet and instances.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972121#3972121
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972121
19 years, 7 months