[JBossWS] - More soap:address problems
by justinkwaugh
I am having two specific problems with the auto generated/replaced soap:address element in the wsdl.
1. I cannot get it to say https:// instead of http://.
Some suggestions I've seen on the forums here are deprecated (Use of annotations that don't exist anymore) and all are related to setting the transport guarantee (which doesn't seem to have any effect anyway). My setup is apache talking to jboss through jkmount, and i'm using a POJO endpoint. I really love the idea of the address rewriting as configured in the jboss-ws.sar/META-INF/jboss-beans.xml but it does not rewrite the protocol, only the hostname:port/path. I glanced at the code, and it plainly just ignores the incoming request protocol. Why is this? If I am accessing it via an https:// URL, why would it not rewrite it using https://?
2. The path to the endpoint is plain wrong.
I have a context root specified in the jboss-web.xml of my war, and that is all it uses no matter what. It simply ignores the servlet name and rewrites the path with just the context-root even when I specify my own WSDL in the @WebService annotation. My servlet is specified in the web.xml as follows..
| <servlet>
| <servlet-name>MyWebservice</servlet-name>
| <servlet-class>com.mycompany.webservices.MyWebservice</servlet-class>
| </servlet>
| <servlet-mapping>
| <servlet-name>MyWebservice</servlet-name>
| <url-pattern>/*</url-pattern>
| </servlet-mapping>
|
My jboss-web.xml has the following:
| <jboss-web>
| <context-root>webservice</context-root>
| </jboss-web>
|
The correct endpoint should be
https://myhost:443/webservice/MyWebservice
but no matter what I do, it rewrites it to just
https://myhost:443/webservice
Are there any configurations I've overlooked that can resolve these 2 problems?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118341#4118341
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118341
18 years, 6 months
[Tomcat, HTTPD, Servlets & JSP] - Tomahawk FileUpload on JBoss 4.2.1/4.2.2 error
by CarstenRudat
Hi group,
I'm running JBoss 4.2.1 (and 4.2.2, too) with shipped JSF-RI 1.2 and I want to use Tomahawk (1.1.6) <t:inputFileUpload>.
I added tomahawk.jar in /server/all/deploy/jboss-web.deployer/jsf-libs because JBoss throws an error on deployment if it's missing (even if it is in my EAR and WAR).
In my web.xml, I have
| <filter>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
| <init-param>
| <param-name>uploadMaxFileSize</param-name>
| <param-value>20m</param-value>
| </init-param>
| <init-param>
| <param-name>uploadThresholdSize</param-name>
| <param-value>100k</param-value>
| </init-param>
| </filter>
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| </filter-mapping>
|
My .jsp contains
| xmlns:t="http://myfaces.apache.org/tomahawk"
|
(I use a lot of Tomahawk-Tags and they work with this declaration.)
and
| <t:inputFileUpload id="..." styleClass="..." title="#{...}" value="#{...}" valueChangeListener="#{...}" binding="#{...}" disabled="#{...}" rendered="#{...}"/>
|
My backing Bean has getter/setter for org.apache.myfaces.custom.fileupload.UploadedFile (getter returns null).
The application is deployed as an WAR in an EAR. I have defined a loader-repository:
| <jboss-app>
| <loader-repository>MyApp:loader=MyApp.ear</loader-repository>
| </jboss-app>
|
but, I tried to run it without this directive, too.
After deployment and starting my application, the jsp renders a correct file-upload-control, but when I submit, I get the exception:
| javax.faces.el.EvaluationException: javax.el.ELException: java.lang.IllegalArgumentException: argument type mismatch
|
My backing-bean setter was not called.
What am I doing wrong? Doesn't Tomahawk work with JSR RI 1.2 on JBoss 4.2.x? Do I have to apply any hacks?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118340#4118340
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118340
18 years, 6 months
[Installation, Configuration & DEPLOYMENT] - Re: sar inside EAR not starting up
by axismundi
Now I get a CNF, even thou the class is existing the sar-archive:
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: pkg.ImportStartupService
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1204)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
|
Any idea what's going on here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118338#4118338
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118338
18 years, 6 months
[JBoss Portal] - Unable to login in to Jboss Portal 2.6.2
by advaittrivedi
I downloaded Jboss Portal 2.6.2 and then I started it. But When I open the the URL in browser I get following:
==================
50,000 ERROR [STDERR] Jan 9, 2008 8:52:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
Added Library from: jar:file:/D:/downloads/jboss-portal-2.6.2.GA/server/default/./deploy/jboss-portal
ortal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
50,031 ERROR [STDERR] Jan 9, 2008 8:52:50 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
Added Library from: jar:file:/D:/downloads/jboss-portal-2.6.2.GA/server/default/./deploy/jboss-portal
ortal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
50,156 ERROR [STDERR] Jan 9, 2008 8:52:50 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
Added Library from: jar:file:/D:/downloads/jboss-portal-2.6.2.GA/server/default/./deploy/jboss-portal
ortal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
50,171 ERROR [STDERR] Jan 9, 2008 8:52:50 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
Added Library from: jar:file:/D:/downloads/jboss-portal-2.6.2.GA/server/default/./deploy/jboss-portal
ortal-identity.sar/portal-identity.war/WEB-INF/lib2/portal-faces-lib.jar!/META-INF/portal.taglib.xml
50,203 ERROR [STDERR] Jan 9, 2008 8:52:50 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
Added Library from: jar:file:/D:/downloads/jboss-portal-2.6.2.GA/server/default/./deploy/jboss-portal
ortal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
50,296 ERROR [STDERR] Jan 9, 2008 8:52:50 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
Added Library from: jar:file:/D:/downloads/jboss-portal-2.6.2.GA/server/default/./deploy/jboss-portal
ortal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
51,468 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_S
' found, using default value true
51,468 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResource
and CheckExtensionsFilter are disabled now.
51,484 INFO [MyfacesConfig] Starting up Tomahawk on the RI-JSF-Implementation.
51,484 INFO [MyfacesConfig] Starting up Tomahawk on the MyFaces-JSF-Implementation
51,484 ERROR [MyfacesConfig] Both MyFaces and the RI are on your classpath. Please make sure to use o
e of the two JSF-implementations.
==================
And then when i click on Login link the page is simply not displayed. I have just donwloaded the version available and have not changed anything, still I am not sure why is it not working.
Regards,
Advait Trivedi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118333#4118333
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118333
18 years, 6 months
[JBossCache] - Re: je.properties
by lovelyliatroim
Hey Guys,
I have been having a look at this, the enviornment home as i see it is the location of where you data store is, so in terms of Jboss Cache this is the value you set for the property "location" in the cache loader config. And it is in this directory you should place your je.properties. If you dont specify the "location" property it will default to the java.io.tmpdir directory instead.
Now my question is this, i have my je.properties sitting in my environment home but now i want to actually see what the properties are set i.e to actually test that berkleyDB has taken my je.properties and is configured with them. How can i do this through jboss cache api??
If i cant get it through the jbossCache API then any idea as how to get hold of it through berkley API ?? I get no logging statements from the com.sleepy package which would probably give me the answer i need but how to turn it on?? have made an entry in my log4j.properties for com.sleepy package but no joy.
Any help is much apreciated,
LL
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118331#4118331
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118331
18 years, 6 months
Problem on deploying
by Md. Jahid Shohel
Hi,
I am trying to deploy a web application, which is packed in war
archive. But when i deploy i get error like below (here i want to
mention that my application doesn't include JSF, it just includes
servlet)-----------
16:01:47,903 INFO [TomcatDeployer] deploy,
ctxPath=/birthoflti.war-1.2.7-SNAPSHOT,
warUrl=.../tmp/deploy/tmp22238birthoflti.war-1.2.7-SNAPSHOT-exp.war/
16:01:48,651 INFO [STDOUT] 16:01:48,648 ERROR [7-SNAPSHOT]] Exception
sending context initialized event to listener instance of class
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.IncompatibleClassChangeError
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:718)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.sun.faces.config.WebConfiguration.processJndiEntries(WebConfiguration.java:441)
at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:86)
at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:139)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:228)
at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy45.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy46.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
16:01:48,652 ERROR [StandardContext] Error listenerStart
16:01:48,652 ERROR [StandardContext] Context
[/birthoflti.war-1.2.7-SNAPSHOT] startup failed due to previous errors
16:01:48,662 WARN [ServiceController] Problem starting service
jboss.web.deployment:war=birthoflti.war-1.2.7-SNAPSHOT.war,id=771062949
org.jboss.deployment.DeploymentException: URL
file:/home/jahid/softwares/jboss-4.2.1.GA/server/birthoflti/tmp/deploy/tmp22238birthoflti.war-1.2.7-SNAPSHOT-exp.war/
deployment failed
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy45.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy46.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
16:01:48,666 ERROR [MainDeployer] Could not start deployment:
file:/home/jahid/softwares/jboss-4.2.1.GA/server/birthoflti/deploy/birthoflti.war-1.2.7-SNAPSHOT.war
org.jboss.deployment.DeploymentException: URL
file:/home/jahid/softwares/jboss-4.2.1.GA/server/birthoflti/tmp/deploy/tmp22238birthoflti.war-1.2.7-SNAPSHOT-exp.war/
deployment failed
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy45.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy46.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
regards,
Jahid
18 years, 6 months
[JBossWS] - Re: SoapFault on returning the web service response
by richard.opalka@jboss.com
This is the generated WSDL
<definitions name="SpamService" targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <types>
| <xs:schema targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" version="1.0" xmlns:tns="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
| <xs:element name="processSpamComplaints" type="tns:processSpamComplaints"/>
| <xs:element name="processSpamComplaintsResponse" type="tns:processSpamComplaintsResponse"/>
| <xs:complexType name="processSpamComplaints">
| <xs:sequence>
| <xs:element minOccurs="0" name="email" type="xs:string"/>
| <xs:element minOccurs="0" name="fromAddress" type="xs:string"/>
| <xs:element minOccurs="0" name="mailDate" type="xs:string"/>
| <xs:element minOccurs="0" name="complaintDate" type="xs:string"/>
| <xs:element minOccurs="0" name="mailbox" type="xs:string"/>
| <xs:element minOccurs="0" name="complainer" type="xs:string"/>
| <xs:element minOccurs="0" name="xRext" type="xs:string"/>
| <xs:element minOccurs="0" name="accountName" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name="processSpamComplaintsResponse">
| <xs:sequence>
| <xs:element minOccurs="0" name="SpamResult" type="tns:SpamResult"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType final="extension restriction" name="SpamResult">
| <xs:sequence>
| <xs:element name="email" nillable="true" type="xs:string"/>
| <xs:element name="fromAddress" nillable="true" type="xs:string"/>
| <xs:element name="mailDate" nillable="true" type="xs:string"/>
| <xs:element name="complaintDate" nillable="true" type="xs:string"/>
| <xs:element name="mailbox" nillable="true" type="xs:string"/>
| <xs:element name="complainer" nillable="true" type="xs:string"/>
| <xs:element name="xRext" nillable="true" type="xs:string"/>
| <xs:element name="accountName" nillable="true" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| </xs:schema>
| </types>
| <message name="SpamComplaintWS_processSpamComplaints">
| <part element="tns:processSpamComplaints" name="processSpamComplaints"/>
| </message>
| <message name="SpamComplaintWS_processSpamComplaintsResponse">
| <part element="tns:processSpamComplaintsResponse" name="processSpamComplaintsResponse"/>
| </message>
| <portType name="SpamComplaintWS">
| <operation name="processSpamComplaints" parameterOrder="processSpamComplaints">
| <input message="tns:SpamComplaintWS_processSpamComplaints"/>
| <output message="tns:SpamComplaintWS_processSpamComplaintsResponse"/>
| </operation>
| </portType>
| <binding name="SpamComplaintWSBinding" type="tns:SpamComplaintWS">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
| <operation name="processSpamComplaints">
| <soap:operation soapAction=""/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
| </binding>
| <service name="SpamService">
| <port binding="tns:SpamComplaintWSBinding" name="SpamComplaintWSPort">
| <soap:address location="http://localhost.localdomain:8080/jaxws-jbws1845/SpamService"/>
| </port>
| </service>
| </definitions>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118316#4118316
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118316
18 years, 6 months
[EJB 3.0] - [Beginner] Remote Client Dependency Injection doesn't work..
by francis1970
Hi all !
I have found an EJB 3 example from Oracle site, it uses dependency injection to invoke the EJB. Unfortunately it doesn't work on JBoss....I get a "NullPointerException" when I invoke the sayHello method.
Added also Context information but still doesn't work.
Do I need to add some configuration file to the EJB's jar file so that dependency injection works ???
This is the EJB
package oracle.ejb30;
|
| import javax.ejb.Remote;
| @Remote
| public interface HelloWorld {
| public void sayHello(String name);
| }
|
| -----------------------------------------------------
| package oracle.ejb30;
|
| import javax.ejb.Stateless;
|
| @Stateless
| public class HelloWorldBean implements HelloWorld {
| public void sayHello(String name) {
| System.out.println("Hello " + name
| + " from your first EJB 3.0 component ...");
| }
| }
| -------------------------------------------------------
| package oracle.ejb30;
|
| import javax.ejb.EJB;
| import java.util.*;
| import javax.naming.*;
|
| public class HelloWorldClient {
| @EJB
| private static HelloWorld helloWorld;
|
| public static void main(String[] args) throws NamingException {
| Properties env = new Properties();
| env.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
| env.setProperty("java.naming.provider.url", "localhost:1099");
| env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
| Context ctx = new InitialContext(env);
|
| System.out.println("Using Dependency Injection .. invoking sayHello ");
| helloWorld.sayHello("Debu Panda!");
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118315#4118315
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118315
18 years, 6 months
[JBossWS] - Re: SoapFault on returning the web service response
by richard.opalka@jboss.com
Hi,
I followed your usecase and here are the source codes I created:
package org.jboss.test.ws.jaxws.jbws1845;
|
| import javax.ejb.Stateless;
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebResult;
| import javax.jws.WebService;
| import javax.xml.ws.ResponseWrapper;
|
| import org.jboss.wsf.spi.annotation.WebContext;
|
| @Stateless
| @WebService
| (
| targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0",
| serviceName="SpamService"
| )
| @WebContext
| (
| transportGuarantee="NONE",
| contextRoot="/jaxws-jbws1845",
| urlPattern="/SpamService"
| )
| public final class SpamComplaintWS implements SpamComplaintWSIface
| {
| @WebMethod(operationName="processSpamComplaints")
| @WebResult(name="SpamResult")
| @ResponseWrapper(className="org.jboss.test.ws.jaxws.jbws1845.jaxws.SpamResult")
| public SpamResult processSpamComplaints(
| @WebParam(name = "email") String email,
| @WebParam(name = "fromAddress") String fromAddress,
| @WebParam(name = "mailDate") String mailDate,
| @WebParam(name = "complaintDate") String complaintDate,
| @WebParam(name = "mailbox") String mailbox,
| @WebParam(name = "complainer") String complainer,
| @WebParam(name = "xRext") String xRext,
| @WebParam(name = "accountName") String accountName)
| {
| return new SpamResult(email, fromAddress, mailDate, complaintDate, mailbox, complainer, xRext, accountName);
| }
| }
|
package org.jboss.test.ws.jaxws.jbws1845;
|
| import javax.ejb.Remote;
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebResult;
| import javax.jws.WebService;
| import javax.xml.ws.ResponseWrapper;
|
| @Remote
| @WebService
| public interface SpamComplaintWSIface
| {
| @WebMethod(operationName="processSpamComplaints")
| @WebResult(name="SpamResult")
| @ResponseWrapper(className="org.jboss.test.ws.jaxws.jbws1845.jaxws.SpamResult")
| public SpamResult processSpamComplaints(
| @WebParam(name = "email") String email,
| @WebParam(name = "fromAddress") String fromAddress,
| @WebParam(name = "mailDate") String mailDate,
| @WebParam(name = "complaintDate") String complaintDate,
| @WebParam(name = "mailbox") String mailbox,
| @WebParam(name = "complainer") String complainer,
| @WebParam(name = "xRext") String xRext,
| @WebParam(name = "accountName") String accountName
| );
| }
|
package org.jboss.test.ws.jaxws.jbws1845;
|
| import javax.xml.bind.annotation.XmlAccessType;
| import javax.xml.bind.annotation.XmlAccessorType;
| import javax.xml.bind.annotation.XmlElement;
| import javax.xml.bind.annotation.XmlType;
|
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "SpamResult", propOrder = {
| "email",
| "fromAddress",
| "mailDate",
| "complaintDate",
| "mailbox",
| "complainer",
| "xRext",
| "accountName"
| })
| public final class SpamResult
| {
| @XmlElement(required = true, nillable = true)
| protected String email;
| @XmlElement(required = true, nillable = true)
| protected String fromAddress;
| @XmlElement(required = true, nillable = true)
| protected String mailDate;
| @XmlElement(required = true, nillable = true)
| protected String complaintDate;
| @XmlElement(required = true, nillable = true)
| protected String mailbox;
| @XmlElement(required = true, nillable = true)
| protected String complainer;
| @XmlElement(required = true, nillable = true)
| protected String xRext;
| @XmlElement(required = true, nillable = true)
| protected String accountName;
|
| public SpamResult()
| {
| }
|
| public SpamResult(String email, String fromAddress, String mailDate, String complaintDate, String mailbox, String complainer, String xRext, String accountName)
| {
| this.email = email;
| this.fromAddress = fromAddress;
| this.mailDate = mailDate;
| this.complaintDate = complaintDate;
| this.mailbox = mailbox;
| this.complainer = complainer;
| this.xRext = xRext;
| this.accountName = accountName;
| }
|
| public String[] get()
| {
| return new String[] { email, fromAddress, mailDate, complaintDate, mailbox, complainer, xRext, accountName };
| }
| }
|
package org.jboss.test.ws.jaxws.jbws1845;
|
| import java.net.URL;
| import javax.xml.namespace.QName;
| import javax.xml.ws.Service;
| import junit.framework.Test;
| import org.jboss.wsf.test.JBossWSTest;
| import org.jboss.wsf.test.JBossWSTestSetup;
|
| public final class JBWS1845TestCase extends JBossWSTest
| {
| public static Test suite()
| {
| return new JBossWSTestSetup(JBWS1845TestCase.class, "jaxws-jbws1845.jar");
| }
|
| public void testIssue() throws Exception
| {
| QName serviceName = new QName("http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0", "SpamService");
| URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws1845/SpamService?wsdl");
|
| Service service = Service.create(wsdlURL, serviceName);
| SpamComplaintWSIface proxy = (SpamComplaintWSIface)service.getPort(SpamComplaintWSIface.class);
|
| String[] orig = { "email", "fromAddress", "mailDate", "complaintDate", "mailbox", "complainer", "xRext", "accountName"};
| String[] returned = proxy.processSpamComplaints(orig[0], orig[1], orig[2], orig[3], orig[4], orig[5], orig[6], orig[7]).get();
| for (int i = 0; i < orig.length; i++)
| {
| assertEquals(orig, returned);
| }
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118314#4118314
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118314
18 years, 6 months
[Installation, Configuration & DEPLOYMENT] - Re: jboss-log4j.xml - category not updated at runtime
by daphnaw
|
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
|
| <!-- ===================================================================== -->
| <!-- -->
| <!-- Log4j Configuration -->
| <!-- -->
| <!-- ===================================================================== -->
|
| <!-- $Id: jboss-log4j.xml 62403 2007-04-18 15:26:43Z dimitris(a)jboss.org $ -->
|
| <!--
| | For more configuration infromation and examples see the Jakarta Log4j
| | owebsite: http://jakarta.apache.org/log4j
| -->
|
| <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
|
| <!-- ================================= -->
| <!-- Preserve messages in a local file -->
| <!-- ================================= -->
|
| <!-- A time/date based rolling appender -->
| <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.log.dir}/server.log"/>
| <param name="Threshold" value="INFO"/>
| <param name="Append" value="false"/>
|
| <!-- Rollover at midnight each day -->
| <param name="DatePattern" value="'.'yyyy-MM-dd"/>
|
| <!-- Rollover at the top of each hour
| <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
| -->
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
|
| <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
| <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
| -->
| </layout>
| </appender>
|
| <!-- A size based file rolling appender
| <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.log.dir}/server.log"/>
| <param name="Append" value="false"/>
| <param name="MaxFileSize" value="500KB"/>
| <param name="MaxBackupIndex" value="1"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
| </layout>
| </appender>
| -->
|
| <!-- ============================== -->
| <!-- Append messages to the console -->
| <!-- ============================== -->
|
| <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Target" value="System.out"/>
| <param name="Threshold" value="DEBUG"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="%d{dd-HH:mm:ss.SSS} %-5p %c{2} %m%n"/>
| </layout>
| </appender>
|
| <!-- ====================== -->
| <!-- More Appender examples -->
| <!-- ====================== -->
|
| <!-- Buffer events and log them asynchronously
| <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <appender-ref ref="FILE"/>
| <appender-ref ref="CONSOLE"/>
| <appender-ref ref="SMTP"/>
| </appender>
| -->
|
| <!-- EMail events to an administrator
| <appender name="SMTP" class="org.apache.log4j.net.SMTPAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Threshold" value="ERROR"/>
| <param name="To" value="admin(a)myhost.domain.com"/>
| <param name="From" value="nobody(a)myhost.domain.com"/>
| <param name="Subject" value="JBoss Sever Errors"/>
| <param name="SMTPHost" value="localhost"/>
| <param name="BufferSize" value="10"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
| </layout>
| </appender>
| -->
|
| <!-- Syslog events
| <appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Facility" value="LOCAL7"/>
| <param name="FacilityPrinting" value="true"/>
| <param name="SyslogHost" value="localhost"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
| </layout>
| </appender>
| -->
|
| <!-- Log events to JMS (requires a topic to be created)
| <appender name="JMS" class="org.apache.log4j.net.JMSAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Threshold" value="ERROR"/>
| <param name="TopicConnectionFactoryBindingName" value="java:/ConnectionFactory"/>
| <param name="TopicBindingName" value="topic/MyErrorsTopic"/>
| </appender>
| -->
|
| <!-- Log events through SNMP
| <appender name="TRAP_LOG" class="org.apache.log4j.ext.SNMPTrapAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="ImplementationClassName" value="org.apache.log4j.ext.JoeSNMPTrapSender"/>
| <param name="ManagementHost" value="127.0.0.1"/>
| <param name="ManagementHostTrapListenPort" value="162"/>
| <param name="EnterpriseOID" value="1.3.6.1.4.1.24.0"/>
| <param name="LocalIPAddress" value="127.0.0.1"/>
| <param name="LocalTrapSendPort" value="161"/>
| <param name="GenericTrapType" value="6"/>
| <param name="SpecificTrapType" value="12345678"/>
| <param name="CommunityString" value="public"/>
| <param name="ForwardStackTraceWithTrap" value="true"/>
| <param name="Threshold" value="DEBUG"/>
| <param name="ApplicationTrapOID" value="1.3.6.1.4.1.24.12.10.22.64"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d,%p,[%t],[%c],%m%n"/>
| </layout>
| </appender>
| -->
|
| <!-- Emit events as JMX notifications
| <appender name="JMX" class="org.jboss.monitor.services.JMXNotificationAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
|
| <param name="Threshold" value="WARN"/>
| <param name="ObjectName" value="jboss.system:service=Logging,type=JMXNotificationAppender"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m"/>
| </layout>
| </appender>
| -->
|
| <!-- ================ -->
| <!-- Limit categories -->
| <!-- ================ -->
|
|
| <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
| <category name="org.apache">
| <priority value="INFO"/>
| </category>
|
| <!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -->
| <category name="org.jboss.serial">
| <priority value="INFO"/>
| </category>
|
| <!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
| <category name="org.jgroups">
| <priority value="WARN"/>
| </category>
|
| <!-- Limit the jacorb category to WARN as its INFO is verbose -->
| <category name="jacorb">
| <priority value="WARN"/>
| </category>
|
| <!-- Limit JBoss categories
| <category name="org.jboss">
| <priority value="INFO"/>
| </category>
| -->
|
| <!-- Limit the JSR77 categories -->
| <category name="org.jboss.management">
| <priority value="INFO"/>
| </category>
|
| <!-- Enable JBossWS message tracing
| <category name="jbossws.SOAPMessage">
| <priority value="TRACE"/>
| </category>
| -->
|
| <!-- Decrease the priority threshold for the org.jboss.varia category
| <category name="org.jboss.varia">
| <priority value="DEBUG"/>
| </category>
| -->
|
| <!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max]
| <category name="org.jboss.resource.connectionmanager.JBossManagedConnectionPool">
| <priority value="TRACE"/>
| </category>
| -->
|
| <!--
| | An example of enabling the custom TRACE level priority that is used
| | by the JBoss internals to diagnose low level details. This example
| | turns on TRACE level msgs for the org.jboss.ejb.plugins package and its
| | subpackages. This will produce A LOT of logging output.
| |
| | Note: since jboss AS 4.2.x, the trace level is supported natively by
| | log4j, so although the custom org.jboss.logging.XLevel priority will
| | still work, there is no need to use it. The two examples that follow
| | will both enable trace logging.
| <category name="org.jboss.system">
| <priority value="TRACE" class="org.jboss.logging.XLevel"/>
| </category>
| <category name="org.jboss.ejb.plugins">
| <priority value="TRACE"/>
| </category>
| -->
|
| <!--
| | Logs these events to SNMP:
| - server starts/stops
| - cluster evolution (node death/startup)
| - When an EJB archive is deployed (and associated verified messages)
| - When an EAR archive is deployed
|
| <category name="org.jboss.system.server.Server">
| <priority value="INFO" />
| <appender-ref ref="TRAP_LOG"/>
| </category>
|
| <category name="org.jboss.ha.framework.interfaces.HAPartition.lifecycle">
| <priority value="INFO" />
| <appender-ref ref="TRAP_LOG"/>
| </category>
|
| <category name="org.jboss.deployment.MainDeployer">
| <priority value="ERROR" />
| <appender-ref ref="TRAP_LOG"/>
| </category>
|
| <category name="org.jboss.ejb.EJBDeployer">
| <priority value="INFO" />
| <appender-ref ref="TRAP_LOG"/>
| </category>
|
| <category name="org.jboss.deployment.EARDeployer">
| <priority value="INFO" />
| <appender-ref ref="TRAP_LOG"/>
| </category>
|
| -->
|
| <category name="org.hibernate.impl.SessionFactoryImpl">
| <priority value="INFO" />
| </category>
|
| <category name="java.util.Properties.list">
| <priority value="INFO" />
| </category>
|
|
|
| <!-- ======================= -->
| <!-- Setup the Root category -->
| <!-- ======================= -->
|
| <root>
| <appender-ref ref="CONSOLE"/>
| <appender-ref ref="FILE"/>
| </root>
|
| <!-- Clustering logging -->
| <!-- Uncomment the following to redirect the org.jgroups and
| org.jboss.ha categories to a cluster.log file.
|
| <appender name="CLUSTER" class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.log.dir}/cluster.log"/>
| <param name="Append" value="false"/>
| <param name="MaxFileSize" value="500KB"/>
| <param name="MaxBackupIndex" value="1"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
| </layout>
| </appender>
| <category name="org.jgroups">
| <priority value="DEBUG" />
| <appender-ref ref="CLUSTER"/>
| </category>
| <category name="org.jboss.ha">
| <priority value="DEBUG" />
| <appender-ref ref="CLUSTER"/>
| </category>
| -->
|
| </log4j:configuration>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118307#4118307
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118307
18 years, 6 months
[Installation, Configuration & DEPLOYMENT] - Re: jboss-log4j.xml - category not updated at runtime
by daphnaw
We tried to add a new category to the "Limited categories" section or change the priority value of existing category.
Following is our jboss-log4j.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!-- ===================================================================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- $Id: jboss-log4j.xml 62403 2007-04-18 15:26:43Z dimitris(a)jboss.org $ -->
<!--
| For more configuration infromation and examples see the Jakarta Log4j
| owebsite: http://jakarta.apache.org/log4j
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<!-- ================================= -->
<!-- Preserve messages in a local file -->
<!-- ================================= -->
<!-- A time/date based rolling appender -->
<!-- Rollover at midnight each day -->
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<!-- Rollover at the top of each hour
<param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
-->
<!-- The default pattern: Date Priority [Category] Message\n -->
<!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
-->
<!-- A size based file rolling appender
-->
<!-- ============================== -->
<!-- Append messages to the console -->
<!-- ============================== -->
<!-- The default pattern: Date Priority [Category] Message\n -->
<!-- ====================== -->
<!-- More Appender examples -->
<!-- ====================== -->
<!-- Buffer events and log them asynchronously
<appender-ref ref="FILE"/>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="SMTP"/>
-->
<!-- EMail events to an administrator
-->
<!-- Syslog events
-->
<!-- Log events to JMS (requires a topic to be created)
-->
<!-- Log events through SNMP
-->
<!-- Emit events as JMX notifications
-->
<!-- ================ -->
<!-- Limit categories -->
<!-- ================ -->
<!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
<!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -->
<!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
<!-- Limit the jacorb category to WARN as its INFO is verbose -->
<!-- Limit JBoss categories
-->
<!-- Limit the JSR77 categories -->
<!-- Enable JBossWS message tracing
-->
<!-- Decrease the priority threshold for the org.jboss.varia category
-->
<!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max]
-->
<!--
| An example of enabling the custom TRACE level priority that is used
| by the JBoss internals to diagnose low level details. This example
| turns on TRACE level msgs for the org.jboss.ejb.plugins package and its
| subpackages. This will produce A LOT of logging output.
|
| Note: since jboss AS 4.2.x, the trace level is supported natively by
| log4j, so although the custom org.jboss.logging.XLevel priority will
| still work, there is no need to use it. The two examples that follow
| will both enable trace logging.
-->
<!--
| Logs these events to SNMP:
- server starts/stops
- cluster evolution (node death/startup)
- When an EJB archive is deployed (and associated verified messages)
- When an EAR archive is deployed
<appender-ref ref="TRAP_LOG"/>
<appender-ref ref="TRAP_LOG"/>
<appender-ref ref="TRAP_LOG"/>
<appender-ref ref="TRAP_LOG"/>
<appender-ref ref="TRAP_LOG"/>
-->
<!-- ======================= -->
<!-- Setup the Root category -->
<!-- ======================= -->
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
<!-- Clustering logging -->
<!-- Uncomment the following to redirect the org.jgroups and
org.jboss.ha categories to a cluster.log file.
<appender-ref ref="CLUSTER"/>
<appender-ref ref="CLUSTER"/>
-->
</log4j:configuration>
THANKS!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118305#4118305
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118305
18 years, 6 months
[JBoss Seam] - Re: Backing a selectOneMenu with a Collection
by fissy101
mars1412,
Yes it does, but is that the part which is complaining about the mismatched types, because that method isn't called when the form is submitted.
sannegrinovero,
The factory creates this list:
| @DataModel
| private List<User> allusers;
|
It is a list, i meant Collection in a generic sense, sorry for not being more exact. The @DataModel annotation is for use in another view.
Pete,
I have tried adding <s:convertEntity/> to the selectOneMenu, but without success. Following the documentation at http://docs.jboss.com/seam/2.0.0.GA/reference/en/html/controls.html, I have added
| <persistence:managed-persistence-context name="entityManager"
| auto-create="true"
| persistence-unit-jndi-name="java:/EntityManagerFactories/entityManager"/>
|
to my components.xml, and have edited my persistence.xml to look like:
| <persistence>
| <persistence-unit name="MovieDataSource">
| <provider>
| org.hibernate.ejb.HibernatePersistence
| </provider>
| <jta-data-source>
| java:/MovieDataSource
| </jta-data-source>
| <properties>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/EntityManagerFactories/entityManager"/>
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
| <property name="hibernate.hbm2ddl.auto" value="create-drop" />
| </properties>
| </persistence-unit>
| </persistence>
|
I *think* the next step is to change all my @PersistenceContext(type=EXTENDED) private EntityManager em; into @In EntityManager entityManager; and it might magically work. Unfortunately the application no longer deploys with this error:
| Caused by: org.dom4j.DocumentException: Error on line 17 of document : The prefix "persistence" for element "persistence:managed-persistence-context" is not bound. Nested exception: The prefix "persistence" for element "persistence:managed-persistence-context" is not bound.
| at org.dom4j.io.SAXReader.read(SAXReader.java:482)
| at org.dom4j.io.SAXReader.read(SAXReader.java:343)
| at org.jboss.seam.util.XML.getRootElement(XML.java:21)
| at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:132)
| ... 92 more
|
Do you know how I can fix this, and if so, am I on the right track?
Dave
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118289#4118289
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118289
18 years, 6 months