This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 57214 - java.lang.ClassNotFoundException deployment failed
Summary: java.lang.ClassNotFoundException deployment failed
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: _ ludo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 16:43 UTC by rkbacha
Modified: 2006-03-24 13:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log of netbeans4.1 beta (285.49 KB, text/plain)
2005-03-30 16:45 UTC, rkbacha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rkbacha 2005-03-30 16:43:45 UTC
when I try to run my main project, a depoyment failure occurs and it gives the 
following exception. Could you please help me with that...I have no idea how 
to resolve it. Thank you.


javax.xml.parsers.FactoryConfigurationError: Provider 
org.apache.crimson.jaxp.SAXParserFactoryImpl not found
	at javax.xml.parsers.SAXParserFactory.newInstance
(SAXParserFactory.java:93)
	at 
com.sun.enterprise.deployment.io.DeploymentDescriptorFile.getSAXParser
(DeploymentDescriptorFile.java:80)
	at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read
(DeploymentDescriptorFile.java:254)
	at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read
(DeploymentDescriptorFile.java:197)
	at 
com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescrip
tor(Archivist.java:221)
	at com.sun.enterprise.deployment.archivist.ApplicationArchivist.open
(ApplicationArchivist.java:194)
	at com.sun.enterprise.deployment.client.DescriptorLoader.run
(DescriptorLoader.java:56)
[catch] at java.lang.Thread.run(Thread.java:534)
==>
java.lang.ClassNotFoundException: org.apache.crimson.jaxp.SAXParserFactoryImpl
	at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:93)
	at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:187)
	at javax.xml.parsers.SAXParserFactory.newInstance
(SAXParserFactory.java:87)
	at 
com.sun.enterprise.deployment.io.DeploymentDescriptorFile.getSAXParser
(DeploymentDescriptorFile.java:80)
	at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read
(DeploymentDescriptorFile.java:254)
	at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read
(DeploymentDescriptorFile.java:197)
	at 
com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescrip
tor(Archivist.java:221)
	at com.sun.enterprise.deployment.archivist.ApplicationArchivist.open
(ApplicationArchivist.java:194)
	at com.sun.enterprise.deployment.client.DescriptorLoader.run
(DescriptorLoader.java:56)
[catch] at java.lang.Thread.run(Thread.java:534)
Comment 1 rkbacha 2005-03-30 16:45:38 UTC
Created attachment 21231 [details]
messages.log of netbeans4.1 beta
Comment 2 Martin Matula 2005-03-30 16:53:46 UTC
Reassigning to j2ee.
Comment 3 _ ludo 2005-03-30 17:00:05 UTC
I see this message in the log:
Import: Old version: 4.0. Importing from C:\Documents and
Settings\Kiss\.netbeans\4.0 to C:\Documents and Settings\Kiss\.netbeans\4.1beta

I am not sure this feature was working for Beta...
Please, delete your user dir,
restart the IDE, and do no import these old setting...
I think this will fix this issue.

Let us know.
Comment 4 rkbacha 2005-03-30 17:46:45 UTC
do you mean that I need to delete my user folder 'kiss' or the folder 4.0 
which is the folder of netbeans.
Thank you.
Comment 5 _ ludo 2005-03-30 17:48:21 UTC
Delete:

C:\Documents and Settings\Kiss\.netbeans\4.1beta


and its content.


Comment 6 _ ludo 2005-03-30 17:52:26 UTC
Also, make sure you use App Server 8.1

I am not sure if what you were using for netbeans 4.0 is AS 8 or AS 8.1 beta,
but for NB 4.1, only AS 8.1 is supported, not 8.0

The issue you faced is maybe 4.1 was configured with AS 8.0 location  due ot old
project setting imports.

Installing AS 8.1, and registering it to the IDE is needed for nb4.1 (beta of fcs)

Comment 7 _ ludo 2005-03-30 19:32:15 UTC
any news?
Comment 8 _ ludo 2005-03-30 19:54:32 UTC
For nb4.1 FCS, I am making sure this scenario will not happen.
Comment 9 rkbacha 2005-03-31 00:55:52 UTC
everything looks fine now.
Thank you very much for your time and your help!!!
I am new to netbeans and to the whole j2ee world but I am using it for my 
final year project.
If there is anyway that I could help just let me know...I'll do my best!
Comment 10 rkbacha 2005-03-31 00:58:19 UTC
the changes made resolved the problem
Comment 11 _ ludo 2005-03-31 01:45:49 UTC
You are welcome!
Filing bugs is the first thing you can do to contribute, and tell us how to make
this product better.
Don't be shy: filing bugs is OK!
Posting comments under nbj2ee@netbeans.org is also a good thing.
Thanks,
Ludo
Comment 12 Petr Blaha 2005-03-31 13:59:58 UTC
According to the last reporter's comment marking issue as verified.