Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NetBeans IDE 5.0

2 views
Skip to first unread message

Mize-ze

unread,
Oct 12, 2006, 6:05:11 AM10/12/06
to
Hi All,

I'm just a newbie in java and java IDE's at all.

I am using NetBEans IDE 5.0 (Only one that is free (?))
To develop a webapplication on a Sun Application Server 9.00 PE
When I try to compile and run my project I get :

--------------------------------------------------------------------------------------------------
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
do-dist:
dist:
run-deploy:
Incrementally deploying WebApplication1_localhost:4848_server
Completed incremental distribution of WebApplication1
Incrementally redeploying WebApplication1_localhost:4848_server
Start registering the project's server resources
Finished registering server resources
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.getFileArchive(Unknown
Source)
at
org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.incrementalDeploy(Unknown
Source)
at
org.netbeans.modules.j2ee.sun.bridge.DirectoryDeployment.incrementalDeploy(Unknown
Source)
at
org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade.incrementalDeploy(DirectoryDeploymentFacade.java:111)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:587)
at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:96)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:76)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
Caused by: java.io.FileNotFoundException:
D:\NetBeans\${com.sun.aas.instanceRoot}\applications\j2ee-modules\WebApplication1
at
com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:66)
... 22 more
java.lang.IllegalStateException: cannot find FileArchive class...
at
org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.incrementalDeploy(Unknown
Source)
at
org.netbeans.modules.j2ee.sun.bridge.DirectoryDeployment.incrementalDeploy(Unknown
Source)
at
org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade.incrementalDeploy(DirectoryDeploymentFacade.java:111)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:587)
at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:96)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:76)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
C:\Documents and
Settings\Admin\WebApplication1\nbproject\build-impl.xml:425: Deployment
error:
cannot find FileArchive class...
See the server log for details.
BUILD FAILED (total time: 2 seconds)
-------------------------------------------------------------------------------------------------------------

I am totally clueless about this error and I could not find any
similiar cases on the web

Any help will be appreciated.

Thanks/.

Andrew Thompson

unread,
Oct 12, 2006, 8:01:51 AM10/12/06
to
Mize-ze wrote:
> Hi All,
>
> I'm just a newbie in java and java IDE's at all.

So you have a wealth of experience developing applications
from the command line? Or did you just jump into this,
feet first?

> I am using NetBEans IDE 5.0 (Only one that is free (?))

There are many free IDE's.

> Caused by: java.io.FileNotFoundException:
> D:\NetBeans\${com.sun.aas.instanceRoot}\applications\j2ee-modules\WebApplication1

.....


> I am totally clueless about this error

A FileNotFoundException is not only fairly mundane, but
also self explanatory!

I bet 2 to 1 that your system has no..

D:\NetBeans\${com.sun.aas.instanceRoot}\applications\j2ee-modules\WebApplication1

..but the reason the '$' sign is in that path is probably that it
was meant to be replaced by property com.sun.aas.instanceRoot,
which has not been set?

Andrew T.

Mize-ze

unread,
Oct 15, 2006, 11:14:32 AM10/15/06
to

Where can I check this property?
Thanks.

Andrew Thompson

unread,
Oct 15, 2006, 11:57:06 AM10/15/06
to
Mize-ze wrote:
..

> > > I am using NetBEans IDE 5.0 (Only one that is free (?))
...

> > ..but the reason the '$' sign is in that path is probably that it
> > was meant to be replaced by property com.sun.aas.instanceRoot,
> > which has not been set?
...

> Where can I check this property?

"In your IDE" is the sarcastic response.

A slightly more technical reply might be..
I am not sure, but often the NetBeans IDE (like many modern
IDE's) can, or will, design the build around an ant style 'build.xml'
file. The ant build file will either define the properties, refer to
documents that define them, or fail to define them, as seems
in this case.

Note - it is mostly a guess that is what is happening here.
Those more familiar with the project, or NB, might be able
to suggest other causes/fixes. But a misconfigured
build.xml is my bet.

Andrew T.

Mize-ze

unread,
Oct 16, 2006, 5:27:46 AM10/16/06
to


Thanks.

> > > > I am using NetBEans IDE 5.0 (Only one that is free (?))
> ...

What other IDE's that support J2EE plaform (e.g. JSP, Servlets, etc.)
are free?

Thanks.

Thomas Kellerer

unread,
Oct 16, 2006, 5:38:25 AM10/16/06
to

On 12.10.2006 12:05 Mize-ze wrote:
> Hi All,
>
> I'm just a newbie in java and java IDE's at all.
>
> I am using NetBEans IDE 5.0 (Only one that is free (?))
> To develop a webapplication on a Sun Application Server 9.00 PE
> When I try to compile and run my project I get :

[....]


> C:\Documents and
> Settings\Admin\WebApplication1\nbproject\build-impl.xml:425: Deployment
> error:
> cannot find FileArchive class...
> See the server log for details.
> BUILD FAILED (total time: 2 seconds)
> -------------------------------------------------------------------------------------------------------------
>
> I am totally clueless about this error and I could not find any
> similiar cases on the web
>

The only thing that I can see. Java applications (that includes the JDK
and Tomcat) sometimes still have problems when beeing installed in
directories with spaces. You might want to try to create your NB project
in a Folder that does not contain a space.

That's the only thing I can guess right now.

Thomas

--
It's not a RootKit - it's a Sony

0 new messages