[java ee programming] Re: GlassFish start problem

2009-09-08 Thread Andreas Johansson
Hi Adem,

The error is in the RMI server initialization and it's default port are
1099. Your particular problem seems to be the same as:
http://forums.java.net/jive/message.jspa?messageID=346514


Kind Regards
Andreas

2009/9/6 Adem Çayır 

> I try to make some web application. I open a simple web project, and try to
> run it. But, always grassfish start is failed. If I start if from program
> files, it starts. but in netbeans, it s failed. Some exceptions are thrown.
> and,
>
> java.net.SocketException: Unrecognized Windows Sockets error: 10106:
> create;|Service com.sun.enterprise.admin.
> server.core.adminservicelifecy...@8fcc7b cannot be initialized! :
> com.sun.appserv.server.ServerLifecycleException:
> java.rmi.server.ExportException: Listen failed on port: 0; nested exception
> is:
>
>
> is it normal to listen port 0 ? should it listen port 8080 ?
>
> I use Windows SP3 + JDK6 + NetBeans 6.5.1
>
>
>
> All of exceptions-
>
>
> CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_12] from [Sun
> Microsystems Inc.]
> Using MQ RA for Broker lifecycle control
> SEC1002: Security Manager is OFF.
> ADM5801:Admin server channel creation failed.
> java.net.SocketException: Unrecognized Windows Sockets error:
> 10106: create;|Service
> com.sun.enterprise.admin.server.core.adminservicelifecy...@8fcc7b cannot
> be initialized! : com.sun.appserv.server.ServerLifecycleException:
> java.rmi.server.ExportException: Listen failed on port: 0; nested exception
> is:
> java.net.SocketException: Unrecognized Windows Sockets error:
> 10106: create
> CORE5071: An error occured during initialization
> com.sun.appserv.server.ServerLifecycleException:
> java.rmi.server.ExportException: Listen failed on port: 0; nested exception
> is:
> java.net.SocketException: Unrecognized Windows Sockets error:
> 10106: create
> at
> com.sun.enterprise.admin.server.core.channel.AdminChannel.createRMIChannel(AdminChannel.java:111)
> at
> com.sun.enterprise.admin.server.core.AdminChannelLifecycle.onInitialization(AdminChannelLifecycle.java:74)
> at
> com.sun.enterprise.admin.server.core.AdminService.init(AdminService.java:319)
> at
> com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onInitialization(AdminServiceLifeCycle.java:116)
> at
> com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
> at
> com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:103)
> at com.sun.enterprise.server.PEMain.run(PEMain.java:399)
> at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
> 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:597)
> at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
> Caused by: java.rmi.server.ExportException: Listen failed on port: 0;
> nested exception is:
> java.net.SocketException: Unrecognized Windows Sockets error:
> 10106: create
> at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:312)
> at
> sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
> at
> sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
> at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
> at
> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
> at
> java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:293)
> at
> java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:256)
> at
> java.rmi.server.UnicastRemoteObject.(UnicastRemoteObject.java:155)
> at
> com.sun.enterprise.admin.server.core.channel.AdminChannelServer.(AdminChannelServer.java:102)
> at
> com.sun.enterprise.admin.server.core.channel.AdminChannel.createServerObject(AdminChannel.java:251)
> at
> com.sun.enterprise.admin.server.core.channel.AdminChannel.createRMIChannel(AdminChannel.java:106)
> ... 12 more
> Caused by: java.net.SocketException: Unrecognized Windows Sockets error:
> 10106: create
> at java.net.ServerSocket.createImpl(ServerSocket.java:255)
> at java.net.ServerSocket.getImpl(ServerSocket.java:205)
> at java.net.ServerSocket.bind(ServerSocket.java:319)
> at java.net.ServerSocket.(ServerSocket.java:185)
> at
> com.sun.enterprise.admin.server.core.channel.LocalRMIServerSocketFactory.createServerSocket(LocalRMIServerSocketFactory.java:92)
> at
> sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
> at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
> ... 22 more
> Server Startup failed. Exiting...
> S

[java ee programming] Re: Error: Bbookstore1.filters.OrderFilter has unsupported major or minor version numbers...

2009-09-08 Thread miga



