Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Rahul Shilpakar

Ranch Hand
+ Follow
since Aug 29, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rahul Shilpakar

Hi

Thank you but If I use new version of JBOSS will it support the Eclipse 3.4.1 & EJB 2.0 and xDoclet 1.2.3?
9 years ago
Hi

EJB version is 2.0
and XDoclet version 1.2.3.

How can I solve problem?

Thank you.

Hello all,

I am new to EJB and JBoss.
I want to know why I can't run my EJB project?

Backround detail:

Application Server: JBoss 3.2.3

IDE: Eclipse Ganymede v. 3.4.1

Project: EJB project EJB v. 2.0

Program: Session Bean Program



Elaboration: I create a TigerBean class. Now they say it will automatically create TigerSession and the build fails. The JBoss server failed to start.

may I know what is going wrong. In my EJB project it shows Red Mark also in ejb-jar.xml

When I simply start the JBoss server it shows following message:

1. Server JBoss v3.2.3 at localhost failed to start.

2. At console: It shows like this

16:43:28,296 INFO [Server] Starting JBoss (MX MicroKernel)...
16:43:28,302 INFO [Server] Release ID: JBoss [WonderLand] 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)
16:43:28,306 INFO [Server] Home Dir: D:\sftwrs\application server\jboss\jboss-3.2.3
16:43:28,307 INFO [Server] Home URL: file:/D:/sftwrs/application server/jboss/jboss-3.2.3/
16:43:28,309 INFO [Server] Library URL: file:/D:/sftwrs/application server/jboss/jboss-3.2.3/lib/
16:43:28,313 INFO [Server] Patch URL: null
16:43:28,314 INFO [Server] Server Name: default
16:43:28,314 INFO [Server] Server Home Dir: D:\sftwrs\application server\jboss\jboss-3.2.3\server\default
16:43:28,372 INFO [Server] Server Home URL: file:/D:/sftwrs/application server/jboss/jboss-3.2.3/server/default/
16:43:28,373 INFO [Server] Server Data Dir: D:\sftwrs\application server\jboss\jboss-3.2.3\server\default\data
16:43:28,373 INFO [Server] Server Temp Dir: D:\sftwrs\application server\jboss\jboss-3.2.3\server\default\tmp
16:43:28,374 INFO [Server] Server Config URL: file:/D:/sftwrs/application server/jboss/jboss-3.2.3/server/default/conf/
16:43:28,375 INFO [Server] Server Library URL: file:/D:/sftwrs/application server/jboss/jboss-3.2.3/server/default/lib/
16:43:28,380 INFO [Server] Root Deployment Filename: jboss-service.xml
16:43:28,402 INFO [Server] Starting General Purpose Architecture (GPA)...
Failed to boot JBoss:
javax.management.InstanceNotFoundException: JMImplementation:service=LoaderRepository,name=Default
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:499)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:335)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
at org.jboss.Main.boot(Main.java:150)
at org.jboss.Main$1.run(Main.java:395)
at java.lang.Thread.run(Unknown Source)



My ejb module xml file looks like this:


Backround detail:

Application Server: JBoss 3.2.3

IDE: Eclipse Ganymede v. 3.4.1

Project: EJB project EJB v. 2.0

Program: Session Bean Program



Elaboration: I create a TigerBean class. Now they say it will automatically create TigerSession and the build fails. The JBoss server failed to start.

may I know what is going wrong. In my EJB project it shows Red Mark also in ejb-jar.xml

When I simply start the JBoss server it shows following message:

1. Server JBoss v3.2.3 at localhost failed to start.

2. At console: It shows like this

