Peer Information Protocol; used by peers to obtain
Troubleshooting This appendix discusses commonly encountered problems compiling and running JXTAapplications. Errors compiling JXTA applications Check that your are including the correct jxta.jar file in your compilation statement (-classpath option). If you have downloaded multiple versions, verify that you are including the most recent version in your compilation statement. Note The required .jar files can be downloaded from the JXTA Web site: http://download.jxta.org. Errors running JXTAapplications Setting the classpath variable When you run your JXTAapplication, you need to set the -classpath variable to indicate the location of the required .jar files. Be sure to include the same version that you used when compiling your JXTAapplication. Although you need only the jxta.jar file for compilation, you need multiple .jar files when running a JXTAapplication. Note See on page for a list of the required Java .jar files. Unable to discover JXTA peers If you are unable to discover other JXTA resources (peers, peer groups, or other advertisements), you may have configured your JXTA environment incorrectly. Common configuration issues include the following: If you are located behind a firewall or NAT, you must use HTTP and specify a relay node. If you are using TCP with NAT, you may need to specify your NAT public address. You may need to specify at least one rendezvous node. Remove the JXTA configuration file (PlatformConfig) and then re-run your application. When the JXTAConfigurator window appears, enter your configuration information. See Appendix , for more details on running the JXTA Configurator. Using the JXTA Shell You can use the JXTAShell to help troubleshoot configuration issues and test JXTAservices. Commands are available to discover JXTA advertisements, create JXTA resources (e.g., groups, pipes, messages, and advertisements), join and leave peer groups, send and receive messages on a pipe, and much more. For example, to verify correct network configuration you can use the JXTAShell command “rdvstatus” to display information about your current rendezvous status (i.e., if you are configured as a rendezvous peer, and who your current rendezvous peers are). You can also use “search -r” to send out discovery requests, and then use “peers” to display any peers that have been discovered to confirm that network connectivity is working as expected. For more information on downloading and using the JXTAShell, please see: http://shell.jxta.org/ 145 JXTA v2.3.x: Java Programmer s Guide
Note: If you are looking for good and high quality web space to host and run your java application check Lunarwebhost java web hosting services