Strange issues when using WebLogic + JBuilder7

zhaozj2021-02-16  62

A week ago, the teacher let us use Java to do projects, saying the truth, I really know the half solution for Java, it is definitely a door, helpless, the teacher's mission cannot be completed, I have to do it hard. We have a project called "Data Warehouse". It used to be done by the brothers. It is Tomcat to do server, JSP Javabean is developed. Later, the teacher decided to change the J2EE version in order to "improve the technical content of the project". We have almost no one in J2EE with J2EE. So everyone started to find information, download the compiler, busy. In the end, everyone decided to use Oracle9i to make a database, WebLogic7 JBuilder7 makes development environments, the reason is that WebLogic supports J2EE support, the JBuilder development environment is not bad, the requirements are not too high for machine requirements (our machine is relatively poor, P3-550 256M memory, just satisfying the minimum requirements :), I thought it was very simple configuration, it was easy to get it, but the result is a big shock. According to the training information, step by step is installed, test console, pass, then follow the instructions to put JBuilder7 on, and configure it in order, the approximate process is as follows: WebLogic and JBuilder7 integrate, after configuring, The session bean is good and the configuration is correct. Then test entity bean: 1, set Oracle9i driver: In JBuilder7, Tools -> Enterprise Setup ...--> Database Driver, click Add, select Oracle location D: / Oracle / ORA91 / JDBC / lib / class12 .zip, after confirmation, drive appear in the list, then restart JBuilder 2, create an engineered Demo, then create an EJB Module name HUSTLI, then import the database Schema information. 3, enter the connection information of the database: I use the Oracle9 on the machine, the machine name is flyers, SID = daito, the specific information is as follows: driver: Oracle.jdbc.driver.Orcledriver URL: JDBC: Oracle: Thin: @ Flyers: 1521: daito user = daito password = daito jndi name: DataSource 4, after success, create CMP EJB, enter EJB information, where Interface is Remote 5, configures WebLogic JDBC Pool and Data Source: JDBC Pool: Name: Pool URL: JDBC: Oracle: Thin: @flyrs: 1521: Daito Properties: User = daito password: daito initial capacity: 5 Maximum Capacity: 10 Test Table Name: HUSTLI (I built a table) Add MyServer in Targets, the rest Using the default configuration.

Data Source: Name: DataSource Pool Name: Pool Add MyServer in Targets, the rest is used by default configuration and then restart WebLogic settings page, success 6, package the EJB, deploy success. 7. Automatically generate test programs with JBuilder7, change the main function as follows: public static void main (string [] args) {Try {Client Client = new client ();

HustliRemoteHome home = client.getHome (); HustliRemote r = home.findByPrimaryKey ( "jjli"); System.out.println (r.getAge ());} catch (RemoteException ex) {ex.printStackTrace ();} catch ( FinderException e) {e.printStackTrace ();}} error results appear in Object ref = ctx.lookup ( "HustliRemote"); (automatically generated) error is as follows: javax.naming.NameNotFoundException: Unable to resolve 'HustliRemote' Resolved : '' Unresolved: 'hushliremote'; Remaining Name 'Hustliremote' later this problem also appeared on the machine's machine, there is no exception. For this problem, everyone discussed for a long time, but they scattered themselves. Everyone calm down, and the research of various information is self-confident. It is found that when the program is compiled, there is a warning, everyone I didn't pay attention, and I haven't read this problem later, warning roughly: the temporary file directory has spaces, which may result in fatal errors. But we find that there are 2 settings in the system's environment variables: Temp and TMP, but in one of the user variables, one of the system variables, according to my point of view, the compiler should first search the system variable, the value of the system variable Is C: / Winnt / Temp, this should have no problem, so we set a directory in C, named Temp, and set the TEMP and TMP values ​​of the user variable to C: / Temp, and then save, Start JBuilder7, everything OK! This problem, what does it seem to be very bt? I am very surprised why JBuider will find a user variable first? If the problem is not a problem, that is, we don't pay attention to warning, the following questions are too depressed. WebLogic JBuilder was installed, running for 2 days, then in order to antiche, I installed several anti-virus software, started to scan the hard drive, using lovegate to kill a few viruses, then put all the infected files all deleted, refurbish Launching the machine, then doing something, I forgot this, wait until I started JBuilder tomorrow, misfortune happened, when the deploy component, discovered error: Unable to connect T3: / localhost: 7001.

转载请注明原文地址:https://www.9cbs.com/read-23859.html

New Post(0)