Deployment in JBOSS
Hi,
I'm new to Aqualogic BPM. How do I deploy the application developed in Aqualogic BPM studio in JBOSS? Thanks in advance.
Ram
Hi,
We deployed the application in Enterprise server and were able to generate a war file, which we then deployed in JBOSS. Applcn worked fine in JBOSS.
Thanks,
Ram
Similar Messages
-
How to access EJB deployed in JBOSS 4 from Creator
Hello.
I am trying to access EJBs deployed on JBOSS in order to develop a web app client, when I import the EJB set from Creator (sessions and entities packages in a jar file) I got the following error message....."No EJB set found in file....." .
I presume there is an kind of xml file description specific for Sun App Server missing. I would like to know if there is other way to expose EJB in creator?....maybe write a config file by hand.
I already read the tutorials related to EJB but those only use pre build EJB jars for Sun App Sserver.
Also I read all the posted about JBoos and EJB in this forum but those are pretty general.
By the way I have Delegate classes to access the EJB. How do I register my delegates in Creator in order to expose their methods?
I�ll really appreciate some light in this matter.
Thanks in advance!!!Hi,
The below forum thread may help you :
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=51321
Thanks,
Runa. -
Soap request with attachment --problem in deploye to jboss useing Jdevelope
using Jdeveloper and oc4j application server i made two application.
In application one i exposed a web service method.In this application their is a handler class which able to handle soap request and response with attachment.
In application two a client is sends a soap request with attachment.
If i deploye it in oc4j it is working fine. But if i Deploye to JBoss server [i made a jboss application server connection] and then trying to send the soap request with attachment from the client application i gets the following errors--
Exception in thread "main" javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:152)
at etrans.TripBean.a.ClientGateWay.msgEnvelope(ClientGateWay.java:50)
at etrans.TripBean.a.ClientGateWay.main(ClientGateWay.java:60)
Caused by: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused
at java.security.AccessController.doPrivileged(Native Method)
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:148)
... 2 more
Caused by: javax.xml.soap.SOAPException: Message send failed: Connection refused
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:458)
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:865)
... 4 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:516)
at java.net.Socket.connect(Socket.java:466)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:208)
at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:202)
at HTTPClient.HTTPConnection.getSocket(HTTPConnection.java:3115)
at HTTPClient.HTTPConnection.doConnect(HTTPConnection.java:3858)
at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:2921)
at HTTPClient.HttpOutputStream.close(HttpOutputStream.java:421)
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.sendMessage(HttpSOAPConnection.java:724)
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:373)
... 5 more
Am i made any mistake to deploye to jboss or it is not possiable to access the web service in such way?
please suggest me what is the procedure to recover from this.Hello,
How do you package you WS client application to be deployed in JBoss?
The JAX-RPC clients are not that portable you may need to recompile the client with JBoss WebService implementation/tools, and check that you do have the different deployment descriptors for the client too.
Regards
Tugdual Grall -
Hello,
We develop an application with Jdeveloper 10.1.3.4.0 and we want to deploy it to JBoss 4.0.5 GA but we have an error message like "EJB not bound".
Our application is formed by 2 pojects (Model and View). We have chosen to use a EJB SessionBean (Stateless), and a Local Interface.
For the mapping with te Database (Oracle 9i), we have a TopLink / Java Objects from tables ( SFMap).
Can you help me please because the deployment to JBoss doesn't work whereas, all works fine with OC4J.
I have heard that the deployment to JBoss4.0.5GA 's not possible with EJB3?
Thank you very much,
DianeLS,
Seems that you have a perfect test case to submit to My Oracle Support (http://support.oracle.com) if it happens every time. That's what I would do.
John -
Article written on EJB 3.0 , web services develop n deploy on JBOSS AS
Dear Friends
I would like to announce the article written on EJB 3.0 , web services development and deployment on JBOSS AS at the following location http://jamessmithjava.100webcustomers.com/index.html , I think this would help developers to increase interest on JBoss as well as EJBs
Regards
James
[email protected]
http://tech.groups.yahoo.com/group/james_smithjavaDear Friends
I would like to announce the article written on EJB 3.0 , web services development and deployment on JBOSS AS at the following location http://jamessmithjava.100webcustomers.com/index.html , I think this would help developers to increase interest on JBoss as well as EJBs
Regards
James
[email protected]
http://tech.groups.yahoo.com/group/james_smithjava -
Error deployment in jboss( cmp + sqlserver2000)
Hi,
I have created a cmp entity bean whose function was to create a table in sqlserver2000 and insert
the record in the database,: (Source
below), I have compiled and make a jar file to deploy on jboss,
I encountered and error:
10:47:29,934 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
/jboss3/server/default/deploy/Props.jar
10:47:30,074 INFO [EjbModule] Creating
10:47:30,106 INFO [EjbModule] Deploying Props
10:47:31,887 ERROR [JDBCCommand] Exception caught executing SQL
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Inc
orrect syntax near the keyword 'key'.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.processReplyToken(
Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Sour
ce)
at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType
(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown
Source)
at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown
Source)
at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown S
ource)
at com.microsoft.jdbc.base.BasePreparedStatement.executeUpdate(Unknown S
ource)
at org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.executeU
pdate(LocalPreparedStatement.java:308)
at org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAnd
HandleResult(JDBCUpdateCommand.java:61)
at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.j
ava:176)
at org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitComma
nd.java:149)
at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.create(JAWSPersiste
nceManager.java:131)
at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceMana
ger.java:155)
at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
at org.jboss.ejb.Container.invoke(Container.java:752)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:978)
at $Proxy5.create(Unknown Source)
at org.jboss.system.ServiceController.create(ServiceController.java:315)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy24.create(Unknown Source)
at org.jboss.ejb.EjbModule.createService(EjbModule.java:386)
at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:
136)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:978)
at $Proxy5.create(Unknown Source)
at org.jboss.system.ServiceController.create(ServiceController.java:315)
at org.jboss.system.ServiceController.create(ServiceController.java:243)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy9.create(Unknown Source)
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:377)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:760)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:620)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:435)
at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe
ploymentScanner.java:656)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:507)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:202)
10:47:32,465 INFO [EjbModule] Created
10:47:32,465 INFO [EjbModule] Starting
10:47:32,496 INFO [EjbModule] Started
10:47:32,496 INFO [MainDeployer] Deployed package: file:/C:/jboss/jboss3/server
/default/deploy/Props.jar
why these exception comes, i m wrong somewhere, any thing else which should i have to define.
thanx in advance
regard
sachin
//mysql-service.xml
<attribute name="JndiName">MySqlDS</attribute>
<attribute name="ManagedConnectionFactoryProperties">
<properties>
<config-property name="ConnectionURL"type="java.lang.String">jdbc:microsoft:sqlserver://faisal:1433;DatabaseName=master</config-property>
<config-property name="DriverClass"type="java.lang.String">com.microsoft.jdbc.sqlserver.SQLServerDriver</config-property>
<config-property name="UserName" type="java.lang.String">sa</config-property>
<config-property name="Password" type="java.lang.String"></config-property>
</properties>
</attribute>
//standardjbosscmp-jdbc.xml
<jbosscmp-jdbc>
<enterprise-beans>
<entity>
<ejb-name>Props</ejb-name>
<table-name>Props</table-name>
<cmp-field>
<field-name>key</field-name>
<column-name>key</column-name>
<jdbc-type>VARCHAR</jdbc-type>
<sql-type>VARCHAR(256)</sql-type>
</cmp-field>
<cmp-field>
<field-name>value</field-name>
<column-name>value</column-name>
<jdbc-type>VARCHAR</jdbc-type>
<sql-type>VARCHAR(256)</sql-type>
</cmp-field>
</entity>
</enterprise-beans>
<defaults>
<datasource>java:/MySqlDS</datasource>
<datasource-mapping>MS SQLSERVER2000</datasource-mapping>
<create-table>true</create-table>
<remove-table>false</remove-table>
<read-only>false</read-only>
<time-out>300</time-out>
<pk-constraint>true</pk-constraint>
<fk-constraint>false</fk-constraint>
<row-locking>false</row-locking>
<preferred-relation-mapping>foreign-key</preferred-relation-mapping>
<read-ahead>
<strategy>on-load</strategy>
<page-size>1000</page-size>
<eager-load-group>*</eager-load-group>
</read-ahead>
<list-cache-max>1000</list-cache-max>
</defaults>
//standradjaws.xml
<jaws>
<datasource>java:/MySqlDS</datasource>
<type-mapping>MS SQLSERVER2000</type-mapping>
<debug>false</debug>
<default-entity>
<create-table>true</create-table>
<remove-table>false</remove-table>
<tuned-updates>true</tuned-updates>
<read-only>false</read-only>
<time-out>300</time-out>
<row-locking>false</row-locking>
<read-ahead>false</read-ahead>
</default-entity>
<enterprise-beans>
<entity>
<ejb-name>Props</ejb-name>
<remove-table>true</remove-table>
<finder>
<name>findValueEquals</name>
<query>value = {0}</query>
<order>key DESC</order>
</finder>
</entity>
</enterprise-beans>Hi Volodymyr
thanx to reply me,
i was creating only small independent cmp dats by there was no need to create seprate xml files and did the same in corresponding jboss xml files.bt it will create problem when i will use more beans as u mentioned.
ok i follow, what u specified. i created
//jbosscmp-jdbc.xml
<enterprise-beans>
<entity>
<ejb-name>Props</ejb-name>
<table-name>Props</table-name>
<cmp-field>
<field-name>key</field-name>
<column-name>key</column-name>
</cmp-field>
<cmp-field>
<field-name>value</field-name>
<column-name>value</column-name>
</cmp-field>
</entity>
</enterprise-beans>
//jboss.xml
<jboss>
<enterprise-beans>
<entity>
<ejb-name>Props</ejb-name>
<jndi-name>Props</jndi-name>
</entity>
</enterprise-beans>
</jboss>
//ejb-jar.xml
<enterprise-beans>
<entity>
<description>
Entity bean Props
</description>
<ejb-name>Props</ejb-name>
<home>props.PropsHome</home>
<remote>props.Props</remote>
<ejb-class>props.PropsEJB</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>props.SportTeamPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-field><field-name>key</field-name></cmp-field>
<cmp-field><field-name>value</field-name></cmp-field>
</entity>
</enterprise-beans>
//mysql-service.xml
<attribute name="JndiName">MySqlDS</attribute>
<attribute name="ManagedConnectionFactoryProperties">
<properties>
<config-property name="ConnectionURL" type="java.lang.String">jdbc:microsoft:sqlserver://faisal:1433;DatabaseName=master</config-property>
<config-property name="DriverClass" type="java.lang.String">com.microsoft.jdbc.sqlserver.SQLServerDriver</config-property>
<config-property name="UserName" type="java.lang.String">sa</config-property>
<config-property name="Password" type="java.lang.String"></config-property>
</properties>
</attribute>
bt when i try to deploy the jar files the jboss console gives the same error:
19:04:38,432 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
/jboss3/server/default/deploy/Props.jar
19:04:38,635 INFO [EjbModule] Creating
19:04:38,667 INFO [EjbModule] Deploying Props
19:04:40,573 ERROR [JDBCCommand] Exception caught executing SQL
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Inc
orrect syntax near the keyword 'key'.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.processReplyToken(
Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Sour
ce)
at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType
(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown
Source)
at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown
Source)
at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown S
ource)
at com.microsoft.jdbc.base.BasePreparedStatement.executeUpdate(Unknown S
ource)
at org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.executeU
pdate(LocalPreparedStatement.java:308)
at org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAnd
HandleResult(JDBCUpdateCommand.java:61)
at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.j
ava:176)
at org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitComma
nd.java:149)
at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.create(JAWSPersiste
nceManager.java:131)
at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceMana
ger.java:155)
at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
at org.jboss.ejb.Container.invoke(Container.java:752)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:978)
at $Proxy5.create(Unknown Source)
at org.jboss.system.ServiceController.create(ServiceController.java:315)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy24.create(Unknown Source)
at org.jboss.ejb.EjbModule.createService(EjbModule.java:386)
at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:
136)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:978)
at $Proxy5.create(Unknown Source)
at org.jboss.system.ServiceController.create(ServiceController.java:315)
at org.jboss.system.ServiceController.create(ServiceController.java:243)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy9.create(Unknown Source)
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:377)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:760)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:620)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:435)
at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe
ploymentScanner.java:656)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:507)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:202)
19:04:41,135 INFO [EjbModule] Created
19:04:41,151 INFO [EjbModule] Starting
19:04:41,167 INFO [EjbModule] Started
19:04:41,167 INFO [MainDeployer] Deployed package: file:/C:/jboss/jboss3/server
/default/deploy/Props.jar
Any ideas about where my code is falling over???? Please let me know....
Thanks in Advance
regards, sachin -
hi,
any body please tell me. how to do soft deployment in jboss server.
thanks
Ravihi
If u are using eclipse then deployment on JBoss is damn easy. after making necessary development in web project/ EJB project along with deployment descriptor, u can deploy the project directly from eclipse.
Tushar -
Need Urgent Help! Exception During Deployment of JBoss Scheduler Service
Hi Folks,
I have a web app (.war) to deploy to JBoss 4.0.2, and there's a class in the app that implements org.jboss.varia.scheduler.Schedulable.
I want this thing to be invoked by the JBoss Scheduler, but I can't seem to get my Schedulable instance started.
Note: This is simply a web deployment (WAR), not a J2EE Application (EAR).
I've tried to deploy the Scheduler at the server level but i've got a deployment exception - "file is not not found".
also, I've tried to add the scheduler-service.xml into my web app (in WAR file ~/META-INF/ directory).
I'm open to suggestions on how to configure the scheduler services so it will work without any exceptions.
My scheduler-service.xml is as follows:
<server>
<mbean code="org.jboss.varia.scheduler.Scheduler" name="TevaOrderScheduler:service=Scheduler">
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableClass">com.cnw.enfopack.TevaOrderScheduler</attribute>
<attribute name="InitialStartDate">NOW</attribute>
<!--<attribute name="DateFormat">dd/MM/yy HH:mm</attribute>-->
<attribute name="SchedulePeriod">20 * 1000</attribute>
<attribute name="InitialRepetitions">-1</attribute>
</mbean>
</server>
Please HELP me, I'm working on this issue in the last 3 days!!!
Many Thanks in advance,
Sagi.
Edited by: Sagi_MY on Feb 11, 2009 11:32 PMThanks for your reply jwenting,
But for me it's an urgent case since my Scheduler refuse to work!!!
how it can be that you have'nt face such problem in JBoss 4.0.2?
I've search the Internet and saw many people that have faced the same problem like me.
(But, unfortunately, their answers didn't help me)
Please try to help me since It's almost 10 days that I'm dealing with it.
Many thanks mate. -
Can't remote debug appliaction with jdeveloper10.1.3 deployed in JBoss 4.2
can't remote debug appliaction with jdeveloper10.1.3 deployed in JBoss 4.2.2
when i try to debugg with old version like jboss-4.0.3SP1 it is workking good
but when i'm try to debugg with jboss-4.2.2.GA and add project newly libaray jboss client jars of this version i got error
Exception in thread "main" java.lang.NoClassDefFoundError: in
and the debugger stoped in URLClassLoader and throw NoClassDefFoundError exception, i think the reason is the client jars
which jars should i add to project libarary to success remotely debugg application in jboss 4.2.2 GA ?Remote debugging with JBoss 4.2 is the same as for 4.0.
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3?topic=rem_p_servlet_general_html -
I am currently evaluating the JSF tool as a means of developing JSP and JSF for JBoss. I am having problems deploying to JBoss.
When I select Window->Preferences->Server configurations->ADD I see only Tomcat and Weblogic. How do I specify JBoss?
After I get over that hurdle, can I go through the develop/test/develop/test cycle without restarting JBoss?
dwalshHi,
The "Run With Application Server:" at Window > Preferences > NitroX > Server Configurations > Add... is a drop-down menu, and navigating this list should display supported servers (Jakarta Tomcat 5 / 4.1 / 4.0, BEA WebLogic 8.1 / 7.0, IBM WebSphere 5, JBoss 3.2 / 4.0, Caucho Resin 3, & Mort Bay Jetty 5)
This list is common for all the NitroX products.
M7 Support -
Very Strange Problem... Missing hidden field when deployed on JBOSS
This problem is driving me nuts. Here it is... When I deploy my app to TomCat it works fine. When I deploy to JBoss everything works except the links . When I select a link rendered via JBoss the directory containing the JSP is displayed. I can also see that my filters are not being called in this case. I compared the HTML produced by TomCat to the HTML produced by JBoss and there was one minor difference. This hidden field was not rendered in JBoss:
<input type="hidden" name="contentView:contentForm:_idcl" />When I manually include this in the JSP and run JBoss.. It works.
I have spent a full day trying to figure out when the hidden field is not being rendered when deployed to JBoss... I would very much appreciate any suggestions.. Thanks in advance. Paul
Here is a bigger snippit:
<tags:layout
heading = "/banner.jsp"
menu = "/mainmenu.jsp">
<f:subview id="contentView">
<f:loadBundle basename="com.dygtig.bundles.labels" var="labels" />
<h:messages layout="table" tooltip="Please review errors and resubmit."
fatalClass = "msgFatalText"
errorClass = "msgErrorText"
warnClass = "msgWarnText"
infoClass = "msgInfoText"/>
<h:form id="contentForm" style="display:inline">
<f:verbatim><CENTER></f:verbatim>
<h:outputText value="Aircraft Types" styleClass="pageTitle"/>
<f:verbatim><br><br></f:verbatim>
<h:dataTable value = "#{aCTypeListView.acTypes}"
var = "ac"
first = "0"
rows = "15"
columnClasses= ""
styleClass = "normaltable"
width = "500px" title="Aircraft List"
rowClasses = "normaltabletext1,normaltabletext2"
id = "AircraftTable">
<h:column>
<f:facet name="header">
<h:outputText value="Action"/>
</f:facet>
<h:commandLink action="#{aCTypeListView.updateActype}">
<f:param name="acId" value="#{ac.id}"></f:param>
<h:outputText value="Upd" styleClass="commandLink"/>
</h:commandLink>
<h:outputText value=" "></h:outputText>
<h:commandLink action="#{aCTypeListView.deleteActype}" >
<f:param name="acId" value="#{ac.id}"></f:param>
<h:outputText value="Del" styleClass="commandLink"/>
</h:commandLink>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Type-Suffix"/>
</f:facet>
<h:outputText value="#{ac.typeSuffixText}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Model"/>
</f:facet>
<h:outputText value="#{ac.model}"/>
</h:column>
</h:dataTable>
<dygtig:tablescroller tables="AircraftTable" />
<br>
<h:commandLink action="#{aCTypeListView.createActype}">
<h:outputText value="Create New Aircraft Type" styleClass="link"/>
</h:commandLink>
<br>
</CENTER>
<br>
<! manually add hidden field here> </h:form>
</f:subview>
</tags:layout>Hi Paul,
I have the same problem under deployment to WAS, all <h:commandLink>s are out of order. The hidden form field '...:_idcl' is missing in the generated JSP, but will be generated under Tomcat.
Have you found a solution?
Cheers, Ralf. -
Problem in Creating a jar file using java.util.jar and deploying in jboss 4
Dear Techies,
I am facing this peculiar problem. I am creating a jar file programmatically using java.util.jar api. The jar file is created but Jboss AS is unable to deploy this jar file. I have also tested that my created jar file contains the same files. When I create a jar file from the command using jar -cvf command, Jboss is able to deploy. I am sending the code , please review it and let me know the problem. I badly require your help. I am unable to proceeed in this regard. Please help me.
package com.rrs.corona.solutionsacceleratorstudio.solutionadapter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.jar.JarEntry;
import java.util.jar.JarOutputStream;
import java.util.jar.Manifest;
import com.rrs.corona.solutionsacceleratorstudio.SASConstants;
* @author Piku Mishra
public class JarCreation
* File object
File file;
* JarOutputStream object to create a jar file
JarOutputStream jarOutput ;
* File of the generated jar file
String jarFileName = "rrs.jar";
*To create a Manifest.mf file
Manifest manifest = null;
//Attributes atr = null;
* Default Constructor to specify the path and
* name of the jar file
* @param destnPath of type String denoting the path of the generated jar file
public JarCreation(String destnPath)
{//This constructor initializes the destination path and file name of the jar file
try
manifest = new Manifest();
jarOutput = new JarOutputStream(new FileOutputStream(destnPath+"/"+jarFileName),manifest);
catch(Exception e)
e.printStackTrace();
public JarCreation()
* This method is used to obtain the list of files present in a
* directory
* @param path of type String specifying the path of directory containing the files
* @return the list of files from a particular directory
public File[] getFiles(String path)
{//This method is used to obtain the list of files in a directory
try
file = new File(path);
catch(Exception e)
e.printStackTrace();
return file.listFiles();
* This method is used to create a jar file from a directory
* @param path of type String specifying the directory to make jar
public void createJar(String path)
{//This method is used to create a jar file from
// a directory. If the directory contains several nested directory
//it will work.
try
byte[] buff = new byte[2048];
File[] fileList = getFiles(path);
for(int i=0;i<fileList.length;i++)
if(fileList.isDirectory())
createJar(fileList[i].getAbsolutePath());//Recusive method to get the files
else
FileInputStream fin = new FileInputStream(fileList[i]);
String temp = fileList[i].getAbsolutePath();
String subTemp = temp.substring(temp.indexOf("bin")+4,temp.length());
// System.out.println( subTemp+":"+fin.getChannel().size());
jarOutput.putNextEntry(new JarEntry(subTemp));
int len ;
while((len=fin.read(buff))>0)
jarOutput.write(buff,0,len);
fin.close();
catch( Exception e )
e.printStackTrace();
* Method used to close the object for JarOutputStream
public void close()
{//This method is used to close the
//JarOutputStream
try
jarOutput.flush();
jarOutput.close();
catch(Exception e)
e.printStackTrace();
public static void main( String[] args )
JarCreation jarCreate = new JarCreation("destnation path where jar file will be created /");
jarCreate.createJar("put your source directory");
jarCreate.close();Hi,
I have gone through your code and the problem is that when you create jar it takes a complete path address (which is called using getAbsolutePath ) (when you extract you see the path; C:\..\...\..\ )
You need to truncate this complete path and take only the path address where your files are stored and the problem must be solved. -
BC4J deploy in JBoss 3.0.3
While trying to deploy a BC4J app in JBoss 3.0.3, the
following Exception was raised:
java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement
All the steps listed in OTN's articles were done:
http://otn.oracle.com/products/jdev/howtos/appservers/deploy_bc4j903_to_jboss303.html
http://otn.oracle.com/products/jdev/howtos/bc4j/ejbstateless_with_bc4j.html
Trying to access AppModule without de Stateless EJB Session as a client, the Exception was:
java.lang.IllegalStateException: No security context set.
Has anyone seen something like that?What version of BC4J do you use? If it is 9.0.4, you have to add more libraries to Jboss.
-
EJB 3.0 deployment on JBoss - No ClassLoaders found
I have problem deploying a simple EJB 3.0 jar file , it contains an Interface , its Bean and the jboss.xml
jboss.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<enterprise-beans>
<session>
<ejb-name>ServerDBConnectionBean</ejb-name>
<management>org.jboss.ejb3.test.service.ServiceSixManagement</management>
<ejb-class>connection.server.ServerDBConnectionBean</ejb-class>
<remote>connection.server.ServerDBConnection</remote>
<jndi-name>ServerDBConnectionBean</jndi-name>
</session>
</enterprise-beans>
</jboss>
The problem is that when i deploy this jar file in JBoss , it says .........
12:10:17,988 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=server.jar
java.lang.ClassNotFoundException: No ClassLoaders found for: connection.server.ServerDBConnectionBean
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.ejb3.Ejb3AnnotationHandler.populateBaseInfo(Ejb3AnnotationHandler.java:265)
at org.jboss.ejb3.Ejb3DescriptorHandler.populateBaseInfo(Ejb3DescriptorHandler.java:202)
at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:123)
at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:409)
at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:397)
at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:378)
at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:350)
at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:305)
at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.create(Unknown Source)
at org.jboss.system.ServiceController.create(ServiceController.java:330)
at org.jboss.system.ServiceController.create(ServiceController.java:273)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy28.create(Unknown Source)
at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:429)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:74)
at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerInterceptorEJB.java:44)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy29.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
I suppose the problem is with the package , cause when i deploy with single package hirarechy i.e; server.ServerDBConnectionBean , it works .
Kindly any suggestionshi
I think you ur jboss.xml is wrong.
Try using like this for EJB3
<enterprise-beans>
<session>
<ejb-name>XXX</ejb-name>
<jndi-name>XXXX</jndi-name>
<local-jndi-name>XXXXX</local-jndi-name>
</session>
</enterprise-beans>I think <ejb-class> is not supported in jboss.xml..
Regards
Srinivas -
OIM 9.1.0.1 SPML Web Service Deployment on JBoss 4.2.3
Ran the script to deploy the services. The log file says thats the build was successful.
When I start JBoss it fails to deploy. Anyone tried this.
Start seeing error messages here:
2009-12-09 12:39:26,217 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[spmlws]] Error configuring application listener of class org.apache.axis.transport.http.AxisHTTPSessionListener
java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
Any ideas, anyone?
TIA,Backup the original file log4j-1.2.8.jar in oimclient/xlclient/ext
copy the log4j.jar from JBOSS folder - JBOSS/server/default
Paste the file in client folder with original log4j-1.2.8.jar
Rename log4j.jar file to log4j-1.2.8.jar
start ur JBOSS.. this shd work.
AKSHAY
Edited by: user640639 on Feb 11, 2009 12:20 PM
Maybe you are looking for
-
Thinking of getting EyeTV Hybrid to convert VHS to digital - the right move?
Hello, I am soon going to be going back to Macintosh after a failed 17 year experiment with Windows and one of the things I will be wanting to do is transfer some home videos I own into a format that I can edit likely using I-movie. I have reviewed
-
Error while sending .XLS attachment
Hello, I'm trynig to send an email with an .XML attachment. I use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to do it. When I use this code: DESCRIBE TABLE lt_objbin LINES l_records. lt_objpack-transf_bin = 'X'. lt_objpack-head_start = 1. lt_objpack-he
-
Keynote error message: "Can't open file..."
I use Keynote almost every for work. Recently I got this message "Can't open file [insert file name]". I thought if I update to Lion and then got Keynote '09 I would fix the problem. Unfortunately it did nothing. Any help would be greatly appreciated
-
Instead of my photo's I just see an exclamation point
When I am in my iPhoto I can't see some pictures when viewing the album and then when I click on them I get an ! Are they lost forever or is it in iPhoto issue?
-
IPad air not allowing to make any online payment.
I am not able to make any online bills payment using iPad air. It brings the web page back where I clicked the 'pay now' button. Can anyone suggest a solution?