[Beginner's Corner] - JBOSS 5.1.0 GA hags saying stopping jboss.web.service
by Juan Pedro Calvete
Juan Pedro Calvete [http://community.jboss.org/people/calgonit] created the discussion
"JBOSS 5.1.0 GA hags saying stopping jboss.web.service"
To view the discussion, visit: http://community.jboss.org/message/573625#573625
--------------------------------------------------------------
*JBOSS 5.1.0 GA hags saying stopping jboss.web.service.*
(I am migrating to a greater version)
JBoss starts well and i can see the JBoss web console (or other) in http://localhost:8080/ http://localhost:8080/, but when i put my war in the deployment folder: C:\jboss-5.1.0.GA\server\default\deploy
it breaks and doesn't deploy anything.
what are i doing wrong?
if i put this war in another Jboss server (4.0.4 GA for examplec jboss runs but deployment failed. The java virtual machine in that case is older, etc...)
Console LOG:
===============================================================================
.
JBoss Bootstrap Environment
.
JBOSS_HOME: C:\jboss-5.1.0.GA\bin\\..
.
JAVA: C:\Java\jdk1.6.0_21\bin\java
.
JAVA_OPTS: -Dprogram.name=run.bat -Xms256m -Xmx1024m -Dsun.rmi.dgc.client.gcI
nterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
.
CLASSPATH: C:\Java\jdk1.6.0_21\lib\tools.jar;C:\jboss-5.1.0.GA\bin\\run.jar;C:
\jboss-5.1.0.GA\bin
.
===============================================================================
.
13:11:40,854 INFO [ServerImpl] Starting JBoss (Microcontainer)...
13:11:40,854 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build:
SVNTag=JBoss_5_1_0_GA date=200905221634)
13:11:40,854 INFO [ServerImpl] Bootstrap URL: null
13:11:40,854 INFO [ServerImpl] Home Dir: C:\jboss-5.1.0.GA
13:11:40,854 INFO [ServerImpl] Home URL: file:/C:/jboss-5.1.0.GA/
13:11:40,854 INFO [ServerImpl] Library URL: file:/C:/jboss-5.1.0.GA/lib/
13:11:40,854 INFO [ServerImpl] Patch URL: null
13:11:40,854 INFO [ServerImpl] Common Base URL: file:/C:/jboss-5.1.0.GA/common/
13:11:40,854 INFO [ServerImpl] Common Library URL: file:/C:/jboss-5.1.0.GA/comm
on/lib/
13:11:40,854 INFO [ServerImpl] Server Name: default
13:11:40,854 INFO [ServerImpl] Server Base Dir: C:\jboss-5.1.0.GA\server
13:11:40,854 INFO [ServerImpl] Server Base URL: file:/C:/jboss-5.1.0.GA/server/
13:11:40,854 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.1.0.GA/serve
r/default/conf/
13:11:40,854 INFO [ServerImpl] Server Home Dir: C:\jboss-5.1.0.GA\server\defaul
t
13:11:40,854 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.1.0.GA/server/
default/
13:11:40,854 INFO [ServerImpl] Server Data Dir: C:\jboss-5.1.0.GA\server\defaul
t\data
13:11:40,854 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.1.0.GA/serv
er/default/lib/
13:11:40,854 INFO [ServerImpl] Server Log Dir: C:\jboss-5.1.0.GA\server\default
\log
13:11:40,854 INFO [ServerImpl] Server Native Dir: C:\jboss-5.1.0.GA\server\defa
ult\tmp\native
13:11:40,854 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.1.0.GA\server\defaul
t\tmp
13:11:40,854 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss-5.1.0.GA\server
\default\tmp\deploy
13:11:41,353 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/j
boss-5.1.0.GA/server/default/conf/bootstrap.xml
13:11:41,805 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.pl
ugins.cache.CombinedVFSCache]
13:11:41,805 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache
: null]]
13:11:42,024 INFO [CopyMechanism] VFS temp dir: C:\jboss-5.1.0.GA\server\defaul
t\tmp
13:11:42,024 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
13:11:42,929 INFO [ServerInfo] Java version: 1.6.0_21,Sun Microsystems Inc.
13:11:42,929 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (b
uild 1.6.0_21-b07)
13:11:42,929 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 17.0-
b17,Sun Microsystems Inc.
13:11:42,929 INFO [ServerInfo] OS-System: Windows 7 6.1,amd64
13:11:42,929 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms256m -X
mx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=
3600000 -Djava.endorsed.dirs=C:\jboss-5.1.0.GA\bin\\..\lib\endorsed
13:11:42,960 INFO [JMXKernel] Legacy JMX core initialized
13:11:44,686 INFO [ProfileServiceBootstrap] Loading profile: http://community.jboss.org/mailto:ProfileKey@111bda6 ProfileKey@111bda6
7[domain=default, server=default, name=default]
13:11:45,919 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083 http://127.0.0.1:8083
/
13:11:55,949 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
13:11:56,636 INFO [NativeServerConfig] 3.1.2.GA
13:11:56,885 INFO [AttributeCallbackItem] Owner callback not implemented.
13:11:57,759 INFO [LogNotificationListener] Adding notification listener for lo
gging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss
mailto:.mx.server.MBeanServerImpl@3a32ea4 .mx.server.MBeanServerImpl@3a32ea4[ defaultDomain='jboss' ]
===============================================================================
.
JBoss Bootstrap Environment
.
JBOSS_HOME: C:\jboss-5.1.0.GA\bin\\..
.
JAVA: C:\Java\jdk1.6.0_21\bin\java
.
JAVA_OPTS: -Dprogram.name=run.bat -Xms256m -Xmx1024m -Dsun.rmi.dgc.client.gcI
nterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
.
CLASSPATH: C:\Java\jdk1.6.0_21\lib\tools.jar;C:\jboss-5.1.0.GA\bin\\run.jar;C:
\jboss-5.1.0.GA\bin
.
===============================================================================
.
13:11:40,854 INFO [ServerImpl] Starting JBoss (Microcontainer)...
13:11:40,854 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build:
SVNTag=JBoss_5_1_0_GA date=200905221634)
13:11:40,854 INFO [ServerImpl] Bootstrap URL: null
13:11:40,854 INFO [ServerImpl] Home Dir: C:\jboss-5.1.0.GA
13:11:40,854 INFO [ServerImpl] Home URL: file:/C:/jboss-5.1.0.GA/
13:11:40,854 INFO [ServerImpl] Library URL: file:/C:/jboss-5.1.0.GA/lib/
13:11:40,854 INFO [ServerImpl] Patch URL: null
13:11:40,854 INFO [ServerImpl] Common Base URL: file:/C:/jboss-5.1.0.GA/common/
13:11:40,854 INFO [ServerImpl] Common Library URL: file:/C:/jboss-5.1.0.GA/comm
on/lib/
13:11:40,854 INFO [ServerImpl] Server Name: default
13:11:40,854 INFO [ServerImpl] Server Base Dir: C:\jboss-5.1.0.GA\server
13:11:40,854 INFO [ServerImpl] Server Base URL: file:/C:/jboss-5.1.0.GA/server/
13:11:40,854 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.1.0.GA/serve
r/default/conf/
13:11:40,854 INFO [ServerImpl] Server Home Dir: C:\jboss-5.1.0.GA\server\defaul
t
13:11:40,854 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.1.0.GA/server/
default/
13:11:40,854 INFO [ServerImpl] Server Data Dir: C:\jboss-5.1.0.GA\server\defaul
t\data
13:11:40,854 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.1.0.GA/serv
er/default/lib/
13:11:40,854 INFO [ServerImpl] Server Log Dir: C:\jboss-5.1.0.GA\server\default
\log
13:11:40,854 INFO [ServerImpl] Server Native Dir: C:\jboss-5.1.0.GA\server\defa
ult\tmp\native
13:11:40,854 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.1.0.GA\server\defaul
t\tmp
13:11:40,854 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss-5.1.0.GA\server
\default\tmp\deploy
13:11:41,353 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/j
boss-5.1.0.GA/server/default/conf/bootstrap.xml
13:11:41,805 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.pl
ugins.cache.CombinedVFSCache]
13:11:41,805 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache
: null]]
13:11:42,024 INFO [CopyMechanism] VFS temp dir: C:\jboss-5.1.0.GA\server\defaul
t\tmp
13:11:42,024 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
13:11:42,929 INFO [ServerInfo] Java version: 1.6.0_21,Sun Microsystems Inc.
13:11:42,929 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (b
uild 1.6.0_21-b07)
13:11:42,929 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 17.0-
b17,Sun Microsystems Inc.
13:11:42,929 INFO [ServerInfo] OS-System: Windows 7 6.1,amd64
13:11:42,929 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms256m -X
mx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=
3600000 -Djava.endorsed.dirs=C:\jboss-5.1.0.GA\bin\\..\lib\endorsed
13:11:42,960 INFO [JMXKernel] Legacy JMX core initialized
13:11:44,686 INFO [ProfileServiceBootstrap] Loading profile: http://community.jboss.org/mailto:ProfileKey@111bda6 ProfileKey@111bda6
7[domain=default, server=default, name=default]
13:11:45,919 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083 http://127.0.0.1:8083
/
13:11:55,949 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
13:11:56,636 INFO [NativeServerConfig] 3.1.2.GA
13:11:56,885 INFO [AttributeCallbackItem] Owner callback not implemented.
13:11:57,759 INFO [LogNotificationListener] Adding notification listener for lo
gging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss
mailto:.mx.server.MBeanServerImpl@3a32ea4 .mx.server.MBeanServerImpl@3a32ea4[ defaultDomain='jboss' ]
13:12:06,417 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFS
mailto:DeploymentContext@734426328{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/pro DeploymentContext@734426328{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/pro
fileservice-secured.jar/}
13:12:06,417 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFS
mailto:DeploymentContext@734426328{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/pro DeploymentContext@734426328{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/pro
fileservice-secured.jar/}
13:12:06,417 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFS
mailto:DeploymentContext@734426328{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/pro DeploymentContext@734426328{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/pro
fileservice-secured.jar/}
13:12:06,417 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFS
mailto:DeploymentContext@734426328{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/pro DeploymentContext@734426328{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/pro
fileservice-secured.jar/}
13:12:08,710 INFO [JMXConnectorServerService] JMX Connector server: service:jmx
:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
13:12:08,819 INFO [MailService] Mail Service bound to java:/Mail
13:12:10,925 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RI
SK. It has been detected that the MessageSucker component which sucks messages f
rom one node to another has not had its password changed from the installation d
efault. Please see the JBoss Messaging user guide for instructions on how to do
this.
13:12:10,941 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.
jboss.managed.api.annotation.ManagementComponent
13:12:10,988 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.
jboss.managed.api.annotation.ManagementComponent
13:12:11,035 INFO [TransactionManagerService] JBossTS Transaction Service (JTA
version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.
13:12:11,035 INFO [TransactionManagerService] Setting up property manager MBean
and JMX layer
13:12:11,206 INFO [TransactionManagerService] Initializing recovery manager
13:12:11,300 INFO [TransactionManagerService] Recovery manager configured
13:12:11,300 INFO [TransactionManagerService] Binding TransactionManager JNDI R
eference
13:12:11,331 INFO [TransactionManagerService] Starting transaction recovery man
ager
13:12:11,737 INFO [AprLifecycleListener] La biblioteca nativa de Apache Tomcat
basada en ARP que permite un rendimiento ¾ptimo en entornos de desarrollo no ha
sido hallada en java.library.path: C:\Java\jdk1.6.0_21\bin;.;C:\Windows\Sun\Java
\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\Sy
stem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM
\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;;C:\Pr
ogram Files\Broadcom\Broadcom 802.11\Driver;C:\Java\jdk1.6.0_21\bin
13:12:12,704 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http
-127.0.0.1-8080
13:12:12,704 INFO [AjpProtocol] Inicializando Coyote AJP/1.3 en ajp-127.0.0.1-8
009
13:12:12,735 INFO [StandardService] Arrancando servicio jboss.web
13:12:12,735 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA
13:12:12,782 INFO [Catalina] Server startup in 65 ms
13:12:12,797 INFO [TomcatDeployment] deploy, ctxPath=/web-console
13:12:13,406 INFO [TomcatDeployment] deploy, ctxPath=/invoker
13:12:13,468 INFO [TomcatDeployment] deploy, ctxPath=/jbossws
13:12:13,546 INFO [RARDeployment] Required license terms exist, view vfszip:/C:
/jboss-5.1.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
13:12:13,562 INFO [RARDeployment] Required license terms exist, view vfszip:/C:
/jboss-5.1.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
13:12:13,577 INFO [RARDeployment] Required license terms exist, view vfszip:/C:
/jboss-5.1.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
13:12:13,593 INFO [RARDeployment] Required license terms exist, view vfszip:/C:
/jboss-5.1.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
13:12:13,609 INFO [RARDeployment] Required license terms exist, view vfszip:/C:
/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
13:12:13,687 INFO [SimpleThreadPool] Job execution threads will use class loade
r of thread: main
13:12:13,718 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
13:12:13,718 INFO [RAMJobStore] RAMJobStore initialized.
13:12:13,718 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedule
r' initialized from default resource file in Quartz package: 'quartz.properties'
13:12:13,718 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
13:12:13,718 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS
TERED started.
13:12:14,108 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
13:12:14,498 INFO [ServerPeer] JBoss Messaging 1.4.3.GA server [0] started
13:12:14,607 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has l
easing enabled, lease period 10000 milliseconds
13:12:14,607 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
http://community.jboss.org/mailto:nnectionFactory@50c91c07 nnectionFactory@50c91c07 started
13:12:14,623 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pa
geSize=2000, downCacheSize=2000
13:12:14,623 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=20
0000, pageSize=2000, downCacheSize=2000
13:12:14,623 INFO [ConnectionFactoryJNDIMapper] supportsFailover attribute is t
rue on connection factory: jboss.messaging.connectionfactory:service=ClusteredCo
nnectionFactory but post office is non clustered. So connection factory will *no
t* support failover
13:12:14,623 INFO [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute
is true on connection factory: jboss.messaging.connectionfactory:service=Cluste
redConnectionFactory but post office is non clustered. So connection factory wil
l *not* support load balancing
13:12:14,638 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has l
easing enabled, lease period 10000 milliseconds
13:12:14,638 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
http://community.jboss.org/mailto:nnectionFactory@6df3d1f5 nnectionFactory@6df3d1f5 started
13:12:14,638 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has l
easing enabled, lease period 10000 milliseconds
13:12:14,638 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
http://community.jboss.org/mailto:nnectionFactory@5228e6c6 nnectionFactory@5228e6c6 started
13:12:14,747 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
13:12:14,872 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=DataSourceBinding,name=EuskotrenDS' to JNDI name 'java:Euskotren
DS'
13:12:15,231 INFO [JBossASKernel] Created KernelDeployment for: profileservice-
secured.jar
13:12:15,247 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservic
e-secured.jar,name=SecureProfileService,service=EJB3
13:12:15,247 INFO [JBossASKernel] with dependencies:
13:12:15,247 INFO [JBossASKernel] and demands:
13:12:15,247 INFO [JBossASKernel] jndi:SecureManagementView/remote-org.jbo
ss.deployers.spi.management.ManagementView
13:12:15,247 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
13:12:15,247 INFO [JBossASKernel] and supplies:
13:12:15,247 INFO [JBossASKernel] Class:org.jboss.profileservice.spi.Profi
leService
13:12:15,247 INFO [JBossASKernel] jndi:SecureProfileService/remote
13:12:15,247 INFO [JBossASKernel] jndi:SecureProfileService/remote-org.jbo
ss.profileservice.spi.ProfileService
13:12:15,247 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secu
red.jar,name=SecureProfileService,service=EJB3) to KernelDeployment of: profiles
ervice-secured.jar
13:12:15,247 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservic
e-secured.jar,name=SecureDeploymentManager,service=EJB3
13:12:15,247 INFO [JBossASKernel] with dependencies:
13:12:15,247 INFO [JBossASKernel] and demands:
13:12:15,247 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
13:12:15,247 INFO [JBossASKernel] and supplies:
13:12:15,247 INFO [JBossASKernel] jndi:SecureDeploymentManager/remote-org.
jboss.deployers.spi.management.deploy.DeploymentManager
13:12:15,247 INFO [JBossASKernel] Class:org.jboss.deployers.spi.management
.deploy.DeploymentManager
13:12:15,247 INFO [JBossASKernel] jndi:SecureDeploymentManager/remote
13:12:15,247 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secu
red.jar,name=SecureDeploymentManager,service=EJB3) to KernelDeployment of: profi
leservice-secured.jar
13:12:15,247 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservic
e-secured.jar,name=SecureManagementView,service=EJB3
13:12:15,247 INFO [JBossASKernel] with dependencies:
13:12:15,247 INFO [JBossASKernel] and demands:
13:12:15,247 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
13:12:15,247 INFO [JBossASKernel] and supplies:
13:12:15,247 INFO [JBossASKernel] jndi:SecureManagementView/remote-org.jbo
ss.deployers.spi.management.ManagementView
13:12:15,247 INFO [JBossASKernel] Class:org.jboss.deployers.spi.management
.ManagementView
13:12:15,247 INFO [JBossASKernel] jndi:SecureManagementView/remote
13:12:15,247 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secu
red.jar,name=SecureManagementView,service=EJB3) to KernelDeployment of: profiles
ervice-secured.jar
13:12:15,262 INFO [EJB3EndpointDeployer] Deploy http://community.jboss.org/mailto:AbstractBeanMetaData@33d8341c{n AbstractBeanMetaData@33d8341c{n
ame=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=
EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl propertie
s=[container] constructor=null autowireCandidate=true}
13:12:15,262 INFO [EJB3EndpointDeployer] Deploy http://community.jboss.org/mailto:AbstractBeanMetaData@20913236{n AbstractBeanMetaData@20913236{n
ame=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,servi
ce=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl proper
ties=[container] constructor=null autowireCandidate=true}
13:12:15,262 INFO [EJB3EndpointDeployer] Deploy http://community.jboss.org/mailto:AbstractBeanMetaData@6b7d28db{n AbstractBeanMetaData@6b7d28db{n
ame=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=
EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl propertie
s=[container] constructor=null autowireCandidate=true}
13:12:15,434 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice
-secured.jar,name=SecureDeploymentManager,service=EJB3
13:12:15,434 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.Secu
reDeploymentManager ejbName: SecureDeploymentManager
13:12:15,481 INFO [JndiSessionRegistrarBase] Binding the following Entries in G
lobal JNDI:
SecureDeploymentManager/remote - EJB3.x Default Remote Business Interfac
e
SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy
.DeploymentManager - EJB3.x Remote Business Interface
13:12:15,527 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice
-secured.jar,name=SecureManagementView,service=EJB3
13:12:15,527 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.Secu
reManagementView ejbName: SecureManagementView
13:12:15,527 INFO [JndiSessionRegistrarBase] Binding the following Entries in G
lobal JNDI:
SecureManagementView/remote - EJB3.x Default Remote Business Interface
SecureManagementView/remote-org.jboss.deployers.spi.management.Managemen
tView - EJB3.x Remote Business Interface
13:12:15,559 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice
-secured.jar,name=SecureProfileService,service=EJB3
13:12:15,559 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.Secu
reProfileServiceBean ejbName: SecureProfileService
13:12:15,574 INFO [JndiSessionRegistrarBase] Binding the following Entries in G
lobal JNDI:
SecureProfileService/remote - EJB3.x Default Remote Business Interface
SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService
- EJB3.x Remote Business Interface
13:12:15,699 INFO [TomcatDeployment] deploy, ctxPath=/admin-console
13:12:15,793 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/
admin-console'
13:12:17,711 INFO [TomcatDeployment] deploy, ctxPath=/
13:12:17,789 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
13:12:17,852 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-12
7.0.0.1-8080
13:12:17,883 INFO [AjpProtocol] Arrancando Coyote AJP/1.3 en ajp-127.0.0.1-8009
*13:12:17,883 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=
JBoss_5_1_0_GA date=200905221634)] Started in 37s:29ms
*13:15:55,557 INFO [TomcatDeployment] deploy, ctxPath=/centrocontrol.euskotren.e
s
13:15:55,666 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
13:15:55,697 INFO [Http11Protocol] Pausando Coyote HTTP/1.1 en puerto http-127.
0.0.1-8080
13:15:55,713 INFO [Http11Protocol] Parando Coyote HTTP/1.1 en puerto http-127.0
.0.1-8080
13:15:55,729 INFO [AjpProtocol] Pausando Coyote AJP/1.3 en ajp-127.0.0.1-8009
13:15:55,729 INFO [AjpProtocol] Parando Coyote AJP/1.3 en ajp-127.0.0.1-8009
13:15:55,760 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
http://community.jboss.org/mailto:nnectionFactory@50c91c07 nnectionFactory@50c91c07 undeployed
13:15:55,775 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
http://community.jboss.org/mailto:nnectionFactory@6df3d1f5 nnectionFactory@6df3d1f5 undeployed
13:15:55,775 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
http://community.jboss.org/mailto:nnectionFactory@5228e6c6 nnectionFactory@5228e6c6 undeployed
13:15:55,807 INFO [TomcatDeployment] undeploy, ctxPath=/web-console
13:15:55,869 INFO [QueueService] Queue[/queue/ExpiryQueue] stopped
13:15:55,869 INFO [QueueService] Queue[/queue/DLQ] stopped
13:15:55,885 INFO [SessionSpecContainer] Stopping jboss.j2ee:jar=profileservice
-secured.jar,name=SecureProfileService,service=EJB3
13:15:55,885 INFO [EJBContainer] STOPPED EJB: org.jboss.profileservice.ejb.Secu
reProfileServiceBean ejbName: SecureProfileService
13:15:55,900 INFO [SessionSpecContainer] Stopping jboss.j2ee:jar=profileservice
-secured.jar,name=SecureDeploymentManager,service=EJB3
13:15:55,916 INFO [EJBContainer] STOPPED EJB: org.jboss.profileservice.ejb.Secu
reDeploymentManager ejbName: SecureDeploymentManager
13:15:55,947 INFO [SessionSpecContainer] Stopping jboss.j2ee:jar=profileservice
-secured.jar,name=SecureManagementView,service=EJB3
13:15:55,947 INFO [EJBContainer] STOPPED EJB: org.jboss.profileservice.ejb.Secu
reManagementView ejbName: SecureManagementView
13:15:55,994 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager '
jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' from JNDI name 'java:JmsX
A'
13:15:56,009 INFO [ServerPeer] JMS ServerPeer[0] stopped
13:15:56,009 INFO [TomcatDeployment] undeploy, ctxPath=/invoker
13:15:56,056 INFO [TomcatDeployment] undeploy, ctxPath=/jbossws
13:15:56,056 INFO [TomcatDeployment] undeploy, ctxPath=/admin-console
13:15:56,056 INFO [TomcatDeployment] undeploy, ctxPath=/
13:15:56,056 INFO [TomcatDeployment] undeploy, ctxPath=/jmx-console
13:15:56,072 INFO [StandardService] Parando servicio jboss.web
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/573625#573625]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 5 months
[JBoss Web Services] - ResteasyIntegrationDeployer not working
by ramakrishna b
ramakrishna b [http://community.jboss.org/people/bramsreddy] created the discussion
"ResteasyIntegrationDeployer not working"
To view the discussion, visit: http://community.jboss.org/message/573530#573530
--------------------------------------------------------------
Hi
I think this is not the right place to post about resteasy.but i couldn't found any space related to it.
I have a web project with rest services.when i deploy that individually the ResteasyIntegrationDeployer working fine.I can able to see the follwoing line in console and rest services working fine.
[org.jboss.resteasy.integration.deployers.ResteasyIntegrationDeployer] *** Adding JAX-RS resource classes:
but when i add this web project to EAR(enterprise application) and deploying the EAR file ResteasyIntegrationDeployer is not working.i cant see any thing like *+[org.jboss.resteasy.integration.deployers.ResteasyIntegrationDeployer] *** Adding JAX-RS resource classes+* and rest services are not registering with application.My rest services are not wotking.
anybody have similar problem and have any solution?
btw i am using jboss 6 CR1 and resteasy 2.0.1...
Thanks & Regards
Ram
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/573530#573530]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 5 months
[JBoss Tools] - jboss hot-deploy limitations
by nimo stephan
nimo stephan [http://community.jboss.org/people/nimo22] created the discussion
"jboss hot-deploy limitations"
To view the discussion, visit: http://community.jboss.org/message/573560#573560
--------------------------------------------------------------
Am I right with the assumption that jboss-hot-deploy does not support to handle the import.sql script when starting the server?
However, import.sql is within the hot-deploy folder. But when starting the server, I get this error:
*(When using maven-deploy and start the server without hot-deploying via jboss-tools,*
*then executing of import script: /import.sql is successfully.)*
My persistence.xml has this entry:
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
I get this error only when using hot-deploy:
09:44:42,133 INFO [SchemaExport] Running hbm2ddl schema export
09:44:42,133 INFO [SchemaExport] exporting generated schema to database
09:44:42,133 INFO [SchemaExport] Executing import script: /import.sql
09:44:42,133 ERROR [SchemaExport] schema export unsuccessful: org.hibernate.JDBCException: Error during import script execution at line 1
at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:370) [:3.6.0.Final]
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:276) [:3.6.0.Final]
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:219) [:3.6.0.Final]
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:370) [:3.6.0.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1842) [:3.6.0.Final]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:902) [:3.6.0.Final]
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74) [:3.6.0.Final]
at org.jboss.jpa.builder.DefaultCEMFBuilder.build(DefaultCEMFBuilder.java:47) [:1.0.2-alpha-1]
at org.jboss.as.jpa.scanner.HackCEMFBuilder.build(HackCEMFBuilder.java:49) [:6.0.0.20101110-CR1]
at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:275) [:1.0.2-alpha-1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_21]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_21]
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.Alpha9]
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.Alpha9]
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.Alpha9]
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.Alpha10]
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.Alpha10]
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.Alpha10]
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.Alpha10]
at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.Alpha10]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.Alpha10]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.Alpha8]
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.Alpha8]
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.Alpha8]
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.Alpha8]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.Alpha8]
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.Alpha8]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.20101110-CR1]
at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:130) [:0.1.0.Alpha1]
at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:148) [:0.1.0.Alpha1]
at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.1.0.Alpha1]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.Alpha10]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.profileservice.dependency.ProfileServiceController.activate(ProfileServiceController.java:188) [:0.1.0.Alpha1]
at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:170) [:0.1.0.Alpha1]
at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:117) [:0.1.0.Alpha1]
at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:89) [:0.1.0.Alpha1]
at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:97) [:0.1.0.Alpha1]
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:130) [:6.0.0.20101110-CR1]
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.20101110-CR1]
at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
Caused by: java.sql.SQLException: Table not found in statement [insert into Widget]
at org.hsqldb.jdbc.Util.sqlException(Unknown Source) [:6.0.0.20101110-CR1]
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source) [:6.0.0.20101110-CR1]
at org.hsqldb.jdbc.jdbcStatement.execute(Unknown Source) [:6.0.0.20101110-CR1]
at org.jboss.resource.adapter.jdbc.WrappedStatement.execute(WrappedStatement.java:91) [:6.0.0.20101110-CR1]
at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:366) [:3.6.0.Final]
... 81 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/573560#573560]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 5 months
[JBoss Web Services] - Rest Easy MultiPart Support for file upload
by Suresh Indukuri
Suresh Indukuri [http://community.jboss.org/people/surein] created the discussion
"Rest Easy MultiPart Support for file upload"
To view the discussion, visit: http://community.jboss.org/message/571955#571955
--------------------------------------------------------------
I am using RestEasy 2.0.1 GA
I am trying to Upload a file using mutipart
<html><FORM NAME="InputForm" ACTION=" http://localhost:8081/Test/helloworld/upload http://localhost:8081/Test/helloworld/upload" METHOD="POST" enctype=multipart/form-data>
<P><input type=text name="name" size=80>
<P><input type=file name="filedata" size=80>
<P><input type="submit" value="Upload File Test">
</FORM></html>
<html><FORM NAME="InputForm" ACTION=" http://localhost:8081/Test/helloworld/upload http://localhost:8081/Test/helloworld/upload" METHOD="POST" enctype=multipart/form-data>
<P><input type=text name="name" size=80>
<P><input type=file name="filedata" size=80>
<P><input type="submit" value="Upload File Test">
</FORM></html>
My Entity class
public class FileUploadForm {
private byte[] filedata;
public FileUploadForm() {}
public byte[] getFileData() {
return filedata;
}
@FormParam("filedata")
@PartType("application/octet-stream")
public void setFileData(final byte[] filedata) {
this.filedata = filedata;
}
}
Client Code
@Path("/helloworld")
public class HelloWorldResource {
@POST
@Path("/upload")
@Consumes("multipart/form-data")
public Response create(@MultipartForm FileUploadForm form)
{
System.out.println("HI I am ready to upload the file");
return null;
}
}
I am getting 404 in html out as
h1. HTTP Status 400 - Could not find message body reader for type: class com.sify.resteasy.FileUploadForm of content type: multipart/form-data;boundary="----WebKitFormBoundaryBZcXdH72lf2GpIUi"
----
*type* Status report
*message* Could not find message body reader for type: class com.sify.resteasy.FileUploadForm of content type: multipart/form-data;boundary="----WebKitFormBoundaryBZcXdH72lf2GpIUi"
*description* The request sent by the client was syntactically incorrect (Could not find message body reader for type: class com.sify.resteasy.FileUploadForm of content type: multipart/form-data;boundary="----WebKitFormBoundaryBZcXdH72lf2GpIUi").
----
h3. Apache Tomcat/7.0.4
and in java code
------------------------------------------------
19812 [http-8081-exec-5] ERROR org.jboss.resteasy.core.SynchronousDispatcher - Failed executing POST /helloworld/upload
org.jboss.resteasy.spi.BadRequestException: Could not find message body reader for type: class com.sify.resteasy.FileUploadForm of content type: multipart/form-data;boundary="----WebKitFormBoundaryBZcXdH72lf2GpIUi"
at org.jboss.resteasy.core.MessageBodyParameterInjector$ReaderUtilityImpl.createReaderNotFound(MessageBodyParameterInjector.java:75)
at org.jboss.resteasy.core.messagebody.ReaderUtility.doRead(ReaderUtility.java:106)
at org.jboss.resteasy.core.messagebody.ReaderUtility.doRead(ReaderUtility.java:93)
at org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:146)
at org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:114)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:206)
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:514)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:491)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:120)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:200)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:48)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:203)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:242)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:259)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:237)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:281)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
i need some help to fix this issue
Regards,
Suresh
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/571955#571955]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 5 months