[Installation, Configuration & DEPLOYMENT] - Re: problem deploying an aplication and connect with oracle
by lifeb
Hi thnks for your reply.
login as: root
root(a)192.168.0.108's password:
Last login: Tue Feb 19 13:38:59 2008 from 192.168.0.76
[root@coswin ~]# mc
[root@coswin conf]# /jboss/bin/run.sh |more
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /jboss
JAVA: /j2sdk/bin/java
JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh
CLASSPATH: /jboss/bin/run.jar:/j2sdk/lib/tools.jar
=========================================================================
13:41:54,431 INFO [Server] Starting JBoss (MX MicroKernel)...
13:41:54,460 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_
4_0_2 date=200505022023)
13:41:54,461 INFO [Server] Home Dir: /jboss
13:41:54,462 INFO [Server] Home URL: file:/jboss/
13:41:54,463 INFO [Server] Library URL: file:/jboss/lib/
13:41:54,466 INFO [Server] Patch URL: null
13:41:54,466 INFO [Server] Server Name: default
13:41:54,467 INFO [Server] Server Home Dir: /jboss/server/default
13:41:54,469 INFO [Server] Server Home URL: file:/jboss/server/default/
13:41:54,469 INFO [Server] Server Data Dir: /jboss/server/default/data
13:41:54,470 INFO [Server] Server Temp Dir: /jboss/server/default/tmp
13:41:54,470 INFO [Server] Server Config URL: file:/jboss/server/default/conf/
13:41:54,470 INFO [Server] Server Library URL: file:/jboss/server/default/lib/
13:41:54,471 INFO [Server] Root Deployment Filename: jboss-service.xml
13:41:54,477 INFO [Server] Starting General Purpose Architecture (GPA)...
13:41:55,697 INFO [ServerInfo] Java version: 1.4.2_16,Sun Microsystems Inc.
13:41:55,738 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2_16-b05
,Sun Microsystems Inc.
13:41:55,738 INFO [ServerInfo] OS-System: Linux 2.6.9-55.EL,i386
13:41:57,980 INFO [Server] Core system initialized
13:42:05,422 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:log4j.xml
13:42:06,519 INFO [WebService] Using RMI server codebase: http://coswin:8083/
13:42:06,929 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=
1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server Socket
Factory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
13:42:21,247 INFO [Embedded] Catalina naming disabled
13:42:22,597 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
13:42:22,602 INFO [Catalina] Initialization processed in 1162 ms
13:42:22,607 INFO [StandardService] Starting service jboss.web
13:42:22,616 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.9
13:42:22,743 INFO [StandardHost] XML validation disabled
13:42:23,234 INFO [Catalina] Server startup in 632 ms
13:42:24,004 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/jboss/server/default/deploy/http-invoker.sar/invoker.war/
13:42:25,335 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
13:42:27,556 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/jboss/server/default/tmp/deploy/tmp6023jboss-ws4ee.war/
13:42:28,597 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
13:42:29,968 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/jboss/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
13:42:37,788 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/jboss/server/default/deploy/management/console-mgr.sar/web-console.war/
13:42:41,674 INFO [MailService] Mail Service bound to java:/Mail
13:42:43,174 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/jboss-ha-local-jdbc.rar
13:42:43,459 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/jboss-ha-xa-jdbc.rar
13:42:44,812 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/jboss-local-jdbc.rar
13:42:45,588 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/jboss-xa-jdbc.rar
13:42:46,594 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/jms/jms-ra.rar
13:42:47,354 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/mail-ra.rar
13:42:51,034 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourc
eBinding to JNDI name 'java:DefaultDS'
13:42:51,149 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
at org.jboss.security.auth.spi.Util.loadProperties(Util.java:249)
at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:164)
at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:111)
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:324)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:662)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:483)
at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:425)
at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:251)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:648)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:446)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:874)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:103)
at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.tableExists(SQLUtil.java:957)
at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.createTableIfNotExists(GeneralPurposeDatabasePersistencePlugin.java:92)
at org.jboss.ejb.txtimer.DatabasePersistencePolicy.startService(DatabasePersistencePolicy.java:96)
--More--
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130369#4130369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130369
18 years, 2 months
[JBossWS] - WSProvideTask throws NoClassDefFoundError while class in cla
by Ollie1979
Hi,
I am new to JBoss and web services so bear with me. I'm trying to generate artifacts for my web service using the wsprovide tool/ant task and I keep getting exceptions.
This is my web service:
package helloworld;
|
| import javax.jws.WebService;
|
| import org.springframework.beans.factory.annotation.Autowired;
| import org.springframework.web.context.support.SpringBeanAutowiringSupport;
|
| @WebService
| public class HelloWorld extends SpringBeanAutowiringSupport {
|
| @Autowired
| private MessageProvider messageProvider ;
|
| public String sayHello(String name) {
| return messageProvider.getMessage() + " " + name ;
| }
| }
I'm deploying this on JBoss using the Eclipse WTP plugin and it works fine. My client can call this web service without a problem. However, I would like to generate the web service artifacts myself (instead of letting JBoss take care of it) and my Ant script keeps throwing exceptions.
This is my Ant build script:
| <?xml version="1.0" encoding="UTF-8"?>
| <project name="helloworld" default="generate-artifacts">
| <description>
| Generates JAX-WS artifacts for our service endpoint implementation(s)
| </description>
|
| <property file="build.properties" />
|
| <path id="wsprovide.path">
| <fileset dir="${jboss.home}/client" includes="*.jar" />
| </path>
|
| <target name="generate-artifacts">
| <taskdef name="WSProvideTask" classname="org.jboss.wsf.spi.tools.ant.WSProvideTask">
| <classpath refid="wsprovide.path" />
| </taskdef>
|
| <WSProvideTask
| fork="true"
| genwsdl="true"
| verbose="true"
| sei="helloworld.HelloWorld">
| <classpath>
| <pathelement path="build/classes"/>
| <pathelement path="WebContent/WEB-INF/lib"/>
| </classpath>
| </WSProvideTask>
| </target>
| </project>
And this is it's output:
| Buildfile: C:\Documents and Settings\Ollie\workspace\helloworld\build.xml
|
| generate-artifacts:
| [WSProvideTask] Command invoked: org.jboss.wsf.spi.tools.cmd.WSProvide -w -t helloworld.HelloWorld
| [WSProvideTask] Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/web/context/support/SpringBeanAutowiringSupport
| [WSProvideTask] at java.lang.ClassLoader.defineClass1(Native Method)
| [WSProvideTask] at java.lang.ClassLoader.defineClass(Unknown Source)
| [WSProvideTask] at java.security.SecureClassLoader.defineClass(Unknown Source)
| [WSProvideTask] at java.net.URLClassLoader.defineClass(Unknown Source)
| [WSProvideTask] at java.net.URLClassLoader.access$000(Unknown Source)
| [WSProvideTask] at java.net.URLClassLoader$1.run(Unknown Source)
| [WSProvideTask] at java.security.AccessController.doPrivileged(Native Method)
| [WSProvideTask] at java.net.URLClassLoader.findClass(Unknown Source)
| [WSProvideTask] at java.lang.ClassLoader.loadClass(Unknown Source)
| [WSProvideTask] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
| [WSProvideTask] at java.lang.ClassLoader.loadClass(Unknown Source)
| [WSProvideTask] at org.jboss.wsf.spi.tools.cmd.WSProvide.generate(WSProvide.java:162)
| [WSProvideTask] at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:77)
| [WSProvideTask] Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.support.SpringBeanAutowiringSupport
| [WSProvideTask] at java.net.URLClassLoader$1.run(Unknown Source)
| [WSProvideTask] at java.security.AccessController.doPrivileged(Native Method)
| [WSProvideTask] at java.net.URLClassLoader.findClass(Unknown Source)
| [WSProvideTask] at java.lang.ClassLoader.loadClass(Unknown Source)
| [WSProvideTask] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
| [WSProvideTask] at java.lang.ClassLoader.loadClass(Unknown Source)
| [WSProvideTask] at java.lang.ClassLoader.loadClassInternal(Unknown Source)
| [WSProvideTask] ... 13 more
|
| BUILD FAILED
| C:\Documents and Settings\Ollie\workspace\helloworld\build.xml:22: Could not invoke WSProvideTask
|
| Total time: 1 second
WebContent/WEB-INF/lib (see classpath of WSProvideTask) contains spring.jar. What's going on? Why can't WSProvideTask find the sping class? Using the command line yields the same result (NoClassDefFoundError). It's probably something silly but I can't figure it out.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130368#4130368
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130368
18 years, 2 months