[JBoss Web Services] - NullPointerException at
by Philipp Leusmann
Philipp Leusmann [http://community.jboss.org/people/p.leusmann] created the discussion
"NullPointerException at"
To view the discussion, visit: http://community.jboss.org/message/553657#553657
--------------------------------------------------------------
Hi,
I ama currently trying to deploy a WebApplication using EJB3 Jax-WS in JBoss.
The Application written using the Eclipse RAP Framework and thus using OSGi (Equinox).
But when the WebServices are setup, I always get the following NullPointerException:
java.lang.NullPointerException
at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:178)
at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:451)
at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:180)
at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:129)
at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:293)
at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:84)
at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:138)
at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:63)
at javax.xml.ws.Service.<init>(Service.java:79)
[...]
I did alread look at that piece of code, and found it is trying to resolve a URL like
file:/var/folders/0W/0WCNl0ONFvm5RkTGZc5t5E+++TI/-Tmp-/JBossWS_de.some.package.name9174384271488964615.xsd
The file actually exists.
Can anybody tell me, what is causing the NPE? I am using JBoss5.1.GA.
Regards,
Philipp
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553657#553657]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 9 months
Re: [jboss-user] [Beginner's Corner] - Hot deploy problem with properties file
by Pratik Surti
Pratik Surti [http://community.jboss.org/people/pratiksurti] replied to the discussion
"Hot deploy problem with properties file"
To view the discussion, visit: http://community.jboss.org/message/553640#553640
--------------------------------------------------------------
Let's put it in this way:
Properties file which contains key/value pairs for labeling and internationalization of your application. We can say Resource bundle file.
EAR file which contains my application jar files, war files, configuration files which is currently deployed on JBoss AS.
For e.g. my application server is up and running and for displaying a text box label (e.g. User Name) in Flex UI, accepts the value from properties file (Resouce Bundle file).
Now I am making changes to the value present in the property file for any corresponding key (e.g. Your Name instead of User Name) and building the ear file and it is getting hot deployed in JBoss AS.
Now according to the changes made in property file, it should be reflected on Flex UI for the particular text box after hot deploy in JBoss AS which is not happening at my end.
I hope you understand the above scenario.
Also the ref code:
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME,
new Locale(MYEnvironment.getValue("MYUtil", "PART_LOCALE"),localeCountry),Thread.currentThread().getContextClassLoader());
Consider "MYEnvironment.getValue()" part my own dynamic implementation.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553640#553640]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 9 months