Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- Error installing JBossWS with Eclipse + Jboss 4.2

- Error installing JBossWS with Eclipse + Jboss 4.2

2007-06-12       - By carlosmot

 Back
I have this problem when I try to publish a POJO as web service without
annontations:

NoClassDefFoundError: javax/xml/rpc/encoding/TypeMapping

My configuration is below:

Clean wmware image with Windows XP SP2, JDK 1.5.0_11, JWSDP 2.0 and Eclipse
downloaded from your site file name: "JBossIDE-2 (See http://IDE-2.ora-code.com).0.0.Beta2-Bundle-win32.zip"
and JBossWS donwloaded from your site file name:"jbossws-1 (See http://sws-1.ora-code.com).2.1.GA.zip" and a
JBoss server downloaded from your site, file name: "jboss-4 (See http://oss-4.ora-code.com).2.0.GA.zip" and Ant
1.70.

The system variables:
JAVA_HOME, JBOSS_HOME, JWSDP_HOME and ANT_HOME are all OK.

My Installation procedure are:
I decompress jboss-4 (See http://oss-4.ora-code.com).2.0.GA.zip into "c:\jboss-4 (See http://oss-4.ora-code.com).2.0.GA"
I decompress jbossws-1 (See http://sws-1.ora-code.com).2.1.GA.zip into "c:\jbossws"
I decompress JBossIDE-2 (See http://IDE-2.ora-code.com).0.0.Beta2-Bundle-win32.zip into "c:\eclipse"
I put JWSDP into JWSDP 2.0 into C:\jwsdp-2 (See http://sdp-2.ora-code.com).0

...............................................................................
.......

Into c:\jbossws I rename ant.properties.example in "ant.properties"
I also modify "ant.properties" and uncomment the line below:

jboss42.home=c:/jboss-4 (See http://oss-4.ora-code.com).2.0.GA

I launch Ant from a console as below:

ant deploy-jboss42

All is ok and Ant says build succesfully-- ---
I test the JBoss installation with "http://localhost:8080/jbossws" and the
page appears correctly.

...............................................................................
.....

Well, now I launch Eclipse, and I set the properties from Preferences>JBoss
Eclipse IDE>JBoss WS>Integrated tools>JBoss WS wstools to:  C:\jboss-4 (See http://oss-4.ora-code.com).2.0.GA
\bin
Preferences>JBoss Eclipse IDE>JBoss WS>Integrated tools>JAXB XJC to:
C:\jwsdp-2 (See http://sdp-2.ora-code.com).0\jaxb
I leave the rest in blank.

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
Now I create a Java Project whit 1 interface and 1 class with the code of your
documentation: IHelloWorld & HelloWorld without changes.

When mouse's rigth button add a JBossws nature to the project and I accept the
defualt values.

Selecting HelloWorld I clic under JBOSSWS>Publish as Web Service and Eclipse
says:

Running JBossWS wstools for [ProyectoWS]
directory: C:\Documents and Settings\Administrador\workspace\ProyectoWS
command: cmd.exe /C C:\jboss-4 (See http://oss-4.ora-code.com).2.0.GA\bin\wstools.bat -cp /ProyectoWS -config C
:\DOCUME~1\Alumno\CONFIG~1\Temp\wstools-config30423.xml -dest C:\Documents and
Settings\Administrador\workspace\ProyectoWS\ProyectoWS
========================================================================="
.
 WSTools Environment
.
 JBOSS_HOME: C:\jboss-4 (See http://oss-4.ora-code.com).2.0.GA\bin\\..
.
 JAVA: C:\Archivos de programa\Java\jdk1.5.0_11\bin\java
.
 JAVA_OPTS:
.
========================================================================="
.
Exception in thread "main" java.lang.NoClassDefFoundError Source code of java.lang.NoClassDefFoundError: javax/xml/rpc
/encoding/TypeMapping
  at org.jboss.ws.tools.WSTools.process(WSTools.java:130)
  at org.jboss.ws.tools.WSTools.generate(WSTools.java:69)
  at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
  at org.jboss.ws.tools.WSTools.main(WSTools.java:58)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
Thanks advanced for your patience and cooperation, sorry for my last post...

..Carlos..













View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4053646#4053646

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4053646
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.