netbeans-7

Glassfish 4 Admin not running from Netbeans 7.4 (Password Incorrect)

若如初见. 提交于 2019-12-28 20:43:22
问题 I am trying to run Glassfish 4 using Netbeans 7.4 IDE, but I am receiving an error dialog like Please check server admin user name and password properties. Also please check the server log file for other possible causes. I am passing the correct user name and password, I have ensured the same by running the glassfish 4 from the windows command prompt, it is running properly, but it is not running from Netbeans 7.4 Server log also attached for your reference. [2013-08-21T21:09:02.736+0530]

conversion of byte array into image(blob) in java [duplicate]

北慕城南 提交于 2019-12-25 17:06:29
问题 This question already has an answer here : How to convert byte array to blob (1 answer) Closed 6 years ago . The code for the image conversion from byte array to image i.e blob. try { Blob image_vis = rs1.getBlob(10); InputStream x=image_vis.getBinaryStream(); OutputStream out=new FileOutputStream(string_op); byte[] bytes = string_op.getBytes(); String s=new String(bytes); System.out.println(+s); //prints bytes for the string ImageIcon icon_cap = new ImageIcon(string_op); image_cap.setIcon

Exception in thread “main” javax.xml.bind.UnmarshalException

十年热恋 提交于 2019-12-25 14:38:17
问题 I am a .NET Developer learning Java. Please see the code below: The class HelloWorld import javax.ws.rs.core.Context; import javax.ws.rs.core.UriInfo; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PUT; import javax.ws.rs.core.MediaType; @Path("generic") public class HelloWorld { @Context private UriInfo context; public HelloWorld() { } @GET @Produces("application/xml") public String

configuring a MySQL DataSource in GlassFish 3 Application Server

你离开我真会死。 提交于 2019-12-25 07:55:10
问题 Does anyone know the steps for configuring a mysql datasource in glassfish 3? I am stuck on what the datasourceName should be. Here are the steps I have been following. Are they correct? Am I missing a step? BTW, I have glassfish 3.1.2 installed as part of Netbeans 7.2 on Mac OSX Lion 1) Install MySQL using XAMPP 2) Download /jars/jdbc-drivers/mysql-connector-java-5.1.22 and add to CLASSPATH 3) From Netbeans, start glassfish and launch Domain Admin Console 4) Go to Common Tasks > Resources >

MessagingException while trying to read emails from Gmail using java

旧城冷巷雨未停 提交于 2019-12-25 02:38:07
问题 I am trying to receive emails from my gmail account using Javamail but I am getting an error during execution....This is my code package sendemail; import javax.mail.*; import java.net.*; import java.util.*; public class Test { public static void main(String args[]) { Properties prop=new Properties(); prop.setProperty("mail.store.protocol", "imap"); prop.setProperty("mail.imap.port", "993"); try { Session session=Session.getInstance(prop,null); Store store=session.getStore(); store.connect(

jQuery not running in JSF Application

北城余情 提交于 2019-12-24 10:45:06
问题 I am newbie to jQuery. In netbeans I have jquery-1.7.2.js where all HTML files are present. I am creating JSF 2.0 project. Below is the code I have <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:ui="http://java

attach derby database into jar file

巧了我就是萌 提交于 2019-12-24 07:10:03
问题 I am midway through a database application(SWING). I am using Java DB and NetBeans 7.1.2. Within the IDE, the app runs good, provided I initially connect the database manually in the 'services' window. Also, I have added the derby.jar and derbyclient.jar files to the libraries. But when running the app from the "dist" folder, it fails to connect to the database. I want to know whether i can attach the db within the jar file so that i can run the app from outside the IDE. Thank you. 回答1: You

Increase GUI size in Netbeans 7

99封情书 提交于 2019-12-24 02:04:38
问题 Ever since I upgraded to Netbeans 7, the font size for the GUI (and the icons) are much smaller. Is there any way to increase their size? 回答1: This wiki page about changing font sizes in NetBeans is the best answer available. 回答2: For anyone else experiencing a similar problem in the future. To change the font size of the GUI as originally requested, try the following: Edit the netbeans.conf file found in the /etc directory of the Netbeans installation directory Look for netbeans_default

start() had already been called. The second call will be ignored.?

纵然是瞬间 提交于 2019-12-24 00:51:14
问题 The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Account]] after start() had already been called. The second call will be ignored. plz help me with these error. 回答1: This exception at shutdown happens only if examples webapp was correct when Tomcat started, but was broken afterwards. If it was already broken at startup time, nothing happens. https://issues.apache.org/bugzilla/show_bug.cgi?id=51610 -maybe it help. 来源: https:/

Cannot Run Play Framework Project on Netbeans 7.2 IDE

旧城冷巷雨未停 提交于 2019-12-23 01:37:18
问题 I have a working Play Framework project. I'm using Play Framework version number 1.2.5 and Java version 1.7 update 5 . I have been used play netbeansify command on terminal and successfully load the project. But then, when I tried to run the project its failed to RUN and Netbeans console show error like this: C:\play-1.2.5\id doesn't exist Listening for transport dt_socket at address: 8099 Error: Could not find or load main class ${jvm.memory} Java Result: 1 BUILD SUCCESSFUL (total time: 3