JMS using JBoss !!!
Hey,
ich just have a problem realizing jms over the jboss server. Actually, if you want to implement a JMS-Producer or JMS-Consumer you need to define a �*-servie.xml� file which hast to be copied in the deployed directory of the server and it has to be in Classpath off the consumer. So this file hast to be on the client side as well. So, is there a way to put the information of the �-service.xml� in the code of the client, so that it don�t have to be in the classpath any more? I need that for a very special implementation
kind regards
Chris
Hi Javith
The top three links provided in a Google search 'jboss jms tutorial' look like they'd cover this pretty well -- depending on if you're using JMS inside the JavaEE environment, or your using JMS directly. We might be able to help you more if you were trying to use GlassFish Message Queue and/or GlassFish Enterprise Server.
Good Luck
-- Ed
Similar Messages
-
How create JMS using jboss server
Hi
I am new to JMS, as i need to know how to create a JMS client in JBoss, i need complete details about jms topic/queue, complete details including the configuration in jboss to create a sample jms client.
Thanks in advance.
regards
JavithHi Javith
The top three links provided in a Google search 'jboss jms tutorial' look like they'd cover this pretty well -- depending on if you're using JMS inside the JavaEE environment, or your using JMS directly. We might be able to help you more if you were trying to use GlassFish Message Queue and/or GlassFish Enterprise Server.
Good Luck
-- Ed -
Configuration of JMS receiver Using Jboss JMS provider
Hi all..
I am configuring JMS adapter as receiver.
I am using JMS provider JBOSS .
I hav done configuration as
Transport protocol :Acess JMS provider with JNDI
JNDI lookUp Name of q connection factory: org.jboss.naming.LinkRefPairService
Name of JNDI initial Context factory :org.jnp.interfaces.NamingContextFactory
in sxmb_moni I am getting blak&white flag
IN Run time work bench In adapter monitoring I am getting
Receiver channel. Details: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory.
Can anybody plz tell me why this haapend?Did you deploy the JMS client jars to the J2EE Engine?
Cannot instantiate class: org.jnp.interfaces.NamingContextFactory sounds like the Framework can't find the class.
Take a look here:
Re: Using JBOSS JMS provider with XI
Greetz
Sebastian
Message was edited by: Sebastian Simon -
Using JBOSS JMS provider with XI
Hi,
I am connecting XI to a custom Java application developed on JBOSS app server. The custom application is developed with connectivity using JMS. I was told that JBOSS has a JMS provider used by the custom app. Has anyone done this before? Is it possible for XI to use JBOSS JMS provider? How difficult is this going to be for synchronous interface? Any information is greatly appreciated.
thanks.
James Changhi,
first deploy jboss-j2ee.jar,jms.jar,dom4j-full.jar..for deploying these jars into the xi follow this link
http://help.sap.com/saphelp_nw04s/helpdata/en/33/e6fb40f17af66fe10000000a1550b0/frameset.htm
then to make use of the JMS adapter follow this link,
http://help.sap.com/saphelp_nw04s/helpdata/en/4d/a3bc97ff55c742af7faed661635baf/frameset.htm
hope this will be useful.....
regards,
Sundararamaprasad -
Problem logging on to the managed RAS using JBoss Seam
<p>The app I am currently working on is using JBoss Seam. The sample jsp files you guys created were excellent. As a simple test I first tried to logon and export a report thru a different app using JSP and Tomcat and had no problems. I then copied the same code to my Seam application. I placed the logon and export report code into an Action class. I had to place the crystal jars into the seam/lib directory in order for seam to compile without errors. I now have seam running successfully, but get a runtime exception every time I try to logon to the RAS server.</p><p>This code</p><p><strong>enterpriseSession = sm.logon(username, password, cms, auth);</strong></p><p>causes this exception</p><p>2006-11-20 12:00:49,551 ERROR [com.crystaldecisions.sdk.occa.pluginmgr.internal.PluginMgr] (getPlugins:292): unexpected exception<br /><strong>java.lang.ClassCastException</strong>: com.crystaldecisions.sdk.plugin.desktop.pdf.internal.PDFFactory</p><p>Any ideas on how to correct this?</p><p>Thanks in advance,</p><p>Dave</p>
<p>Hi Dave</p><p>I wasn't familiar with JBoss Seam before you mentioned it in your post. Looks like yet another application framework like Struts or JSF. The logon error shouldn't cause any kind of ClassCastException with a PDF factory. </p><p>Have you tried commenting out all code except for the login. My only guess is that Seam changes the way that the code is executed so it appears that the error has to do with the login call. I really don't think this is possible.</p><p>Start off real simple and uncomment the code as you go to see where the error is coming from. </p><p>Rob Horne<br /><a href="/blog/10">Rob's blog - http://diamond.businessobjects.com/blog/10</a></p>
-
Unable to create database connection using jboss
hi masters,
i have developed an application using jdeveloper ADF, and created .EAR file and deployed it in jboss. it shows that application is deployed, but when using application using URL http://localhost:8080/appl/index.jspx it opens login window, but when we enter username and password it does not authenticate user.
i am not developer, but a DBA and ask to deploy application using jboss. how can i resolve this issue??? while starting , jboss generates error "creating connection to database failed- unauthenticated login attempted"
what might be the issue?????
posting my exact error here, hope someone will post some suggestion.
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.mq:service=PersistenceManager
state: FAILED
I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me: jboss.mq:service=DestinationManager
java.lang.SecurityException: Invalid authentication attempt, principal=null
ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
state: FAILED
I Depend On: jboss:service=TransactionManager
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me: java.lang.SecurityException: Invalid authentication attempt, principal=null
ObjectName: jboss.mq:service=StateManager
state: FAILED
I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me: jboss.mq:service=DestinationManager
org.jboss.mq.SpyJMSException: Error creating connection to the database.; - nested throwable: (java.
lang.SecurityException: Invalid authentication attempt, principal=null)
ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database
state: FAILED
I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me: java.lang.SecurityException: Invalid authentication attempt, principal=null
any suggestion will be appreciated..
thanks and regards
VD
Edited by: vikrant dixit on १९ फ़रवरी, २००९ ९:१६ अपराह्नhello all,
do anyone have any suggestion????
thanks and regards
VD -
Hi,
I am using jboss 4.2, java5.0 and Fedora Linux Enterprise Version 4.0 with kernel 2.6 and NPTL 2.3.4
I am using open source network chart generation API provided by geosoft ( http://geosoft.no/graphics/). This API generates chart into swing window.
I wrote the code to change this swing window into web browser compatible jpeg image. I used thread to generate the image. It is working fine, for one user and no other processes running on the application.
ISSUE:- When more than 5 users hit the application at the same time, some images get generated, some donot, there is no fixed trend to this image generation process.
I analyzed CPU timing, it is using 100% CPU and after the images are generated / not generated, the CU usage goes down to zero.
When I used the same code with Linux 9.0 (kernel 2.4, NPTL � 0.6), rest remain the same, it is working perfectly fine with more than 10 users, with all images being generated within 30 secs
Can somebody help me out to figure out whether it is a kernel issue / NPTL issue? Does it have something to do with thread processing?
Code for network chart generation :-
NetworkGenerator ntw=new NetworkGenerator();
BufferedImage img;
ntw.setVectRootNodes(vectRootNodes);
ntw.setHashChildNodeNames(hashNodeData);
ntw.setHashNodeRelation(hashNodeRelation);
ntw.setHashNodesCreated(hashNodesCreated);
ntw.setSupplyChainBean(supplyChainBean);
Thread t=new Thread(ntw);
t.setPriority(Thread.MAX_PRIORITY);
t.start();
try{
t.join();
catch(Exception e)
DebugManager.doDebug(className.toString(),e);
if(t!=null)
System.out.println(t.getState().name());
System.out.println(t.isAlive());
public class NetworkGenerator extends JFrame implements Runnable{
public void run()
//call the garbage collector
System.gc();
// Create the graphic canvas
window = new no.geosoft.cc.graphics.GWindow();
window.getCanvas().setSize(screenWidth,screenHt );
// Create the GUI
JPanel topLevel = new JPanel();
topLevel.setBackground(new Color(255,255,255)) ;
topLevel.setLayout (new BorderLayout());
getContentPane().add (topLevel);
topLevel.add (window.getCanvas(), BorderLayout.CENTER);
topLevel.setVisible(true);
// Create scene with default viewport
scene = new no.geosoft.cc.graphics.GScene(window, "My Scene"+ (new Date().getTime()));
no.geosoft.cc.graphics.GStyle style = new no.geosoft.cc.graphics.GStyle();
style.setForegroundColor (new Color (0, 0, 0));
style.setBackgroundColor (new Color (255, 255, 255));
style.setFont (new Font ("Arial", Font.BOLD, 10));
scene.setStyle (style);
int xPos=minY ;
int yPos=0;
int noofChild=vectRootNodes.size();
int dev=(screenHt -minY )/(noofChild+1);
int newDev=Math.round(dev-(dev/5));
//log.debug("---------noofChild-----------------------------------"+noofChild);
if(!hashNodesCreated.isEmpty())
for(int i=0;i<noofChild;i++)
yPos=minY +(dev*(i+1));
String nodeName = vectRootNodes.get(i).toString();
log.debug("root nodename===="+nodeName+" with ypos :"+yPos);
//log.debug("nodeName=="+nodeName);
//create root nodes
Node rootNode = createChildNode( nodeName,minY,screenHt,xPos, yPos ,newDev,1);
scene.add(rootNode);
log.debug("screenWidth ===="+screenWidth );
// if(screenWidth>minExtXval)
// minExtXval = screenWidth;
// w2 o
// * |
// * |
// * |
// * w0 o-------o w1
double w0[] = {0.0,screenHt ,0.0};
double w1[] = {screenWidth,screenHt,0.0};
double w2[] = {0.0,0.0,0.0};
scene.setWorldExtent (w0, w1, w2);
this.pack();
Thanks in advance.How do I do that as I checked for it in utilities and is not there? Thanks in advance
-
Can i use jboss seam in jdeveloper
Hi,
I am new to jdeveloper.
I am developing and application using jboss seam.
I am using jdeveloper as my ide.
can anybody tell me if i can use jboss seam with jdeveloper.
or are there any plugin available for jboss seam.
nageshHi Babak
It's a common requirement on posting to this forum that you describe which version of JDeveloper you're using and what technologies (obviously ADF BC in this case).
For making the static value dynamic within your View Object, are you familiar with the View Object bind variables/bind parameters? This will allow you to define a named variable in your VO that you can set programmatically or even let the user set. Play around with those first and see if they solve one part of your problem, then come back to the forum for the second part.
Regards,
CM. -
How to Struts and Spring in NetBeans using Jboss
Hi Every One,
I have a some basic Knowledge in Struts Spring and Hibernate. I already worked in it with Eclipse IDE in WebSphere Server...
But Now i want to How to Use Struts Spring and Hibernate in NetBeans using JBoss i need that Folder Structure like that Stuffs
Can Anybody Help Me for thisGoogle
-
How to configure and use jboss cache
Hi,
I need to use Jboss Cache in our application,
But i don't know anything about Jboss Cache...
can u tell me requirements and configuration for this?
and i am using jboss application server 3.2.3..
and apache-ant-1.7.1, jdk1.6.0_06, jbosscache 2.2.0
can u tell me how to configure and use jboss cache?
Thanks & Regards
ThilkumarGo to the JBoss web site and read up on the documentation there.
And if you still have any questions you'll probably get better answers at the JBoss forums than in these forums.
- Roy -
IllegalStateException in View (using JBOSS and ADF)
Hi:
I have a project using JBOSS and ADF. I have a form with the following code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page contentType="text/html"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af" %>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh" %>
<f:view>
<afh:html id="html">
<afh:head title="FisaSystem">
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252" />
<link rel="stylesheet" type="text/css" media="screen" title="screen" href="<%=request.getContextPath()%>/common/skins/fisaClassic/screen.css" />
</afh:head>
<afh:body id="body">
<h:form id="form">
<af:panelPage>
<af:showOneTab id="showOneTab" position="above">
<af:showDetailItem text="" id="showDetailItem">
<af:panelForm id="panelForm">
<af:inputText id="clasificationDescription" binding="#{clasificationManager.clasificationDescription}" required="true" />
</af:panelForm>
</af:showDetailItem>
</af:showOneTab>
<f:verbatim>
<div class="actions">
</f:verbatim>
<af:panelButtonBar>
<af:commandButton id="saveButton" text="#{internationalizationManager.saveButton}" action="#{clasificationManager.saveClasification}" />
<af:commandButton id="cancelButton" text="#{internationalizationManager.cancelButton}" action="#{clasificationManager.cancelClasification}" immediate="true" />
</af:panelButtonBar>
<f:verbatim>
</div>
</f:verbatim>
</af:panelPage>
</h:form>
</afh:body>
</afh:html>
</f:view>
the backing bean for that form i like this:
package com.fisa.efisa.document.manage.bean;
import java.util.Collection;
import oracle.adf.view.faces.component.UIXInput;
import oracle.adf.view.faces.component.UIXTable;
import oracle.adf.view.faces.context.AdfFacesContext;
import oracle.adf.view.faces.event.LaunchEvent;
import oracle.adf.view.faces.event.ReturnEvent;
import com.fisa.efisa.document.dto.EFPClasification;
import com.fisa.efisa.document.manage.common.CommonBackingBean;
import com.fisa.efisa.process.document.persistence.TdmmClasification;
import com.fisa.efisa.process.document.service.ServiceClasification;
import com.fisa.efisa.process.document.service.delegate.ServiceClasificationDelegate;
import com.fisa.efisa.process.engine.service.ServiceProcessEngine;
import com.fisa.efisa.process.engine.service.delegate.ServiceProcessEngineDelegate;
import com.fisa.util.Action;
import com.fisa.util.message.FTransactionMessage;
import com.fisa.util.message.Field;
import com.fisa.util.message.FisaMessage;
public class ClasificationBackingBean extends CommonBackingBean {
private final String CLASIFICATION_IDENTIFIER = "clasification";
ServiceClasification serviceClasification;
ServiceProcessEngine serviceProcessEngine;
UIXTable clasificationTable;
UIXInput clasificationDescription = new UIXInput();
public ClasificationBackingBean() {
serviceClasification = new ServiceClasificationDelegate();
serviceProcessEngine = new ServiceProcessEngineDelegate();
public Collection getClasificationList() {
return serviceClasification.findAllClasification(getFisaUserData());
public String addClasification() {
return ADD_OUTCOME;
public String editClasification() {
TdmmClasification row = (TdmmClasification) this.clasificationTable.getSelectedRowData();
if (row != null)
storeObjectInRequest(this.CLASIFICATION_IDENTIFIER, row.getClasificationId());
else
return null;
return EDIT_OUTCOME;
public String saveClasification() {
return LIST_OUTCOME;
public String deleteClasification() {
if (this.clasificationTable.getSelectedRowData() != null)
return CONFIRM_DELETE_KEY;
return null;
public void handleConfirmDeleteReturn(ReturnEvent event) {
if (event.getReturnValue() != null) {
AdfFacesContext.getCurrentInstance().addPartialTarget(this.clasificationTable);
public void handleConfirmDeleteLaunch(LaunchEvent event) {
Object row = this.clasificationTable.getSelectedRowData();
if (row != null)
event.getDialogParameters().put(DELETE_OBJECT_KEY, row);
public String cancelClasification() {
return LIST_OUTCOME;
public UIXTable getClasificationTable() {
return clasificationTable;
public void setClasificationTable(UIXTable clasificationTable) {
this.clasificationTable = clasificationTable;
public UIXInput getClasificationDescription() {
if (this.getClasificationFromRequest() != null)
clasificationDescription.setValue(this.getClasificationFromRequest().getDescription());
return clasificationDescription;
public void setClasificationDescription(UIXInput clasificationDescription) {
this.clasificationDescription = clasificationDescription;
private EFPClasification getClasificationFromRequest() {
Long rowId = null;
if (retrieveObjectFromRequest(this.CLASIFICATION_IDENTIFIER) != null) {
rowId = (Long) retrieveObjectFromRequest(this.CLASIFICATION_IDENTIFIER);
FisaMessage fisaMessage = new FisaMessage();
fisaMessage.setHeader(getMessageHeader());
FTransactionMessage transactionMessage = new FTransactionMessage();
transactionMessage.setFtmApplicationId(getApplicationId());
transactionMessage.setFtmSourceSystemId(getSystemId());
transactionMessage.setFtmSubSystemId(getSubsystemId());
transactionMessage.setFtmBusinessTemplateId(getClasificationBtId());
EFPClasification efpClasification = new EFPClasification(transactionMessage);
Field field = new Field();
field.setValue(rowId.toString());
transactionMessage.addField(efpClasification.CLASIFICATION_ID, field);
transactionMessage.setFtmActionId(Action.QUERY_LIVE);
transactionMessage.setBtDataKey(rowId.toString());
fisaMessage.getFTransactionMessages().put(getClasificationBtId(), transactionMessage);
fisaMessage = this.serviceProcessEngine.executeMessage(fisaMessage);
transactionMessage = fisaMessage.getFTransactionMessages().get(getClasificationBtId());
efpClasification = new EFPClasification(transactionMessage);
return efpClasification;
return null;
And this is my faces-config
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
<!--param-value>server</param-value-->
</context-param>
<context-param>
<param-name>
oracle.adf.view.faces.USE_APPLICATION_VIEW_CACHE
</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>
oracle.adf.view.faces.ENABLE_DMS_METRICS
</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>
oracle.adf.view.faces.CHECK_FILE_MODIFICATION
</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>
oracle.adf.view.faces.CHANGE_PERSISTENCE
</param-name>
<param-value>session</param-value>
</context-param>
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>
oracle.adf.view.faces.webapp.AdfFacesFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>faces</servlet-name>
</filter-mapping>
<!-- Faces Servlet -->
<servlet>
<servlet-name>faces</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<!-- resource loader servlet -->
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>
oracle.adf.view.faces.webapp.ResourceServlet
</servlet-class>
</servlet>
<!-- Faces Servlet Mappings -->
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<!-- Welcome Files -->
<welcome-file-list>
<welcome-file>index.jspx</welcome-file>
</welcome-file-list>
<!-- ADF Faces Tag Library -->
<taglib>
<taglib-uri>http://xmlns.oracle.com/adf/faces</taglib-uri>
<taglib-location>/WEB-INF/af.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://xmlns.oracle.com/adf/faces/html</taglib-uri>
<taglib-location>/WEB-INF/afh.tld</taglib-location>
</taglib>
<!-- Faces Core Tag Library -->
<taglib>
<taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
<taglib-location>/WEB-INF/jsf_core.tld</taglib-location>
</taglib>
<!-- Faces Html Basic Tag Library -->
<taglib>
<taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
<taglib-location>/WEB-INF/html_basic.tld</taglib-location>
</taglib>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
As you see there's nothing really weird about this at all; if i use this page as displayed, i click on any of the buttons and everything works fine. But, if i add any other property to the clasificationDescription adf:inputText (a label for example), then it crashes with this error:
java.lang.IllegalStateException: Invalid index
oracle.adf.view.faces.bean.util.StateUtils.restoreKey(StateUtils.java:57)
oracle.adf.view.faces.bean.util.StateUtils.restoreState(StateUtils.java:129)
oracle.adf.view.faces.bean.util.AbstractPropertyMap.restoreState(AbstractPropertyMap.java:94)
oracle.adf.view.faces.bean.FacesBeanImpl.restoreState(FacesBeanImpl.java:247)
oracle.adf.view.faces.component.UIXComponentBase.restoreState(UIXComponentBase.java:761)
oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:749)
oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1019)
oracle.adfinternal.view.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:330)
com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:228)
oracle.adfinternal.view.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:232)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
What can be happening ???This forum is only for questions directly related to the Sun Web Server. I think you should post your questions in the jboss forums. Alternative, you could use one of the sun products and then we would be able to help you ;)
-
Deploy ejb in netbeans using jboss
I would like to know the steps to deploy ejb using jboss in netbeans..or please suggest a site which gives the detailed steps for deployment.
Thank youGoogle
-
ClassCastException in my WS over JMS using JAX-RPC in WLS 10.3...
Hi,
I am developing a WS over JMS using JAX-RPC in WLS 10.3 (I tried both WLS 10.3.0 and 10.3.1). And when WLS is trying to marshal the response, it throws "ClassCastException":
ava.lang.ClassCastException: org.tmforum.mtop.nrf.xsd.com.v1.EquipmentHolderEnumType cannot be cast to java.lang.String
at com.bea.staxb.runtime.internal.StringTypeConverter.print(StringTypeConverter.java:45)
at com.bea.staxb.runtime.internal.SimpleContentBeanMarshaller.print(SimpleContentBeanMarshaller.java:52)
at com.bea.staxb.runtime.internal.RuntimeBindingProperty.getLexical(RuntimeBindingProperty.java:154)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeCharData(PushMarshalResult.java:639)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:413)
at com.bea.staxb.runtime.internal.SimpleContentRuntimeBindingType.accept(SimpleContentRuntimeBindingType.java:46)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:195)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalType(PushMarshalResult.java:153)
at com.bea.staxb.runtime.internal.PushMarshalResult.visitProp(PushMarshalResult.java:631)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:403)
at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.accept(ByNameRuntimeBindingType.java:89)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:195)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalType(PushMarshalResult.java:153)
at com.bea.staxb.runtime.internal.PushMarshalResult.visitProp(PushMarshalResult.java:631)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:403)
at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.accept(ByNameRuntimeBindingType.java:89)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:195)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalType(PushMarshalResult.java:153)
at com.bea.staxb.runtime.internal.PushMarshalResult.visitProp(PushMarshalResult.java:631)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:400)
at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.accept(ByNameRuntimeBindingType.java:89)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:195)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalType(PushMarshalResult.java:153)
at com.bea.staxb.runtime.internal.PushMarshalResult.visitProp(PushMarshalResult.java:631)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:403)
at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.accept(ByNameRuntimeBindingType.java:89)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:195)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalType(PushMarshalResult.java:153)
at com.bea.staxb.runtime.internal.PushMarshalResult.visitProp(PushMarshalResult.java:631)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:400)
at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.accept(ByNameRuntimeBindingType.java:89)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:195)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalType(PushMarshalResult.java:153)
at com.bea.staxb.runtime.internal.PushMarshalResult.visitProp(PushMarshalResult.java:631)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:403)
at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.accept(ByNameRuntimeBindingType.java:89)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:195)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalType(PushMarshalResult.java:153)
at com.bea.staxb.runtime.internal.PushMarshalResult.visitProp(PushMarshalResult.java:631)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:400)
at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.accept(ByNameRuntimeBindingType.java:89)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:195)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalType(PushMarshalResult.java:153)
at com.bea.staxb.runtime.internal.PushMarshalResult.visitProp(PushMarshalResult.java:631)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:403)
at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.accept(ByNameRuntimeBindingType.java:89)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:195)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalType(PushMarshalResult.java:153)
at com.bea.staxb.runtime.internal.PushMarshalResult.visitProp(PushMarshalResult.java:631)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:403)
at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.accept(ByNameRuntimeBindingType.java:89)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:195)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalTopType(PushMarshalResult.java:96)
at com.bea.staxb.runtime.internal.MarshallerImpl.marshalBindingType(MarshallerImpl.java:302)
at com.bea.staxb.runtime.internal.MarshallerImpl.marshalElement(MarshallerImpl.java:383)
at weblogic.wsee.bind.runtime.internal.LiteralSerializerContext.marshalElement(LiteralSerializerContext.java:82)
at weblogic.wsee.bind.runtime.internal.BaseSerializerContext.internalSerializeElement(BaseSerializerContext.java:197)
at weblogic.wsee.bind.runtime.internal.BaseSerializerContext.serializeElement(BaseSerializerContext.java:128)
at weblogic.wsee.codec.soap11.SoapEncoder.encodePart(SoapEncoder.java:322)
at weblogic.wsee.codec.soap11.SoapEncoder.encodeReturn(SoapEncoder.java:228)
at weblogic.wsee.codec.soap11.SoapEncoder.encodeParts(SoapEncoder.java:215)
at weblogic.wsee.codec.soap11.SoapEncoder.encode(SoapEncoder.java:134)
at weblogic.wsee.codec.soap11.SoapCodec.encode(SoapCodec.java:134)
at weblogic.wsee.ws.dispatch.server.CodecHandler.encode(CodecHandler.java:104)
at weblogic.wsee.ws.dispatch.server.CodecHandler.handleResponse(CodecHandler.java:51)
at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:287)
at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:271)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.callHandleResponse(ServerDispatcher.java:341)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:189)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.jms.JmsWebservicesMessageDispatcher.dispatchMessage(JmsWebservicesMessageDispatcher.java:175)
at weblogic.wsee.server.jms.JmsQueueListener.processMessage(JmsQueueListener.java:397)
at weblogic.wsee.server.jms.JmsQueueListener.onMessage(JmsQueueListener.java:392)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
The "EquipmentHolderEnumType" is generated JAXB object (obviously it is not a String) from WSDL using WLS wsld generation. And here is how that Enum is defined in XSD:
<xsd:simpleType name="EquipmentHolderEnumType">
<xsd:annotation>
<xsd:documentation>
<p>Equipment holder type</p>
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="MINOR_EXT"/>
<xsd:enumeration value="rack"/>
<xsd:enumeration value="shelf"/>
<xsd:enumeration value="sub_shelf"/>
<xsd:enumeration value="slot"/>
<xsd:enumeration value="sub_slot"/>
<xsd:enumeration value="remote_unit"/>
<xsd:enumeration value="remote_slots"/>
</xsd:restriction>
</xsd:simpleType>
My question is why WLS is trying to cast the EnumType to String when marshalling it? How can I fix this exception?
Also, second question: my WS will take some time to get the response ready (1+ minute). I was using WLS console test client to test my WS. And the test client always got time out:
java.io.IOException: Request timed out
at weblogic.wsee.connection.transport.jms.JmsTransport.receive(JmsTransport.java:356)
at weblogic.testclient.WebServiceOperation.invokeJms(WebServiceOperation.java:463)
at weblogic.testclient.WebServiceOperation.addWeblogicHeadersAndInvoke(WebServiceOperation.java:382)
at weblogic.testclient.WebServiceOperation.invokeComplex(WebServiceOperation.java:305)
at weblogic.testclient.WebServiceOperation.invoke(WebServiceOperation.java:626)
How can I configure the WLS console test client so that I can increase teh timeout setting for the client?
Thank you very much!
JianHi, pls how did you solve your problem exatly? Because I have similar problem without solution.
I have WSDL contract like:
<xs:element name="duration">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="durationType">
<xs:attribute name="days" type="xs:int" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:simpleType name="durationType">
<xs:restriction base="xs:string">
<xs:enumeration value="PERIODIC"/>
<xs:enumeration value="PERPETUAL"/>
<xs:enumeration value="CREDIT_DAYS"/>
</xs:restriction>
</xs:simpleType>
And client site generated by WLS ant task "generate-from-wsdl" with "JAXRPC" option and when I use calling of this client and exeption was appeared:
FaultString [com.company.DurationType] FaultActor [null] Detail [<detail><java:string>java.lang.ClassCastException: com.company.DurationType</java:string></detail>];
Note: all other messages are correct.
thx -
hi,
can anyone provide some sample code or some info on how to write a JMX client in java(stand alone java program) which invokes a method in JMX service(using jboss API's)
thanksHi,
I recently had a similar problem, the PortableRemoteObject.narrow(...) is not implemented to cater for ejb3 in earlier versions of JBoss - including JBoss4.x. I deployed my ejb3 on JBoss5 and everything works well.
Another alternative is to use a standalone client...it worked well for me!
Hope this helps. -
How to identify power failure scenoria using jboss server
Am ramesh
Am working IPTV concept now i want to handle power failure scenoria..so please give some tips how to identify power failure using jboss
With Regrads
RameshIs the servlet class defined in a package.? If servlet class package is servlets., copy the servlet to
WEB-INF/classes/servlets directory.
Maybe you are looking for
-
File no longer shows icon in icon view
Instead of showing the cover of a music track for example, I now get this generic icon: Does anyone know why this has happened and what I can do about it?
-
How to get a value given to a button in HTML using a href tag
Hi, In my application I have loaded html content in WebView. In the HTML file i have used a Button to which i have given some value in href tag as <a href="ButtonClick//testing/mysample"> <input type="button" value="Click me" /> </a> When i click
-
Restart error message in 5 languages?
The other day my screen went translucent gray from top to bottom, then an error message came up, in 5 languages, saying "You need to restart your computer. Hold down the Power button until it turns off, then press the Power button again." I did this
-
Is SunMC the tool of choice?
Hello, world! I'd like to hear your oppinon: is SunMC the tool of choice, and if so, what modules do I need? I'd like to have my Sun server hardware monitored, in addtion to the Solaris monitoring we already have with BMC Patrol. The tool should tell
-
Missing content from library, downloaded app on phone that probably did it, what do i do
I downloaded an app on my samsung galaxy s3 and it let me move my music from itunes to my phone. It turned out something was wrong with the phone so I got a new one. I wanted to get my itunes music on my phone but not through the app so i went to m