[Design of JCA on JBoss] - Re: DeploymentInfo/Template MCF
by vickyk
I am trying to run the org.jboss.test.profileservice.test.ProfileServiceUnitTestCase which seems to be failing right now .
I wanted to enable the debug tracing in the above test where to set it . I wanted to see the following log details in this method
| protected ManagementView getManagementView()
| throws Exception
| {
| if( activeView == null )
| {
| InitialContext ctx = getInitialContext();
| ProfileService ps = (ProfileService) ctx.lookup("ProfileService");
| activeView = ps.getViewManager();
| ProfileKey defaultKey = new ProfileKey("default");
| activeView.loadProfile(defaultKey);
| log.info("Loaded profile: "+defaultKey);
| // Init the VFS to setup the vfs* protocol handlers
| VFS.init();
| }
| return activeView;
| }
|
>From the test report I could make the log4j.xml location , putting the TRACE logging for org.jboss.test did not give the info output
anonymous wrote :
| Testsuite: org.jboss.test.profileservice.test.ProfileServiceUnitTestCase
| Tests run: 4, Failures: 0, Errors: 1, Time elapsed: 3.164 sec
| ------------- Standard Error -----------------
| Found log4j.xml: file:/home/vicky/workspace/jboss5/testsuite/output/resources/log4j.xml
| ------------- ---------------- ---------------
|
| Testcase: testProfileKeys took 1.241 sec
| Testcase: testDeploymentNames took 0.752 sec
| Testcase: testTemplateNames took 0.496 sec
| Testcase: testAddDataSource took 0.623 sec
| Caused an ERROR
| obj parameter must not be null
| java.lang.IllegalArgumentException: obj parameter must not be null
| at javax.xml.bind.helpers.AbstractMarshallerImpl.checkNotNull(AbstractMarshallerImpl.java:417)
Where to enable log tracing ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110126#4110126
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110126
17 years, 3 months
[Design of POJO Server] - Re: A valid empty jboss.xml
by alex.loubyansky@jboss.com
This is where the exception is thrown
| package org.jboss.deployers.vfs.spi.deployer;
|
| public abstract class SchemaResolverDeployer<T> extends AbstractVFSParsingDeployer<T>
|
| protected T parse(VFSDeploymentUnit unit, VirtualFile file, T root) throws Exception
| {
| if (file == null)
| throw new IllegalArgumentException("Null file");
|
| log.debug("Parsing file: "+file+" for deploymentType: " + getOutput());
| Unmarshaller unmarshaller = factory.newUnmarshaller();
| unmarshaller.setSchemaValidation(isUseSchemaValidation());
| unmarshaller.setValidation(isUseValidation());
| InputStream is = file.openStream();
| Object parsed = null;
| try
| {
| parsed = unmarshaller.unmarshal(is, resolver);
| log.debug("Parsed file: "+file+" to: "+parsed);
| }
| finally
| {
| try
| {
| is.close();
| }
| catch (Exception ignored)
| {
| }
| }
| if (parsed == null)
| throw new DeploymentException("The xml " + file.getPathName() + " is not well formed!");
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110118#4110118
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110118
17 years, 3 months
[Design of POJO Server] - Re: A valid empty jboss.xml
by alex.loubyansky@jboss.com
Something's wrong in the SchemaBinding resolver/initialization. Maybe it's not up to date?
The parsing and unmarshaling complete without errors but the result is null. Because the default element handlers are used, not the ones from the jbossxb-builder (annotation-based binding).
If you look at the log you sent me you'll see messages like:
| [testng] TRACE [binding.sunday.unmarshalling.impl.runtime.RtElementHandler] Failed to resolve class for element {http://java.sun.com/xml/ns/javaee}interceptor-binding: com.sun.java.xml.ns.javaee.InterceptorBindingType
The default behavior is to ignore unresolved classes. SchemaBinding.isIgnoreUnresolvedFieldOrClass() is true by default. If it was false you would get an exception.
Anyway, I think we need to look into your SchemaResolver initialization.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110116#4110116
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110116
17 years, 3 months