[Beginners Corner] - ear file claims no meta-inf in war
by pyrokenesis
Hello, new to JBoss but not really a novice with development, but cant seem to get the most basic helloworld jsp page on my JBoss server.
My system setup is a Windows 2003 OS, Apache2 server, bundled with Tomcat. IIS is obviously working as well, but turned off.
I have Tomcat on port 8082 and I have JBoss on port 8084. Apache, Tomcat and IIS all work fine. JBoss seems to be working fine but the book I'm using (Beginning Java EE 5: From Novice to Professional, ISBN: 1590594703) has some simple steps to get a jsp showing on server that I cant implement.
After setup, I create a web-app.war with an index.jsp, but then I try to create the helloworld.ear with the following command:
jar cf helloworld.ear web-app.war META-INF
I get an error saying "META-INF: no such file or directory".
Surely someone knows how dumb I'm being. Any help is appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992210#3992210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992210
19 years, 4 months
[JBoss Messaging] - Re: where do i need to specify the JNP port which is used fo
by phanisekhar
hi Feodorov.
I have made the necessary changes to my EAR as specified at jboss WIKIpage given below..
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingUser_Deploying_a_s...
I could solve the communication exception but still facing some errors like invalid destination exception.
I have added jar files to my EAR at client side and used the following code to lookup
Hashtable hst = new Hashtable();
hst.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
hst.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
hst.put(Context.PROVIDER_URL,"jnp://remotehost:1099");
Context context = new InitialContext(hst);
QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) context.lookup("java:JmsXA");
queueConnection = queueConnectionFactory.createQueueConnection();
queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
Queue queue = (Queue) context.lookup("queue/testQueue");
next when the below gets executed I am getting invalid Destination Exception.
QueueSender queueSender = queueSession.createSender(queue);
Following is the list of jar files added to ear at client side as specified in WIKI page
javassist.jar
jboss-aop.jar
jboss-common-softvaluehashmap.jar
jboss-messaging.jar
jboss-remoting.jar
trove.jar
jboss-serialization.jar
and i have placed jboss-messaging-client.jar at following path in server
jboss-4.0.2\server\messaging\lib
Is it manadatory to add all the above files to Ear while lookig for a jboss Remote messaging instance.
can you tell me the steps or procedure what I am following is correct or not?
I have downloaded jboss-messaging-1.0.1.GA.zip and used it as specified
in jboss messaging user guide.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992206#3992206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992206
19 years, 4 months
[EJB 3.0] - classcastexception on redeploy
by Bart1985
Hello,
I am relatively new to EJB3.0 and I am currently developing session and entity beans for a new application.
I'm using Jboss-4.0.5 and when I deploy the first time and I use a standalone application to test my sessionbeans, everything works fine. But when I redeploy my .jar application and use that standalone application again to invoke a sessionbean that passes a remote interface of another sessionbean, I get a classcastexception on PortableRemoteObject.narrow in the standalone application!
This is the remote interface that I invoke to get another sessionbeans remote interface:
@Remote
public interface PermissionRemote
{
public SchoolsRemote getSchoolsBean();//UserlogRemote ulr);
}
And then the interface that causes the classcastexception:
@Remote
public interface SchoolsRemote
{
public boolean subscribeSchool(String adminFullName,
String adminUserName,
String adminEmail,
String adminPhoneNumber,
String adminPassword,
String schoolName);
//public School findSchool(int pKey);
public String sayHi();
}
The JBoss error:
11:08:09,078 ERROR [STDERR] java.lang.ClassCastException
11:08:09,078 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
11:08:09,078 ERROR [STDERR] at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
11:08:09,078 ERROR [STDERR] at schoolTime.ejb.permission.PermissionBean.getSchoolsBean(Unknown Source)
11:08:09,078 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:08:09,078 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:08:09,078 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:08:09,078 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
11:08:09,078 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
11:08:09,078 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.
java:63)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,078 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEn
tityManagerInterceptor.java:54)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,078 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,078 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
11:08:09,078 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,078 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,078 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.
java:62)
11:08:09,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,109 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java
:77)
11:08:09,109 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor
.java:131)
11:08:09,109 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,109 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
11:08:09,109 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,109 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:10
6)
11:08:09,109 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:08:09,109 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
11:08:09,109 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
11:08:09,109 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandle
r.java:82)
11:08:09,109 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
11:08:09,109 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
11:08:09,109 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
11:08:09,109 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
11:08:09,109 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
11:08:09,109 ERROR [STDERR] Caused by: java.lang.ClassCastException: $Proxy93
11:08:09,109 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
11:08:09,109 ERROR [STDERR] ... 36 more
If anybody can help, I will be most grateful.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992205#3992205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992205
19 years, 4 months