[JBoss Getting Started Documentation] - Getting started with JBoss4.0 - Ant Build Error
by anupjani
Hi.
I was following this tutorial to try Duke's Bank Application on JBoss4.
After downloading & unzipping j2ee-1_4-doc-tutorial_7.zip I copied examples folder into ${jboss.home}/server/myconfig. Then changed build.properties to set jboss.home path as "C:\JBoss4".
And ran following ANT command: C:\JBoss4\server\myconfig\examples\bank>ant -f build.xml compile.
The build fails with java.lang.NullPointerException showing a window popup dialog saying
---------------------------
16 bit MS-DOS Subsystem
---------------------------
C:\WINDOWS\system32\ntvdm.exe
Error while setting up environment for the application. Choose 'Close' to terminate the application.
---------------------------
Close Ignore
---------------------------
Even after clicking on Ignore the build fails.
I ensured there is no problem in build.properties. I ran each command (i.e. variable setting) one by one on command prompt & it came out all fine.
I have never faced this error before.
Please help.
Anup Jani
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159761#4159761
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159761
17 years, 10 months
[Remoting] - Re: ClassNotFoundException while calling remote ejb3 across
by ron.sigal@jboss.com
I've fixed this issue for Remoting release 2.2.2.SP8.
org.jboss.remoting.marshal.MarshallerLoaderHandler, which is the ServerInvocationHandler for the classloader Connector, now is able to search org.jboss.mx.loading.HeirarchicalLoaderRepository3s, which allows it to find scoped classes. In order to make it possible to inform the MarshallerLoaderHandler about the HeirarchicalLoaderRepository3s to be searched, a section has been added to the MBean Connector definition. This section should be added to the Connector for which the "loaderport" parameter is defined. A client connected to such a Connector will be able to connect to the associated classloader Connector and download classes from any of the repositories listed in the section.
For example, to allow an EJB3 to get scoped classes in an EAR where the jboss-app.xml is
| <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
| <jboss-app>
| <loader-repository>jboss.remoting:loader=titan.ear</loader-repository>
| </jboss-app>
|
the EJB3 Connector should look something like the following:
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
| <depends>jboss.aop:service=AspectDeployer</depends>
| <attribute name="Configuration">
| <config>
| <invoker transport="socket">
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">3873</attribute>
| <attribute name="loaderport" isParam="true">3883</attribute>
| </invoker>
|
| <repositories>
| <repository>jboss.remoting:loader=titan.ear</repository>
| </repositories>
|
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </config>
| </attribute>
| </mbean>
|
That is, the classloader Connector is informed about the HeirarchicalLoaderRepository3 with ObjectName "jboss.remoting:loader=titan.ear".
An example case is attached to JBREM-962 "Remote classloading does not work with Isolated EARs".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159759#4159759
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159759
17 years, 10 months
[JNDI/Naming/Network] - JBOSS4.2 with spring hibernate JNDI
by paul_lmc
I USE THE SPRING,HIBERNATE WITH JNDI ,the problems follows:
IN THE APPLICATION.XML deploy like this:
com/moreflurish/domain/article/InfoArticle.hbm.xml
net.sf.hibernate.dialect.MySQLDialect
true
hibernateJNDI
<!--prop key="hibernate.connection.datasource">jdbc/moreflurish</prop-->
java:/moreflurish
client application :
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
Properties prop = new Properties();
prop.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
prop.setProperty("java.naming.provider.url", "jnp://localhost:1099");
prop.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
InitialContext ctx = new InitialContext(prop);
System.out.println("111111111111");
//IMyBean bean = ( IMyBean) ctx.lookup("MyBean/remote");
//bean.dosomething();
//Object obj = bean.getHibernateJndI();
//System.out.println(obj);
//SessionFactory sf = (SessionFactory)obj;
Object obj = ctx.lookup("hibernateJNDI");
System.out.println(obj);
} catch (NamingException e) {
e.printStackTrace();
}
}
results ::::
2008-6-22 13:32:13 net.sf.hibernate.impl.SessionFactoryObjectFactory getInstance
è¦å: Not found: 402880521aae7fa0011aae7fad740000
null
the jboss JNDI VIEW LIKE THIS:
Global JNDI Namespace
+- hibernateJNDI (class: net.sf.hibernate.impl.SessionFactoryImpl)
+- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
+- jmx (class: org.jnp.interfaces.NamingContext)
| +- invoker (class: org.jnp.interfaces.NamingContext)
| | +- RMIAdaptor (proxy: $Proxy47 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
| +- rmi (class: org.jnp.interfaces.NamingContext)
| | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
WHY THE SESSIONFACTORY IS NULL!!!
THANK YOU!!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159757#4159757
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159757
17 years, 10 months
Automatically rejected mail
by Mail Delivery Subsystem
Your message was automatically rejected by Dovecot Mail Delivery Agent.
The following reason was given:
Quota exceeded
17 years, 10 months