[JBossWS] - problem with wsconsume
by gaurishjboss
C:\Documents and Settings\A\Desktop\java project\jboss-4.2.1.GA\bin>wsconsume -
k -o C:\clistubs http://127.0.0.1:8080/NewHAws/Ws?wsdl
JBossWS-Metro stack deployed
Exception in thread "main" java.lang.IllegalStateException: Failed to load: org.
jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl
at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:2
05)
at org.jboss.wsf.spi.util.ServiceLoader.loadFromSystemProperty(ServiceLo
ader.java:138)
at org.jboss.wsf.spi.util.ServiceLoader.loadService(ServiceLoader.java:6
8)
at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractCons
umer.java:72)
at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractCons
umer.java:56)
at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:1
95)
at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81)
Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.SunRI
ConsumerFactoryImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:2
00)
... 6 more
C:\Documents and Settings\A\Desktop\java project\jboss-4.2.1.GA\bin>
i am workign with jboss4.2.1GA and jbossws-3.0.1-native-2.0.4.GA...
but i m getting this problem while running wsconsume......can anyone please help me out..????
its really very urgent.....would appreciate ur help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143767#4143767
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143767
18 years, 2 months
[Beginners Corner] - Unable to get correct data using Remote interface getter met
by Neelma
I am using JBoss 4.0.5 along with stateless session beans (EJB 3.0).
I have a Remote interface ExperimentInf (annotated by @Remote).
ExperimentModel class implements the above Interface and is annotated
as
@Stateless
@EJB(name="ExperimentInf",mappedName="ExperimentModel")
ExperimentModel has class variables eg. sampleNames with getter and setter methods.
>From my view class, I call getData() method using ExperimentInf reference. This method reads data from a mysql databse and sets them the class variables (eg sampleNames).
ExperimentInf experimentInf = (ExperimentInf)GenowizFactory.getFactoryHome("ExperimentModel");
status = experimentInf.getData(experimentID) ;
But when i retrieve the class variables that were set using
experimentInf.getSampleNames();
the data retrieved belongs to the previous instance( when similar operation was performed earlier).
Sysouts given inside getData() method give correct output
I hope I have described the scenario clearly. Please help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143765#4143765
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143765
18 years, 2 months
[Persistence, JBoss/CMP, Hibernate, Database] - UserType ignored
by terryb
Hi,
I am trying to implement a usertype for spaced trimmed String. I have done as below but during execution Hibernate just ignores my usertype.
Is there something else needed for my StringTrimmed usertype to be used instead of the default String?
| ----- UserType ----------------------
| package au.edu.tisc.usertype;
|
| import java.io.Serializable;
| import java.sql.PreparedStatement;
| import java.sql.ResultSet;
| import java.sql.SQLException;
|
| import org.hibernate.Hibernate;
| import org.hibernate.HibernateException;
| import org.hibernate.usertype.UserType;
|
| /**
| * String user type with left and right spaces trimmed.
| */
| public class StringTrimmed implements UserType {
|
| public int[] sqlTypes() {
| return new int[] { Hibernate.STRING.sqlType() };
| }
|
| public Class returnedClass() {
| return String.class;
| }
|
| public boolean isMutable() {
| return false;
| }
|
| public Object deepCopy(Object value) {
|
| String stringValue = (String) value;
| String copy = new String(stringValue);
| return copy;
| }
|
| public Serializable disassemble(Object value) {
| return (Serializable) value;
| }
|
| public Object assemble(Serializable cached, Object owner) {
| return cached;
| }
|
| public Object replace(Object original, Object target, Object owner) {
|
| String stringValue = (String) original;
| String copy = new String(stringValue);
| return copy;
| }
|
| public boolean equals(Object x, Object y) {
|
| if (x == y) {
| return true;
| }
|
| if (x == null || y == null) {
| return false;
| }
|
| return x.equals(y);
| }
|
| public int hashCode(Object x) {
| return x.hashCode();
| }
|
| public Object nullSafeGet(ResultSet resultSet, String[] names, Object owner) throws SQLException {
|
| String stringValue = resultSet.getString(names[0]);
| if (resultSet.wasNull()) {
| return null;
| }
|
| return stringValue;
| }
|
| public void nullSafeSet(PreparedStatement statement, Object value, int index) throws HibernateException, SQLException {
|
| if (value == null) {
| statement.setNull(index, Hibernate.STRING.sqlType());
| } else {
| String untrimmedValue = (String) value;
| statement.setString(index, untrimmedValue.trim());
| }
| }
| }
| -----------------------------------------------------------
|
| ----------------- Entity class using usertype -------------
|
| @Entity
| @Table(name = "Client")
| @TypeDef(name="StringTrimmed", typeClass=au.edu.tisc.usertype.StringTrimmed.class)
| public class Client implements java.io.Serializable {
|
| private String id;
| ...
|
| @Type(type = "StringTrimmed")
| private String notes;
|
| ...
|
| @Column(name = "Notes", length = 250)
| @Length(max = 250)
| public String getNotes() {
| return this.notes;
| }
|
| public void setNotes(String notes) {
| this.notes = notes;
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143763#4143763
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143763
18 years, 2 months
[JBoss jBPM] - Error on method performFinish in class NewProcessDefinitionW
by pedroluppi
I have changed the methodo performFinish in class NewProcessDefinitionWizard like this:
public boolean performFinish() {
| try {
| IFolder folder = page.getProcessFolder();
| folder.create(true, true, null);
|
| IFile processDefinitionFile = folder.getFile("processdefinition.xml");
| processDefinitionFile.create(createInitialProcessDefinition(), true, null);
|
| IFile gpdFile = folder.getFile("gpd.xml");
| gpdFile.create(createInitialGpdInfo(), true, null);
|
| IFile abpmFile = folder.getFile("abpm.xml");
| abpmFile.create(createInitialABPMInfo(), true, null);
|
| IDE.openEditor(getActivePage(), gpdFile);
| openPropertiesView();
| BasicNewResourceWizard.selectAndReveal(gpdFile, getActiveWorkbenchWindow());
| return true;
| } catch (CoreException e) {
| e.printStackTrace();
| return false;
| }
| }
private ByteArrayInputStream createInitialABPMInfo() {
| String parName = page.getProcessFolder().getName();
| String processName = parName;
|
| StringBuffer buffer = new StringBuffer();
| buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
| buffer.append("\n");
| buffer.append("\n");
| buffer.append("<process-definition\n" +
| " name=\"" + processName + "\">\n" +
| "</process-definition>");
| return new ByteArrayInputStream(buffer.toString().getBytes());
| }
When I debug, no errors occours, but when I exported the project org.jbpm.gd.jpdl.ui like a jar and put the jar in eclipse plugin folder and, after that, I start the eclipse and try to create a new JBPM Project Process, I got the error: Plug-in org.jbpm.gd.jpdl.ui was unable to load class org.jbpm.ui.wizard.NewProcessDefinitionWizard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143757#4143757
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143757
18 years, 2 months
[JBoss Portal] - Re: problem with IPC
by sbiwal
Hi,
Thanks for your reply. My ipc listener is declared in portletB and even the settings are for portletB. I am attaching my jboss-service.xml here -
| <?xml version="1.0" encoding="UTF-8"?>
|
| <server>
|
| <!-- A sample listener -->
| <mbean
| code="org.jboss.portal.core.event.PortalEventListenerServiceImpl"
| name="portal:service=ListenerService,type=ipc_listener_hw"
| xmbean-dd=""
| xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
| <xmbean/>
| <depends
| optional-attribute-name="Registry"
| proxy-type="attribute">portal:service=ListenerRegistry</depends>
| <attribute name="RegistryId">ipc_listener_hw</attribute>
| <attribute name="ListenerClassName">org.jboss.portlet.hello.HelloWorldPortletB$Listener</attribute>
| </mbean>
| </server>
|
This is my helloworld-object.xml file
| <?xml version="1.0" encoding="UTF-8"?>
| <deployments>
| <deployment>
| <parent-ref>default</parent-ref>
| <if-exists>overwrite</if-exists>
| <page>
| <page-name>IPC</page-name>
| <listener>ipc_listener_hw</listener>
| <properties/>
| <window>
| <window-name>HelloWorldPortletAWindow</window-name>
| <instance-ref>HelloWorldPortletAInstance</instance-ref>
| <region>left</region>
| <height>0</height>
| </window>
| <window>
| <window-name>HelloWorldPortletBWindow</window-name>
| <instance-ref>HelloWorldPortletBInstance</instance-ref>
| <region>center</region>
| <height>0</height>
| </window>
| </page>
| </deployment>
| </deployments>
|
|
Please let me know if these settings are wrong. Your help will be highly appreciated
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143750#4143750
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143750
18 years, 2 months