NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
tnleeuw
Joined: 11 Mar 2010 Posts: 3 Location: Amsterdam, The Netherlands
|
Posted: Fri Mar 26, 2010 12:32 pm Post subject: Problem deploying Maven Web app |
|
|
Hi,
I have a Web app in a Maven project which I'm trying to run on a Tomcat server, from within NetBeans. However, for some reason, I'm not managing.
I've tried it with two different server configurations.
With one I have Cataline Home & Base set to the same directory, the standard Tomcat installation directory.
I get an error from the application that it cannot find it's JDBC data source, even though I did edit the Server.xml to add it.
With the other configuration I have Cataline Base set to a non-standard directory, where I have a working copy of the Tomcat config files. (This same set of config files is used to run the app from within Eclipse).
Using this configuration, I get the error that the app's directories can not be found in the Tomcat dir. As if the app is not properly deployed, or Tomcat is looking for it in the wrong place.
I'm developing on Windows Vista, and I've tried this with NetBeans 6.9M1 and various recent nightlies. (I don't have NB 6.8 set up and configured properly for this, at the moment).
Does anyone have an idea of what I'm doing wrong? Or is it time to file a bug?
Anyone who can successfully run web apps in the current dev. version of NetBeans, from Maven projects, or running into similar problems?
Kind Regards,
--Tim |
|
| Back to top |
|
 |
tnleeuw
Joined: 11 Mar 2010 Posts: 3 Location: Amsterdam, The Netherlands
|
Posted: Fri Mar 26, 2010 1:55 pm Post subject: Deploying to GlassFish doesn't work for me either |
|
|
I tried deploying to GlassFish, and put a bit more serious effort into that than previous attempts, and this also doesn't work. The error I get when deploying to GlassFish is:
NetBeans: Deploying on GlassFish v3
profile mode: false
debug mode: false
force redeploy: true
Initial deploying eframe-ear to D:\Work\eFrame\Source1\eframe-ear\target\gfdeploy\nl.secondfloor.eframe_eframe_ear_2.0.0.0-SNAPSHOT
Error during incremental deploy: java.io.FileNotFoundException: D:\Work\eFrame\Source1\eframe-ear\target\gfdeploy\nl.secondfloor.eframe_eframe_ear_2.0.0.0-SNAPSHOT\eframe-frontend-2.0.0.0-SNAPSHOT_war\js\ext-3.1.1\resources\images\default\qtip\.svn\entries (The system cannot find the path specified)
So the depoy-code is trying to deploy SVN private files. Which of course it shouldn't.
Strange thing is, that it's not the same file every time. But it's an SVN entries file every time I saw this error message today.
In case it matters, I used NB Nightly 20103230200 (newer nightlies have ugly bugs in the editor that make them as good as unusable, for the time being).
I'll be trying again with Tomcat and post some more logs, if I see anything that seems relevant. |
|
| Back to top |
|
 |
tnleeuw
Joined: 11 Mar 2010 Posts: 3 Location: Amsterdam, The Netherlands
|
Posted: Fri Mar 26, 2010 2:18 pm Post subject: |
|
|
With Tomcat, I currently get the following errors on startup of Tomcat:
| Code: | 26/03/10 15:05:57 (I) StandardEngine.start : Starting Servlet Engine: Apache Tomcat/6.0.24
26/03/10 15:05:57 (S) StandardContext.resourcesStart : Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\Programs\Tomcat6\Tomcat 6.0\eframe-frontend\eframe-frontend does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4086)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4255)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
26/03/10 15:05:57 (S) StandardContext.start : Error in resourceStart()
26/03/10 15:05:57 (S) StandardContext.start : Error getConfigured
26/03/10 15:05:57 (S) StandardContext.start : Context [/eframe] startup failed due to previous errors
26/03/10 15:05:57 (I) StandardContext.stop : Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/eframe] has not been started
26/03/10 15:05:57 (I) HostConfig.deployDescriptor : Deploying configuration descriptor host-manager.xml
26/03/10 15:05:57 (S) StandardContext.resourcesStart : Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\Programs\Tomcat6\Tomcat 6.0\eframe-frontend\host-manager does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4086)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4255)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
|
Deployment itself didn't give any errors, but it appears that the application is still not deployed.
 |
|
| Back to top |
|
 |
codebrain
Joined: 05 Apr 2010 Posts: 1
|
Posted: Mon Apr 05, 2010 6:46 am Post subject: problem deploying maven web app |
|
|
| Hi I am facing the same problem .. wondering if you already fond the reason / solutions |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|