On 3 sep, 22:21, "p. stephen wille"  wrote:
> Anyone else having this prob?
> I open the Bookstore1 project, deploy then run, and get the following error 
> message.  DB is installed,and I can successfully execute SQL statements in 
> Netbeans.
>
> Error message from running Bookstore1
>
> Deploying application in domain failed; Error loading deployment descriptors 
> for module [bookstore1] -- UnsupportedClassVersionError: Class 
> com.sun.bookstore1.filters.OrderFilter has unsupported major or minor version 
> numbers, which are greater than those found in the Java Runtime Environment 
> version 1.7.0-ea
> H:\Program 
> Files\J2EE\javaeetutorial5\examples\web\bookstore1\nbproject\build-impl.xml 
> :569: The module has not been deployed.
>
>  *I'm on Vista64
This is generally the sign that the version of java server/java in
netbeans nbproject/project.properties file are not in conformance with
what is properties when accessing with contextual menu.
So, try to modify what is in project.properties file corresponding to
those lines:
j2ee.platform=1.5
j2ee.server.type=gfv3

(or something similar for you)

Then save your changes, right click on the project, choose properties,
and now check the java server in run, change it if necessary. Undeploy
any application on the server, stop it, and run again the project.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Build Failed

2009-09-08 Thread miga



On 9 sep, 03:41, Dhwani Patel  wrote:
> Hello all,
>
> I was working with Netbeans nicely but i dont know what did i changed [
> think not anything :(  ] that leads now to build failed error while running
> any project. I can build it successfully, test it also. But when i hit Run
> for any project it gives me following error message :
>
> deploy?path=C:\Users\Dhwani\Desktop\Javapassion - J2EE\Homework\Sample
> Projects\servletadv\samples\hello2\build\web&name=hello2&force=true&propert 
> ies=keepSessions=true
> failed on GlassFish V3 Prelude
> C:\Users\Dhwani\Desktop\Javapassion - J2EE\Homework\Sample
> Projects\servletadv\samples\hello2\nbproject\build-impl.xml:545: The module
> has not been deployed.
> BUILD FAILED (total time: 40 seconds)
>
> When i click on the build-impl.xml it shows me below line
>
>          forceRedeploy="${forceRedeploy}"/>
>
> not sure how to resolve it
> Can anyone help me please ?
Not sure, but I would try to see if there is any web application
deployed on the server, and if true, I would undeploy it.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Populating the Example Dat abase needs password file‏

2009-09-08 Thread miga



On 8 sep, 11:41, peeter brunch  wrote:
> During the build of Example Database for Bookstore1 project, the build 
> process requires a password file and to specify it in the 
> \nbproject\project.properties file.
>
> Could someone provide the steps to accomplish these requirements for 
> popuplating the database? Pls see attachment for error message returned from 
> the build process.
As explained in the javaeetutorial5, you should create a
build.properties file inside bp-project, based on
build.properties.sample.
In it, you set what is required (it is explained in the file itself).
The file where the password is noted is common/admin-password.txt
(adapt it to your system, I'm on a Mac). If you hava not changed the
password of the Glassfish server, it is adminadmin.

PS: Could you please avoid sending attachment, as most of the time you
pass text, you may as well paste and copy it directly inside the
email.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Build Failed

2009-09-08 Thread Dhwani Patel
Hello all,

I was working with Netbeans nicely but i dont know what did i changed [
think not anything :(  ] that leads now to build failed error while running
any project. I can build it successfully, test it also. But when i hit Run
for any project it gives me following error message :

deploy?path=C:\Users\Dhwani\Desktop\Javapassion - J2EE\Homework\Sample
Projects\servletadv\samples\hello2\build\web&name=hello2&force=true&properties=keepSessions=true
failed on GlassFish V3 Prelude
C:\Users\Dhwani\Desktop\Javapassion - J2EE\Homework\Sample
Projects\servletadv\samples\hello2\nbproject\build-impl.xml:545: The module
has not been deployed.
BUILD FAILED (total time: 40 seconds)

When i click on the build-impl.xml it shows me below line



not sure how to resolve it
Can anyone help me please ?

thanks,



-- 
Dhwani Patel

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Net Beans 6.7.1

2009-09-08 Thread charles boyd
I am not sure about your http problem, I am still trying to get the same login 
for a new project as what is shown. I have deleted and re-installed several 
times and am now going to try and check if I can get to the web app of Net 
Beans. This is how it ALWAYS is to begin with do not get discouraged we will 
all learn. Charles.


  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] HTTP Monitor problem

2009-09-08 Thread Henry Ramos

Hello everybody:

I need help with using the HTTP Monitor in the "NetBeans IDE Quick
Start Guide for Web Applications II". I've turn it on at
Window>Debugging>HTTP Server Monitor, and enabled it at
Tools>Servers>Enable HTTP Monitor, but when I run the application, it
doesn't work. It just appears empty.

I'm using Netbeans 6.7.1 IDE. Have I missed one step? Please help me.

Thank you very much,

Henry Ramos

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: What is resourcebundle?

2009-09-08 Thread Victor
More info on ResourceBundle here


2009/9/8 p. stephen wille 
>
>> Does anyone know what [ResourceBundle] is, such as a data type, object,
>> class, or other, and how  to identify it?  Aside from a brief explanation,
>> I'd like to know the correct way to identify this thing, that is, it's
>> correct label.
>>
> See the API:
> http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: WAR vs. EAR vs. JAR

2009-09-08 Thread jitesh dundas
Hi,

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Overview4.html
http://en.wikipedia.org/wiki/EAR_%28file_format%29

Hope this helps..

Regards,
Jitesh Dundas

On Sun, Sep 6, 2009 at 5:58 PM, Martin Skurla  wrote:

>
> Hello,
>
>
> I just start with JavaEE but i dont understand the difference between
> WAR (Web ARchive) and EAR (Enterprise ARchive). What is the difference
> between them? And how are they related to JAR (zip compressed Java
> ARchive) ???
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Failure in populating the Example Database

2009-09-08 Thread peeter brunch

Hi Piotr,


Thanks for the response. I have search throught my PC but could not find where 
is the java.exe file. Where does this file resides and if I don't have one, how 
can I obtain such file? 

 

 


Date: Tue, 8 Sep 2009 09:47:15 +0200
Subject: Re: [java ee programming] Failure in populating the Example Database
From: it.pet...@gmail.com
To: peeterbru...@hotmail.com




On Tue, Sep 8, 2009 at 8:59 AM, peeter brunch  wrote:



After typing ant create-tables from the window vista DOS window terminal, I 
have received the following message:'java.exe' is not recognize as an internal 
or external command,operable program or batch file.
 
What have I done wrong? Thanks you.
 
The instruction from the course manual is as below:

Populating the Example DatabaseWhen you deploy any of the Duke’s Bookstore 
applications using ant deploy, the database is automatically populated at the 
same time. If you want to populate the database separately from the deploy task 
or are using NetBeans IDE to deploy the application, follow these steps:


In a terminal window, go to the books directory or any one of the bookstore1 
through bookstore6 example directories.

Start the Java DB database server. For instructions, see Starting and Stopping 
the Java DB Database Server. You don’t have to do this if you are using 
NetBeans IDE. It starts the database server automatically.

Type ant create-tables. This task runs a command to read the file tutorial.sql 
and execute the SQL commands contained in the file.


Hi, 

check your Windows class path settings. Probably you do not have set the path 
to java.exe

-- 
Piotr Chowaniec

_
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: WAR vs. EAR vs. JAR

2009-09-08 Thread tebogo...@yahoo.com

the difference is (WAR)-puts your servelets,jsp,html,or xml file that
are contained in your web application
(EAR)-puts the same and archives both the EJBs and War files in the
Enterprice archive.
(JAR)-is just a collection of java applications and their classess
either created using NetBeans or JGRASP application

On Sep 6, 2:28 pm, Martin Skurla  wrote:
> Hello,
>
> I just start with JavaEE but i dont understand the difference between
> WAR (Web ARchive) and EAR (Enterprise ARchive). What is the difference
> between them? And how are they related to JAR (zip compressed Java
> ARchive) ???

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Failure in populating the Example Database

2009-09-08 Thread peeter brunch

After typing ant create-tables from the window vista DOS window terminal, I 
have received the following message:
'java.exe' is not recognize as an internal or external command,operable program 
or batch file.

 

What have I done wrong? Thanks you.

 

The instruction from the course manual is as below:

Populating the Example Database
When you deploy any of the Duke’s Bookstore applications using ant deploy, the 
database is automatically populated at the same time. If you want to populate 
the database separately from the deploy task or are using NetBeans IDE to 
deploy the application, follow these steps:



In a terminal window, go to the books directory or any one of the bookstore1 
through bookstore6 example directories.


Start the Java DB database server. For instructions, see Starting and Stopping 
the Java DB Database Server. You don’t have to do this if you are using 
NetBeans IDE. It starts the database server automatically.


Type ant create-tables. This task runs a command to read the file tutorial.sql 
and execute the SQL commands contained in the file.

_
Windows Live: Make it easier for your friends to see what you’re up to on 
Facebook.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_facebook:082009
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~--~~~~--~~--~--~---