[JBossWS] - Re: web services samples
by koriel
ok I updated my xerces jars and now I got this error
| init:
| [echo] jboss.home = /usr/local/jboss-4.0.4.GA/
| [echo] tomcat.home = ${tomcat.home}
| [echo] java.home = /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre
| [echo] node0 = ${env.HOSTNAME}
|
|
| compile:
| [javac] Compiling 14 source files to /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/output/classes
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:35: package junit.framework does not exist
| [javac] import junit.framework.TestCase;
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:51: cannot find symbol
| [javac] symbol: class TestCase
| [javac] public abstract class JBossWSTest extends TestCase
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTestSetup.java:24: package junit.extensions does not exist
| [javac] import junit.extensions.TestSetup;
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTestSetup.java:25: package junit.framework does not exist
| [javac] import junit.framework.TestSuite;
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTestSetup.java:39: cannot find symbol
| [javac] symbol: class TestSetup
| [javac] public class JBossWSTestSetup extends TestSetup
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/docstyle/java/org/jboss/test/ws/samples/docstyle/bare/TrivialServiceDocBareTestCase.java:32: package junit.framework does not exist
| [javac] import junit.framework.Test;
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/docstyle/java/org/jboss/test/ws/samples/docstyle/bare/TrivialServiceDocBareTestCase.java:48: cannot find symbol
| [javac] symbol : class Test
| [javac] location: class org.jboss.test.ws.samples.docstyle.bare.TrivialServiceDocBareTestCase
| [javac] public static Test suite()
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/docstyle/java/org/jboss/test/ws/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java:27: package junit.framework does not exist
| [javac] import junit.framework.Test;
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/docstyle/java/org/jboss/test/ws/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java:48: cannot find symbol
| [javac] symbol : class Test
| [javac] location: class org.jboss.test.ws.samples.docstyle.wrapped.TrivialServiceDocWrappedTestCase
| [javac] public static Test suite()
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:54: cannot find symbol
| [javac] symbol : method getClass()
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] protected Logger log = Logger.getLogger(getClass().getName());
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:168: cannot find symbol
| [javac] symbol : variable TestCase
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] else TestCase.assertEquals(exp, was);
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:180: cannot find symbol
| [javac] symbol : method fail(java.lang.String)
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] fail("Expected <" + exp.length + "> array items, but was <" + was.length + ">");
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:195: cannot find symbol
| [javac] symbol : method fail(java.lang.String)
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] fail("Expected a null array, but was: " + Arrays.asList(was));
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:199: cannot find symbol
| [javac] symbol : method fail(java.lang.String)
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] fail("Expected " + Arrays.asList(exp) + ", but was: null");
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:205: cannot find symbol
| [javac] symbol : method assertTrue(java.lang.String,boolean)
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] assertTrue("Arrays don't match", Arrays.equals(exp, was));
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:210: cannot find symbol
| [javac] symbol : method assertTrue(java.lang.String,boolean)
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] assertTrue("Arrays don't match", Arrays.equals(exp, was));
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:215: cannot find symbol
| [javac] symbol : method assertTrue(java.lang.String,boolean)
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] assertTrue("Arrays don't match", Arrays.equals(exp, was));
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:220: cannot find symbol
| [javac] symbol : method assertTrue(java.lang.String,boolean)
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] assertTrue("Arrays don't match", Arrays.equals(exp, was));
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:225: cannot find symbol
| [javac] symbol : method assertTrue(java.lang.String,boolean)
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] assertTrue("Arrays don't match", Arrays.equals(exp, was));
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:230: cannot find symbol
| [javac] symbol : method assertTrue(java.lang.String,boolean)
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] assertTrue("Arrays don't match", Arrays.equals(exp, was));
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTest.java:235: cannot find symbol
| [javac] symbol : method assertTrue(java.lang.String,boolean)
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] assertTrue("Arrays don't match", Arrays.equals(exp, was));
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/java/org/jboss/test/ws/JBossWSTestSetup.java:46: cannot find symbol
| [javac] symbol : class TestSuite
| [javac] location: class org.jboss.test.ws.JBossWSTestSetup
| [javac] super(new TestSuite(testClass));
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/docstyle/java/org/jboss/test/ws/samples/docstyle/bare/TrivialServiceDocBareTestCase.java:55: cannot find symbol
| [javac] symbol : method setUp()
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] super.setUp();
| [javac] ^
| [javac] /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/docstyle/java/org/jboss/test/ws/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java:55: cannot find symbol
| [javac] symbol : method setUp()
| [javac] location: class org.jboss.test.ws.JBossWSTest
| [javac] super.setUp();
| [javac] ^
| [javac] Note: Some input files use unchecked or unsafe operations.
| [javac] Note: Recompile with -Xlint:unchecked for details.
| [javac] 24 errors
|
| BUILD FAILED
| /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/build.xml:14: The following error occurred while executing this line:
| /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/common/imported-build.xml:133: Compile failed; see the compiler error output for details.
|
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980618#3980618
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980618
19 years, 6 months
[JBoss Portal] - Re: image/png Content type not accepted
by seansullivan
In the Portle 2.0 specification, the portlet class may implement the javax.portlet.ResourceServingPortlet interface
anonymous wrote :
| public interface ResourceServingPortlet
|
| The ResourceServingPortlet interface allows serving resources through the portlet.
|
| The portlet container must call this method for links created by the RenderResponse.createResouceURL() call. If the portlet creates resource URLs with RenderResponse.createResouceURL() it must implement this listener.
|
The ResourceServingPortlet interface contains this method:
anonymous wrote :
|
| void serveResource(ResourceRequest request,
| ResourceResponse response)
| throws PortletException,
| java.io.IOException
|
| Called by the portlet container to allow the portlet to generate the resouce content based on its current state. The portal / portlet container must not render any output in addition to the content returned by the portlet. The portal / portlet container should expect that the portlet may return binary content for a renderResource call.
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980617#3980617
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980617
19 years, 6 months
[JBoss Seam] - SeamTest and Embedded EJB questions
by jschuetter
Hi there,
I have some question concerning integration tests with Seam.
1) I have the impression the MDB configuration is not picked up by EJB bootstrap initiated through SeamTest. On container startup I get an "DefaultJMSProvider not bound" error
If I bootstrap the EJB container myself and specifically deploy the XML files it works fine. If I let SeamTest bootstrap the container I can't control these deployments, can I?
2) Is bootstrapping the EJB container myself a viable way or must SeamTest start up the container?
3) Do I have to bootstrap the EJB container again for each SeamTest I run ? If I bootstrap the container myself and run a second SeamTest, Seam will initialize the components again. The tests run fine as far as I can see but I get a warning:
[AbstractSeamPhaseListener] There should only be one Seam phase listener per application
Thanks
Jens
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980615#3980615
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980615
19 years, 6 months
[JBossWS] - web services samples
by koriel
I tried to run the samples so when I run ant in the samples directory somewhere in the end I get this exception
| init:
| [echo] jboss.home = /usr/local/jboss-4.0.4.GA/
| [echo] tomcat.home = ${tomcat.home}
| [echo] java.home = /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre
| [echo] node0 = ${env.HOSTNAME}
|
|
| compile15:
|
| copy-resources:
|
| generate-sources:
| [wstools] log4j:WARN No appenders could be found for logger (org.jboss.ws.tools.WSTools).
| [wstools] log4j:WARN Please initialize the log4j system properly.
| [wstools] java.lang.NullPointerException
| [wstools] at java.lang.System.arraycopy(Native Method)
| [wstools] at org.apache.xerces.impl.xs.XSModelImpl.getAnnotations(Unknown Source)
| [wstools] at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSModel(WSSchemaUtils.java:737)
| [wstools] at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:180)
| [wstools] at org.jboss.ws.metadata.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:227)
| [wstools] at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:118)
| [wstools] at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:145)
| [wstools] at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:121)
| [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:324)
| [wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
| [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
| [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
| [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:276)
| [wstools] at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
| [wstools] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [wstools] at java.lang.reflect.Method.invoke(Method.java:585)
| [wstools] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
| [wstools] at org.apache.tools.ant.Task.perform(Task.java:342)
| [wstools] at org.apache.tools.ant.Target.execute(Target.java:357)
| [wstools] at org.apache.tools.ant.Target.performTasks(Target.java:385)
| [wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1282)
| [wstools] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
| [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1134)
| [wstools] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:390)
| [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:276)
| [wstools] at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
| [wstools] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [wstools] at java.lang.reflect.Method.invoke(Method.java:585)
| [wstools] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
| [wstools] at org.apache.tools.ant.Task.perform(Task.java:342)
| [wstools] at org.apache.tools.ant.Target.execute(Target.java:357)
| [wstools] at org.apache.tools.ant.Target.performTasks(Target.java:385)
| [wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1282)
| [wstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1251)
| [wstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
| [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1134)
| [wstools] at org.apache.tools.ant.Main.runBuild(Main.java:698)
| [wstools] at org.apache.tools.ant.Main.startAnt(Main.java:199)
| [wstools] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:300)
| [wstools] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:106)
|
| BUILD FAILED
| /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/build.xml:23: The following error occurred while executing this line:
| /usr/local/progrs/jbossws-1.0.3.GA/jbossws-samples-1.0.3.GA/jbossws-samples-1.0.3.GA/jsr181pojo/build.xml:28: Error running jbossws:
|
|
|
any idea?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980614#3980614
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980614
19 years, 6 months