JBoss install problem - nothing is installed
Hello,
I have installed aur/jboss package
aur/jboss 5.1.0.GA-1 [installed] (53)
JBoss Application Server
But there is no /opt/jboss directory, no service added, nothing. When I try to uninstall it, it says:
Packages (1): jboss-5.1.0.GA-1
Total Removed Size: 0,00 MiB
zip file with jboss is installed correctly, all additional files (build, service..) are too.
What is the problem with this process ?
Moving to AUR Issues...
Similar Messages
-
How does it comes I have always problem I got install problems and if its installed I cannot get open the file why does ovi don't work? When will the ovi shop work when can I download and install application without problem? Cause there is always problems nothing else as problems with the ovi shop to download app's
my phone is nokia e7Hi
Your understanding is almost correct. I want to write a code with a very simple interface, says having "start and stop buttons. Once the start button is pressed, the program will do the job such that it will alternatively "click" Move to A and Move to B forever, until the stop button is hit.
Once the subVI finishes its execution you want the program to automatically execute "Move to B". Once the subVI finshes execution the program will automatically execute "Move to A"... Is this what you are looking for?
- Yes.
Do you want the user to be able to interrupt this with a button press? How do you want to implement the while loop stop logic? Will it stop whenever the stop button is selected?
- That would be nice. A stop button will stop the loop and return to the idle state, says the loop waits for the next input.
Thanks for your help -
Where do I download the LiveCylce turnkey JBoss install?
The documentation for the is HERE LiveCycle * Installing and Deploying Adobe LiveCycle® ES4 Using JBoss Turnkey
But were do I get the download link?Here it is : http://www.adobe.com/devnet/livecycle/downloads.html
Thanks
Wasil -
E:\jboss\jboss-4.0.5.GA\bin>run -c spend
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: E:\jboss\jboss-4.0.5.GA\bin\\..
JAVA: C:\Program Files\java\jsdk1.4\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.g
cInterval=3600000
CLASSPATH: C:\Program Files\java\jsdk1.4\lib\tools.jar;E:\jboss\jboss-4.0.5.GA\bin\\run.jar;E:\jboss\jboss-4.0.5.GA\server\
spend\deploy;E:\jboss\jboss-4.0.5.GA\server\spend\conf;E:\jboss\jboss-4.0.5.GA\server\spend\conf\config;
===============================================================================
log4j:ERROR Could not instantiate class [org.apache.log4j.xml.DOMConfigurator].
java.lang.ClassNotFoundException: org.apache.log4j.xml.DOMConfigurator
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.apache.log4j.helpers.Loader.loadClass(Loader.java:160)
at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:309)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:449)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
at org.jboss.logging.Log4jLoggerPlugin.init(Log4jLoggerPlugin.java:77)
at org.jboss.logging.Logger.getDelegatePlugin(Logger.java:338)
at org.jboss.logging.Logger.<init>(Logger.java:96)
at org.jboss.logging.Logger.getLogger(Logger.java:309)
at org.jboss.system.server.ServerImpl.doInit(ServerImpl.java:166)
at org.jboss.system.server.ServerImpl.init(ServerImpl.java:147)
at org.jboss.Main.boot(Main.java:197)
at org.jboss.Main$1.run(Main.java:490)
at java.lang.Thread.run(Thread.java:536)
log4j:ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigurator].
log4j:WARN No appenders could be found for logger (org.jboss.system.server.Server).
log4j:WARN Please initialize the log4j system properly.
please can any body tell me how to solve this problemProblems like this don't cease to amaze me.
We are in the year of 2009 and this problem is most probably caused because jboss is started from a path which contains one or more space.
Try move your jboss installation or eclipse installation (i am not familiar how jboss in installed inside eclipse) to a folder with no spaces and the problem should go away.
It is sad that nice software like jboss has stupid bugs like this. Oh and it migh not be jboss but the JVM. It is silly in any case... -
Sharing as pdf via Email in Numbers problem: nothing happens at all now!
I use this function every day in my work. Suddenly, as of a couple of days ago, it's broken. Absolute nothing happens any ideas please? All latest updates running latest SL
Robin Woodhouse wrote:
Is it possible to roll back to the state before that update?
Yes but maybe No.
As you are running 10.6.8, the update 9.1 isn't required.
If you bought iWork as a package embedding the three apps,
Go to my iDisk :
<http://public.me.com/koenigyvan>
Download :
For_iWork:iWork '09:uninstall iWork '09.zip
and
For_iWork:iWork '09:iWork9Update5.dmg (I don't know if it was re-introduced in Apple's download web site.
expand and apply my Uninstall script,
re install the original package
apply the downloaded updater.
But, maybe, it would be a good idea to go to :
http://www.titanium.free.fr/
download :
MAINTENANCE 1.3.8 (for Snow Leopard) and ask it to :
check and repair permissions
Clean most of the caches.
Yvan KOENIG (VALLAURIS, France) lundi 25 juillet 2011 17:26:06
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
Kernel panic problem, nothing will fix it
I've had about a dozen issues today with that gray screen telling me I need to restart my computer. I researched it and found out it's a kernel panic.
I called Apple Support and I was instructed to verify my hard drive and then fix it via Utilities after starting up from the OS disc. That didn't work.
I called back and another person told me to delete items in my startupitems folder under System. She also said if that didn't do the trick, which it didn't, I would have to Archive Install from the disc.
I Archive Installed and it took a while. The minute it was done and I was logging into my computer the kernel screen came back.
I have NO idea what to do. I can't even sign into my computer and have had troubles turning it on.
I bought the iBook G4 OS version 10.4.7 back in December; and I've never had problems with it.
What should I do? What can I do? There are files on there I need for school and work. Is there any way I can retrieve those then completely erase the OS and reinstall it?
If I can't figure something out I'm taking it to the Apple Store tomorrow. I've got extended Apple Care, so I shouldn't have to pay anything out of pocket, right?
Thanks for any help.When you reinstalled the system did you reformat the drive and write zeroes to it also?
Troubleshooting kernel panics is quite difficult. Most times they are hardware related. I would suggest you follow the steps in the following FAQ. Follow them in order and don't skip any.
http://www.thexlab.com/faqs/kernelpanics.html
This is a roadmap that helps eliminate causes in a systematic manner. It is a time consuming process but a very thorough one. -
how can we start JBOSS, there is no setup file to install it. so please send me steps to open JBOSS and run with an example.
Seriously?
No setup needed: download, unzip, cd bin, run, done.
All your base are belong to them. Then. -
Audigy 2 ZS and Logitech Z-680 problems, nothing coming from rear speake
I've been trying everything to get sound out of these rear speakers but I'm having zero luck. I've installed the drivers I don't even know how many times. The speakers work fine when hooked up to my dvd player so I know the wiring is fine. However everytime I run these tests provided on the install, I get "front left... front center... front right..." and then nothing afterwards. Even though I should be getting "rear right... rear left". What can I do to get these speakers working?!
by the way.. while I'm at it. The digital out on this card, am I able to hook that up to the z-680 console in some way? I have it conneced via 6 ch direct right now.Well I actually got it working last night, my analog connection that is. The weird thing is this: I took the green and black wires, connected to my 680 console and audigy 2, and switched them. As in, the green was in the front speakers minijack and the black was in the rear minijack, and I put the green in the black's connection and vice versa. Suddenly Everything works fine. I don't understand how that could possibly work but whatever.
Now since this is working, should I even bother with a coax connection? During my extensi've reading yesterday, it seemed like coax was only good for dvds and not games. Seeing as how I have a seperate dvd player for all my movies, is it even worth it to open that RCA cable I bought? -
Sequential Access Problem - Nothing is being written to file.
Okay, quick introduction. I am a student and am in an intro Java class. I am understanding most of it; however, I am having one issue with an exercise that I am working on.
Here is the purpose:
To create a simple car reservation application that stores the reservation information in a sequential access file.
In the code what I need to happen is when the user clicks the Reserve Car button, the application needs to first check to see if there are cars already reserved for that day (there is a limit of 4 which is taken care of in the While statement). If the file content is null, it skips this while first.
If the content is null, then I need to open the file for writing, which is taken care of using FileWriter. The program is then to write the date information using the currentDate variable created before the while statement. Next, it is supposed to write the name entered and display a message box stating that the car has been reserved (which it does display).
However, I can add an infinate amount of reservations without getting the error message box stating that the max has been reached. So, I checked the reservations.txt file (which was intially created as a blank file) and I see that nothing at all is getting written to it. Here is the code, can anyone offer any insight into what I am missing. I am not getting any compliation or run-time errors, so I am sure this is just a simple problem I am overlooking. Thanks!
// This application allows users to input their names and
// reserve cars on various days.
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.Date;
import javax.swing.*;
import javax.swing.event.*;
public class CarReservation extends JFrame
// JLabel and JSpinner to display date
private JLabel selectDateJLabel;
private JSpinner dateJSpinner;
// JLabel and JTextField to display name
private JLabel nameJLabel;
private JTextField nameJTextField;
// JButton to reserve car
private JButton reserveCarJButton;
// Printwriter to write to files
private PrintWriter output;
//BufferedReader to read data from file
private BufferedReader input;
// file user will select
private File reserveFile;
// no-argument constructor
public CarReservation()
createUserInterface();
// create and position GUI components
public void createUserInterface()
// get content pane for attaching GUI components
Container contentPane = getContentPane();
// enable explicit positioning of GUI components
contentPane.setLayout( null );
// set up selectDateJLabel
selectDateJLabel = new JLabel();
selectDateJLabel.setBounds( 16, 16, 96, 23 );
selectDateJLabel.setText( "Select the date:" );
contentPane.add( selectDateJLabel );
// set up dateJSpinner
dateJSpinner = new JSpinner( new SpinnerDateModel() );
dateJSpinner.setBounds( 16, 43, 250, 23 );
dateJSpinner.setEditor( new JSpinner.DateEditor(
dateJSpinner, "MM/dd/yyyy" ) );
contentPane.add( dateJSpinner );
dateJSpinner.addChangeListener(
new ChangeListener() // anonymous inner class
// event handler called when dateJSpinner is changed
public void stateChanged( ChangeEvent event )
dateJSpinnerChanged( event );
} // end anonymous inner class
); // end call to addActionListener
// set up nameJLabel
nameJLabel = new JLabel();
nameJLabel.setBounds( 16, 70, 100, 23 );
nameJLabel.setText( "Name: " );
contentPane.add( nameJLabel );
// set up nameJTextField
nameJTextField = new JTextField();
nameJTextField.setBounds( 16, 97, 250, 23 );
contentPane.add( nameJTextField );
// set up reserveCarJButton
reserveCarJButton = new JButton();
reserveCarJButton.setBounds( 16, 130, 250, 23 );
reserveCarJButton.setText( "Reserve Car" );
contentPane.add( reserveCarJButton );
reserveCarJButton.addActionListener(
new ActionListener() // anonymous inner class
// event handler called when reserveCarJButton is clicked
public void actionPerformed( ActionEvent event )
reserveCarJButtonActionPerformed( event );
} // end anonymous inner class
); // end call to addActionListener
// set properties of application's window
setTitle( "Car Reservation" ); // set title bar string
setSize( 287, 190 ); // set window size
setVisible( true ); // display window
} // end method createUserInterface
// write reservation to a file
private void reserveCarJButtonActionPerformed( ActionEvent event )
try
// get file
reserveFile = new File( "reservations.txt" );
// open file
FileReader currentFile = new FileReader( reserveFile );
input = new BufferedReader( currentFile );
// get date from dateJSpinner and format
Date fullDate = ( Date ) dateJSpinner.getValue();
String currentDate = fullDate.toString();
String monthDay = currentDate.substring( 0 , 10 );
String year = currentDate.substring( 24, 27 );
currentDate = ( monthDay + " " + year );
// declare variable to store number of people who reserve a car
int dateCount = 1;
// read a line from the file and store
String contents = input.readLine();
// while loop to read file data
while ( contents != null )
// if contents equal currentDate
if ( contents.equals( currentDate ) )
// check reservation number
if ( dateCount <4 )
dateCount++;
else
// display error message
JOptionPane.showMessageDialog( this,
"There are no more cars available for this day!",
"All Cars Reserved", JOptionPane.ERROR_MESSAGE );
// disable button
reserveCarJButton.setEnabled( false );
// exit the method
return;
} // end else
} // end if
// read next line of file
contents = input.readLine();
} // end while
// close the file
input.close();
FileWriter outputFile = new FileWriter( reserveFile, true );
output = new PrintWriter( outputFile );
// write day to file
output.println( currentDate );
// write reserved name to file
output.println( nameJTextField.getText() );
// display message that car has been reserved
JOptionPane.showMessageDialog( this, "Your car has been reserved",
"Thank You", JOptionPane.INFORMATION_MESSAGE);
} // end try
catch ( IOException exception )
JOptionPane.showMessageDialog( this, "Please make sure the file exists " +
"and is of the right format.", "I/O Error",
JOptionPane.ERROR_MESSAGE );
// disable buttons
dateJSpinner.setEnabled( false );
reserveCarJButton.setEnabled( false );
} // end catch
// clear nameJTextField
nameJTextField.setText( "" );
} // end method reserveCarJButtonActionPerformed
// enable reserveCarJButton
private void dateJSpinnerChanged( ChangeEvent event )
reserveCarJButton.setEnabled( true );
} // end method dateJSpinnerChanged
// main method
public static void main( String[] args )
CarReservation application = new CarReservation();
application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
} // end method mainThank you. Sorry about all the code. I have never posted in this forum before and was unsure what all you needed.
This was the problem though. Right after I posted my question, I went back and looked at the code over again and realized that I left that part out! I added it in and it works perfectly. I came back to update my post but you had already answered it!
I really appreciate the quick response.
Mike -
Tiger OS X10.4.2 Installation Problem, nothing on posts have worked
I am using an iBook G4, with a 1.33GHz PowerPC G4 processor, with 256 MB memory. I am currently running Panther OS X 10.3.9 and looking to install Tiger 10.4.2. When I restart the computer and hold c with the Tiger disc in, I continually get the "This cannot be installed on this computer" message. I have tried using the disk utility to verify the disc permissions of the installation disc and I recieve the package error message. After this, I checked to see if my BaseSystem.pkg was in my Receipts folder, and it was. I did not get an option to verify the disk as this button was unclickable, I could only click verify disc permissions. I have also verified the disc permissions and repaired disc on my hard drive. There is not firmware updates needed for my computer.
I have checked all over this forum and have tried everything I have seen suggested. Thanks for any further suggestions!
iBook Mac OS X (10.3.9)What color is the Tiger installer disk? If it is grey, does the label say is it for your iBook or for some other Mac model? Only a black, retail Tiger disk or a grey one for your specific model will reliably install Tiger on your iBook.
To repair your hard drive, or to verify it in 10.3.x, you must start up from another drive that has Disk Utility on it -- you cannot repair the drive you start up from.
If your Tiger disk qualifies as above, you can restart from it by holding down the "c" key during restart, then select Disk Utility from the "Utilities" menu of the Installer (do not run the installer). This should allow you to repair the hard drive. -
I need some help ASAP!!! I have charges from itunes via in-app purchases that are almost all same amounts but different times. i can not get anyone from apple to respond to me. After i did the whole quick lane via online it said chat later.
On emal that contains bill i even did the report a problem and nothing would happen. I have never had a problem and just want to resolve asap as now its declining my credit card..someone help me PLEASE!!!Follow these exact instructions:
1) http://www.apple.com/support/itunes/contact/
2) Get iTunes support via Express Lane
3) iTunes store
4) Purchases, billing & redemption
5) iTunes Store account billing
6) Fill out info about your device (the one you're accessing iTunes from)
7) Continue
8) Sign in with Apple ID
9) You see "Contact Options." DO NOT choose chat later, but rather select Email. -
Mysql, Jboss connecting problem
Hello,
I am having problem with mysql database. I am trying to run AccountEJB application from SUN with mysql as my backend.
PLEASE DO NOT FORGET I AM NOT EXPERT IN JBOSS OR EJB BUT I AM TRYING TO LEAN WITH A EXAMPLE.
HERE IS MY SETUP UP TO THIS POINT.
I am running jboss-3.03.0_tomcat-4.0.3
I am including
1. AccountBean
2. ejb-jar.xml
3. web.xml
4. jboss.xml
6. mysql-service.xml ( I add my database name, username, password and i copy it to ..server/default/deploy dir.)
I only modified mysql-service.xml. Do i have to modify any other jboss files. Some people are saying i have to modify "standardjaws.xml, standardjbosscmp.xml"
My AccountBean code is
Please take a look at "setEntityContext" and "makeConnection" that is where problem comes.
Here is the error
10:43:19,950 INFO [Engine] AccountServlet: init
10:43:19,950 INFO [STDOUT] AccountServlet: init()
10:43:20,101 INFO [STDOUT] Got context
10:43:20,311 INFO [STDOUT] Got referance
10:43:20,371 INFO [STDOUT] Got referance to home object
10:43:20,501 INFO [STDOUT] setEntityContext call....
10:43:20,501 INFO [STDOUT] makeConnection call...
10:43:20,501 INFO [STDOUT] Something went wrong within makeConnction call ....
javax.naming.NameNotFoundException: MySqlDS not bound
10:43:20,501 INFO [STDOUT] Came back from makeConnction call ...
10:43:20,501 INFO [STDOUT] ejbCreate call
10:43:20,501 INFO [STDOUT] insertRow call...
10:43:20,511 ERROR [STDERR] Caught an exception.
10:43:20,511 ERROR [STDERR] java.rmi.ServerException: ejbCreate: null; nested ex
ception is:
javax.ejb.EJBException: ejbCreate: null
package com.ps.impl;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import java.sql.*;
import javax.sql.*;
import javax.ejb.*;
import javax.naming.*;
import java.util.*;
import java.rmi.*;
public class AccountBean implements EntityBean
private EntityContext context;
private String id;
private String firstName;
private String lastName;
private double balance;
private Connection con;
//private String dbName = "java:/MySqlDS";
public void debit (double amount)
if (balance - amount < 0)
else
balance = balance - amount;
public void credit (double amount)
balance = balance + amount;
public String getFirstName()
return firstName;
public String getLastName()
return lastName;
public double getBalance()
return balance;
public String ejbCreate(String id, String firstName, String lastName, double balance)
throws CreateException
System.out.println("ejbCreate call");
if (balance < 0.00) {
throw new CreateException
("A negative initial balance is not allowed.");
try {
insertRow(id, firstName, lastName, balance);
} catch (Exception ex) {
throw new EJBException("ejbCreate: " +
ex.getMessage());
this.id = id;
this.firstName = firstName;
this.lastName = lastName;
this.balance = balance;
return id;
public void ejbPostCreate(String id, String firstname, String lastname, double blance)
public String ejbFindByPrimaryKey(String primaryKey)
throws FinderException
System.out.println("ejbFindPrimaryKey call...");
boolean result;
try {
result = selectByPrimaryKey(primaryKey);
} catch (Exception ex) {
throw new EJBException("ejbFindByPrimaryKey: " +
ex.getMessage());
if (result) {
return primaryKey;
else {
throw new ObjectNotFoundException
("Row for id " + primaryKey + " not found.");
public Collection ejbFindByLastName(String lastName)
throws FinderException
System.out.println("ejbFindByLastName call...");
Collection result;
try {
result = selectByLastName(lastName);
} catch (Exception ex) {
throw new EJBException("ejbFindByLastName " +
ex.getMessage());
if (result.isEmpty()) {
throw new ObjectNotFoundException("No rows found.");
else {
return result;
public Collection ejbFindInRange(double low, double high)
throws FinderException
System.out.println("ejbFindRange call ....");
Collection result;
try {
result = selectInRange(low, high);
} catch (Exception ex) {
throw new EJBException("ejbFindInRange: " +
ex.getMessage());
if (result.isEmpty()) {
throw new ObjectNotFoundException("No rows found.");
else {
return result;
public void ejbActivate()
System.out.println("ejbActivate call ...");
id = (String)context.getPrimaryKey();
public void ejbLoad()
System.out.println("ejbLoad call ...");
try {
loadRow();
} catch (Exception ex) {
throw new EJBException("ejbLoad: " +
ex.getMessage());
public void ejbPassivate()
id = null;
public void ejbRemove()
System.out.println("ebjRemove call ...");
try {
deleteRow(id);
} catch (Exception ex) {
throw new EJBException("ejbRemove: " +
ex.getMessage());
public void ejbStore()
System.out.println("ejbStore call ...");
try {
storeRow();
} catch (Exception ex) {
throw new EJBException("ejbLoad: " +
ex.getMessage());
public void setEntityContext(EntityContext context)
this.context = context;
System.out.println("setEntityContext call....");
try {
makeConnection();
System.out.println("Came back from makeConnction call ...");
} catch (Exception ex) {
throw new EJBException("Unable to connect to database " +
ex.getMessage());
public void unsetEntityContext()
System.out.println("unsetEntityContext call ...");
try {
con.close();
} catch (SQLException ex) {
throw new EJBException("unsetEntityContext: " + ex.getMessage());
/*********************** Database Routines *************************/
private void makeConnection() throws NamingException, SQLException
System.out.println("makeConnection call...");
try
InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup("java:/MySqlDS");
con = ds.getConnection();
catch (Exception ex)
System.out.println("Something went wrong within makeConnction call .... " + ex);
private void insertRow (String id, String firstName, String lastName,
double balance) throws SQLException {
System.out.println("insertRow call...");
String insertStatement =
"insert into account values ( ? , ? , ? , ? )";
PreparedStatement prepStmt =
con.prepareStatement(insertStatement);
prepStmt.setString(1, id);
prepStmt.setString(2, firstName);
prepStmt.setString(3, lastName);
prepStmt.setDouble(4, balance);
prepStmt.executeUpdate();
prepStmt.close();
private void deleteRow(String id) throws SQLException {
System.out.println("deleteRow call ...");
String deleteStatement =
"delete from account where id = ? ";
PreparedStatement prepStmt =
con.prepareStatement(deleteStatement);
prepStmt.setString(1, id);
prepStmt.executeUpdate();
prepStmt.close();
private boolean selectByPrimaryKey(String primaryKey)
throws SQLException {
System.out.println("selectByPrimaryKey call...");
String selectStatement =
"select id " +
"from account where id = ? ";
PreparedStatement prepStmt =
con.prepareStatement(selectStatement);
prepStmt.setString(1, primaryKey);
ResultSet rs = prepStmt.executeQuery();
boolean result = rs.next();
prepStmt.close();
return result;
private Collection selectByLastName(String lastName)
throws SQLException {
System.out.println("selectByLastName call...");
String selectStatement =
"select id " +
"from account where lastname = ? ";
PreparedStatement prepStmt =
con.prepareStatement(selectStatement);
prepStmt.setString(1, lastName);
ResultSet rs = prepStmt.executeQuery();
ArrayList a = new ArrayList();
while (rs.next()) {
String id = rs.getString(1);
a.add(id);
prepStmt.close();
return a;
private Collection selectInRange(double low, double high)
throws SQLException {
System.out.println("selectInRange call ....");
String selectStatement =
"select id from account " +
"where balance between ? and ?";
PreparedStatement prepStmt =
con.prepareStatement(selectStatement);
prepStmt.setDouble(1, low);
prepStmt.setDouble(2, high);
ResultSet rs = prepStmt.executeQuery();
ArrayList a = new ArrayList();
while (rs.next()) {
String id = rs.getString(1);
a.add(id);
prepStmt.close();
return a;
private void loadRow() throws SQLException {
System.out.println("loadRow call ....");
String selectStatement =
"select firstname, lastname, balance " +
"from account where id = ? ";
PreparedStatement prepStmt =
con.prepareStatement(selectStatement);
prepStmt.setString(1, this.id);
ResultSet rs = prepStmt.executeQuery();
if (rs.next()) {
this.firstName = rs.getString(1);
this.lastName = rs.getString(2);
this.balance = rs.getDouble(3);
prepStmt.close();
else {
prepStmt.close();
throw new NoSuchEntityException("Row for id " + id +
" not found in database.");
private void storeRow() throws SQLException {
System.out.println("storeRow call ...");
String updateStatement =
"update account set firstname = ? ," +
"lastname = ? , balance = ? " +
"where id = ?";
PreparedStatement prepStmt =
con.prepareStatement(updateStatement);
prepStmt.setString(1, firstName);
prepStmt.setString(2, lastName);
prepStmt.setDouble(3, balance);
prepStmt.setString(4, id);
int rowCount = prepStmt.executeUpdate();
prepStmt.close();
if (rowCount == 0) {
throw new EJBException("Storing row for id " + id + " failed.");
2. ejb-jar.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<entity>
<description>Entity Bean ( BMP )</description>
<display-name>Account</display-name>
<ejb-name>Account</ejb-name>
<home>com.ps.AccountHome</home>
<remote>com.ps.Account</remote>
<ejb-class>com.ps.impl.AccountBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
</entity>
</enterprise-beans>
</ejb-jar>
3. web.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>Empty web.xml file for Web Application</description>
<servlet>
<servlet-name>AccountServlet</servlet-name>
<servlet-class>com.ps.AccountServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AccountServlet</servlet-name>
<url-pattern>/accountservlet</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
4. jboss.xml (i am not sure this is righ maybe this is the problem)
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss.dtd">
<jboss>
<resource-managers>
<resource-manager res-class="">
<res-name>MySqlDS</res-name>
<res-jndi-name>java:/MySqlDS</res-jndi-name>
</resource-manager>
</resource-managers>
</jboss>
5. mysql-service.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<server>
<!-- ==================================================================== -->
<!-- New ConnectionManager setup for mysql using 2.0.11 driver -->
<!-- Build jmx-api (build/build.sh all) and view for config documentation -->
<!-- ==================================================================== -->
<mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" name="jboss.jca:service=LocalTxCM,name=MySqlDS">
<!-- Include a login module configuration named MySqlDbRealm.
Update your login-conf.xml, here is an example for a
ConfiguredIdentityLoginModule:
<application-policy name = "MySqlDbRealm">
<authentication>
<login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
<module-option name = "principal">yourprincipal</module-option>
<module-option name = "userName">yourusername</module-option>
<module-option name = "password">yourpassword</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=MySqlDS</module-option>
</login-module>
</authentication>
</application-policy>
NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the
module-option name = "managedConnectionFactoryName"
must match the object name of the ConnectionManager you are configuring here.
-->
<!--uncomment out this line if you are using the MySqlDbRealm above
<attribute name="SecurityDomainJndiName">MySqlDbRealm</attribute>
-->
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=MySqlDS">
<attribute name="JndiName">MySqlDS</attribute>
<attribute name="ManagedConnectionFactoryProperties">
<properties>
<config-property name="ConnectionURL" type="java.lang.String">jdbc:mysql://localhost:3306/pac</config-property>
<config-property name="DriverClass" type="java.lang.String">org.gjt.mm.mysql.Driver</config-property>
<!--set these only if you want only default logins, not through JAAS -->
<config-property name="UserName" type="java.lang.String">t100</config-property>
<config-property name="Password" type="java.lang.String">t200</config-property>
</properties>
</attribute>
<!--Below here are advanced properties -->
<!--hack-->
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper</depends>
</mbean>
</depends>
<depends optional-attribute-name="ManagedConnectionPool">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name="jboss.jca:service=LocalTxPool,name=MySqlDS">
<attribute name="MinSize">0</attribute>
<attribute name="MaxSize">50</attribute>
<attribute name="BlockingTimeoutMillis">5000</attribute>
<attribute name="IdleTimeoutMinutes">15</attribute>
<!--criteria indicates if Subject (from security domain) or app supplied
parameters (such as from getConnection(user, pw)) are used to distinguish
connections in the pool. Choices are
ByContainerAndApplication (use both),
ByContainer (use Subject),
ByApplication (use app supplied params only),
ByNothing (all connections are equivalent, usually if adapter supports
reauthentication)-->
<attribute name="Criteria">ByContainer</attribute>
</mbean>
</depends>
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager</depends>
<attribute name="TransactionManager">java:/TransactionManager</attribute>
<!--make the rar deploy! hack till better deployment-->
<depends>jboss.jca:service=RARDeployer</depends>
</mbean>
</server>In /JBoss/server/default/conf/standardjaws.xml.
Set
<datasource>java:/mySqlDS</datasource>
<type-mapping>mySql</type-mapping>
In /JBoss/server/default/conf/standardjbosscmp-jdbc.xml.
Set
<defaults>
<datasource>java:/mySqlDS</datasource>
<datasource-mapping>mySql</datasource-mapping></defaults> -
Hi all,
Although Log4J is not exactly about Java, but it is kind of related, so please don't mind me posting this message.
I am having problems stoping JBoss from reloading the log4j.properties file. Is there anyway to stop it from polling the log4j.properties file every now and then..
Thx for your help
KevinLook at ${JBOSS_HOME}/server/default/jboss-service.xml. It has a section with the following code:
<mbean code="org.jboss.logging.Log4jService"
name="jboss.system:type=Log4jService,service=Logging">
<attribute name="ConfigurationURL">resource:log4j.xml</attribute>
<attribute name="Log4jQuietMode">true</attribute>
<!-- How frequently in seconds the ConfigurationURL is checked for changes -->
<attribute name="RefreshPeriod">60</attribute>
</mbean>You could try setting the refresh periode to 0, but I don't know to what kind of behaviour that will result in. -
Hi all
when I was downloading JBOSS server, I found number of types of download and when I chose any one of them, then in it also I found number of type of files. I downloaded a file one of them but it has not setup file. so please tell me how can I download JBOSS server for EJB.
ThanksPlease do not post these types of questions here.
This is a Java programming forum and a JSP topic.
Your question has nothing to do with either.
Please read the installation instructions at the JBoss site. -
Hi all
i am using jboss - UsernamepasswordLoginModule for username and password authentication. I want to know the way to restrict users after 3 bad logins.
if user uses wrong password for three times successively then something should happen like he should not be able to login for next 30 minutes.
It can be done in weblogic, but how to do it in jboss?
thanx in advance.thanx but its not specified thereDid you read this part?:
How do I configure security with JBoss ?
JBoss uses JAAS for security. JBoss includes several JAAS login modules allowing applications to get their user info from LDAP servers, databases or property files (the last to simplify testing). There are also login modules for clients, so that they can send security information to the JBoss server. Note that an application that logs into JBoss must use JAAS to give user name and password. It is not possible to use the JNDI lookup information for that in JBoss. How to configure this is shown in chapter 8 of the free getting started guide.
Did you check the "getting started guide"?
Did you familiarize yourself with JAAS?
Did you implement/configure a login module?
Did you have a specific problem with the login module (errors, etc.)?
Did you post this question at the JBoss Forum?
Did you get an answer?
Did you try anything at all about which you can post the details?
Are you getting my point?
Maybe you are looking for
-
Trying to export inbox to a new mac. exported folder has deleted emails. Why?
using import/export tool to export mail box. My exported inbox has thousands of previous deleted emails. can't work out where they are coming from Ditto my sent folder
-
Can't view pictures on Samsung Galaxy Note3 since the new update!!
i have a samsung galaxy note 3. Since this latest update, my phone is slower and I can't view pictures in my Gallery. It takes forever to load and a notification window will appear asking if I want to Wait or iif I want to Close?! Also, I've delet
-
How to deal with Fixed Assests in Process Enabled Orgs?
How to deal with Fixed Assests in Process Enabled Orgs We have a Process Organization - Food Industry , We are implimenting the Process Manufacturing . But we also have plenty of machines etc i.e. Fixed assets. Can any one suggest how to deal with th
-
Is it possible to have multiple page layout in single document?
HI all, I am having a pdf document which contains 10 pages. I want to make the first three pages in Landscape layout and the remaining 7 pages in Portrait, is it possible? Thanks in advance Sreejesh K V
-
Hi all, I am in face of a problem for witch i haven't more information to resolve.It's the error:FRM-41213:Unable to connect to a report Server. When we Used a standalone report server in IDS/Windows we hadn't this problem.Now we migrate on IAS/LINUX