16:43:28,296 INFO [Server] Starting JBoss (MX MicroKernel)...
16:43:28,302 INFO [Server] Release ID: JBoss [WonderLand] 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)
16:43:28,306 INFO [Server] Home Dir: D:\sftwrs\application server\jboss\jboss-3.2.3
16:43:28,307 INFO [Server] Home URL: file:/D:/sftwrs/application server/jboss/jboss-3.2.3/
16:43:28,309 INFO [Server] Library URL: file:/D:/sftwrs/application server/jboss/jboss-3.2.3/lib/
16:43:28,313 INFO [Server] Patch URL: null
16:43:28,314 INFO [Server] Server Name: default
16:43:28,314 INFO [Server] Server Home Dir: D:\sftwrs\application server\jboss\jboss-3.2.3\server\default
16:43:28,372 INFO [Server] Server Home URL: file:/D:/sftwrs/application server/jboss/jboss-3.2.3/server/default/
16:43:28,373 INFO [Server] Server Data Dir: D:\sftwrs\application server\jboss\jboss-3.2.3\server\default\data
16:43:28,373 INFO [Server] Server Temp Dir: D:\sftwrs\application server\jboss\jboss-3.2.3\server\default\tmp
16:43:28,374 INFO [Server] Server Config URL: file:/D:/sftwrs/application server/jboss/jboss-3.2.3/server/default/conf/
16:43:28,375 INFO [Server] Server Library URL: file:/D:/sftwrs/application server/jboss/jboss-3.2.3/server/default/lib/
16:43:28,380 INFO [Server] Root Deployment Filename: jboss-service.xml
16:43:28,402 INFO [Server] Starting General Purpose Architecture (GPA)...
Failed to boot JBoss:
javax.management.InstanceNotFoundException: JMImplementation:service=LoaderRepository,name=Default
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:499)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:335)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
at org.jboss.Main.boot(Main.java:150)
at org.jboss.Main$1.run(Main.java:395)
at java.lang.Thread.run(Unknown Source)



My ejb module xml file looks like this:


9 years ago

Bear Bibeault wrote:You are still not giving us anything to work with. How are these individual servlets mapped? How are you invoking them? Are you restarting the web app between changes?



How are you invoking them ? Means

I am using "Run File" which i get after right click in the code of servlet.
11 years ago
Follwing is my servlet which i executed 1st



----------------------------------------------------------------------------------------------

And now I executed the following servlet



NOW

after executing DataInServlet servlet it is giving me the output of MyServlet1

11 years ago
Hello,

I have run a servlet named X and it is successful.

Now I am excuting Servlet Y but still it is showing me the Output of X.

I don't how it is?

but when i clean and built project it is not successfully builting the project.
11 years ago

Stephan van Hulst wrote:The identity of an object is simply that. Every object you create has its own unique identity. It doesn't matter if two objects are of the same class, hold the same references, have the same values; if they were created separately, they have unique identities. If two different variables hold a reference to the same object instance, the objects will be identical.

Equality means whether two (generally unique) objects are equal. Whether they are, depends on how the class defines equality.

Let's take a look at the book class:

book1 and book2 are two different copies of the same book "Nineteen eighty-four", writter by George Orwell. They are unique. However, the book class says that they are equal, because they have the same title and author.
book3 and book1 are obviously unequal, because they have different titles and authors.
book3 and book4 are not only equal, they are also identical, because they refer to the exact same copy of a book.





Thanks it really gave me good information
----------
Now, if you remove overriding "equal" method then

System.out.println(book1.equals(book2)); // Shall it return "false" ???
----------
11 years ago
if i have following lines in my code : -


Person p1 = new Person("monty", "jack");
Person p2 = new Person("monty", "jack");

p1 & p2 are not equal. WHY?

Integer i1 = new Integer(25);
Integer i2 = new Integer(25);

i1 & i2 are equal. WHY?
11 years ago
Got it.

It is transitive dependancy which compiler doesn't catch.

Is it so?

Paul Sturrock wrote:No. You are missing some Jar files Hibernate depends on. Check the Hibernate documentation to see what the dependencies are. At the very least (as David points out) you are missing commons logging.



Sorry but , thats what i want to tell you that i am missing some jar files then Eclipse should show me compile time Error. Isn't it?

But its not showing me compile time error.
This is the hibernate config file, is this any thing to with this problem ?



David Newton wrote:At the very least you're missing the Apache Commons Logging library.



if some library is missing it should have been given a compilation error.

But strange thing is that its not giving me any compilation error.

what I am suppose to do for this problem?

Details are as follows :



--------------------



now when i click on first exception in output its taking me to the LINE 1 of the above code... some ExceptionInInitializerError like that ...

Vijitha Kumara wrote:Before anything else, are you able to login to MySQL directly (i.e: from a shell/command prompt)?



yes i am able to login in to MySQL Query browser as well as MySQL Administrator.

I can fire queries ans see the output.
I running a basic program which has Hibernate concept and i am getting an exception as follows :

------------ output -------------------

Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.vaannila.util.HibernateUtil.<clinit>(HibernateUtil.java:14)
at com.vaannila.student.Main.main(Main.java:16)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:120)
at com.vaannila.util.HibernateUtil.<clinit>(HibernateUtil.java:10)
... 1 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more

-------------------------- output -------------------------------------------------