muthiahmerchant
asked on
struts, netbeans, tomcat complains about port-number already in use.
I am using netbeans to develop a struts application. usually, i can run the application without having to restart tomcat, i guess netbeans does it by itself, anyways lately, tomcat keeps complaining that the port number is already in use. It runs fine the first time, but when i run the app again it complains, also shutting down the server takes a long time. I have changed the port from 8085 to 8032 to 8023 in all cases it works the first time but not the second. even if i try to go back to port 8085 it will still complain that its in use.
all this happened after i install oracle XE on my machine. Don't know what exactly is the connection.
Please help and thanks in advance
all this happened after i install oracle XE on my machine. Don't know what exactly is the connection.
Please help and thanks in advance
Make sure there's no other copy on the machine. In Windows, ports can be hung onto too, so you may need to reboot
ASKER
I do have two copies of tomcat, the tomcat that is giving hte problem is the one that is bundled with netbeans, but i am running just one right now. and this was not a problem before.
If i reboot, same thing works fine the first time but not the second.
Thanks
If i reboot, same thing works fine the first time but not the second.
Thanks
Run a netstat command on your command-prompt to see which ports are being used.
ASKER
I ran the command and it doesn't show any ports starting with 80..
ASKER
when i rerun the app, this is the message that i get
Incrementally deploying http://localhost:8083/Grayline
Completed incremental distribution of http://localhost:8083/Grayline
Incrementally redeploying http://localhost:8083/Grayline
FAIL - Encountered exception java.lang.NoClassDefFoundE rror: org/apache/log4j/spi/Vecto rWriter
Deployment FAILED: FAIL - Encountered exception java.lang.NoClassDefFoundE rror: org/apache/log4j/spi/Vecto rWriter
C:\MyProjects\Grayline\nbp roject\bui ld-impl.xm l:539: Deployment error:
The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 5 seconds)
Incrementally deploying http://localhost:8083/Grayline
Completed incremental distribution of http://localhost:8083/Grayline
Incrementally redeploying http://localhost:8083/Grayline
FAIL - Encountered exception java.lang.NoClassDefFoundE
Deployment FAILED: FAIL - Encountered exception java.lang.NoClassDefFoundE
C:\MyProjects\Grayline\nbp
The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 5 seconds)
>>Deployment FAILED: FAIL - Encountered exception java.lang.NoClassDefFoundE rror: org/apache/log4j/spi/Vecto rWriter
That's a completely different issue - a classpath one
That's a completely different issue - a classpath one
ASKER
ok, can you please tell me what should i do to get it working.
Thanks
Thanks
All the log4j classes should be in your container's lib
sounds like you are starting tomcat when it has already running when u attempt to start it.
make sure you shut it down fully before restarting it.
make sure you shut it down fully before restarting it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.