 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
unnamedharald Guest
|
Posted: Wed Jul 20, 2005 4:01 pm Post subject: NetBeans/Sun App server - making them play nice |
|
|
I encountered problems trying to do lab exercises with the J2EE Sun App
Server samples. It was extremely frustrating and even the Internet was
no help. Sometimes it seems as if I always have problems no one else
has. But just in case, I thought I'd mention how I solved them (though
the nature of the solutions lead me to question why a lot of developers
haven't had the same problems).
1) I installed the netbeans 4.1/Sun App Server bundle, taking all the
defaults. Unfortunately, it doesn't update the PATH environment
variable so I couldn't run asadmin, etc from the command line. I'll
get back to this after I explain #2.
2) After changing the path and then trying to run asant deploy it
didn't like "C:Program " which is what "C:Program Files... looks
like to it. Since the install default puts everything in "C:Program
Files", this is a problem (that I can't believe doesn't happen to a lot
of people). Anyway, my solution was to uninstall netbeans/sunappserver
and re-install in C:sun (or whatever, as long as there is no space in
any of the dir names-- I also can't understant why Microsoft used a dir name
with a space to hold applications, but apparently I don't understand a
lot of things).
Back to #1-- the path name I eventually added was
C:sunnetbeans-4.1SunAppServer8.1bin. BTW, for Windows XP users,
msconfig no longer lets you edit environment variables: right-click
MyComputer > Properties > Advanced (tab) > Environment Variables
(button) and there you are.
If this saves a few people from chucking it all in then my work is done.
|
|
| Back to top |
|
 |
IchBin Guest
|
Posted: Wed Jul 20, 2005 5:20 pm Post subject: Re: NetBeans/Sun App server - making them play nice |
|
|
unnamedharald wrote:
| Quote: | I encountered problems trying to do lab exercises with the J2EE Sun App
Server samples. It was extremely frustrating and even the Internet was
no help. Sometimes it seems as if I always have problems no one else
has. But just in case, I thought I'd mention how I solved them (though
the nature of the solutions lead me to question why a lot of developers
haven't had the same problems).
1) I installed the netbeans 4.1/Sun App Server bundle, taking all the
defaults. Unfortunately, it doesn't update the PATH environment
variable so I couldn't run asadmin, etc from the command line. I'll
get back to this after I explain #2.
2) After changing the path and then trying to run asant deploy it
didn't like "C:Program " which is what "C:Program Files... looks
like to it. Since the install default puts everything in "C:Program
Files", this is a problem (that I can't believe doesn't happen to a lot
of people). Anyway, my solution was to uninstall netbeans/sunappserver
and re-install in C:sun (or whatever, as long as there is no space in
any of the dir names-- I also can't understant why Microsoft used a dir name
with a space to hold applications, but apparently I don't understand a
lot of things).
Back to #1-- the path name I eventually added was
C:sunnetbeans-4.1SunAppServer8.1bin. BTW, for Windows XP users,
msconfig no longer lets you edit environment variables: right-click
MyComputer > Properties > Advanced (tab) > Environment Variables
(button) and there you are.
If this saves a few people from chucking it all in then my work is done.
1 - I thought that I read when installing the sun app server you must |
not use any spaces in the home directory. This must be because of
Microsoft's old internal dos names that is say 'C:Program Files' should
be referenced as 'C:PROGRA~1'. Microsoft never cleaned up Dos from the
days of old.
I just ran in to the same problem, big time, when building the mod_jk to
talk to Tomcat under windows with the 'Microsoft Visual C++ Toolkit
2003'. I have a HOWTO tutorial, at my website, under the 'KBase tab'
that explains the problems. My link is in my signature at the bottom of
this email.
2 - You can also change the environment variables by selecting Start
Control Panel System icon Advance tab Environment variables button.
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com
__________________________________________________________________________
' If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
|
|
| Back to top |
|
 |
unnamedharald Guest
|
Posted: Wed Jul 20, 2005 5:37 pm Post subject: Re: NetBeans/Sun App server - making them play nice |
|
|
I can understand WHY the no-space rule when installing (though I never
read that anywhere)-- but why the DEFAULT would break that rule is a
little silly.
|
|
| Back to top |
|
 |
unnamedharald Guest
|
Posted: Wed Jul 20, 2005 6:04 pm Post subject: Re: NetBeans/Sun App server - making them play nice |
|
|
Also, I just discovered that since I made the two changes mentioned I
am now able to run the JSF projects from NetBeans (e.g. tabbed-view).
Before, I kept getting a nullpointerexception in some javaserverfaces
init method resulting in an HTTP Status 500 browser error. Man, it's
like Christmas.
|
|
| Back to top |
|
 |
IchBin Guest
|
Posted: Wed Jul 20, 2005 6:29 pm Post subject: Re: NetBeans/Sun App server - making them play nice |
|
|
unnamedharald wrote:
| Quote: | I can understand WHY the no-space rule when installing (though I never
read that anywhere)-- but why the DEFAULT would break that rule is a
little silly.
I think I saw it when I was trying to install Sun's app server. When it |
asks for a different install directory. I was never able to install the
app server because it would always hang on my Windows XP SP 2 machine
while it was installing. I never saw any I/O while it installed. Beats
me. I went to JBoss with no problems.
--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com
__________________________________________________________________________
' If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
|
|
| 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
|
|